mathematics / trigonometry / right triangle
The Right Triangle
Where the six functions start. Name the sides, prove Pythagoras’ theorem by area, and see why scaling a triangle never changes its ratios.
The right angle
Fix what a right angle is and why one corner of the triangle is special.
A is a quarter turn. If you face north and turn to face east, you have turned through one right angle. Measured in that is 90 degrees, because a full turn was divided into 360 parts by Babylonian astronomers and we kept their number.
A is a triangle with one right angle in it. That single constraint is doing a surprising amount of work. The three angles of any triangle add up to 180 degrees, so if one of them is 90 degrees, the other two must add up to 90 degrees between them. Both of the others are therefore smaller than a right angle, which makes them .
Two consequences follow, and both matter later. The two acute angles are locked together: fix one and the other is decided. And the side opposite the right angle is always the longest side, because the largest angle in any triangle faces the longest side.
Everything in trigonometry is built on this shape. The functions are defined by picking one of the two acute angles and comparing the lengths of the sides. That is the whole idea, and the next five steps are the consequences of it.
How to read this
A single right triangle. The small square drawn in one corner is the standard mark for a right angle, and it is there rather than an arc because a right angle is the one angle drawn as a square. The two other corners carry arcs, and the two arc angles always sum to 90 degrees. Drag the shape and watch that sum stay fixed while the individual angles move.
- sin 0.500 1/2
- cos 0.866 √3/2
- tan 0.577 1/√3
A solid swatch is the function, a dashed one its reciprocal. Teal is the sine family, amber the cosine family, purple the tangent family.
The small square marks the right angle at C. The two arcs are the acute angles, at B and at A. They read 30.0° and 60.0°, and they add to 90.0° at every shape.
Naming the sides
Name the three sides relative to the angle you chose, and see two of the names swap when you choose the other angle.
Pick one of the two acute angles. It is traditional to call it theta, written as the Greek letter θ. Once you have picked it, the three sides get names, and the names are relative to that choice.
The is the side opposite the right angle, which is the longest side. It never depends on which acute angle you picked, because there is only one right angle to be opposite.
The side is the side across the triangle from theta, the side that does not touch theta at all. The side is the remaining one, the side that runs from theta to the right angle. Adjacent means next to, and this side is next to theta.
Now the point people miss. Choose the other acute angle instead, and opposite and adjacent trade places. The same physical edge is the opposite side for one angle and the adjacent side for the other. The hypotenuse does not move.
This is not a technicality. It is the reason there are pairs of functions rather than single ones. Sine and cosine, tangent and cotangent, secant and cosecant are each the same construction seen from the other acute angle. Page 3 makes that precise under the name .
How to read this
The same triangle, with the three sides labelled and colour coded. The angle marked θ is the one the labels are relative to. The hypotenuse keeps its colour whatever you do, because it is fixed by the right angle. Switch θ to the other acute corner and watch the opposite and adjacent labels swap sides while the hypotenuse label stays put. That swap is the thing to take away from this figure.
- sin 0.500 1/2
- cos 0.866 √3/2
- tan 0.577 1/√3
A solid swatch is the function, a dashed one its reciprocal. Teal is the sine family, amber the cosine family, purple the tangent family.
Teal: the side opposite the marked angle, 0.500. Amber: the side next to it, 0.866. The plain ink line: the hypotenuse, 1.000, which never changes role.
Pythagoras’ theorem
State Pythagoras’ theorem as a fact about areas of squares, not as a formula.
The says that in a right triangle, a² + b² = c², where c is the hypotenuse and a and b are the other two sides.
Written like that it looks like a formula to plug numbers into. It is a statement about area. Draw a square on each side of the triangle, using that side as the square’s edge. The square on side a has area a². The square on side b has area b². The square on the hypotenuse has area c². The theorem says the first two squares, added together, have exactly the same area as the third. Not approximately, exactly, for every right triangle that exists.
The classic demonstration is a rearrangement. Take four copies of the right triangle and place them inside a large square whose side is a + b. Arrange them one way and the uncovered space is two squares, of areas a² and b². Arrange the same four triangles the other way and the uncovered space is a single square of area c². The four triangles cover the same amount both times, so the uncovered areas must be equal. That is the proof, and it needs no algebra at all.
This appears as Proposition 47 of Book I of Euclid’s Elements, around 300 BCE, though the relationship was known to Babylonian scribes over a thousand years earlier. Clay tablet Plimpton 322 lists triples of whole numbers that satisfy it.
Hold on to the area picture rather than the letters. On page 2 this theorem becomes the equation of a circle, and on page 6 it becomes all three of the Pythagorean identities. It is the same fact each time, rescaled.
How to read this
Two figures on this step, side by side where the screen is wide enough. The first is fixed at the 3-4-5 triangle and counts rather than measures: the square on one leg is ruled into 9 teal cells, the square on the other into 16 amber cells, and the square on the hypotenuse is an empty outline holding 25. Press "Pour them in" and the 9 and the 16 move across and fill that outline exactly, with none left over and none missing. With reduced motion turned on there is no button and the big square starts filled. That figure does not follow θ, and it cannot: whole cells only work when the three sides are whole numbers, and 3, 4, 5 is the smallest triangle where they are. A button sets θ to 36.87 degrees if you want the second figure to match it. The second figure is the same three squares at your own angle, with the hypotenuse held at 1. The two leg squares are shaded in two different colours, teal for sin²θ and amber for cos²θ. The square on the hypotenuse is outlined and left unfilled, so the two shaded areas are exactly the ones being added up. The bar underneath is that sum: the split between teal and amber slides as you reshape the triangle, and the total never leaves the tick at 1.
- sin 0.500 1/2
- cos 0.866 √3/2
- tan 0.577 1/√3
A solid swatch is the function, a dashed one its reciprocal. Teal is the sine family, amber the cosine family, purple the tangent family.
Teal, 9 cells, a² = 9. Amber, 16 cells, b² = 16. Outlined, 25 cells, c² = 25. 9 + 16 = 25.
Teal: sin²θ = 0.250. Amber: cos²θ = 0.750. Together 1.000, exactly the width of the track, at every angle. The track is 1.000 wide and the hard rule at its right end is where the total has to reach.
Similar triangles
Scaling a right triangle changes every length but leaves every angle and every ratio of sides unchanged.
Here is the fact that makes trigonometry possible, and it is usually skipped.
Two triangles are if they have the same three angles. Similar triangles are the same shape at different sizes. Euclid proves in Book VI, Proposition 4 of the Elements that equiangular triangles have their corresponding sides in proportion. If one triangle is twice the size of another, then every side is twice as long, without exception.
Now do the division. Take the opposite side divided by the hypotenuse in the small triangle. In the doubled triangle both of those lengths are twice as big, so the division gives 2a divided by 2c, and the 2s cancel. The is identical. This holds for any scale factor and for any pair of sides you choose.
So a ratio of two sides in a right triangle does not depend on how big the triangle is. It depends only on the angle. That is the entire foundation. It is why sin(30 degrees) is a single fixed number, exactly 0.5, rather than something you would have to recompute for every triangle you happen to draw. Everybody who draws a right triangle with a 30 degree angle, at any size, on any paper, gets the same value when they divide the opposite side by the hypotenuse.
This is also why a table of values was worth compiling. If the ratios changed with size, a table would be useless. Because they do not, one table serves every right triangle forever.
How to read this
Four right triangles nested at a shared corner, all with the same angle θ, each a scaled copy of the others. They are drawn in plain ink and get fainter as they get smaller, and the filled one is the size the scale slider is at. Only the largest triangle carries its side lengths. The rest are in the table under it, one row per fixed scale plus a live row for the slider. In that table the three length columns change from row to row, while the three shaded ratio columns print the same three numbers in every row, which is the whole point. The three bars below are those same ratios drawn as lengths, and moving the slider cannot move them, because they are computed from the angle alone. Change θ and all of it moves at once.
- sin 0.500 1/2
- cos 0.866 √3/2
- tan 0.577 1/√3
A solid swatch is the function, a dashed one its reciprocal. Teal is the sine family, amber the cosine family, purple the tangent family.
| scale | opposite | adjacent | hypotenuse | opp / hyp | adj / hyp | opp / adj |
|---|---|---|---|---|---|---|
| 0.50× | 0.250 | 0.433 | 0.500 | 0.500 | 0.866 | 0.577 |
| 1.00× | 0.500 | 0.866 | 1.000 | 0.500 | 0.866 | 0.577 |
| 1.60× | 0.800 | 1.386 | 1.600 | 0.500 | 0.866 | 0.577 |
| 1.25× slider | 0.625 | 1.083 | 1.250 | 0.500 | 0.866 | 0.577 |
identical at every scale
The four triangles are all drawn in plain ink, fainter as they get smaller, and the filled one is the size the slider is at. Only the largest carries its lengths, and the table carries the rest. In the bars, teal is opp / hyp, which is the sine, amber is adj / hyp, the cosine, and purple is opp / adj, the tangent. The tangent track is four units wide with a rule at one, and a value past the end of a track is cut off with an open chevron rather than a dot, because the bar has run out of room and the number has not.
Sine, cosine, tangent
Define sine, cosine and tangent as three of those ratios, and name them.
Three of the possible ratios get the primary names.
of theta is the opposite divided by the hypotenuse. of theta is the adjacent divided by the hypotenuse. of theta is the opposite divided by the adjacent. Written short: sin θ, cos θ, tan θ.
The standard mnemonic is SOH CAH TOA. Sine equals Opposite over Hypotenuse. Cosine equals Adjacent over Hypotenuse. Tangent equals Opposite over Adjacent. It is worth memorising as a keyboard shortcut, but it is not the reason any of it is true. The reason is the previous step: the ratio depends only on the angle.
Two properties fall out immediately from the hypotenuse being the longest side. Sine and cosine both have the hypotenuse on the bottom of the fraction, and the top is always shorter than the bottom, so both of them are always between 0 and 1 for an acute angle. Tangent has no such limit. Its bottom is the adjacent side, which can be very short, so tangent can be as large as you like. That difference shows up as a very visible difference between the graphs on page 4.
There are six ratios in total, not three, because you can also divide each of these the other way up. Those three get their own page.
How to read this
The triangle again, with all three ratios computed live from the side lengths shown. Each ratio displays as a fraction with the actual measured lengths in it, followed by its decimal value, so you can check the division yourself. Drag θ towards 0 and watch sine and tangent fall towards 0 while cosine climbs towards 1. Drag θ towards 90 degrees and watch tangent run away upwards while sine approaches 1 and cosine approaches 0.
- sin 0.500 1/2
- cos 0.866 √3/2
- tan 0.577 1/√3
A solid swatch is the function, a dashed one its reciprocal. Teal is the sine family, amber the cosine family, purple the tangent family.
sin 30° = opposite / hypotenuse = 0.5000 / 1.0000 = 0.500
cos 30° = adjacent / hypotenuse = 0.8660 / 1.0000 = 0.866
tan 30° = opposite / adjacent = 0.5000 / 0.8660 = 0.577
Teal is the side opposite θ, amber the side next to it, and the hypotenuse is the plain ink line. In each row the two sides the ratio divides are drawn at full weight and the side it does not use is a hairline. The colour is on the side of the triangle only: the words keep ordinary text colour. The two lengths carry more decimal places than the answer, so that dividing the numbers as printed really does give the printed result.
Where the names came from
Where the word "sine" came from, and why the ratios were tabulated in the first place.
These ratios were not invented as algebra. They were compiled as tables by astronomers who needed to predict where things in the sky would be. Hipparchus, in the second century BCE, is credited with the first such table, and Ptolemy’s Almagest, around 150 CE, contains a table of chord lengths in steps of half a degree. A is the straight line segment joining two points on a circle, and for a long time the chord, rather than the sine, was the tabulated quantity. Indian mathematicians, including Aryabhata around 500 CE, switched to tabulating the half chord, which is what we now call the sine.
The name is a translation accident. The Sanskrit for that half chord was jya, transliterated into Arabic as jiba and written without vowels as jb. Twelfth century Latin translators read those consonants as the ordinary Arabic word jayb, meaning a bay, a bosom or a fold in a garment, and translated that word rather than the technical one, giving Latin sinus, which is where the English "sine" comes from.
"Cosine" is shorter to explain. It is the sine of the complementary angle, from complementi sinus, and page 3 makes the relationship exact.
How to read this
Nothing to draw here. This step is about a translation and a table, not about a shape, so it carries no figure. The half the story is about does get drawn, on page 3, where the sine appears as a segment on the circle.
Every live number on this page is computed from the angle as you move it, including the ones in the legends. The counting figure is the one exception and is fixed at 3-4-5 on purpose, because whole cells only come out even at a whole number triple. The angle you leave here travels with you to the other five pages of this module.