This example derives the sum of two angles identities using the right triangle definitions of the functions sine and cosine. The right triangle definitions of sine and cosine are shown below.

Start by drawing a right triangle with an angle and hypotenuse of as shown below. The geometry of this triangle will be used to derive the identities.

Solve for the lengths of the adjacent and opposite sides by substituting , and into the definitions of sine and cosine.

Label these lengths in the figure.

Draw a line parallel to and use the corresponding angle theorem to label the corresponding angles and .

Draw a right triangle with the angle starting at the point that shares the hypotenuse . Then draw two more right triangles that complete the rectangular shape.

The geometry of this shape can be used to represent the lengths of the adjacent and opposite sides of the original right triangle.

Substitute the sine and cosine of the angle from above. This gives us the general form of the identities, next we will find the unknown lengths.

Find the adjacent and opposite lengths of the right triangle .

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

Label these lengths in the figure.

Find the adjacent and opposite lengths of the right triangle .

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

Label these lengths in the figure.

Observe that the angle is equal to , because it is complementary to the angle which is complementary to .

Find the adjacent and opposite lengths of the right triangle .

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

Label these lengths in the figure.

Substitue the unknown lengths into the equation from the end of step 1.

This gives us the sum of two angles identities.