Solve a non-right triangle with the law of cosines
Use the law of cosines to find a side from two sides and the included angle. The idea in plain words, a worked example, and a check with the answers shown — part of the free Trigonometry guides.
Written with the standard labels, if the angle is and the side opposite it is:
Everything about it is worth reading twice. The side you get is the one opposite the angle you use, and the two products before the cosine term are the sides that contain that angle.
When the cosine is zero, the last term vanishes, and what is left is the Pythagorean theorem. So this is not a replacement for Pythagoras: it is Pythagoras with the correction the angle demands.
Drop a perpendicular from the far end of side onto side. It lands a distance along, and the height is. The third side is the hypotenuse of a right triangle with legs and, so
The last two terms collapse to because, and the result is the law of cosines. So the correction is exactly the amount the foot of the perpendicular moves away from the end of.
In triangle,, and. Find.
Step one. Write the formula for the side opposite:.
Step two. Substitute:.
Step three..
Check the triangle inequality: and, so it is a legitimate triangle. Agrees.
- Use the law of cosines to find a side from two sides and the included angle
- Recognise that a right angle reduces it to the Pythagorean theorem
- Use it to find an angle from all three sides
- Decide when the law of cosines is the right tool
- 1. Find when, and.
- 2. Find the largest angle of a triangle with sides 5, 5 and 5.
- 3. Find when, and.
- 4. Two sides and a non-included angle are given. Is that the law of cosines' input?
Answers
1.. 2. All three angles are, so the largest is. 3., so. 4. No: the law of cosines needs the angle BETWEEN the two sides, or all three sides. Two sides with a non-included angle is the law of sines' ambiguous case.