Nothing built so far repeats. Polynomials, exponentials and logarithms all eventually head off in one direction and stay there, and yet a tide, a note and a rotating shaft all come back to where they started, over and over.
The functions that repeat come from angles, and this lesson builds them where they were first built, inside a right triangle. It assumes the algebra of the earlier lessons and Pythagoras' theorem, and it ends with two rules that solve any triangle at all, including those with no right angle in them.
One angle fixes every ratio
Take a right triangle with one acute angle . Now draw a bigger one with the same angle . The two triangles have the same three angles, since the right angles match and the third is whatever is left of , so they are similar: one is a scaled copy of the other.
Similar triangles have proportional sides. Doubling every side of the first triangle gives the second, or tripling, or multiplying by , and in every case the ratio of any two sides within a triangle is unchanged, because both members of the ratio were multiplied by the same factor. This is the fact everything below rests on: the ratios depend on the angle alone, not on the size of the triangle.
So the ratios can be named as functions of the angle. Label the side opposite as opposite, the one next to it that is not the hypotenuse as adjacent, and define
Dividing the first by the second cancels the hypotenuse and leaves the third, so always, which is one fewer thing to remember. Because the hypotenuse is the longest side, sine and cosine of an acute angle always lie strictly between and , while the tangent is unbounded and grows without limit as approaches .
Two triangles worth knowing exactly
Most values of these functions are irrational and are looked up or computed. Two triangles give exact values, and they are worth knowing because they appear constantly.
Cut a square of side along its diagonal. The result is a right triangle with two legs of and, by Pythagoras, a hypotenuse of , and its acute angles are both . So and .
Cut an equilateral triangle of side down the middle. The result is a right triangle with hypotenuse , short leg , and remaining leg , with angles of and . Reading the ratios off gives , , , and the same three with sine and cosine swapped at . The swap is not a coincidence: the two acute angles of a right triangle add to , and one angle's opposite side is the other's adjacent, so for every acute . That relation is where the word cosine comes from, the sine of the complement.
Pythagoras' theorem itself becomes an identity in this language. In a right triangle with hypotenuse , the legs are exactly and , so reads
Checking at : . This is the most used identity in the subject, and it is Pythagoras wearing different clothes.
Solving a right triangle
Given one side and one acute angle, the other two sides follow. The discipline is to write the ratio that connects what you know to what you want, then rearrange.
Example. Standing m from the base of a tree, an observer whose eye is m above the ground measures the angle of elevation of the top as . How tall is the tree?
The horizontal distance is adjacent to the angle and the height above eye level is opposite, so the tangent connects them: , giving m above eye level. The tree is m tall. The eye height matters: omitting it understates the tree by more than eight per cent.
Now you. A ladder m long leans against a wall at to the horizontal. How far up the wall does it reach, and how far is its foot from the wall?
Answer
The reach is opposite the angle, so it is m, and the foot is m from the wall.
Going the other way, from a ratio to the angle, needs the inverse functions , and , also written arcsin, arccos and arctan. Here the restriction from the fourth lesson bites. Sine is not injective over all angles, so it has no inverse until its domain is cut down, and the convention takes to return an angle between and . That is a choice, and it is the reason a calculator answers with and never mentions , which has the same sine. Anyone solving a real problem must decide whether the other angle is the one wanted.
A road signed as a gradient of in rises one metre for every eight along, so its angle is . Signs quoted as percentages mean the same thing: a per cent grade is . Road gradients are always small enough that the angle in radians, the tangent and the sine agree to within a fraction of a per cent, which is why the sloppiness rarely matters in practice and matters completely on a roof or a ramp.
Reaching triangles with no right angle
Real triangles are rarely right angled, and the definitions above do not apply to them directly. They can be made to apply by dropping a perpendicular, and doing so produces two rules that cover every case.
Label a triangle with angles , , and the side opposite each with the matching lower-case letter. Drop the altitude from to the side . It splits the triangle into two right triangles, and in each of them is opposite a known angle: from one, from the other. Setting these equal gives , that is
the third ratio following by dropping a different altitude. This is the sine rule, and it solves a triangle whenever an angle and its opposite side are both known.
Example. A triangle has , and . Find the remaining angle and sides.
The angles sum to , so . Then and . A check on plausibility: the largest side should face the largest angle, and it does.
Now you. A triangle has , and . Find , and .
Answer
. Then and .
The sine rule has a trap that must be stated. Given two sides and an angle not between them, the rule can produce two valid triangles. With , and , it gives , and both and satisfy that, since supplementary angles have equal sines. Each leads to a genuine triangle, one with and one with . This is the ambiguous case, and no amount of algebra resolves it: the data really do describe two shapes, and only extra information settles which.
The cosine rule
When no angle and its opposite side are both known, the sine rule cannot start. Two cases fall outside it: three sides given, or two sides and the angle between them. The cosine rule covers both:
Its derivation is the same altitude trick. Drop the perpendicular from to the side , splitting it into pieces of length and , with height . Pythagoras on the right-hand triangle gives , and expanding gives . The two squared trigonometric terms combine to by the Pythagorean identity, leaving the rule.
Set and the cosine term vanishes, recovering . So Pythagoras is the special case, and the is the correction for the angle being something other than a right angle.
Example. Two sides of a triangle are and with an included angle of . Find the third side and the area.
, so . The area of any triangle is half the product of two sides and the sine of the angle between them, which follows from taking one side as the base and as the height: area .
Now you. Two sides are and with an included angle of . Find the third side and the area.
Answer
, so . The area is .
Rearranged, the cosine rule finds an angle from three sides: . For sides , and the angle opposite the longest is , and the negative cosine correctly signals an obtuse angle. Unlike the sine rule, this version is never ambiguous, because cosine takes each value once between and .
Where these definitions stop
Everything in this lesson has been about an angle inside a right triangle, which means an angle strictly between and . Ask for and the definitions give nothing: no right triangle has an angle of in it, so there is no opposite side to divide by a hypotenuse.
Yet the ambiguous case just used , and the cosine rule just used , both of which were treated as ordinary numbers. Something has been assumed that has not been defined, and that is a debt to settle rather than a detail to skip.
The repair is to leave the triangle behind and put the angle at the centre of a circle, where it can be as large as you like and can turn as many times as it likes. That construction gives sine and cosine a value for every real number, produces the repeating functions this course still owes, and is the next lesson.