Math Core

Lesson 6.1 · Applications of Trigonometry

Laws of sines and cosines

Right-triangle trigonometry only works when one angle is 90∘90^\circ. Real triangles, like the one formed by two lighthouses and a ship or by three stakes on a hillside, usually have no right angle at all. The law of sines and the law of cosines let you solve any triangle from three pieces of information, as long as at least one of them is a side.

Naming a triangle

Label the vertices AA, BB and CC, and use the matching lowercase letter for the side opposite each vertex. So side aa sits across from angle AA, side bb across from BB, and side cc across from CC. "Solving a triangle" means finding all three sides and all three angles.

Side a is opposite angle A, and so on. The dashed segment h is the height from C.

The law of sines

Drop the height hh from CC to side cc, as in the picture. The height splits the triangle into two right triangles. In the left one, sin⁡A=hb\sin A = \dfrac{h}{b}, so h=bsin⁡Ah = b \sin A. In the right one, sin⁡B=ha\sin B = \dfrac{h}{a}, so h=asin⁡Bh = a \sin B. Both expressions equal hh, so

bsin⁡A=asin⁡B⟹asin⁡A=bsin⁡B.b \sin A = a \sin B \quad\Longrightarrow\quad \frac{a}{\sin A} = \frac{b}{\sin B}.

Dropping the height from a different vertex brings cc and sin⁡C\sin C into the same chain.

Law of sines

In any triangle,

asin⁡A=bsin⁡B=csin⁡C.\frac{a}{\sin A} = \frac{b}{\sin B} = \frac{c}{\sin C}.

Use it when you know an angle and its opposite side, plus one more side or angle: the cases AAS, ASA and SSA.

Worked example: Two angles and a side (AAS)

In triangle ABCABC, A=40∘A = 40^\circ, B=65∘B = 65^\circ and a=12a = 12. Solve the triangle. Round sides to the nearest tenth.

The angles add to 180∘180^\circ, so C=180∘−40∘−65∘=75∘C = 180^\circ - 40^\circ - 65^\circ = 75^\circ.

You know the pair aa and AA, so every other side comes from 12sin⁡40∘\dfrac{12}{\sin 40^\circ}:

b=12sin⁡65∘sin⁡40∘≈16.9,c=12sin⁡75∘sin⁡40∘≈18.0.\begin{aligned} b &= \frac{12 \sin 65^\circ}{\sin 40^\circ} \approx 16.9, \\ c &= \frac{12 \sin 75^\circ}{\sin 40^\circ} \approx 18.0. \end{aligned}

Check: the largest angle, CC, faces the largest side, cc. Good.

The law of cosines

The law of sines is useless when you don't know any angle-and-opposite-side pair, for example when you know two sides and the angle between them (SAS) or all three sides (SSS). For those cases you need the law of cosines, which is the Pythagorean theorem with a correction term.

Law of cosines

In any triangle,

c2=a2+b2−2abcos⁡C,a2=b2+c2−2bccos⁡A,b2=a2+c2−2accos⁡B.\begin{aligned} c^2 &= a^2 + b^2 - 2ab\cos C, \\ a^2 &= b^2 + c^2 - 2bc\cos A, \\ b^2 &= a^2 + c^2 - 2ac\cos B. \end{aligned}

Each version pairs one angle with its opposite side on the left. Use it for SAS (find the third side) and SSS (find an angle).

If C=90∘C = 90^\circ, then cos⁡C=0\cos C = 0 and the formula becomes c2=a2+b2c^2 = a^2 + b^2. When CC is obtuse, cos⁡C\cos C is negative, so the correction term makes cc longer than the Pythagorean value, exactly as you would expect for a side across from a wide angle.

Worked example: Two sides and the included angle (SAS)

A triangle has b=9b = 9, c=14c = 14 and A=52∘A = 52^\circ. Find aa to the nearest tenth.

a2=92+142−2(9)(14)cos⁡52∘=277−252cos⁡52∘≈121.85,\begin{aligned} a^2 &= 9^2 + 14^2 - 2(9)(14)\cos 52^\circ \\ &= 277 - 252\cos 52^\circ \\ &\approx 121.85, \end{aligned}

so a≈11.0a \approx 11.0. To finish solving, you now have a known pair (aa and AA), so you could switch to the law of sines for the remaining angles.

Worked example: Three sides (SSS)

A triangle has sides a=7a = 7, b=9b = 9 and c=12c = 12. Find its largest angle.

The largest angle is across from the longest side, so find CC. Solve the law of cosines for cos⁡C\cos C:

