Algebra 2 Lesson 13.3: The Law of Cosines
11th Grade Math · Chapter 13: Trigonometric Ratios · Common Core G-SRT.D.11
What is in the full lesson (18 activities)
Every item below opens free in the course.
- Video: The Law of Cosines Introduction
- Video: The Law of Cosines: example 1
- Video: The Law of Cosines: example 2
- Video: The Law of Cosines: example 3
- Video: The Law of Cosines: example 4
- Video: The Law of Cosines: example 5
- Practice questions: Checkpoint 1: Law of Sines and Law of Cosines (5 questions, 6 points)
- Video: The Law of Cosines: example 6
- Video: The Law of Cosines: example 7
- Practice questions: Checkpoint 2: Law of Sines and Law of Cosines (5 questions, 6 points)
- Geogebra: GeoGebra activity: Explore the Law of Cosines
- Geogebra: GeoGebra activity: Explore the solutions step-by-step
- Notes: Lesson notes: The Law of Cosines
- Interactive lesson: Interactive lesson: Law of Cosines Triangle Lab
- Interactive lesson: Interactive practice: The Law of Cosines Practice
- Practice questions: Practice questions (7 questions, 13 points)
- Worksheet: Worksheet: The Law of Cosines
- Answers: Worksheet answer key: The Law of Cosines
A free Algebra 2 lesson for grade 11 students from OBA School: The Law of Cosines, aligned with the Common Core State Standards (CCSS G-SRT.D.11). Watch the video, read the explanation and worked examples, then try the practice questions. The full lesson in our free online Algebra 2 course adds more videos, interactive activities, a self-checking quiz and printable worksheets.
What you will learn
- Use the Law of Cosines to find the third side when two sides and the included angle are known
- Rearrange the Law of Cosines to find any angle when three sides are known
- Decide whether a problem needs the Law of Sines or the Law of Cosines, and combine them
- Solve problems with bearings, unknown lengths and exact values, and prove the Law of Cosines
Key words
- Included angle: The angle between two given sides.
- Law of Cosines: a² = b² + c² − 2bc cos A in any triangle.
- Largest angle: The angle opposite the longest side. If it is obtuse, its cosine is negative.
- Pythagoras: The special case A = 90°, where cos A = 0.
Finding a side
If you know two sides and the angle between them, there is no opposite pair, so the Law of Sines cannot start. Use the Law of Cosines instead.
Law of Cosines: a² = b² + c² − 2bc cos A (the side on the left is opposite the angle on the right)
Worked example: exact values
Two sides of a triangle are 3 cm and 5 cm, and the angle between them is 120°. Find the exact length of the third side.
x² = 9 + 25 − 30 cos 120° = 34 − 30(−1/2) = 49
Answer: 7 cm
Finding an angle
Angles: cos A = (b² + c² − a²)/2bc
Worked example: three sides
A triangle has sides 5 cm, 8 cm and 11 cm. Find its largest angle θ.
cos θ = (5² + 8² − 11²)/(2 × 5 × 8) = (−32)/80 = −0.4
θ = cos ⁻¹(−0.4) = 113.578...°
Answer: θ = 113.6° (obtuse, because the cosine is negative)
Unlike sin ⁻¹, the inverse cosine gives angles from 0° to 180°, so there is no ambiguous case: the Law of Cosines always gives the right angle.
Worked example: an unknown length
A triangle has sides x cm and (x + 3) cm with an included angle of 60°. The third side is 7 cm. Find x.
49 = x² + (x + 3)² − 2x(x + 3) cos 60° = x² + (x + 3)² − x(x + 3)
49 = x² + 3x + 9, so x² + 3x − 40 = 0 and (x + 8)(x − 5) = 0
Answer: x = 5 (a length cannot be negative)
Which rule?
- two sides and the included angle; You want the third side; Use Law of Cosines
- three sides; You want an angle; Use Law of Cosines (rearranged)
- a side and its opposite angle, plus one more side or angle; You want another side or angle; Use Law of Sines
- two angles and any side; You want another side; Use Law of Sines (third angle first)
Worked example: bearings with both rules
Ship A is 14 km from port P on a bearing of 030°. Ship B is 9 km from P on a bearing of 115°. Find the distance AB and the bearing of B from A.
Angle APB = 115° − 30° = 85°, so AB² = 14² + 9² − 2 × 14 × 9 cos 85° = 255.03..., AB = 15.969...
cos PAB = (14² + 15.969...² − 9²)/(2 × 14 × 15.969...), so angle PAB = 34.15...°
The bearing of P from A is 030° + 180° = 210°, so the bearing of B from A is 210° − 34.15° = 175.8°
Answer: AB = 16.0 km, bearing 176° (to the nearest degree)
Proof of the Law of Cosines
Worked example: proof with coordinates
Put A at the origin and B at (c, 0). Then C is (b cos A, b sin A).
a² = BC² = (b cos A − c)² + (b sin A)² = b²cos ² A − 2bc cos A + c² + b²sin ² A
= b²(cos ² A + sin ² A) + c² − 2bc cos A, and cos ² A + sin ² A = 1
Answer: a² = b² + c² − 2bc cos A (this works for an obtuse angle A too)
Common mistakes
- Working out b² + c² − 2bc first and then multiplying by cos A. Calculate 2bc cos A first, then subtract.
- Using an angle that is not between the two known sides.
- Putting the wrong side on top when finding an angle: the side opposite the angle you want is the one subtracted.
- Forgetting to square root at the end when finding a side.
- Measuring a bearing counterclockwise or from the wrong north line.
Revision questions
Try these, then check your answers below each one.
Question 1. In triangle ABC, b = 5 cm, c = 8 cm and angle A = 60°. Find the exact length a in cm.
Answer: 7 cm
Working: a² = 25 + 64 − 80 × 1/2 = 49, so a = 7 cm.
Question 2. A triangle has sides 4 cm, 6 cm and 7 cm. Find its largest angle in degrees, to 1 decimal place.
Answer: 86.4 °
Working: cos θ = (16 + 36 − 49)/(2 × 4 × 6) = 3/48, θ = 86.41...° ≈ 86.4°.
Question 3. In triangle ABC, b = 9 cm, c = 12 cm and angle A = 110°. Find a in cm, to 1 decimal place.
Answer: 17.3 cm
Working: a² = 81 + 144 − 216 cos 110° = 298.87..., a = 17.28... ≈ 17.3 cm.
Common Core standard
This lesson supports Common Core State Standard CCSS.MATH.CONTENT.HSG.SRT.D.11, part of the high school Algebra 2 course usually taken in Grade 11 in the United States.
Related lessons
- Previous lesson: 13.2 The Law of Sines
- Next lesson: 13.4 Area of a Triangle Using Sine
Continue in the full course
This lesson is section 13.3 (USA21303) of our free Algebra 2 course for Grade 11. In the full course you get every video for this section, interactive lessons, a self-checking practice quiz, printable worksheets with an answer key, and your progress saved. Go to the full Algebra 2 course.
This lesson is part of the free Algebra 2 course. You can also browse all our free US high school math courses: Algebra 1, Geometry, Algebra 2 and Precalculus.