Lesson 8.3 · Oblique Triangles
The law of cosines
The law of sines needs a side and the angle across from it. When you know two sides and the angle between them (SAS), or all three sides (SSS), you have no such pair. The law of cosines handles both cases. It is the Pythagorean theorem, upgraded to work in every triangle.
From Pythagoras to every triangle
In a right triangle with the right angle at , you know . If you open angle wider than , side gets longer than the Pythagorean theorem predicts. If you close it tighter, side gets shorter. The law of cosines measures that correction exactly.
Place at the origin with side along the positive -axis, so . Vertex is a distance from the origin at angle , so . Side is the distance from to :
The last step uses the Pythagorean identity .
The law of cosines
In any triangle ,
Each version starts with the side across from the angle in the cosine. Solved for the angle:
The correction term behaves just as the picture suggests. If , then and you get the Pythagorean theorem back. If is obtuse, is negative, so the term adds length. If is acute, is positive and the term takes length away.
SAS: find the third side
Worked example: Two sides and the included angle
In triangle , , and . Find to the nearest tenth.
The unknown side is across from the known angle :
So .
Common mistake
Follow the order of operations. In , multiply by first, then subtract. Computing is a very common calculator slip. And don't forget the final square root: the formula gives , not .
SSS: find an angle
When all three sides are known, use the solved form to get the cosine of any angle. Because returns angles from to , it correctly reports obtuse angles. Unlike the law of sines, there is no ambiguity.
Worked example: Three sides
A triangle has sides , and . Find its largest angle to the nearest tenth of a degree.
The largest angle is across from the longest side, so find :
So . The negative cosine told you right away that is obtuse.
Tip
The numerator tells you the type of triangle before you compute anything. If is the longest side: means acute, means right, and means obtuse.
Solving the whole triangle
After the law of cosines gives you a complete pair, you can switch to the law of sines for the rest. To stay safe, use the law of sines for the smallest remaining angle. The smallest angle of a triangle is always acute, so the calculator's value is guaranteed to be correct. Then get the last angle from the angle sum.
Worked example: SAS, all the way
Solve the triangle with , and . Round to the nearest tenth.
Side .
so . (Since is negative, the term added length.)
Angle . Side is the shortest, so is the smallest angle and must be acute:
Angle . .
Distances in the real world
Worked example: Two hikers
Two trails leave a trailhead with a angle between them. One hiker walks km along the first trail and another walks km along the second. How far apart are they, to the nearest tenth of a kilometer?
The two walks and the angle between them are SAS:
so km.
Choosing a law
| You know | Start with |
|---|---|
| AAS or ASA | law of sines |
| SSA | law of sines (check the ambiguous case) |
| SAS | law of cosines for the third side |
| SSS | law of cosines for an angle (the largest is a good first choice) |
Practice
In triangle , , and . Find to the nearest tenth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A triangle has sides , and . Find angle , in degrees.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In triangle , , and . Find to the nearest tenth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A triangle has sides , and . Find its largest angle to the nearest tenth of a degree.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
In triangle you know , and angle . Which equation finds side ?
A triangle has sides , and . What kind of triangle is it?
A parallelogram has sides of length and , and one of its angles is . Find the length of the longer diagonal to the nearest tenth.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A plane flies miles in a straight line, then turns to the right and flies another miles. How far is it from its starting point, to the nearest mile?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.