Processing math: 100%

Trigonometry Without Pain

Table of Contents


Introduction to Trigonometry

 Back to top

Trigonometry is one of those subjects that will either bore you to tears, drive you crazy, or fascinate you. Either way, the bottom line is that trigonometry was discovered because it's useful, and has a purpose. And that means everyone can understand it if they start at the beginning and work their way through it.

So, the beginning of trigonometry starts with the intersection of 2 lines, and in particular, when those 2 lines cross at right angles:

The right angle is very special, because when lines cross at right angles, the lines are completely independent. That is, you can walk along either line and get nowhere along the other line. Try crossing 2 lines at an angle other than a right angle, and if you walk along one of the lines, you will slowly walk along the other. That's what it means to be independent.

Now, if you connect the two open ends of the lines, that connection is called the "hypotenuse", which comes from the Greek word "stretch":

Using more Greek letters, we define the angle θ like so:
We could have defined θ using the angle between the hypotenuse and the vertical line, but it doesn't matter, as we will see later.

Trigonometry, and all of the formulae that drive you crazy (or inspire you) involve understanding the relationship between all of the lengths, and the angle θ:


Figure 1. Right triangle.

So we have 3 lengths, and 1 angle, so why don't we care about the other 2 angles inside the triangle? To understand this, first let's discuss how we measure angles, and to do that we first have to consider the circle. In the picture below, we have 2 lines that intersect at right angles (black), and a ray that points from the center outward (blue). The ray makes an angle θ with the horizontal, and when you go around one full turn, you get back to the same angle that you started with, as in the figure below:
So we could define the angle θ as being between 2 limits, e.g. 0 and 1, or we can use some other measure. Thanks to the early Mesopotamian mathematicians, who used a number system in base 60, instead of 0θ1 we say that 0θ360 degrees, where θ=0 is the same angle as θ=360, where the symbol means "degrees". Given this measure, we now can see that a right angle is 360/4=90, and halfway around is 180.

Now back to the right triangle, and the question about why we are only considering one of the 3 internal angles (and the 3 sides): the reason is that we already know the right angle, which is 90, and in fact the sum of all the angles is equal to 180. For the proof, let's label the other angle between the hypotenuse and the vertical line as ϕ, and then make a copy of the triangle but flip it over so that the vertical line is to the left, and the horizontal line is on the top. And then attach the 2 triangles at the hypotenuse, as in the following figure:

Since we've flipped the triangle over, the 2 angles θ and ϕ are the same on both sides. Now, since the figure becomes a rectangle, then all of the interior angles of a rectangle are right angles (90), and since there are 4 of them, they sum to 360. But since the rectangle is made of 2 identical triangles, then the sum of the interior angles of the triangle is 180, which means θ+ϕ+90=180 or θ+ϕ=90. So if we know θ, we know ϕ, they are not independent, and that's why we are only worrying about θ here. (Or as they say in geometry: QED).

Now to make things even more complicated, let's consider any angle θ that defines an arc of a circle as in the figure below, where r is the radius of the circle and s is the length of the arc:

What is the ratio of r/s? Well, one thing we know from the ancients is that if θ=360, then the ratio of the circumference s (the arc length of the complete circle) to the diameter d=2r is s/2r=π, or s\r=2π where π=3.14159.... This implies that we can measure angles in units (called "radians") such that 360=2π radians or 180=π, which is how we convert from degrees to radians. And this also says that the ratio of the arc length to the radius tells you the value of the angle, but only if you measure it in radians!

So now we know how to measure angles, but we want to go back to trigonometry, which starts with right triangles. For our triangle in Figure 1, we want to investigate the relationship between the 3 sides and the interior angle θ. From Pythagoras, we have the Pythagorean theorem, which states that c2=a2+b2 which means that in fact we only have 2 independent lengths.

So now we are ready to learn about trigonometry and the trig functions. Since only 2 of the 3 lengths are independent, we can ask about the relationship between any two lengths. So let's keep a constant, let b vary, and require that the triangle stay a right triangle, which forces a2+b2=c2 by the Pythagorean theorem. In the figure below you can see two examples. Notice that as b gets larger, so does θ. The question is: how does θ change when you change b?


Figure 1.

To understand this, let's take the ratios a/c and b/c. If we use the Pythagorean theorem, we can easily show that (ac)2+(bc)2=1 And clearly, as the ratios change, so will the angle θ change. So we can define these ratios in the following way. (Note that the word "sine" is named after the Greek word "sine" which means "curve".)

In the figure below, we plot the ratios (sine and cosine) as a function of angle, with sine in red and cosine in blue.

