When two sides of a triangle meet at a 90∘ angle, the Pythagorean theorem gives us the third side right away: if the sides have lengths 6 and 10, the third side squared is 62+102=136. We want to find the length of the third side when the angle between those two sides is not 90∘.
1
Adjusting the Pythagorean Theorem with a Shadow
Suppose a triangle has sides of lengths 6 and 10 meeting at a 60∘ angle, and we want to find the length of the third side c.
Adjusting the Pythagorean Theorem with a Shadow
6
10
90∘
c
Text solution
1. Start with the 90∘ Pythagorean baselineIf the sides of lengths 6 and 10 met at a right angle, the third side squared would be the sum of their squares.
62+102=36+100=136
2. Find the shadow of the slanted side on the baseBecause the 60∘ angle leans inward over the base of length 10, the side of length 6 casts a horizontal shadow along the base.
shadow=6cos(60∘)=6(0.5)=3
3. Subtract twice the base times the shadowSplitting the triangle with a vertical height and combining height2+shadow2=62 leaves a single adjustment to subtract from the Pythagorean baseline.
c2c=136−2(10)(3)=136−60=76=76
So the third side has length 76, which is shorter than the right-triangle length 136 because closing the angle from 90∘ down to 60∘ pulls the ends of the two sides closer together.
For any triangle with sides of lengths a and b meeting at an angle θ, the opposite side c follows the Law of Cosines:
c2=Pythagorasa2+b2−2bshadow of a on b(acosθ)
2
Obtuse Angles and Outward Shadows
Now let's open the angle between those same sides of lengths 6 and 10 past 90∘, to an obtuse angle of 120∘, and find the length of the third side.
Obtuse Angles and Outward Shadows
6
10
120∘
c
Text solution
1. Find the signed shadow on the extended baseAt 120∘, the side of length 6 makes a 60∘ angle with the base extension, so its shadow of length 3 falls outside the base, which cos(120∘) gives a negative sign.
signed shadow=6cos(120∘)=6(−0.5)=−3
2. Adjust the Pythagorean baselineSubtracting a negative shadow turns into adding twice the base times the outward shadow to the 90∘ baseline of 136.
c2c=62+102−2(10)(−3)=136+60=196=196=14
So the third side has length 14, which is longer than 136 because opening the angle past 90∘ stretches the third side beyond a right triangle.
Let's trace how the shadow changes as the angle passes through 90∘, and see why the same formula works for acute, right, and obtuse angles.
Where the shadow of side 6 lands on the base tells you if the third side is shorter, equal, or longer than in a 90° right triangle.
3
Finding an Angle from All Three Sides
Now suppose we already know all three sides of a triangle and want to find one of its angles. First, let's find the angle θ between the sides of lengths 5 and 7 when the third side has length 8, and then see what changes when that third side is stretched to 9.
7
5
θ
8
74
7
5
θ
9
74
8<74,θ<90∘
9>74,θ>90∘
Finding an Angle from All Three Sides
5
7
8
θ
θ=?
Text solution
1. Compare the third side squared with the 90∘ Pythagorean baselineA right angle between the sides of lengths 5 and 7 would make the third side squared 52+72=74, while our actual third side squared is 82=64.
74−64=10
2. Set the drop equal to twice the base times the shadowThat drop of 10 below the Pythagorean baseline comes from the adjustment 2(7)(5cosθ).
2(7)(5cosθ)70cosθ=10=10
3. Divide and take the inverse cosineDivide by 70 to get cosθ, and take cos−1 to find the angle.
cosθθ=7010=71=cos−1(71)≈81.8∘
So the angle between the sides of lengths 5 and 7 is about 81.8∘, which is acute because 82=64 is smaller than the 90∘ baseline of 74.
Now let's stretch the third side from 8 to 9, so the triangle has sides 5,7, and 9, and find the angle θ between 5 and 7 again.
1. Plug the three sides into the Law of CosinesThe actual third side squared is now 92=81, which is larger than the 90∘ baseline 52+72=74.
9281=52+72−2(5)(7)cosθ=74−70cosθ
2. Subtract the Pythagorean baseline and divide by −70Keeping the minus sign on −70cosθ shows that the third side squared grew by 7 past the 90∘ baseline.
7cosθ=−70cosθ=−707=−0.1
3. Take the inverse cosine of the negative valueIncluding the negative sign inside cos−1 tells your calculator that the shadow points backward past 90∘.
θ=cos−1(−0.1)≈95.7∘
So the angle across from the side of length 9 is about 95.7∘, an obtuse angle because 92=81 is greater than 52+72=74.
4
Solving the Whole Triangle Without the Law of Sines Trap
Often a problem asks us to solve the triangle, meaning find all of its missing sides and angles. In our 5,7,9 triangle, once we know the 95.7∘ angle across from the side of length 9, we have a matching pair of an angle and the side opposite it. That lets us switch to the Law of Sines, which says that the ratio of the sine of an angle to the side directly across from it is the same for all three pairs in a triangle:
asinA=bsinB
Let's finish finding the other two angles of the 5,7,9 triangle, and see why the order we find them in matters.
Solving the Whole Triangle Without the Law of Sines Trap
5
7
9
≈95.7∘
?
?
Text solution
1. Use the Law of Sines on a smaller sideMatch the known pair (95.7∘ across from 9) with the side of length 7 and its opposite angle B.
2. Subtract from 180∘ to get the third angleSince the three angles of any triangle add up to 180∘, subtract the two angles we already know to find the angle across from 5.
180∘−95.7∘−50.7∘=33.6∘
So the three angles of the 5,7,9 triangle are 95.7∘ across from 9,50.7∘ across from 7, and 33.6∘ across from 5.
Notice what would go wrong if we found the angle B≈50.7∘ across from 7 first and then used the Law of Sines on the longest side 9: solving 9sinθ=7sinB using the unrounded value of B gives sinθ≈0.995, and taking the inverse sine gives 84.3∘ instead of 95.7∘.
Let's look at why sin−1 misses obtuse angles while cos−1 catches them.
A side of fixed length reaches the same height at supplementary acute and obtuse angles, while its shadows on the base have opposite signs.
5
Choosing Between the Law of Sines and the Law of Cosines
When you face a new triangle problem on a test without being told which method to use, we want a single check that immediately picks between the Law of Sines and the Law of Cosines.
Choosing Between the Law of Sines and the Law of Cosines
A
a
Law of Sines
Law of Cosines
Key concepts
When solving a non-right triangle, always check first whether you already have a matching pair: a known angle and the known side directly across from it. If you do, you don't need the Law of Cosines at all: for a triangle with sides 6 and 9 and a 40∘ angle across from 6, or a triangle with 50∘ and 60∘ angles and a side of length 8 between them (where 180∘−50∘−60∘=70∘ immediately gives the angle across from 8), go straight to the Law of Sines, asinA=bsinB.
If you don't have a matching pair, find the third angle first if two angles are known. Use the Law of Cosines for these two setups:
c2=Pythagorasa2+b2−2bshadow of a on b(acosθ)
Two sides and the angle between them
(like sides 6 and 10 with a 60∘ angle between them): start with the 90∘ Pythagorean baseline 62+102=136 and subtract twice the base times the shadow, 2(10)(6cos60∘)=60, to get c2=76. When the angle is obtuse (like 120∘), cosθ is negative, so subtracting 2b(acosθ) automatically adds the outward shadow adjustment to the baseline.
All three sides
(like sides 5,7, and 9): compare the opposite side squared (92=81) against the 90∘ baseline (52+72=74) in 81=74−2(5)(7)cosθ to solve for cosθ=−0.1 and θ=cos−1(−0.1)≈95.7∘.
When solving a whole triangle, watch out for the Law of Sines trap (sin−1 never returns an obtuse angle): if you start with all three sides, use the Law of Cosines on the longest side first so cosine catches any obtuse angle; if you switch to the Law of Sines after finding a third side, use it on a smaller side (whose opposite angle must be acute), and find the final angle by subtracting from 180∘.
6
Practice
1
A triangle has sides of lengths 5 and 7 meeting at a 60∘ angle. Find the length of the third side.
Be careful not to leave off the factor of 2 in 2(base)(shadow), which would only subtract 17.5 and give 56.5≈7.5.Take the square root (don't stop at c2=39).Take the square root: the third side has length 39 (or about 6.2).
Start with the 90∘ Pythagorean baseline for sides 5 and 7; how long is the shadow of the side of length 5 along the base of length 7?
The 90∘ Pythagorean baseline is 52+72=25+49=74, and the shadow of the side of length 5 on the base of length 7 is 5cos(60∘)=5(0.5)=2.5. Subtract twice the base times the shadow from the baseline (be careful not to leave off the factor of 2 in 2(base)(shadow), which would only subtract 17.5 and give 56.5≈7.5):
c2=74−2(7)(2.5)=74−35=39
Take the square root (don't stop at c2=39): the third side has length 39 (or about 6.2).
2
A triangle has sides of lengths 7 and 8 meeting at a 120∘ angle. Find the length of the third side.
Watch out for the sign when adjusting the baseline: subtracting 2(7)(4)=56 as if the angle were acute would give 113−56=57 and the wrong answer 57≈7.5. Instead, the outward shadow adds to the baseline.
Is a 120∘ angle narrower or wider than 90∘, and should the shadow adjustment make c2 smaller or larger than 72+82?
The 90∘ Pythagorean baseline is 72+82=49+64=113. At 120∘, the side of length 8 casts an outward shadow of 4 past the corner, or signed shadow=8cos(120∘)=−4. Watch out for the sign when adjusting the baseline: subtracting 2(7)(4)=56 as if the angle were acute would give 113−56=57 and the wrong answer 57≈7.5. Instead, the outward shadow adds to the baseline:
c2=113−2(7)(−4)=113+56=169
Taking the square root gives 169=13.
3
A triangle has sides of lengths 4,5, and 6. Find the angle between the sides of lengths 4 and 5, to the nearest tenth of a degree.
Don't subtract in the reverse order to get −5, which would make cosθ=−0.125 and give the obtuse angle 97.2∘ even though 36<41.
Compare the opposite side squared (62) with the 90∘ baseline for the two sides that form the angle (42+52): how big is the drop?
A 90∘ angle between 4 and 5 would give 42+52=16+25=41, while the actual third side squared is 62=36, a drop of 5. Set that drop equal to twice the base times the shadow (don't subtract in the reverse order to get −5, which would make cosθ=−0.125 and give the obtuse angle 97.2∘ even though 36<41, and don't subtract 41−40 before multiplying by cosθ):
2(4)(5)cosθ⟹40cosθ⟹cosθ=5=5=405=0.125
Taking the inverse cosine gives θ=cos−1(0.125)≈82.8∘.
4
A triangle has sides of lengths 5,6, and 9. Find all three of its angles, to the nearest tenth of a degree.
Keep the negative sign inside cos−1: dropping it gives the wrong acute angle 70.5∘. And if you found a smaller angle first and used the Law of Sines on side 9,sin−1 would fall into the trap and give 70.5∘ instead of 109.5∘.
Only one side can sit across from an obtuse angle. Which side should you set up the Law of Cosines for first?
Start with the longest side 9 using the Law of Cosines so cosine catches any obtuse angle (if you found a smaller angle first and used the Law of Sines on side 9,sin−1 would fall into the trap and give 70.5∘ instead of 109.5∘). Comparing 92=81 with 52+62=25+36=61:
81⟹20⟹cosθ=61−2(5)(6)cosθ=−60cosθ=−6020=−31
Keep the negative sign inside cos−1 (dropping it also gives the wrong acute angle 70.5∘) to get θ=cos−1(−31)≈109.5∘ across from 9. Next, use the Law of Sines on side 6:
Finally, subtract from 180∘ for the angle across from 5:180∘−109.5∘−38.9∘=31.6∘. The three angles are 109.5∘ across from 9,38.9∘ across from 6, and 31.6∘ across from 5.
5
A triangle has sides of lengths 3 and 8 meeting at a 60∘ angle. Solve the triangle by finding the third side and the other two angles, to the nearest tenth of a degree.
After using the Law of Cosines to find the third side, compare all three side lengths: which of the two unknown angles must be acute so you can safely use the Law of Sines?
First find the third side c using the Law of Cosines:
c2⟹c=32+82−2(3)(8)cos(60∘)=9+64−24=49=7
Now the three sides are 3,7, and 8. To find a second angle with the Law of Sines, use the smaller side 3. Do not use the longest side 8, whose opposite angle is obtuse, or sin−1(78sin60∘) will fall into the Law of Sines trap and give 81.8∘ instead of 98.2∘ (and 38.2∘ for the third angle):
3sinA⟹A=7sin(60∘)=sin−1(73sin(60∘))≈21.8∘
Subtract from 180∘ to find the angle across from 8:180∘−60∘−21.8∘=98.2∘. The third side is 7, the angle across from 3 is 21.8∘, and the angle across from 8 is 98.2∘.
6
For each triangle, state whether you should start with the Law of Sines or the Law of Cosines, and explain why: (a) sides 6 and 9 with a 40∘ angle across from the side of length 6; (b) sides 6 and 9 with a 40∘ angle between them; (c) a 50∘ angle and a 60∘ angle with a side of length 8 between them.
In each triangle, check whether you know (or can immediately find from 180∘) a matching pair of an angle and the side directly across from it.
(a) Law of Sines, because the 40∘ angle and the side of length 6 across from it already form a matching pair. (b) Law of Cosines, because you have two sides and the angle between them with no known side across from the 40∘ angle. (c) Law of Sines (don't get fooled by the words "between them" into picking the Law of Cosines, which needs at least two known sides to get started), because subtracting 180∘−50∘−60∘=70∘ immediately gives the third angle directly across from the side of length 8, creating a matching pair.