Trigonometric Functions

©NicksMathsTutoring
Trigonometric Functions
Trigonometric functions are functions on angles of right-angled triangles.
Trigon meant triangle in Ancient Greece and a metric is a type of measurement (in case you are
wondering where that word came from).
The functions we will look at in this section are the sine (sin), cosine (cos) and tangent (tan)
functions.
Here’s how they work:
Given a right-angled triangle, with angle π‘₯
and sides hypotenuse, opposite and adjacent,
with lengths β„Ž, π‘œπ‘ and a respectively:
sin(π‘₯) =
π‘œπ‘π‘π‘œπ‘ π‘–π‘‘π‘’
π‘œπ‘
=
β„Žπ‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’
β„Ž
cos(π‘₯) =
π‘Žπ‘‘π‘—π‘Žπ‘π‘’π‘›π‘‘
π‘Ž
=
β„Žπ‘¦π‘π‘œπ‘‘π‘’π‘›π‘’π‘ π‘’
β„Ž
tan(π‘₯) =
π‘œπ‘π‘π‘œπ‘ π‘–π‘‘π‘’
π‘œπ‘
=
π‘Žπ‘‘π‘—π‘Žπ‘π‘’π‘›π‘‘
π‘Ž
A good way to remember these are to memorise the following words; SOH, CAH, TOA (where,
for example, S stands for sine, O stands for opposite and H stands for hypotenuse).
Notice that all of these three functions take in a real number, π‘₯ (an angle of a triangle), and spit
out another real number (a length divided by another length).
Now, you may have spotted a potential problem here. The only thing that goes into these
functions, is the angle π‘₯. The thing that comes out is a length divided by another length.
What happens if we have another right angled triangle, with the same angle π‘₯, but different
lengths?
©NicksMathsTutoring
According to our definitions above:
𝑏
𝑒
= sin(π‘₯) =
π‘Ž
𝑑
𝑐
𝑓
= cos(π‘₯) =
π‘Ž
𝑑
𝑏
𝑒
= tan(π‘₯) =
𝑐
𝑓
𝑒
𝑏
Hence, for our definitions to make sense, it must be that 𝑓 = 𝑐 ,
𝑓
𝑑
𝑐
𝑒
𝑏
= π‘Ž and 𝑑 = π‘Ž. So we better
check that this is true. To do so, we’re going to be a little tricky and arrange our two triangles in
the following way.
Adding a few dotted lines gives the outline of a bigger right-angled triangle with corners A, B
and C, side lengths π‘Ž + 𝑑, 𝑒 + 𝑏 and 𝑐 + 𝑓.
1
Notice that the area of triange ABC = 2 × π‘π‘Žπ‘ π‘’ × β„Žπ‘’π‘–π‘”β„Žπ‘‘ =
1
2
(𝑐 + 𝑓)(𝑒 + 𝑏).
©NicksMathsTutoring
We can also calculate the area buy observing that the triangle ABC is made up of two smaller
triangles and a rectangle. Hence, its area is equal to the sum of these three areas:
1
Area of triangle ABC = 2 𝑐𝑑 + 𝑓𝑏 +
1
2
𝑒𝑓.
Thus, since these two areas must be the same (as they are the area of the same shape):
1
1
1
(𝑐 + 𝑓)(𝑒 + 𝑏) = 𝑐𝑏 + 𝑓𝑏 + 𝑒𝑓
2
2
2
 
1
2
𝑐𝑏 +
1
 
2
1
 
2
1
2
𝑐𝑒 +
𝑐𝑒 =
𝑒𝑓 +
1
2
1
2
𝑐𝑒 +
1
2
𝑓𝑏 =
1
2
𝑐𝑏 + 𝑓𝑏 +
1
2
2
(Expanding the left side.)
1
𝑓𝑏 = 𝑓𝑏
1
𝑒𝑓
1
𝑓𝑏
(Subtracting 2 𝑓𝑏 from both sides.)
  𝑐𝑒 = 𝑓𝑏
