Law of Cosines
c²=a²+b²−2ab cosC. For a=3,b=5,C=60°: c²=9+25−30·1/2=19, so c=√19.
Before you begin
Check: cos90°=0 makes c²=a²+b²−2abcos C reduce to the Pythagorean theorem.
What you will learn
- Solve SAS and SSS triangles
- Interpret the sign of cosine
- Find area from two sides and their included angle
Understand the idea
The cosine law c²=a²+b²−2abcos C uses the angle between a and b, opposite c. It is especially useful when no side-angle opposite pair is known. Solving for cos C from three sides determines whether C is acute, right or obtuse, while area=(1/2)ab sin C uses the same included angle.
Worked example 1
Sides 5 and 7 enclose 60°. Find the third side and area.
- c²=25+49−2·5·7·(1/2)=39, so c=√39.
- Area=(1/2)·5·7·sin60°=35√3/4.
- Both formulas use the angle enclosed by the given sides.
Worked example 2
A triangle has sides 4,5,7. Find the angle opposite side 7.
- cos C=(4²+5²−7²)/(2·4·5)=−8/40=−0.2.
- C=arccos(−0.2)≈101.54°.
- The angle is obtuse, consistent with 7²>4²+5².
Diagnose an error
Why cannot the cosine law use any known angle with any two sides?
Compare your reasoning
Why cannot the cosine law use any known angle with any two sides?
- The term 2abcos C describes the included angle between a and b.
- Using a different angle changes the geometry; label the opposite side c first.
Independent practice
Submit your answer in the interactive lesson to unlock the worked solution. Type your reasoning or build it with clickable tiles.
Practice 1
Find the third side with two sides 3,4 and included angle 90°.
Solution locked until submission.
Practice 2
An equilateral triangle has side 6. Use the cosine law to verify its angle.
Solution locked until submission.
Practice 3
For sides 5,5,8, classify the angle opposite 8 without a calculator.
Solution locked until submission.
Practice 4
Two trails from one point have lengths 6 km and 8 km with included angle 120°. How far apart are their endpoints?
Solution locked until submission.
Connect and reflect
Match the included angle carefully, select the positive side length, and check the triangle inequality or angle type.
Original Cookmath explanations and exercises. Scope reference: OpenStax Advanced · Trigonometry 2e · scope reference; original Cookmath lesson. Cookmath units are smaller study groups, not publisher chapter counts.