Ten triangles solved with the law of sines and the law of cosines: AAS, SAS and SSS, an obtuse angle found exactly, the ambiguous SSA case with two, one and no triangles, the area formula, a distance across a lake, and the angle between two vectors from their lengths, with worked solutions and the mistakes that lose the obtuse angle or the second triangle.
Before you start
Two formulas solve every triangle that is not right-angled, and the law of cosines is the same identity as ,∥u−v∥2=∥u∥2+∥v∥2−2u⋅v, the one behind cosine similarity. The work goes wrong in a few places: an arcsine that returns the acute angle when the triangle has an obtuse one, a second triangle missed when two sides and a non-included angle are given, a calculator in radian mode, and cosC applied to the wrong part of the formula. These ten problems cover each kind of given data, the ambiguous case in all three outcomes, area, and the vector form.
Triangle ABC has angles ,A,,B,C and sides ,a,,b,,c, with each side opposite the angle of the same letter. The angles sum to .180∘. Angles on this page are in degrees, so a calculator must be in degree mode.
Law of sines: .sinAa=sinBb=sinCc.
Law of cosines: ,c2=a2+b2−2abcosC, and the same with the letters rotated. Solved for the angle: .cosC=2aba2+b2−c2. When C=90∘ it is Pythagoras.
Which to use. Two angles and a side (AAS, ASA): law of sines. Two sides and the angle between them (SAS), or three sides (SSS): law of cosines. Two sides and an angle not between them (SSA): law of sines, and check for a second triangle.
,sinθ=sin(180∘−θ), so an equation sinB=s with 0<s<1 has two solutions between 0∘ and ,180∘, one acute and one obtuse. arcsin returns only the acute one. cosθ is different: it is positive for acute angles and negative for obtuse ones, so arccos always returns the right angle of a triangle.
Area :=21absinC: two sides and the angle between them.
Exact values used: ,sin30∘=21,,sin45∘=22,,sin60∘=23,,cos60∘=21,.cos120∘=−21. Other values are rounded to two decimal places.
In triangle ,ABC,,A=45∘,B=60∘ and .a=10. Find ,C,b and c exactly.
·
In triangle ,ABC,,a=5,b=8 and .C=60∘. Find .c.
··
A triangle has sides ,7,8 and .13. Find its largest angle exactly.
··
Solve the triangle with sides ,a=5,,b=6,:c=7: find all three angles.
··
In triangle ,ABC,,A=30∘,a=6 and .b=10. Find every possible ,B,C and .c.
··
In triangle ,ABC,,A=30∘,a=12 and .b=10. Find every possible ,B,C and .c.
·
In triangle ,ABC,,A=30∘,a=4 and .b=10. Find .B.
··
Find the area of the triangle with sides ,5,6 and 7 exactly.
···
From a point P on the shore, one end of a lake is 300 m away and the other end is 500 m away, and the angle at P between the two lines of sight is .120∘. How long is the lake?
···
Vectors u and v have ,∥u∥=3,∥v∥=5 and .∥u−v∥=7. Find u⋅v and the angle between u and .v.
Answers
,C=75∘,,b=56≈12.25,c=5(3+1)≈13.66
c=7
C=120∘
,A≈44.42∘,,B≈57.12∘,C≈78.46∘
Two triangles: ,B≈56.44∘,,C≈93.56∘,;c≈11.98; or ,B≈123.56∘,,C≈26.44∘,c≈5.34
One triangle: ,B≈24.62∘,,C≈125.38∘,c≈19.57
No such triangle
66≈14.70
700 m
,u⋅v=−215,θ=120∘
Worked solutions
Problem 1
In triangle ,ABC,,A=45∘,B=60∘ and .a=10. Find ,C,b and c exactly.
.C=180∘−45∘−60∘=75∘.Angle sum. Two angles and a side: law of sines.
b=sinAasinB=2210⋅23=2103=56From ;sinAa=sinBb; then rationalize, .2103=2106.
sin75∘=sin(45∘+30∘)=22⋅23+22⋅21=46+2The sum formula ,sin(x+y)=sinxcosy+cosxsiny, with cos45∘=22 and .cos30∘=23.
c=sinAasinC=2210⋅46+2=25(6+2)=5(3+1)Law of sines again; .26=3.
,C=75∘,,b=56≈12.25,c=5(3+1)≈13.66Sanity check: the largest angle, ,C, is opposite the largest side, .c.
Problem 2
In triangle ,ABC,,a=5,b=8 and .C=60∘. Find .c.
c2=a2+b2−2abcosCTwo sides and the angle between them: law of cosines.
c2=25+64−2⋅5⋅8⋅21.cos60∘=21. The cosC multiplies only the 2ab term.
c2=89−40=49Multiply before subtracting.
c=7A side length is positive, so take the positive root.
Problem 3
A triangle has sides ,7,8 and .13. Find its largest angle exactly.
The largest angle is opposite the largest side, .c=13.In any triangle, larger sides face larger angles.
cosC=2aba2+b2−c2=2⋅7⋅849+64−169=112−56Law of cosines solved for the angle.
cosC=−21A negative cosine means C is obtuse: .a2+b2<c2.
C=120∘The angle between 0∘ and 180∘ whose cosine is .−21. There is only one, which is why the law of cosines is safe here.
Problem 4
Solve the triangle with sides ,a=5,,b=6,:c=7: find all three angles.
,cosA=2bcb2+c2−a2=8436+49−25=8460=75, so .A≈44.42∘.Law of cosines for the angle opposite .a.
,cosB=2aca2+c2−b2=7025+49−36=7038, so .B≈57.12∘.The same formula with the letters rotated.
.C=180∘−A−B≈78.46∘.Angle sum. Check with the law of cosines: ,cosC=6025+36−49=0.2, and .arccos0.2≈78.46∘.
,A≈44.42∘,,B≈57.12∘,C≈78.46∘All acute, since every cosine is positive; the largest is opposite the side 7.
Problem 5
In triangle ,ABC,,A=30∘,a=6 and .b=10. Find every possible ,B,C and .c.
sinB=absinA=610⋅21=65Two sides and a non-included angle (SSA): law of sines.
B≈56.44∘ or .B≈180∘−56.44∘=123.56∘.,65<1, so there are two angles with this sine, arcsin65 and its supplement.
Both are possible: .30∘+123.56∘=153.56∘<180∘.The obtuse B leaves room for a positive ,C, so it gives a real triangle too.
,C≈93.56∘,;c=sinAasinC=12sin93.56∘≈11.98; or ,C≈26.44∘,.c=12sin26.44∘≈5.34.Angle sum for each, then the law of sines with .sinAa=1/26=12.
Two triangles: ,B≈56.44∘,,C≈93.56∘,;c≈11.98; or ,B≈123.56∘,,C≈26.44∘,c≈5.34Geometrically: side a=6 swings from C and meets the line of side c at two points, because 6 is between the height bsinA=5 and .b=10.
Problem 6
In triangle ,ABC,,A=30∘,a=12 and .b=10. Find every possible ,B,C and .c.
sinB=1210⋅21=125SSA again: law of sines.
B≈24.62∘ or .B≈155.38∘.The two angles with sine .125.
,30∘+155.38∘>180∘, so only B≈24.62∘ is possible.The obtuse candidate leaves no room for .C. This always happens when :a≥b: the angle opposite the shorter side b must be smaller than .A.
C≈125.38∘ and .c=1/212sin125.38∘≈19.57.Angle sum, then the law of sines with .sinAa=24.
One triangle: ,B≈24.62∘,,C≈125.38∘,c≈19.57Steps 3 and 4.
Problem 7
In triangle ,ABC,,A=30∘,a=4 and .b=10. Find .B.
sinB=410⋅21=45Law of sines.
sinB≤1 for every angle, and .45>1.No angle has this sine.
No such triangleGeometrically: the height from C to the line of side c is ,bsinA=5, and a side of length 4 cannot reach that line.
Problem 8
Find the area of the triangle with sides ,5,6 and 7 exactly.
,cosC=0.2=51, from Problem 4.The area formula needs an angle between two known sides; C is between a=5 and .b=6.
sinC=1−251=2524=526,sin2C+cos2C=1, and sinC>0 for any angle of a triangle, so take the positive root.
Area =21⋅5⋅6⋅526=66.21absinC.
66≈14.70Check with Heron's formula: ,s=9,.9⋅4⋅3⋅2=216=66.
Problem 9
From a point P on the shore, one end of a lake is 300 m away and the other end is 500 m away, and the angle at P between the two lines of sight is .120∘. How long is the lake?
d2=3002+5002−2⋅300⋅500cos120∘The two sight lines and the lake form a triangle with two sides and the angle between them: law of cosines.
,cos120∘=−21, so .−2⋅300⋅500⋅(−21)=+150000.The angle is obtuse, so the cosine is negative and the last term is added.
d2=90000+250000+150000=490000The squares and the step 2 term.
700 m.490000=700. Sanity check: an angle over 90∘ makes the far side longer than Pythagoras would, .340000≈583.
Problem 10
Vectors u and v have ,∥u∥=3,∥v∥=5 and .∥u−v∥=7. Find u⋅v and the angle between u and .v.
∥u−v∥2=(u−v)⋅(u−v)=∥u∥2+∥v∥2−2u⋅vExpand the dot product: ,u⋅u−2u⋅v+v⋅v, using .u⋅v=v⋅u.
,49=9+25−2u⋅v, so .u⋅v=−215.Substitute and solve.
cosθ=∥u∥∥v∥u⋅v=15−15/2=−21The definition of the angle between two vectors. This ratio is the cosine similarity of u and .v.
,u⋅v=−215,θ=120∘Steps 1 and 3 together are the law of cosines in the triangle with sides ,∥u∥=3,∥v∥=5 and :∥u−v∥=7: its angle opposite the side 7 is .120∘.
Where this goes wrong
1. Taking arcsin for an angle that may be obtuse
Once one angle is known, the law of sines looks like the quickest route to the next.
Sides ,7,,8,:13:,cosA=2⋅8⋅1364+169−49=2623, so sinA=2673Right so far: the angle opposite the side 7, from the law of cosines, .A≈27.80∘.
sinC=713sinA=23Right so far: the law of sines.
C=arcsin23=60∘arcsin returns only the acute angle, and sin120∘ is also .23. Here C=120∘ (Problem 3). With ,C=60∘,B would be ,180∘−27.80∘−60∘=92.20∘, the largest angle, opposite ,b=8, which is not the longest side. Use the law of cosines for the largest angle, or for any angle that might be obtuse.
2. Missing the second triangle in the SSA case
The law of sines gives one value of ,sinB, and the calculator gives one angle for it.
,A=30∘,,a=6,:b=10:sinB=65Right so far: Problem 5, step 1.
“,arcsin65≈56.44∘, so .B≈56.44∘.”The habit that causes the mistake: stopping at the calculator's answer.
The triangle has ,B≈56.44∘,,C≈93.56∘,,c≈11.98, and no other solution180∘−56.44∘=123.56∘ has the same sine and still leaves 26.44∘ for ,C, so a second triangle with c≈5.34 also fits the data. Whenever SSA gives ,sinB<1, test the supplement: it is a second triangle exactly when .A+(180∘−B)<180∘.
3. A calculator in radian mode
Nothing on the screen says which mode the calculator is in.
,A=45∘,,B=60∘,:a=10:b=sin45∘10sin60∘Right so far: Problem 1, step 2.
“Type .10sin(60)/sin(45).”The habit that causes the mistake: entering degrees into a calculator set to radians.
b=sin4510sin60≈−3.58In radians, sin60≈−0.305 and :sin45≈0.851: these are the sines of 60 and 45 radians. A negative side length is the giveaway. In degree mode, .b≈12.25.
4. Multiplying the whole sum by cos C
The formula c2=a2+b2−2abcosC has cosC at the end, and it gets applied to everything before it.
,a=5,,b=8,:C=60∘:c2=25+64−2⋅5⋅8cos60∘Right so far: Problem 2, step 2.
“,25+64−80=9, then multiply by .cos60∘.”The habit that causes the mistake: working left to right instead of multiplying first.
,c2=(25+64−80)⋅21=4.5, so c≈2.12cosC multiplies only :2ab:,c2=89−80⋅21=49, so .c=7. A side of 2.12 cannot be right: by the triangle inequality, .c>b−a=3.
5. Dropping the sign of cos 120°
The law of cosines is remembered as "Pythagoras minus something".
d2=3002+5002−2⋅300⋅500cos120∘Right so far: Problem 9, step 1.
“cos120∘ has reference angle ,60∘, so it is .21.”The habit that causes the mistake: the reference angle gives the size of the cosine, not its sign.
,d2=340000−150000=190000, so d≈436 m,cos120∘=−21, since cosine is negative in quadrant II, so the term is added: ,d2=490000,d=700 m. A wide angle at P should give a long lake, longer than the Pythagoras value of about 583 m, not shorter.