Triangle Trigonometry

Any triangle can be solved from three of its parts.

Pin four boards into a square frame, lean on a corner, and it folds flat. Pin three boards into a triangle, and it won't budge: the corners have nowhere to go. That's why roof trusses are made of triangles. It also means that once a triangle's three sides are set, its angles, its height, and its area are already decided. All that's left is to calculate them.

4 bars: folds 3 bars: holds
Four pinned bars can fold, and three can't

Three parts fix a triangle

A triangle has six parts, three sides and three angles, and three of them are usually enough. First, the names, which the rest of this Topic uses too: the corners are AA, BB, and CC, and each side takes the lowercase letter of the corner it faces.

A B C a b c
Each side is named for the angle it faces

Three sets of parts fix a triangle: two sides and the angle between them (the included angle), all three sides, or two angles and a side. In that last set, the angles add to 180°, so two of them give you the third. That sets the shape, and the side sets the size.

Two sides and the included angle A B C a b Three sides A B C a b c Two angles and a side A B C c
Three sets of known parts that fix a triangle

At least one part has to be a side, because a small triangle and its big copy have identical angles. One other set, two sides and an angle that isn't between them, can fit two different triangles, and this Lesson leaves that case out.

Right triangles: ratios that belong to the angle

Draw a right triangle with a 40° angle, then a bigger one with the same angle. They're the same shape at different sizes, so the ratio of any two sides didn't change. That ratio belongs to the angle, not the triangle. Sine, cosine, and tangent are the names of those ratios, and the Handbook's Trigonometry section defines them on a right triangle with legs xx and yy and hypotenuse rr:

sin⁡θ=yrcos⁡θ=xrtan⁡θ=yx\sin\theta = \frac{y}{r} \qquad \cos\theta = \frac{x}{r} \qquad \tan\theta = \frac{y}{x}
x (adjacent) y (opposite) r (hypotenuse) θ
The right triangle behind the ratios

Adapted from the FE Reference Handbook, Trigonometry

Exam triangles come in every orientation, so read the letters by position: yy is opposite θ\theta, xx is adjacent to it, and rr faces the right angle. At the other acute angle, xx and yy trade places.

To solve a right triangle, remember that the 90° is already one of the three parts, so any two more, at least one of them a side, finish the job. Pick the ratio that connects what you have to what you want. With two sides, x2+y2=r2x^2 + y^2 = r^2 gives the third, and an inverse such as θ=arctan⁡(y/x)\theta = \arctan(y/x) gives the angle.

Check the mode first

Triangle problems run in degrees. Try sin⁡30\sin 30: it should read 0.5. If it reads −0.988, the calculator is in radian mode, and it will hand you wrong answers with a straight face.

Engineers rarely state a slope's angle. They give a rise and a run, such as a roof that climbs 3 ft for every 4 ft across. That's a slope triangle: a right triangle with the rise as yy and the run as xx. Find rr, and you can read all three ratios without ever finding θ\theta:

run = 4 rise = 3 r = 5 θ
A slope of 3 on 4 as a right triangle
r=32+42=5sin⁡θ=35cos⁡θ=45tan⁡θ=34r = \sqrt{3^2 + 4^2} = 5 \qquad \sin\theta = \tfrac{3}{5} \qquad \cos\theta = \tfrac{4}{5} \qquad \tan\theta = \tfrac{3}{4}
Worked Example A cable, a mast, and the ground
1 of 4

A 20 m cable runs from the top of a vertical mast to level ground, meeting the ground at 40°. Find the mast's height, the distance from the mast to the anchor, and the angle between the cable and the mast.

The law of cosines: Pythagoras with a correction

Now drop the right angle. Hinge two bars at CC, with a=3a = 3 and b=4b = 4, and watch the gap cc between their free ends. At exactly 90° the gap is the Pythagorean 5. Close the hinge, and cc is shorter than Pythagoras predicts. Open it, and cc is longer.

C a = 3 b = 4 60° c ≈ 3.61 c² = 25 − 12 = 13 C a = 3 b = 4 90° c = 5 c² = 25 C a = 3 b = 4 120° c ≈ 6.08 c² = 25 + 12 = 37
The same two bars hinged at three angles

So c2c^2 needs a correction that's zero at 90°, subtracts below 90°, and adds above it. Cosine does exactly that. Measure xx along bar aa from the hinge. At 60°, the tip of bar bb sits 2 units out, so x/r=2/4=0.5x/r = 2/4 = 0.5. At 90°, it's directly above the hinge, and xx is 0. At 120°, it's 2 units behind the hinge, so x/r=−0.5x/r = -0.5. Scale that by both bars, let the algebra supply a factor of 2, and you have the law of cosines:

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos C

At 60°, the correction is 2(3)(4)(0.5)=122(3)(4)(0.5) = 12, the amount the figure takes off.

The Handbook's Trigonometry section prints it three times, once per side, starting with a2=b2+c2−2bccos⁡Aa^2 = b^2 + c^2 - 2bc\cos A. It's one rule relabeled: the side on the left faces the angle on the right, and the other two sides meet at that angle. That's why it takes the included angle. If you know aa and bb, you need CC, the corner where they meet.

With three sides, run it backward. The Handbook prints only the form above, so rearrange it:

cos⁡C=a2+b2−c22ab\cos C = \frac{a^2 + b^2 - c^2}{2ab}

An obtuse angle takes care of itself: the fraction comes out negative, and arccosine returns an angle above 90°. The hinge shows one more thing: the wider the corner, the longer the side across from it. So the largest angle always faces the longest side.

Worked Example A third side, then the largest angle
1 of 3

A triangle has a=8a = 8, b=11b = 11, and C=52∘C = 52^\circ. Find side cc, then the triangle's largest angle.

The law of sines: each side and the angle it faces

Wider corners face longer sides, as the hinge showed. The law of sines makes that exact: each side is proportional to the sine of the angle it faces. To see why, drop a height hh from CC down to side cc.

A B C a b c h
A height splits the triangle into two right triangles

The two right triangles share hh: h=bsin⁡Ah = b\sin A on the left and h=asin⁡Bh = a\sin B on the right. Set those equal and divide to get a/sin⁡A=b/sin⁡Ba/\sin A = b/\sin B. A height from another corner brings in cc. That's the law as the Handbook's Trigonometry section prints it:

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

Every fraction pairs a side with the angle it faces, so you need one complete pair to start. If the known side faces the angle nobody gave you, get that angle from the 180° sum first.

Keep this law for sides. For an angle, it would mean pressing arcsine, which has a blind spot: sin⁡30∘\sin 30^\circ and sin⁡150∘\sin 150^\circ are both 0.5, and arcsin⁡0.5\arcsin 0.5 only ever answers 30°. Arccosine has no such trouble, because cosine turns negative past 90°.

Worked Example A side from two angles and a side
1 of 2

A triangle has A=35∘A = 35^\circ, B=80∘B = 80^\circ, and c=12c = 12. Find side aa.

Spot which set of parts you've been given, and the tool follows.

Which tool for which parts
You knowReach forTo get
Right angle + 2 partsRatios, PythagoreanEverything
2 sides + included angleLaw of cosinesThird side
3 sidesLaw of cosines, backwardAny angle
2 angles + a side180° sum, law of sinesAny side

Area: half base times height, with the height in disguise

Every triangle's area is half base times height, as the Handbook's Statics table of area properties prints it. Problems rarely hand you the height, but take side aa as the base, and side bb leans up from CC with a rise of h=bsin⁡Ch = b\sin C.

A B C a b c h = b sin C
The height comes from side b and angle C

That gives the area, with the word written out because AA already names an angle:

Area=12absin⁡C\text{Area} = \tfrac{1}{2}ab\sin C

The Handbook doesn't print this form. The closest is the Parallelogram entry under Mensuration of Areas and Volumes, with an area of absin⁡φab\sin\varphi, and a triangle is half a parallelogram.

As in the law of cosines, CC has to be the angle between aa and bb. Past 90°, the height lands outside the base, but the formula still holds. Given three sides and no angle, use the law of cosines to find any angle, then use the two sides that meet there.

Worked Example The area of a plate from its three sides
1 of 3

A triangular steel plate has sides of 13 in, 14 in, and 15 in. Find its area.

Identities: one value, many disguises

Some questions have no triangle at all. They show an expression and ask which choice is equivalent. The answer is in the Handbook's list under Trigonometry, Identities, but that list runs about thirty lines with no group names, so it helps to know the groups and where they come from.

The Pythagorean group is a right triangle with r=1r = 1. Its legs are then cos⁡θ\cos\theta and sin⁡θ\sin\theta, and x2+y2=r2x^2 + y^2 = r^2 becomes sin⁡2θ+cos⁡2θ=1\sin^2\theta + \cos^2\theta = 1. Divide through by cos⁡2θ\cos^2\theta for tan⁡2θ+1=sec⁡2θ\tan^2\theta + 1 = \sec^2\theta, where sec⁡θ=1/cos⁡θ\sec\theta = 1/\cos\theta.

cos θ sin θ 1 θ
A right triangle with a hypotenuse of 1

The sum and difference group splits the angle inside a sine or cosine, and the sine of a sum isn't the sum of the sines. The difference forms flip the middle sign. The double-angle group is the sum group with β=α\beta = \alpha, and the Pythagorean identity rewrites cos⁡2α\cos 2\alpha in two more ways.

The sum and double-angle identities
GroupIdentity
Sumsin⁡(α+β)=sin⁡αcos⁡β+cos⁡αsin⁡β\sin(\alpha + \beta) = \sin\alpha\cos\beta + \cos\alpha\sin\beta
Sumcos⁡(α+β)=cos⁡αcos⁡β−sin⁡αsin⁡β\cos(\alpha + \beta) = \cos\alpha\cos\beta - \sin\alpha\sin\beta
Double anglesin⁡2α=2sin⁡αcos⁡α\sin 2\alpha = 2\sin\alpha\cos\alpha
Double anglecos⁡2α=cos⁡2α−sin⁡2α=1−2sin⁡2α=2cos⁡2α−1\cos 2\alpha = \cos^2\alpha - \sin^2\alpha = 1 - 2\sin^2\alpha = 2\cos^2\alpha - 1

Adapted from the FE Reference Handbook, Trigonometry, Identities

The letters are slots, so sin⁡2α=2sin⁡αcos⁡α\sin 2\alpha = 2\sin\alpha\cos\alpha also says sin⁡10x=2sin⁡5xcos⁡5x\sin 10x = 2\sin 5x\cos 5x. When you aren't sure of a match, evaluate both expressions at an unfriendly angle such as 17°, in degree mode. True equivalents agree to every digit. Friendly angles can fool you: at 30°, sin⁡θ\sin\theta and cos⁡2θ\cos 2\theta are both 0.5.

Checkpoint
1 of 3

Which of these are equivalent to cos⁡2θ−sin⁡2θ\cos^2\theta - \sin^2\theta?

A.
cos⁡2θ\cos 2\theta
B.
11
C.
1−2sin⁡2θ1 - 2\sin^2\theta
D.
2sin⁡2θ−12\sin^2\theta - 1
E.
2cos⁡2θ−12\cos^2\theta - 1

Recap

  • Three parts, at least one of them a side, usually fix a triangle. Sides aa, bb, and cc face angles AA, BB, and CC.
  • A right triangle's ratios come from its sides, and a slope triangle gives them straight from the rise and run. Stay in degree mode.
  • The law of cosines finds a third side from the included angle, or any angle from three sides. The law of sines finds a side from two angles and a side, pairing each side with the angle it faces.
  • Area=12absin⁡C\text{Area} = \tfrac{1}{2}ab\sin C, with CC between aa and bb. From three sides, find an angle first.
  • Match equivalent expressions from the Handbook's identities, or test them at an unfriendly angle.