Figure 2.

The plot shows you sin(θ) on the vertical axis in blue, and cos(θ) on the vertical axis in red, vs θ on the horizontal, where θ is measured in radians. When θ=0, that corresponds to a very small ratio of b/c, like the left triangle in Figure 1 above. In that case, when the opposite/hypotenuse is small, the adjacent/hypotenuse is large, as in the the right triangle in Figure 1. Since the adjacent/hypotenuse is the cosine, then for θ=0 we expect the cosine go be at 1, as it is in the red curve above. You can make similar arguments for the case of θ=90=π/2, which has b/c close to 1, so opposite/hypotenuse (sine) goes to 1 and adjacent/hypotenuse (cosing) goes to 0.

What you can also see from this diagram is that cos(π/2θ)=sin(θ) (and by the same argument, sin(π/2θ)=cos(θ)). More on that below.

So now we know how the sine and cosine are defined, and how they relate to the lengths of the adjacent and opposite sides of a triangle (adjacent and opposite to the angle θ). But we've only defined these 2 functions for the situation where θ is between 0 and π/2. What about the other 3/4 of a circle: π/2θ2π? To extend the definitions over the entire range of θ, we introduce the concept of "the unit circle", as in the figure below:

We define the angle θ in the same way as above: the angle that a ray with one end at the origin makes with the horizontal. In this figure, the circle has a radius r and is centered at the origin, so that no matter what θ is, the ray touches the circle (circles are defined as the locus of all points that have a constant distance from some fixed origin). In this circle, we can choose the length r so we choose r=1 to make things easier below. The point p is the intersection of the ray with the circle. Notice that the ray forms a right triangle with adjacent side x (instead of a) and opposite side y (instead of b). The definition of the sine and cosine still hold here, however instead of saying that the sine is the ratio of opposite/hypotenuse, we say that the sine tells you the value of the position along the horizontal when you draw a perpendicular line connecting point p to the horizontal line. So in this figure, x is a coordinate along the horizontal axis, and can be positive (x to the right of the vertical line) or negative (x to the left). And similarly for y, which is the coordinate along the vertical of the perpendicular line from p to the vertical axis. Note that sinθ=y/r (opposite/hypotenuse) and cosθ=x/r (adjacent/hypotenuse), but since r=1, we can write sinθ=y and cosθ=x. Also, in green we have labeled the 4 quadrants of the circle, starting in the upper right quadrant and increasing as we go around counterclockwise. This will be used below.

Now we can define sine and cosine by saying that no matter where θ is on the circle, if we drop perpendicular lines from the point p to the vertical and horizontal axes, we will have the value for the sinθ and cosθ, anywhere on the circle. Cute eh? In the figure below, you can click on the solid red circle and drag it around the blue (unit) circle and see how θ changes, and the projected x and y coordinates (given by sinθ and cosθ) move.

θ=45
sinθ=0.707
cosθ=0.707

We now have a way of defining the sine and cosine functions over the full cycle 0 to 2π (0 to 360): they represent the coordinates of points on the unit circle.

Notice that all 4 quadrants of the unit circle are pretty much equivalent, with the only difference being that some are reflections of others. For instance, quadrant I (where x and y are both positive) is similar to quadrant II (where x is negative but y is still positive), but flipped over the vertical axis. So we would expect that the graph of sinθ between 90 and 180 is similar to the graph of sinθ between 0 and 90, except that in the latter as θ increases, sinθ increases over the interval and in the former, it decreases. So it should be relatively easy to construct the curve of sinθ vs θ over the entire interval using the curve in quadrant I as in Figure 2. above. In the figure below, we see the sine curve over the entire range of θ between 0 and 2π radians. Notice the symmetry in the 4 quadrants: in quadrant I, sinθ, the y coordinate, increases from 0 to 1 whereas in quadrant II, the y coordinate decreases from 1 to 0. In quadrant III, the y coordinate decreases from 0 to -1 and in quadrant IV, it increases from -1 to 0. So we could use the curve in Figure 2 and draw the entire sine curve over the full interval 0θ2π, as in the figure below:

Similarly, we can draw the full cosine curve in the same interval:

One last note: above, we showed that since the interior angles of a right triangle add up to 180, that means θ+ϕ=90, and that means that sin(π/2θ)=cos(θ). Graphically, this means that if you take the sine curve and move it to the left by π/2, you will get the cosine curve. And voila, that's what the 2 curves above show!


More Trig Functions

 Back to top

Now that we have the sine and cosine functions as the ratios of the opposite and adjacent lengths to the hypotenuse, we can form the remaining trig functions. The table below has all 6 trig functions:

