4. Graphs of tan, cot, sec and csc
by M. Bourne
The graphs of tan x, cot x, sec x and csc x are not as common as the sine and cosine curves that we met earlier in this chapter. However, they do occur in engineering and science problems.
They are interesting curves because they have discontinuities. For certain values of x, the tangent, cotangent, secant and cosecant curves are not defined, and so there is a gap in the curve.
[For more on continuous functions, go to Continuous and Discontinuous Functions in an earlier chapter.]
Recall from Trigonometric Functions, that tan x is defined as:
For some values of x, cos x has value 0. For example, x = π/2 and x = 3π/2. When this happens, we have 0 in the denominator of the fraction and this means it is undefined. So there will be a "gap" in the function at that point. This gap is called a discontinuity.
The same thing happens with cot x, sec x and csc x. For each one, the denominator has value 0 for certain values of x.
The Graph of y = tan x
Sketch y = tan x
Solution
As we saw above,
This means the function will have a discontinuity where cos x = 0. That is, when x takes any of the values:
x = ..., -5π/2, -3π/2, -π/2, π/2, 3π/2, 5π/2, ...
It is very important to keep these values in mind when sketching this graph.
Graph of y = tan x:
Note that there are vertical asymptotes (the gray dotted lines) where the denominator of tan x has value zero.
(An asymptote is a straight line that the curve gets closer and closer to, without actually touching it. You can see more examples of asymptotes in a later chapter, Curve Sketching Using Differentiation.)
Note also that the graph of y = tan x is periodic with period π. This means it repeats itself after each π as we go left to right on the graph.
Flash Interactive - Tangent Curve
You can see an animation of the tangent function in this interactive.
You can change the amount of energy in the wave by changing the radius of the circle with the slider. The units on the horizontal axis are radians (in decimal form). Recall that:
π radians = 3.14 radians = 180°.
So the graph shown is from 0 to 2π. The vertical lines that appear are the asymptotes.
(For more on periodic functions and to see y = tan x using degrees, rather than radians, see Trigonometric Functions of Any Angle.)
The Graph of y = cot x
Recall from Trigonometric Functions that:
We now have to consider when sin x has value zero, because this will determine where our asymptotes should go.
The function will have a discontinuity where sin x = 0, that is, when
x = ..., -3π, -2π, -π, 0, π, 2π, 3π, 4π, 5π, ...
Considering the values of cos x and sin x for different values of x we can sketch the graph of y = cot x as follows.
Flash Interactive - Cotangent curve
You can getter a better understanding of the cotangent curve using this interactive.
Run the animation and observe the features of the graph. Then change the radius of the circle (and run the animation again) to see the effect of different energy levels. The asymptotes are a key feature of this graph.
Note that the cotangent curve, like all trigonometric graphs, is periodic.
The Graph of y = sec x
We could laboriously draw up a table with millions of values, or we could work smart and recall that
We know the sketch for y = cos x and we can easily derive the sketch for y = sec x, by finding the reciprocal of each y value. (That is, finding 1/y for each value of y on the curve y = cos x.)
For example (angles are in radians):
| x | 0 | 1 | 1.55 | 2 | 3 | 4 |
|---|---|---|---|---|---|---|
| y = cos x | 1 | 0.54 | 0.02 | -0.42 | -0.99 | -0.65 |
| 1/y = sec x | 1 | 1.85 | 48.09 | -2.4 | -1.01 | -1.53 |
I included a value close to π/2 so that we could get an idea of what goes on there. When cos x is very small, sec x will be very large.
After applying this concept throughout the range of x-values, we can proceed to sketch the graph of y = sec x.
First, we graph y = cos x and then y = sec x immediately below it. Compare the y-values in each of the 2 graphs and assure yourself they are the reciprocal of each other.
y = cos x

y = sec x

We draw vertical asymptotes at the values where y = sec x is not defined. That is, when x = ..., -5π/2, -3π/2, -π/2, π/2, 3π/2, 5π/2, ...
You will notice that these are the same asymptotes that we drew for y = tan x, which is not surprising, because they both have cos x on the bottom of the fraction.
Flash Interactive - Secant curve
As before, run the animation and observe the features of the graph. Then change the radius of the circle (and run the animation again) to see the effect of different energy levels.
Exercise
Need Graph Paper?
Sketch
y = csc x
Try to sketch it before checking your answer with this cosecant graph interactive.
You may also be interested in:
- What are the frequencies of music notes?
- Graphs of y = a sin(bx+c) and y = acos(bx+c)
- Composite Trigonometric Curves
- Lissajous Figures
The next section in this chapter shows some Applications of Trigonometric Graphs.
Didn't find what you are looking for on this page? Try search:
The IntMath Newsletter
Sign up for the free IntMath Newsletter. Get math study tips, information, news and updates each fortnight. Join thousands of satisfied students, teachers and parents!
Trigonometry Lessons on DVD
Easy to understand trigonometry lessons on DVD. See samples before you commit.
More info: Trigonometry videos
Bookmark this page
Add this page to diigo, Redditt, etc.
Need a break? Play a math game. Well, they all involve math... No, really!










