The Pythagorean theorem finds the third side of a right triangle, and we need a way to find that third side when the angle between the two known sides isn't 90∘.
1
The Law of Cosines
Suppose we know two sides of a triangle, like 6 and 10, and the angle θ between them, and we want to find the length of the third side across from θ.
The Law of Cosines
In the 6-and-10 triangle shown in the film, dropping a vertical height splits the triangle into two right triangles, with the unknown side as the hypotenuse of the right-hand triangle.
Running the Pythagorean theorem on that right-hand triangle and simplifying with sin2C+cos2C=1 gives the Law of Cosines:
You can put whichever side you are looking for by itself on the left, as long as the angle across from it goes inside the cosine on the right:
a2b2=b2+c2−2bccosA=a2+c2−2accosB
As θ opens from acute past 90∘ to obtuse in the 6-and-10 triangle, the foot of the height moves from inside the base of 10 to outside it. The signed horizontal projection 6cosθ changes from positive to negative. That turns the −2(6)(10)cosθ adjustment from subtraction below 90∘, to zero at 90∘, to addition past 90∘.
As the hinge passes 90∘, the horizontal piece moves from inside the base to outside it, turning the adjustment to the right-triangle sum from subtraction to addition.
Here are the steps for finding the third side c opposite angle C when the sides of 6 and 10 meet at 60∘, and then when they meet at 120∘.
Text solution
1. Set up the Law of Cosines for an acute angle (C=60∘)Place the unknown side c opposite 60∘ by itself on the left and substitute cos60∘=21:
So closing the angle from 90∘ to 60∘ shrinks the opposite side below 136 to 76, while opening it to 120∘ stretches the opposite side out to 14.
2
Solving an SAS Triangle
Once we know two sides and the angle between them (a=6,b=10, and C=60∘) and find the third side c, we often want to solve the rest of the triangle by finding the two remaining angles A and B.
Solving an SAS Triangle
Text solution
1. Find the opposite side with the Law of CosinesFrom the 60∘ triangle above, the side across from C=60∘ is:
c=76≈8.72
2. Use the Law of Sines on the smaller missing angle firstNow that we have a matching pair (C=60∘ and c≈8.72), we switch to the Law of Sines for angle A because it sits across from the shorter side a=6 and has to be acute:
3. Subtract from 180∘ to get the last angleSince the three angles of any triangle add up to 180∘, we find B without any more trigonometry:
B=180∘−60∘−36.6∘=83.4∘
So the complete triangle has sides a=6,b=10,c≈8.72 and angles A≈36.6∘,B≈83.4∘,C=60∘.
3
Solving an SSS Triangle
Now suppose we are given all three sides of a triangle (a=5,b=6, and c=8) and need to find all three interior angles A,B, and C.
Solving an SSS Triangle
Text solution
1. Set up the Law of Cosines for the largest angle firstAngle C sits opposite the longest side c=8, so it is the only angle that could be obtuse, and we put 82 alone on the right:
52+62−2(5)(6)cosC25+36−60cosC61−60cosC=82=64=64
2. Isolate cosC by subtracting 61 from both sidesBecause 60 is multiplied by cosC, do not subtract 61−60; instead, subtract 61 from both sides and divide by −60:
−60cosCcosCC=3=−603=−0.05=cos−1(−0.05)≈92.9∘
3. Use the Law of Sines to find one of the remaining acute anglesWith the obtuse angle C≈92.9∘ found, both A and B must be acute, so we can safely use the Law of Sines for A:
So the angles are C≈92.9∘,A≈38.6∘, and B≈48.5∘, with C opening slightly past 90∘ because 82=64 is slightly larger than the right-triangle sum 52+62=61.
With sides a=5 and b=6 fixed, as soon as c2 grows past the right-triangle value 52+62=61,cosC turns negative and cos−1 gives the true obtuse angle C, while sin−1 gives its acute supplement 180∘−C instead.
Once the corner opens past a right angle, the Law of Cosines keeps following it while inverse sine folds back inside.
4
Navigation with Turn Angles
In navigation problems, nobody hands us a drawn triangle. Instead, we get a travel description with a turn angle, like an airplane flying 200 miles due East, turning 30∘ toward the North, and flying another 150 miles, and we want to find the straight-line distance from the starting point.
Navigation with Turn Angles
Text solution
1. Subtract the turn angle from 180∘ to get the interior triangle angleContinuing straight East is a 180∘ line, so turning 30∘ North off that line leaves an obtuse angle inside the triangle:
θ=180∘−30∘=150∘
2. Apply the Law of Cosines using the two flight legs and the interior angleSubstitute the sides 200 and 150 with the angle 150∘ between them, where cos150∘=−23≈−0.8660:
3. Take the square root to find the straight-line distance.
d≈114,461.5≈338.3 miles
So the airplane is about 338.3 miles from the airport in a straight line, slightly less than the 200+150=350 miles it would be if it had never turned.
5
Triangle Area and Heron's Formula
Finally, we want to find the area inside a triangle when we don't know its height, either from two sides and the angle between them, or from the three side lengths alone.
Triangle Area and Heron's Formula
When we know two sides a and b and the angle C between them, the vertical height is asinC, so Area=21×base×height becomes:
Area=21absinC
When we only know the three sides a,b, and c, substituting the Law of Cosines into the area formula gets rid of the angle completely and gives Heron's Formula:
s=semi-perimeter2a+b+c,Area=s(s−a)(s−b)(s−c)
Here are the steps for finding the area of a 5,6,7 triangle and our earlier 5,6,8 triangle using Heron's Formula.
Text solution
1. For sides 5,6,7: find the semi-perimeter s and substituteAdd the three sides and divide by 2, then multiply s by s minus each side inside the square root:
So the 5,6,8 triangle has an area of about 14.98, just below the area of 21(5)(6)=15 that sides 5 and 6 would have if they met at a 90∘ right angle.
For fixed sides of 5 and 6, the area reaches its largest value of 15 when they meet at 90∘, and as the angle closes toward 0∘ or opens toward 180∘, the triangle flattens into a line as one of the (s−side) factors shrinks to 0.
With sides of 5 and 6, the triangle's area peaks at 15 when they meet at a right angle, and drops to 0 when the triangle folds flat either way and one of Heron's factors shrinks to 0.
Key concepts
Whether you use the Law of Cosines or the Law of Sines comes down to whether you already know a matching pair of an angle and the side directly across from it:
No matching pair ⟶ Law of Cosines
(c2=a2+b2−2abcosC):
Two sides and the angle between them (SAS), like a=6,b=10,C=60∘: put the missing opposite side c alone on the left to find c2=62+102−2(6)(10)cos60∘.
All three sides (SSS), like a=5,b=6,c=8: solve for the largest angle first (opposite the longest side c=8) using 52+62−2(5)(6)cosC=82, so cosine's sign tells you right away if that angle is obtuse.
When you have a matching angle-side pair and another side or angle, you can use the Law of Sines
(asinA=csinC):
Once you have a pair like C=60∘ and c≈8.72, switch to the Law of Sines, and find the angle opposite the shorter side first (a=6 before b=10) so sin−1 is never used on an obtuse angle.
Triangle Area without a given height
From SAS (a=6,b=10,C=60∘): Area=21absinC=21(6)(10)sin60∘.
From SSS (a=5,b=6,c=7): start with half the perimeter s=2a+b+c=9, then use Heron's Formula, Area=s(s−a)(s−b)(s−c)=9(9−5)(9−6)(9−7).
6
Practice
1
In triangle ABC,a=4,b=7, and C=60∘. Find the exact length of side c.
For an acute angle like 60∘, the adjustment subtracts 28 from 65; adding 28 instead gives 93, and forgetting the square root leaves 37.
You have two sides and the angle between them, so put the side opposite 60∘ by itself on the left of the Law of Cosines.
c2=42+72−2(4)(7)cos60∘=16+49−56(21)=65−28=37
(Watch out: for an acute angle like 60∘, the adjustment subtracts 28 from 65; adding 28 instead gives 93, and forgetting the square root leaves 37.)
c=37
Answerc=37
2
In triangle ABC,b=3,c=5, and A=120∘. Find the exact length of side a.
cos120∘=−21 is negative, so subtracting −15 becomes +15; using +21 subtracts 15 and gives the wrong answer 19.
Angle A=120∘ is past 90∘. What is the sign of cos120∘, and what does that do to the subtraction in the Law of Cosines?
a2=32+52−2(3)(5)cos120∘=9+25−30(−21)
(Watch out: cos120∘=−21 is negative, so subtracting −15 becomes +15; using +21 subtracts 15 and gives the wrong answer 19.)
a2a=34+15=49=7
Answera=7
3
Solve triangle ABC given a=5,c=12, and B=30∘. Round side lengths to two decimal places and angles to one decimal place.
After finding side b with the Law of Cosines, compare the remaining sides a=5 and c=12: which missing angle has to be acute?
Next, use the Law of Sines on the smaller angle A (opposite a=5): (Watch out: solving for angle C first with the Law of Sines makes sin−1 give the acute angle 48.1∘ and A=101.9∘. But 122 is greater than 52+b2, so angle C is obtuse.)
Solve triangle ABC given a=9,b=4, and c=7. Round angles to one decimal place.
Do not combine 65−56=9, and do not drop the negative sign on −56cosA; dividing +16 by +56 gives cosA=+0.2857 and the acute supplement A≈73.4∘.
Which of the three sides 9,4,7 is the longest, and which angle must go into the Law of Cosines first?
Start with the largest angle A, opposite the longest side a=9:
42+72−2(4)(7)cosA16+49−56cosA65−56cosA=92=81=81
Subtract 65 from both sides and divide by −56:(Watch out: do not combine 65−56=9, and do not drop the negative sign on −56cosA; dividing +16 by +56 gives cosA=+0.2857 and the acute supplement A≈73.4∘.)
A ship leaves port and sails 80 miles due West. It then turns 40∘ toward the North and sails another 100 miles. How far is the ship from port in a straight line? Round to one decimal place.
40∘ is the outside turn angle from due West; plugging cos40∘ directly into the Law of Cosines gives 64.4 miles, as if the ship turned almost all the way back toward port.
Sketch the dotted line continuing straight West past the turn: if the ship turns 40∘ North from that straight line, what is the obtuse angle inside the triangle?
Find the interior angle at the turn:
θ=180∘−40∘=140∘
(Watch out: 40∘ is the outside turn angle from due West; plugging cos40∘ directly into the Law of Cosines gives 64.4 miles, as if the ship turned almost all the way back toward port.) Apply the Law of Cosines with sides 80 and 100 and angle 140∘ between them:
Find the area of triangle ABC with a=8,b=11, and C=30∘.
Using cos30∘ instead of the vertical height factor sin30∘ gives 223≈38.1, and forgetting the 21 in front doubles the area to 44.
With base 11, how do you write the vertical height using side 8 and the 30∘ angle between them?
Area=21(8)(11)sin30∘=44(21)=22
(Watch out: using cos30∘ instead of the vertical height factor sin30∘ gives 223≈38.1, and forgetting the 21 in front doubles the area to 44.)
Answer22
7
Find the exact area of a triangle with sides a=7,b=8, and c=9.
Don't forget to include the s=12 in front inside the square root; multiplying only the three differences (12−7)(12−8)(12−9) gives 60.
Start by finding the semi-perimeter s, half the sum of the three sides.
Find the semi-perimeter s:
s=27+8+9=224=12
Substitute s=12 and the three sides into Heron's Formula: (Watch out: don't forget to include the s=12 in front inside the square root; multiplying only the three differences (12−7)(12−8)(12−9) gives 60.)