The Law of Cosines
The Law of Cosines
The Law of Cosines
𝒄𝟐 = 𝒂𝟐 + 𝒃𝟐 − 𝟐𝒂𝒃 𝒄𝒐𝒔(𝑪)
It helps us solve some triangles. Let's see how to use it.
Answer: c = 6.67
HOW TO REMEMBER
How can you remember the formula?
Well, it helps to know it's the Pythagoras Theorem with something extra so it works for all triangles:
PYTHAGORAS THEOREM:
(only for Right-Angled Triangles) 𝑎2 + 𝑏 2 = 𝑐 2
Law of Cosines:
(for all triangles) 𝑎2 + 𝑏2 − 2𝑎𝑏 𝑐𝑜𝑠(𝐶) = 𝑐 2
think "abc": 𝑎2 + 𝑏 2 = 𝑐 2
When to Use
The Law of Cosines is useful for finding:
the third side of a triangle when we know two sides and the angle between them (like the
example above)
the angles of a triangle when we know all three sides (as in the following example)
Calculate: 64 = 81 + 25 − 90 × 𝑐𝑜𝑠(𝐶)
42
Inverse cosine: 𝐶 = 𝑐𝑜𝑠 −1 ( )
90
IN OTHER FORMS
Easier Version for Angles
We just saw how to find an angle when we know three sides. It took quite a few
steps, so it is easier to use the "direct" formula (which is just a rearrangement of
the 𝑐 2 = 𝑎2 + 𝑏2 − 2𝑎𝑏 𝑐𝑜𝑠(𝐶) formula). It can be in either of these forms:
𝑎2 + 𝑏 2 − 𝑐 2
𝑐𝑜𝑠(𝐶) =
2𝑎𝑏
𝑏 2 + 𝑐 2 − 𝑎2
𝑐𝑜𝑠(𝐴) =
2𝑏𝑐
𝑐 2 + 𝑎2 − 𝑏 2
𝑐𝑜𝑠(𝐵) =
2𝑐𝑎
Example: Find Angle "C" Using The Law of Cosines (angle version)
a = 8,
b = 6 and
c = 7.
𝑎2 + 𝑏2 − 𝑐 2 82 + 62 − 72 51
𝑐𝑜𝑠(𝐶 ) = = = = 0.53125
2𝑎𝑏 2×8×6 96
𝑎2 = 𝑏2 + 𝑐 2 − 2𝑏𝑐 cos(𝐴)
𝑏 2 = 𝑎2 + 𝑐 2 − 2𝑎𝑐 cos(𝐵)
𝑐 2 = 𝑎2 + 𝑏2 − 2𝑎𝑏 cos(𝐶)
But it is easier to remember the "c2=" form and change the letters as needed !
As in this example:
The letters are different! But that doesn't matter. We can easily substitute 𝒙 for
𝒂, 𝒚 for 𝒃 and 𝒛 for 𝑐
𝑧 2 = = 130.61 + 80.17. ..
𝑧 2 = 210.78. . .
Answer: z = 14.5
Did you notice that 𝑐𝑜𝑠(131º) is negative and this changes the last sign in the
calculation to + (plus)? The cosine of an obtuse angle is always negative (see Unit
Circle).