Law of Cosines

Solving SAS and SSS


Objectives:

Solving a triangle means to determine the measure of all three angles and the lengths of all three sides.

The law of cosines can be used when two sides and the included angle are known or when all three sides are known. This is the situation with SAS and SSS.

The Law of Cosines (for any triangle ABC)
a2 = b2 + c2 - 2bc cos A
b2 = a2 + c2 - 2ac cos B
c2 = a2 + b2 - 2ab cos C

Note that a2 = b2 + c2 - 2bc cos A simplifies somewhat when the measure of angle A is 90°. Then cos A = cos 90° = 0 so the Law of Cosines becomes a2 = b2 + c2 (the pythagorean theorem). In an acute triangle, a2 < b2 + c2 and in an obtuse triangle, a2 > b2 + c2


Example 1 (SSS):

In triangle XYZ, x = 3, y = 7 and z = 9. Find the measure of angle Z.

z2 = x2 + y2 - 2xy cos Z
Substitute and solve.


Example 2 (SSS):

In triangle XYZ, x = 3, y = 7 and z = 11. Find the measure of angle Z.

z2 = x2 + y2 - 2xy cos Z
Substitute and we have trouble--what is it?


Example 3 (SAS):

In triangle ABC, b = 4, c = 5 and the measure of angle A is 51°. Solve the triangle. Can you use the Law of Sines first?


Example 4 (Extra for experts):

You can use the law of cosines to solve the ambiguous case that we looked at with the law of sines. The trick is to write the law of cosines as a quadratic in terms of the unknown side. In our last example with the law of sines, triangle ABC had angle B and sides a and b given. So we use:

b2 = a2 + c2 - 2ac cos B

or, rearranged:

c2 + (-2acosB)c + (a2 - b2) = 0

Plug that into the quadratic formula and: