Triangle Trigonometry and Bearings

☰ Contents

Two triangles with the same angles have sides in the same proportion, whatever their size. So once an angle is fixed, the ratio of any two sides is fixed too, and that ratio can be looked up instead of measured. Sine, cosine and tangent are the names of three such ratios.

What do sine, cosine and tangent actually mean?

In a right triangle, sine, cosine and tangent are ratios of sides, named from one acute angle θ. The hypotenuse faces the right angle, the opposite side faces θ, and the adjacent side lies beside θ. Then sin θ is opposite over hypotenuse, cos θ is adjacent over hypotenuse, and tan θ is opposite over adjacent. In a 3-4-5 triangle, with θ facing the side of 3, sin θ = 3/5, cos θ = 4/5 and tan θ = 3/4. The ratios depend only on the angle. Any right triangle with the same θ is an enlargement of this one, so doubling the sides to 6, 8 and 10 leaves 6/10 = 3/5. The labels move when the angle does: for the other acute angle, the side of 4 is opposite, so that angle's sine is 4/5, the cosine of θ. Check the three values together, since tan θ must equal sin θ / cos θ: here 3/5 ÷ 4/5 = 3/4.

θ = 60°show the unit tiles

at 60° the term −2ab cos θ is −12, so a² + b² and c² are not equal

Find the angle where a² + b² = c²

oppositeadjacenthypotenuse
Name the sides from the angle you care about: opposite, adjacent, hypotenuse. Full lesson: Sine, Cosine and Tangent

The memory aid SOHCAHTOA lists the three ratios in order. See Sine, cosine and tangent.

oppositehypotenuse
Opposite over hypotenuse never changes for that angle. That is sine: sin = opp ÷ hyp. Full lesson: Sine, Cosine and Tangent
Two right triangles that share a second angle share the third, since the angles add to 180°. Similar triangles have sides in proportion, so each ratio is the same number for every right triangle with that angle.

The two acute angles of a right triangle add to 90°, so in general sin θ = cos(90° − θ). See Sine and cosine of complementary angles.

53490°x°(90 − x)°
The gold side of 3 faces x°. That same side lies beside the corner (90 − x)°. Full lesson: Sine and Cosine of Complementary Angles

How do you find a missing side or angle?

To find a missing side, label the sides from the given angle, choose the ratio that links the side you know to the side you want, and solve. With a hypotenuse of 10 and an angle of 30°, the opposite side needs sine: it is 10 × sin 30°, and 10 × 1/2 = 5. The unknown may land in the denominator. With an adjacent side of 12 and an angle of 60°, cos 60° = 12/hypotenuse, so the hypotenuse is 12 / cos 60°, which is 12 ÷ 1/2 = 24. This works because each ratio is fixed for a given angle, so one known side sets the scale. When two sides are known and the angle is missing, apply the inverse function to their ratio: with opposite 5 and hypotenuse 10, θ = sin⁻¹(1/2) = 30°. Check with Pythagoras: the third side is 5√3, whose square is 75, and 25 + 75 = 100, the square of 10.

adj = 1.73opp = 1hyp = 2θ = 30°sin θ = opp/hyp0.5cos θ = adj/hyp0.866tan θ = opp/adj0.577

θ = 30°: sin = 0.5, cos = 0.866, tan = 0.577; pull the corner outward and the triangle grows but not one ratio changes, because every side is scaled by the same factor

Swing the corner to 45° and read the three ratios

  1. Mark the hypotenuse. It always faces the right angle.
  2. Mark opposite and adjacent from the angle in the question.
  3. Write the ratio that links the side you know to the side you want, then solve.

See Solving right triangles.

51030°
sin 30° = 1/2, so the opposite side is 5. Full lesson: Solving Right Triangles

sin⁻¹ x is not 1 / sin x; it is the angle whose sine is x. See Finding an angle from a ratio.

1145°
Equal sides give a tangent of 1, and tan⁻¹ 1 is 45°. Worth knowing by heart. Full lesson: Finding an Angle from a Ratio

An angle of elevation is measured up from the horizontal, and an angle of depression down from it. Because the two horizontals are parallel, the two angles are equal. See Elevation and depression.

45°?30 m
The horizontal at the eye runs parallel to the sea, so the boat looks up at 45°. Full lesson: Elevation and Depression

Now you

?1830°

A right triangle has hypotenuse 18 and an angle of 30°. How long is the opposite side?

?1630°

A right triangle has hypotenuse 16 and an angle of 30°. How long is the opposite side?

Which values should you know without a calculator?

Learn sine, cosine and tangent at 30°, 45° and 60°, because two triangles give all nine values. Cut a square of side 1 along its diagonal, which is √2: sin 45° = cos 45° = 1/√2, or √2/2, and tan 45° = 1. Cut an equilateral triangle of side 2 in half: each piece has hypotenuse 2, short side 1 and height √3, since 4 − 1 = 3. So sin 30° = 1/2, cos 30° = √3/2 and tan 30° = 1/√3, and 60° swaps the sine and cosine: sin 60° = √3/2, cos 60° = 1/2, tan 60° = √3. They are exact because the lengths are. From the unit circle, sin 0° = 0 and sin 90° = 1, while tan 90° is undefined. In radians the three angles are π/6, π/4 and π/3. Check a pair with sin²θ + cos²θ = 1: at 60°, the squares are 3/4 and 1/4, and 3/4 + 1/4 = 1.

cos²θ = 0.7510.75 + 0.25θ = 30°

cos²θ + sin²θ = 0.75 + 0.25 = 1: the legs of a right triangle with hypotenuse 1, so Pythagoras says their squares add to 1, in every quadrant, because a square has no sign

Turn θ until the two squares are equal

11√245°45°
Both legs are 1, so by Pythagoras the hypotenuse is √2. Full lesson: Exact Sine, Cosine and Tangent at 30, 45 and 60°

Its height, √3, is where every √3 in the table comes from.

√32160°30°
Here is one half, turned to lie flat. By Pythagoras 2² − 1² = 3, so that side is √3. Full lesson: Exact Sine, Cosine and Tangent at 30, 45 and 60°
θsin θcos θtan θ
30°1/2√3/21/√3
45°1/√21/√21
60°√3/21/2√3

Keep these in surd form: √3/2 is exact, and a rounded decimal is not. See Exact sine, cosine and tangent at 30, 45 and 60°.

Now you

45°45°

What is cos 45°?

60°30°

What is tan 60°?

What happens past 90 degrees?

Past 90°, sine and cosine are defined on the unit circle, radius 1, centered at the origin. Turn a radius counterclockwise through θ from the positive x-axis to reach the point (cos θ, sin θ), and tan θ = sin θ / cos θ. At 150° the point is at the same height as the point for 30°, mirrored across the y-axis, so sin 150° = 1/2 and cos 150° = −√3/2. This matches the triangle definitions below 90°, where the point, its foot on the x-axis and the origin form a right triangle with hypotenuse 1. The signs change by quadrant: all three ratios are positive up to 90°, only sine up to 180°, only tangent up to 270°, and only cosine up to 360°. For sin 210°, take the reference angle, 210 − 180 = 30, then the sign: sin 210° = −1/2. Check the 150° values: their squares are 1/4 and 3/4, and 1/4 + 3/4 = 1.

−111−1xy135°

the point at angle θ on the unit circle has coordinates (cos θ, sin θ)

Turn until the sine is 1

60°cossin
On a circle of radius 1 the distance across is the cosine and the height is the sine. Full lesson: Sine and Cosine of Angles Past 90 Degrees

In general an obtuse angle and its supplement have the same sine and opposite cosines. See Sine and cosine of angles past 90 degrees.

60°½120°−½
The distance across is mirrored, not copied: cos 120° is −½ where cos 60° is ½. Full lesson: Sine and Cosine of Angles Past 90 Degrees

What do the trigonometric graphs look like?

The sine graph is a wave: the height of the point on the unit circle plotted against the angle turned. It starts at 0, rises to 1 at 90°, returns to 0 at 180°, falls to −1 at 270°, reaches 0 again at 360°, and repeats. See The graphs of sine and cosine. Cosine is the same wave shifted 90° to the left, so it starts at its peak of 1. The wave repeats every 360° because a full turn brings the point back, and it stays between −1 and 1 because the radius is 1. A stretch changes the numbers but not the shape: y = 3 sin 2x runs between −3 and 3, with period 360 ÷ 2 = 180 degrees, because 2x completes a turn while x completes half of one. Check the shift: cos 60° should equal the sine of 150°, and 60 + 90 = 150, where the sine is 1/2, as is cos 60°.

90°180°270°360°sin 60° = 0.87sincostan

the arm's height is carried across to the graph: sin θ is that height, so the wave is the circle unrolled, and it repeats every 360° because the arm does

Choose tan and turn the arm to 90°

xy
Unroll the turn, one cell per 90°: the heights draw a wave from 1 down to −1. Full lesson: The Graphs of Sine and Cosine

Tangent is sin θ / cos θ. At 90° and 270°, cos θ = 0, so the graph has a vertical asymptote. Tangent repeats every 180° and takes every value. See The graph of tangent.

xy
One cell is 45°. cos 90° is 0, and dividing by 0 has no answer — the graph breaks there. Full lesson: The Graph of Tangent

In y = a sin(b(x − c)) + d, the amplitude a is the distance from the principal axis to the crest, the period is 360° ÷ b, the phase shift c slides the wave sideways, and d is the height of the principal axis. See Amplitude and the principal axis and The period and phase shift of a wave.

xy
y = 2 sin x + 3 swings about the dashed line y = 3 instead of about the x-axis. Full lesson: Amplitude and the Principal Axis

How do you solve a trigonometric equation?

Rearrange the equation to sin x, cos x or tan x equal to a number, take the inverse function for one solution, and use the graph's symmetry for the rest. For sin x = 1/2 on 0° ≤ x ≤ 360°, sin⁻¹ gives 30°, and since the sine curve is symmetric about 90°, the other solution is 180 − 30 = 150 degrees. See Solving simple trigonometric equations. The symmetry holds because the unit-circle points at x and 180° − x are at the same height. Cosine pairs x with 360° − x, and tangent repeats every 180°, so its second solution is x + 180°. With sin x = −1/2 the start changes: the inverse gives −30°, outside the range, so add 360° for 330°, and symmetry gives 210°. Check: 210° is 30° past a half turn and 330° is 30° short of a full one, as 330 + 30 = 360 shows, so both have sine −1/2.

−720°−360°0°360°720°sin x = 0.5: x = 30°, 150°n = 0n

sin x = 0.5 crosses the circle at 30° and 150°; turn n = 0 adds 360° × 0 to each, x = 30°, 150°

Set sin x = 0.5 and turn n to 1

30°150°
But the height ½ is hit twice in a turn — at 30°, and again at 180 − 30 = 150°. Full lesson: Solving Simple Trigonometric Equations

2 sin²x − sin x − 1 = 0 is a quadratic in sin x. Write s = sin x, factor, and solve sin x = each root separately, rejecting any root outside −1 to 1. See Quadratic equations in sine, cosine or tangent.

If the equation is in 2x, widen the interval before solving. For 0° ≤ x ≤ 360°, 2x runs from 0° to 720°, so collect every solution for 2x in that range and then halve each one. See Trigonometric equations with a multiple angle.

xy
Over those two turns the cut at ½ meets the wave four times, not twice. Full lesson: Trigonometric Equations with a Multiple Angle

The depth of water in a harbor rises and falls on a fixed cycle, so it fits the same equation. See Modeling tides and daylight with a sine function.

xy82
The graph shows harbor depth against hours: it climbs to 8 m, falls to 2 m, repeats. Full lesson: Modeling Tides and Daylight with a Sine Function

Now you

80°

cos x = cos 80°. Which other angle below 360° agrees?

30°

sin x = ½. One answer is 30°. What is the other between 0° and 360°?

What do you do when the triangle has no right angle?

Without a right angle, use the sine rule or the cosine rule. The sine rule says a / sin A = b / sin B = c / sin C: each side over the sine of its opposite angle. Use it when a side, its opposite angle and one more part are known. For A = 30°, a = 5 and B = 45°, the common ratio is 5 / sin 30°, which is 5 ÷ 1/2 = 10, so b = 10 sin 45° = 5√2. See The sine rule. It holds because a height can be written with either base angle. With the angle between two known sides, or three sides known, no pair matches, so the cosine rule, a² = b² + c² − 2 b c cos A, takes over. For sides 3 and 5 with 60° between them, a² is 9 + 25 − 15 = 19. Check: C is 105°, the largest angle, so c must be the longest side.

bcBCh
Drop the height h from A. It splits the triangle into two right triangles. Full lesson: The Sine Rule
That height is c sin B in one right triangle and b sin C in the other. Set them equal and divide both sides by sin B sin C.

At A = 90°, cos A = 0, the correction term in the cosine rule vanishes, and Pythagoras is left. See The cosine rule.

abcCa − b cos Cb cos C
Beside C the foot cuts off b cos C, so the rest of side a is a − b cos C. Full lesson: The Cosine Rule

With three sides known, rearrange for the cosine: cos A = (b² + c² − a²) / 2bc. See Finding angles with the cosine rule and Finding angles with the sine rule.

The area of any triangle is ½ab sin C, because the height onto a is b sin C. See Area with sine.

abCh
Drop the height h onto a. It makes a right triangle whose hypotenuse is b. Full lesson: Area with Sine

Now you

60°

Two sides are 8 and 6, with 60° between them. What is the third side squared?

Sides 5 and 3 hold the angle C, and the side facing C is 7. What is cos C?

Why does the sine rule sometimes give two triangles?

The sine rule can give two triangles because an angle and its supplement have the same sine, and the inverse sine returns only the acute one. It happens when the known angle is not between the two known sides. Take A = 30°, a = 6 and b = 10: then sin B = 10 × (1/2) / 6 = 5/6, so B is acute or 180° minus that acute angle. Picture side a swinging from its corner: it is longer than the height b sin A, which is 10 × 1/2 = 5, but shorter than b, so it meets the base line twice. The test is whether the obtuse B leaves room for a third angle. As 5/6 lies between 1/2 and √3/2, the obtuse B is between 120° and 150°, so A + B stays under 180° and both triangles exist. Check the boundary: at a = 5, sin B = 1 and the two triangles merge into one.

b = 10A = 35°b sin A = 5.74a = 7.52 triangles

b sin A < a < b: the arm cuts the base twice, one acute and one obtuse triangle from the same givens — sin⁻¹ returns the acute angle and 180° − θ is the other

Shorten a until it cannot reach the base

30°150°
One sine names two angles: 30° and 150° stand level, both with a sine of ½. Full lesson: The Ambiguous Case of the Sine Rule

Take A = 20° and sin B = 1/2. With B = 30° the third angle is 130°; with B = 150° it is 10°. Both fit. With A = 75° the obtuse candidate leaves no third angle, so only B = 30° fits. See The ambiguous case of the sine rule.

620°150°10°
The same data, drawn again: B = 150° closes too, with a 10° sliver left over. Full lesson: The Ambiguous Case of the Sine Rule

The cosine rule never has this problem. Cosine is negative for an obtuse angle and positive for an acute one, so the sign of the answer says which kind it is.

How do bearings work?

A bearing is a direction given as an angle measured clockwise from north, always with three figures. North is 000°, east 090°, south 180° and west 270°, and a bearing of 47° is written 047°. See Three-figure bearings. To find one, stand at the starting point, face north, and turn clockwise until you face the other point. If B is southeast of A, the turn passes east and stops halfway to south, so the bearing is 90 + 45 = 135 degrees. Three figures and one fixed starting direction leave no doubt about how the angle was measured. The return journey changes the steps. The bearing of A from B is measured from north at B, and the two north lines are parallel, so it differs by 180°: 135° + 180° = 315°. For an outward bearing over 180°, subtract 180° instead. Check against the compass: 315° lies between west and north, so the return from a southeast trip points northwest.

NNABbearing of B from A = 065°bearing of A from B = 245°

the bearing of B from A is 065°, clockwise from north; the bearing of A from B is 065° + 180° = 245°, because the two north arrows are parallel and the angles at A and B are co-interior

Drag B due east of A and read both bearings

N250°
Past south, keep counting clockwise. This is 250° — never 110° the other way. Full lesson: Three-Figure Bearings

The eight-point compass names north, east, south, west and the four directions between them. Northeast is 045° and southwest is 225°. See The eight-point compass.

NESWNESESWNW
8 points in all, so each step around the circle is 360 ÷ 8 = 45°. Full lesson: The Eight-Point Compass

The return direction is called the back bearing. See Back bearings.

NNABbearing of B from A = 060°bearing of A from B = 240°
060° is under 180°, so add half a turn: the bearing of A from B is 60 + 180 = 240°. Full lesson: Back Bearings

A navigation problem is usually a sine-rule or cosine-rule triangle. Convert the bearings to angles inside the triangle first. See Bearings with the sine and cosine rules.

Now you

NN310°PQ

A ferry sails from P to Q on a bearing of 310°. What is the bearing of P from Q?

NN040°PQ

A ferry sails from P to Q on a bearing of 040°. What is the bearing of P from Q?

How does trigonometry work in three dimensions?

In three dimensions, find a right triangle lying flat inside the solid and work in that triangle alone. In a box 3 by 4 by 12, find the floor diagonal first: 9 + 16 = 25, so it is 5. The space diagonal forms a right triangle with that diagonal and the height of 12, so its length is 13, since 25 + 144 = 169. Its angle to the floor has tangent 12/5, height over floor diagonal. This turns one problem in space into two flat ones, each in a single plane where the triangle rules apply. The choice of angle is the step that changes: the angle between a line and a plane is measured to the line's projection on the plane, its shadow straight down, not to any other line in the plane. Check with the box formula √(a² + b² + c²): 9, 16 and 144 add to 169, and 13 × 13 = 169.

25√29
A triangle stands on that diagonal: base 5, height 2 — the space diagonal is √29. Full lesson: Trigonometry in Three Dimensions

That angle lives in the same flat triangle. See Trigonometry in three dimensions, or solve the same problems with vectors.

25
The diagonal’s angle with the floor lives in that flat triangle: tan θ = 2 / 5. Full lesson: Trigonometry in Three Dimensions

The mistakes worth naming

The right-angle groundwork is in lines, angles and Pythagoras, the same problems in space are in vectors, and identities and radian measure are in radians and trigonometric identities.

Your turn

Three to try — tap what you get.

sin 30°

The bearing of due east

tan θ is opposite divided by

Questions and answers

What does SOHCAHTOA mean?
It is a memory aid for the three ratios in a right-angled triangle. Sine equals Opposite over Hypotenuse, Cosine equals Adjacent over Hypotenuse, and Tangent equals Opposite over Adjacent. Label the hypotenuse first, then decide which of the remaining two sides is opposite the angle you are working with, and the letters tell you which ratio contains the two sides you care about.
When do you use the sine rule and when the cosine rule?
Use the sine rule when you have a matching pair — a side and the angle opposite it — plus one more piece of information. Use the cosine rule when you do not: that means two sides and the angle between them, or all three sides. The cosine rule is the one that starts a problem where no angle and its opposite side are both known, and the sine rule usually finishes it.
Why does the sine rule sometimes give two answers?
Because sine takes the same value at an angle and at its supplement: sin 30 degrees and sin 150 degrees are both 0.5. When you are finding an angle from a known side pair, both an acute and an obtuse angle can fit the data, and sometimes two genuinely different triangles exist. Check whether the obtuse option still leaves the angle total under 180 degrees before discarding it.
What is a three-figure bearing?
A direction written as an angle measured clockwise from north, always given with three digits. North is 000, east is 090, south is 180 and west is 270, and an angle under 100 degrees is padded with leading zeros, so north-east is written 045. The three-digit convention exists so a bearing can never be misread as a distance or a shortened number.
What is the exact value of sin 30 degrees?
Exactly one half. It comes from cutting an equilateral triangle of side 2 down the middle, which leaves a right-angled triangle with hypotenuse 2 and shortest side 1, so the sine of the 30 degree angle is 1 over 2. The same triangle gives cos 30 as root 3 over 2, and a square cut along its diagonal gives the 45 degree values.
What do amplitude and period mean on a sine graph?
Amplitude is how far the curve rises above and falls below its middle line, and period is how long it takes to complete one full cycle before repeating. In y = a sin(bx), the amplitude is a and the period is 360 degrees divided by b. Amplitude controls the height of the wave and the period controls how stretched or squashed it is horizontally.
Mr. Chalk