cos⁡C=a2+b2−c22ab=49+81−144126=−14126≈−0.1111.\cos C = \frac{a^2 + b^2 - c^2}{2ab} = \frac{49 + 81 - 144}{126} = \frac{-14}{126} \approx -0.1111.

So C=cos⁡−1(−0.1111)≈96.4∘C = \cos^{-1}(-0.1111) \approx 96.4^\circ. The negative cosine tells you right away that the angle is obtuse.

Tip

When you need an angle, prefer the law of cosines if you can. The inverse cosine returns angles from 0∘0^\circ to 180∘180^\circ, so it handles obtuse angles correctly. The inverse sine only returns angles up to 90∘90^\circ.

The ambiguous case (SSA)

Knowing two sides and an angle that is not between them can produce two triangles, one triangle, or none. Suppose A=35∘A = 35^\circ, b=12b = 12 and a=8a = 8. Picture side bb fixed, and side aa swinging from CC like a compass until it hits the base.

A side of length 8 swung from C meets the base twice, giving two different triangles.

The height from CC is h=bsin⁡A=12sin⁡35∘≈6.88h = b \sin A = 12 \sin 35^\circ \approx 6.88. Compare aa with hh and bb:

Situation (with AA acute)Number of triangles
a<ha < h0 (side aa is too short to reach)
a=ha = h1 (a right triangle)
h<a<bh < a < b2
a≥ba \ge b1

If AA is obtuse, there is exactly one triangle when a>ba > b and none otherwise.

Worked example: Finding both triangles

Solve for BB when A=35∘A = 35^\circ, a=8a = 8 and b=12b = 12.

Here 6.88<8<126.88 < 8 < 12, so expect two triangles. The law of sines gives

sin⁡B=12sin⁡35∘8≈0.8604.\sin B = \frac{12 \sin 35^\circ}{8} \approx 0.8604.

Your calculator reports B1=sin⁡−1(0.8604)≈59.4∘B_1 = \sin^{-1}(0.8604) \approx 59.4^\circ. The supplement has the same sine, so B2=180∘−59.4∘=120.6∘B_2 = 180^\circ - 59.4^\circ = 120.6^\circ is also possible. Check that each fits with AA: 35∘+120.6∘<180∘35^\circ + 120.6^\circ < 180^\circ, so both work. The third angles are C1≈85.6∘C_1 \approx 85.6^\circ and C2≈24.4∘C_2 \approx 24.4^\circ.

Common mistake

Whenever you use the inverse sine to find an angle, ask whether the supplement 180∘−θ180^\circ - \theta also works. Forgetting the second triangle is the most common mistake with the law of sines. The supplement is valid exactly when it plus the known angle is less than 180∘180^\circ.

Area of any triangle

The height in the first picture was h=bsin⁡Ah = b \sin A, and the base was cc. So the area is 12⋅c⋅bsin⁡A\dfrac{1}{2} \cdot c \cdot b \sin A. In general:

Area formulas

Two sides and the included angle: Area=12absin⁡C\text{Area} = \dfrac{1}{2}ab\sin C (or any two sides with the angle between them).

Three sides (Heron's formula): with s=a+b+c2s = \dfrac{a + b + c}{2},

Area=s(s−a)(s−b)(s−c).\text{Area} = \sqrt{s(s - a)(s - b)(s - c)}.

For the SAS triangle above, Area=12(9)(14)sin⁡52∘≈49.6\text{Area} = \dfrac{1}{2}(9)(14)\sin 52^\circ \approx 49.6 square units.

Practice

Practice 1

In triangle ABCABC, A=30∘A = 30^\circ, B=45∘B = 45^\circ and a=10a = 10. Find bb. Round to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

A triangle has a=5a = 5, b=8b = 8 and C=60∘C = 60^\circ. Find cc exactly.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

A triangle has sides a=5a = 5, b=6b = 6 and c=7c = 7. Find angle CC in degrees, to the nearest tenth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 4

Two sides of a triangular garden measure 10 m and 13 m, and the angle between them is 40∘40^\circ. Find the area of the garden in square meters, to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

How many triangles have A=50∘A = 50^\circ, a=6a = 6 and b=10b = 10?

Practice 6

Two boats leave the same dock. One travels 15 miles and the other travels 22 miles, along straight paths that make a 110∘110^\circ angle with each other. How far apart are the boats? Round to the nearest tenth of a mile.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

Use Heron's formula to find the area of a triangle with sides 9, 10 and 17.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 8

A triangle has A=40∘A = 40^\circ, a=9a = 9 and b=12b = 12. There are two possible triangles. Find the obtuse value of BB, to the nearest tenth of a degree.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.