Formulas
Derivation
and
By solving the system of equations, you can derive the formula as follows.
By applying this formula, you can derive other equations.
Also, from the relations between sine and cosine,
you can derive following formula.
Final formula can be derived as follows.