This example shows how to derive the difference of two angles identities using the right triangle definitions of the functions sine and cosine. The definitions are shown below.

Start by drawing a right triangle with an angle of and a hypotenuse of . The angles (alpha) and (beta) are also drawn.

Solve for the lengths of the adjacent and opposite side. Substitute the hypotenuse , adjacent side and opposite side into the definitions of sine and cosine.

Label these lengths in the figure.

The goal is to represent these side-lengths in terms of the sine and cosine of the angles and . To achieve this goal, draw another right triangle of hypotenuse with the angle of on top of the first right-triangle.

This allows us to represent the length of as the sum of the lengths and . And to represent the length as the difference of the lengths and .

Substituting the expressions from above gives us the starting point for the identities. In the next steps we will solve for the unknown lengths using the definitions of sine and cosine.

Solve for the adjacent and opposite sides of the right-triangle illustrated below.

Substitute the hypotenuse , adjacent side and opposite side into the definitions of sine and cosine, then solve for the adjacent and opposite side.

Label the side lengths in the figure.

Solve for the adjacent and opposite sides of the right-triangle illustrated below. From the corresponding angle theorem we know that is the same as .

Substitute the hypotenuse , adjacent side and opposite side into the definitions of sine and cosine, then solve for the adjacent and opposite side.

Label these lengths in the figure.

Solve for the adjacent and opposite sides of the right-triangle illustrated below. We know that is equal , because it is complementary to which is complementary angle to .

Substitute the hypotenuse , adjacent side and opposite side into the definitions of sine and cosine and solve for the adjacent and opposite side.

Label these lengths into the illustration below.

This gives us all the unknown lengths in the figure.

Substitute the lengths into the equation from the end of step 1.

This give us the difference of two angles identities.