𝑒
 
𝑓
(Multiplying both sides by 2.)
𝑏
=
(Dividing both sides by f and c.)
𝑐
𝑏
Hence, 𝑐 = tan(π‘₯) =
1
(Subtracting 2 𝑐𝑏 and 2 𝑒𝑓 from both sides.)
𝑒
𝑓
and the tangent function is properly defined.
For sine and cosine, observe that by Pythagorus, we know that 𝑓 = βˆšπ‘‘ 2 βˆ’ 𝑒 2 and
𝑐 = βˆšπ‘Ž2 βˆ’ 𝑏 2 . Thus:
𝑏
βˆšπ‘Ž2 βˆ’ 𝑏 2
  𝑏 2 (𝑑 2 βˆ’ 𝑒 2 ) = 𝑒 2 (π‘Ž2 βˆ’ 𝑏 2 )
=
𝑒
βˆšπ‘‘ 2 βˆ’ 𝑒 2
(Squaring both sides and cross multiplying.)
  𝑏 2 𝑑2 = 𝑒 2 π‘Ž2
(Adding 𝑏 2 𝑒 2 to both sides.)
  𝑏𝑑 = π‘’π‘Ž
𝑏
β€‡π‘Ž =
(Square rooting both sides – how do we know to take the positive root?)
𝑒
𝑑
𝑏
Hence, π‘Ž = sin(π‘₯) =
𝑒
𝑑
and the sine function is properly defined.
It is left as an exercise to show that the cosine function is properly defined.
©NicksMathsTutoring
Everything looks good. Although there is another problem you may have spotted. What exactly
is our domain? What is the set of inputs?
We know that these functions eat real numbers and spit out real numbers. But exactly which
real numbers?
Our picture looks good for 0 < π‘₯ < 90 (degrees), but what do we do for 0 < π‘₯ < 180?
The answer is that we reflect the triangle about a vertical line, give the adjacent side a negative
length instead its positive one and measure the angle from the other side, as shown:
Then the calculations are then almost the same, except the length of the adjacent side is now
negative instead of positive.
Why the heck would our adjacent side all of a sudden have a negative length, though? That
must be confusing.
To find out, let use impose our triangles over our π‘₯ and 𝑦 axis:
©NicksMathsTutoring
If a is the length of the adjacent side of the triangle, when we reflect it about the 𝑦 axis, its
value on the π‘₯ axis becomes –a. (Things may be a little confusing now that the π‘₯ axis is
introduced, but remember that π‘₯ is the value of the angle and is not related to the π‘₯ axis here.)
Notice that the length of the opposite side is still represented by op in the 𝑦 axis, even after the
reflection.
The length of the hypotenuse is still β„Ž as it is unrepresented on the π‘₯ and 𝑦 axis.
Observe from the diagram and the triangle on the right that for 90 < π‘₯ < 180 we have:
sin(π‘₯) =
π‘œπ‘
= sin(180 βˆ’ π‘₯)
β„Ž
cos(π‘₯) =
βˆ’π‘Ž
π‘Ž
= βˆ’ = βˆ’cos(180 βˆ’ π‘₯)
β„Ž
β„Ž
tan(π‘₯) =
π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’tan(180 βˆ’ π‘₯)
βˆ’π‘Ž
π‘Ž
Note that 0 < 180 βˆ’ π‘₯ < 90, so we can calculate the right hand sides by our original
definitions.
Hence, all three of our new functions are defined for real numbers π‘₯ such that 0 < π‘₯ < 90 and
90 < π‘₯ < 180. So far, these are the numbers included in the domains of these functions.
We can extend their domains even further by treating the cases where 180 < π‘₯ < 270 and
270 < π‘₯ < 360. We do this by flipping our triangles upside down, reflecting them in the π‘₯ axis:
©NicksMathsTutoring
For 180 < π‘₯ < 270, measure the angle π‘₯ from the π‘₯ axis as usual to the edge of the triangle
reflected in both axis (shown in red in the diagram).
Notice that for this triangle (triangle 3. In the diagram below), the lengths of the adjacent side
and the opposite side are both negative.
©NicksMathsTutoring
Hence, for 180 < π‘₯ < 270 we have the following results:
sin(π‘₯) =
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’sin(π‘₯ βˆ’ 180)
β„Ž
β„Ž
cos(π‘₯) =
tan(π‘₯) =
βˆ’π‘Ž
π‘Ž
= βˆ’ = βˆ’cos(π‘₯ βˆ’ 180)
β„Ž
β„Ž
βˆ’π‘œπ‘
π‘œπ‘
=
= tan(π‘₯ βˆ’ 180)
βˆ’π‘Ž
π‘Ž
Note once again that 0 < π‘₯ βˆ’ 180 < 90, so we can calculate the right hand sides by our
original definitions.
It is left as an exercise to show that for 270 < π‘₯ < 360 we have:
sin(π‘₯) =
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’sin(360 βˆ’ π‘₯)
β„Ž
β„Ž
cos(π‘₯) =
tan(π‘₯) =
π‘Ž
= cos(360 βˆ’ π‘₯)
β„Ž
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’tan(360 βˆ’ π‘₯)
π‘Ž
π‘Ž
Where 0 < 360 βˆ’ π‘₯ < 90.
When our angle π‘₯ = 0, the triangle is pretty much just a line from 0 to a along the π‘₯ axis, where
a is the length of the adjacent side. So declare op = 0, where op is the length of the opposite
side, as before. Also, the hypotenuse of this β€œtriangle” shares a length with its adjacent side.
Therefore, for π‘₯ = 0 we have:
sin(0) =
π‘œπ‘ 0
= =0
β„Ž
β„Ž
cos(0) =
π‘Ž
π‘Ž
= =1
β„Ž
π‘Ž
tan(0) =
π‘œπ‘
0
= = 0
π‘Ž
π‘Ž
©NicksMathsTutoring
It is left as an exercise to convince yourself that the following definitions are sensible:
For π‘₯ = 90 we have:
sin(90) =
π‘œπ‘ π‘œπ‘
=
= 1
β„Ž
π‘œπ‘
cos(90) =
π‘Ž
0
= =0
β„Ž
β„Ž
sin(180) =
π‘œπ‘ 0
= =0
β„Ž
β„Ž
For π‘₯ = 180 we have:
βˆ’π‘Ž
βˆ’π‘Ž
=
= βˆ’1
β„Ž
π‘Ž
cos(180) =
tan(180) =
π‘œπ‘
0
=
= 0
βˆ’π‘Ž
βˆ’π‘Ž
For π‘₯ = 270 we have:
sin(270) =
βˆ’π‘œπ‘ βˆ’π‘œπ‘
=
= βˆ’1
β„Ž
π‘œπ‘
cos(270) =
π‘Ž
0
=
=0
β„Ž
π‘œπ‘
For π‘₯ = 360 we have:
sin(360) =
π‘œπ‘ 0
= = 0 = sin(0)
β„Ž
β„Ž
cos(360) =
π‘Ž
π‘Ž
= = 1 = cos(0)
β„Ž
π‘Ž
tan(360) =
π‘œπ‘
0
= = 0 = tan(0)
π‘Ž
π‘Ž
©NicksMathsTutoring
Did I miss something? What about tan(90) and tan(270)? That’s a good question, what on
earth are those equal to?
When our angle π‘₯ is at 90 degrees or 270 degrees, our adjacent length π‘Ž = 0.
Thus,
tan(90) =
π‘œπ‘
π‘Ž
=
π‘œπ‘
0
= ? ? ? (π‘€π‘Žπ‘‘β„Ž π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿ) =
βˆ’π‘œπ‘
0
= tan(270).
In other words, there are actually no output values for the tangent function for the inputs
π‘₯ = 90 and π‘₯ = 270.
This will become clearer when we draw the graph of the tangent function in the next section.
We have now defined the sine, cosine and tangent functions for the real numbers π‘₯ such that
0 ≀ π‘₯ ≀ 360. We will now define them on all real numbers β‰₯ 0.
Did you notice how sin(360) = sin(0) , cos(360) = cos(0) and tan(360) = tan(0)?
This is because once we have gone around 360 degrees, we have travelled in a circle, and we
are back where we started.
Hence, everything just repeats itself:
Hence, for 0 ≀ π‘₯ ≀ 360, we have:
sin(π‘₯) = sin(360 + π‘₯) = sin(2 × 360 + π‘₯) = sin(3 × 360 + π‘₯) = β‹―
cos(π‘₯) = cos(360 + π‘₯) = cos(2 × 360 + π‘₯) = cos(3 × 360 + π‘₯) = β‹―
tan(π‘₯) = tan(360 + π‘₯) = tan(2 × 360 + π‘₯) = tan(3 × 360 + π‘₯) = β‹―
This defines our three functions for all real numbers π‘₯ β‰₯ 0.
©NicksMathsTutoring
Lastly, we define our three trigonometric functions for negative real number inputs, π‘₯ < 0.
To do so, let us put a meaning towards a β€œnegative angle.” After-all, the real numbers that we
are putting into our trigonometric functions are angles of triangles.
For 0 < π‘₯ < 90 it is evident from the above diagram that the following hold:
sin(βˆ’π‘₯) =
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’sin(π‘₯)
β„Ž
β„Ž
cos(βˆ’π‘₯) =
tan(βˆ’π‘₯) =
π‘Ž
= π‘π‘œπ‘ (π‘₯)
β„Ž
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’tan(π‘₯)
π‘Ž
π‘Ž
And, in fact, I’ll leave it as an exercise to show that for all π‘₯ β‰₯ 0 the following hold:
sin(βˆ’π‘₯) = βˆ’sin(π‘₯)
cos(βˆ’π‘₯) = π‘π‘œπ‘ (π‘₯)
tan(βˆ’π‘₯) = βˆ’tan(π‘₯)
(Of course the values of π‘₯ where tangent is undefined remain undefined.)
©NicksMathsTutoring
Exercises
1. Find the unknown lengths in the following triangles:
2. Show that tan(45) = 1.
Hint: A right-angled isosceles triangle has two equal angles.
3. Show that sin(45) =
1
.
√2
Hint: Again consider a right-angled, isosceles triangle and use Pythagoras theorem.
4. Show that the cosine function is properly defined on 0 < π‘₯ < 90.
5. Show that cos(45) =
1
.
√2
©NicksMathsTutoring
6. Show that for 270 < π‘₯ < 360 we have:
sin(π‘₯) =
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’sin(360 βˆ’ π‘₯)
β„Ž
β„Ž
cos(π‘₯) =
tan(π‘₯) =
π‘Ž
= cos(360 βˆ’ π‘₯)
β„Ž
βˆ’π‘œπ‘
π‘œπ‘
= βˆ’
= βˆ’tan(360 βˆ’ π‘₯)
π‘Ž
π‘Ž
7. For π‘₯ = 90, 180, 270 and 360, deduce the values of sin(π‘₯) , cos(π‘₯) and tan(π‘₯).
8. For the following triangles, find the values of the unknown sides as functions in terms of
the angle π‘₯:
9. Show that for all real numbers 𝒙 (except isolated values for tangent) the following hold:
sin(π‘₯) = sin(180 βˆ’ π‘₯), cos(π‘₯) = βˆ’cos(180 βˆ’ π‘₯), tan(π‘₯) = tan(π‘₯ βˆ’ 180).
10. Show that 𝑠𝑖𝑛2 (π‘₯) + π‘π‘œπ‘  2 (π‘₯) = 1
(Here, for example, 𝑠𝑖𝑛2 (π‘₯) = (sin(π‘₯))2 )
Hint: Draw a triangle with hypotenuse 1 and use Pythagoras’ Theorem.