Sine   sinθ     opposite/hypotenuse  
Cosine   cosθ     adjacent/hypotenuse  
Tangent   tanθ     sinθ/cosθ     opposite/adjacent  
Cotangent   cotθ     1/tanθ     adjacent/opposite  
Secant   secθ     1/cosθ     hypotenuse/adjacent  
Cosecant   cscθ     1/sinθ     hypotenuse/opposite  


Properties of Trig Functions

 Back to top

Now that we have all of the 6 trig functions, we can explore properties. For instance, the Pythagorean theorem relates the 3 sides of the triangle a, b, and c (where c is the hypotenuse): a2+b2=c2 This also tells us that sin2θ+cos2θ=1 and that this relationship is true no matter what value θ takes on. Note that sin2θ means the same as (sinθ)2, and not sinθ2.

If we take equation 1 and divide each side by cos2θ, we get: tan2θ+1=sec2θ If we take equation 1 and divide by sin2θ, we get: 1+cot2θ=csc2θ Another useful property of the sine and cosine has to do with their "symmetry". That is, what is sin(θ) and cos(θ). There are many ways to think of how to do this, but one useful way to think of this is to realize that a negative angle is the same as 360 minus that angle (e.g. 90 is the same as 270). And since we now know that the sin and cos are the same things as the y and x coordinates of the point on the unit circle respectively, if you go to negative angle then the y coordinate changes sign and the x coordinate stays the same, as in the figure below:

So this says that we have the relations: sin(θ)=sin(θ) cos(θ)=+cos(θ)


Sine and Cosine of Sums of Angles

 Back to top

We often want to take the sine or cosine of a sum of angles, e.g. sin(θ+ϕ) and cos(θ+ϕ). Below is a nice way to derive formulae on how to do calculate the sine and cosine of sums using the sine and cosines of the individual angles.

We start with the figure below, which sets up the proof. We want to calculate sin(θ+ϕ), so we draw a rectangle (with 4 right angles), and inscribe a right triangle inside the square in blue. The hypotenuse of that triangle is set to 1 by fiat:

The angle α is also shown, but since α, θ, and ϕ form a right triangle, we know that α=90θϕ. And since α forms one of the angles of the right triangle that has the blue hypotenuse and the horizontal bottom of the rectangle as a base, we also know that the other angle of that triangle is θ+ϕ, as in the figure below:
Using the fact that the hypotenuse is set to 1, and the definitions of the sine (opposite/hypotenuse) and cosine (adjacent/hypotenuse), we can then label the lengths of the 2 sides of the inscribed triangle as in the next figure:
Now let's calculate sin(θ+ϕ), which is the length of the bottom horizontal leg of the rectangle, as labeled in the figure below. Also, we've labeled the interior angle β, which has a value β=90ϕ and since β and the right angle of the inscribed triangle and the interior angle (marked ϕ at the top) add up to 180, that means that the angle ϕ at the top is the same angle ϕ in the bottom left corner. And we've labeled the two legs of the upper side of the rectangle as a and b.
Now we are ready to calculate the two legs of the upper side of the rectangle. The length a is related to the angle ϕ by the ratio of opposite to hypotenuse, so a=sinϕcosθ, and the length b is related to the angle ϕ by the ratio of adjacent to hypotenuse, so b=cosϕsinθ. From the equivalence of the upper to the lower rectangle side, we have sin(θ+ϕ)=a+b or sin(θ+ϕ)=sinϕcosθ+sinϕcosθ Using similar logic on the two vertical sides of the triangle, we can equate the left side - cosϕcosθ - to the sum of the two legs on the right side - sinϕsinθ+cos(θ+ϕ) - to get the relation:\ cos(θ+ϕ)=cosϕcosθsinϕsinθ To calculate sin(θϕ) and cos(θϕ) we can use equations 2 and 3 and subsitute ϕ\-ϕ to get: sin(θϕ)=sinϕcosθsinϕcosθ and cos(θϕ)=cosϕcosθ+sinϕsinθ So the final equations are: sin(θ±ϕ)=sinϕcosθ±sinϕcosθ and cos(θ±ϕ)=cosϕcosθsinϕsinθ Equations 4 and 5 are used quite a lot in trigonometry! For instance, we can set ϕ=θ and use eqation 4 (the positive one) to calculate: sin2θ=2sinθcosθ and cos2θ=cos2θsin2θ If we combine equations 7 and 1, we get cos2θ=1+cos2θ2 And since cos2θ+sin2θ=1, we have sin2θ=1cos2θ2

Back to top