<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />
Skip Navigation
You are viewing an older version of this Concept. Go to the latest version.

Tangent and Cotangent Graphs

Involve asymptotes spaced pi radians apart.

Atoms Practice
Practice Now
Tangent and Cotangent Graphs

What if your instructor gave you a set of graphs like these:

and asked you to identify which were the graphs of the tangent and cotangent functions?

After completing this Concept, you'll be able to identify the graphs of tangent and cotangent.

Watch This

James Sousa Animation: Graphing the Tangent Function Using the Unit Circle


The name of the tangent function comes from the tangent line of a circle. This is a line that is perpendicular to the radius at a point on the circle so that the line touches the circle at exactly one point.

If we extend angle \theta through the unit circle so that it intersects with the tangent line, \tan \theta will be equal to the length of the red segment. Below, this segment is labeled the "tangent segment".

Why? The dashed segment is 1 because it is the radius of the unit circle. Recall that in general, \tan \theta = \frac{y}{x} . So here, \tan \theta = \frac{\text{tangent segment}}{1}=\text{tangent segment} .

As the value of \theta increases, the value of \tan \theta changes. As we rotate through the first quadrant, the value of  \tan \theta will increase very slowly at first and then more rapidly.

As we get very close to the y- axis the segment gets infinitely large, until when the angle really hits 90^\circ , at which point the extension of the angle and the tangent line will actually be parallel and therefore never intersect.

This means there is no finite length of the tangent segment, or the tangent segment is infinitely large .

Let’s translate this portion of the graph onto the coordinate plane. Plot (\theta, \tan \theta) as (x, y) .

In fact as we get infinitely close to 90^\circ , the tangent value increases without bound, until when we actually reach 90^\circ , at which point the tangent is undefined. Recall there are some angles ( 90^\circ and 270^\circ , for example) for which the tangent is not defined. Therefore, at these points, there are going to be vertical asymptotes.

Rotating past 90^\circ , the intersection of the extension of the angle and the tangent line is actually below the x- axis. This fits nicely with what we know about the tangent for a 2^{nd} quadrant angle being negative. At first, it will have very large negative values, but as the angle rotates, the segment gets shorter, reaches 0, then crosses back into the positive numbers as the angle enters the 3^{rd} quadrant. The segment will again get infinitely large as it approaches 270^\circ . After being undefined at 270^\circ , the angle crosses into the 4^{th} quadrant and once again changes from being infinitely negative, to approaching zero as we complete a full rotation.

The graph y=\tan x over several rotations would look like this:

Notice the x- axis is measured in radians. Our asymptotes occur every \pi radians, starting at \frac{\pi}{2} . The period of the graph is therefore \pi radians. The domain is all reals except for the asymptotes at \frac{\pi}{2}, \frac{3\pi}{2}, -\frac{\pi}{2}, etc. and the range is all real numbers.

Cotangent is the reciprocal of tangent, \frac{x}{y} , so it would make sense that where ever the tangent had an asymptote, now the cotangent will be zero. The opposite of this is also true. When the tangent is zero, now the cotangent will have an asymptote. The shape of the curve is generally the same, so the graph looks like this:

When you overlap the two functions, notice that the graphs consistently intersect at 1 and -1. These are the angles that have 45^\circ as reference angles, which always have tangents and cotangents equal to 1 or -1. It makes sense that 1 and -1 are the only values for which a function and it’s reciprocal are the same. Keep this in mind as we look at cosecant and secant compared to their reciprocals of sine and cosine.

The cotangent function has a domain of all real angles except multiples of \pi \left \{\ldots -2\pi, -\pi, 0, \pi, 2\pi \ldots \right \} The range is all real numbers.

Example A

Sketch the graph of g(x)=-2+ \cot \frac{1}{3}x over the interval [0, 6\pi] .

Solution: Starting with y=\cot x , g(x) would be shifted down two and frequency is \frac{1}{3} , which means the period would be 3\pi , instead of \pi . So, in our interval of [0, 6\pi] there would be two complete repetitions. The red graph is y=\cot x .

Example B

Sketch the graph of y=-3 \tan \left(x-\frac{\pi}{4}\right) over the interval [-\pi, 2\pi] .

Solution: If you compare this graph to y=\tan x , it will be stretched and flipped. It will also have a phase shift of \frac{\pi}{4} to the right. The red graph is y=\tan x .

Example C

Sketch the graph of h(x)=4 \tan \left(x+\frac{\pi}{2}\right) + 3 over the interval [0, 2\pi] .

Solution: The constant in front of the tangent function will cause the graph to be stretched. It will also have a phase shift of \frac{\pi}{2} to the left. Finally, the graph will be shifted up three. Here you can see both graphs, where the red graph is y=\tan x .


Circular Function: A circular function is a function that is measured by examining the angle of rotation around the coordinate plane.

Guided Practice

1. Graph y=-1+\frac{1}{3} \cot 2x .

2. Graph f(x)=4+ \tan (0.5 (x - \pi)) .

3. Graph y=-2 \tan 2x .





Concept Problem Solution

As you can tell after completing this Concept, when presented with the graphs:

1 2 3

4 5 6

The tangent and cotangent graphs are the third and sixth graphs.


Graph each of the following functions.

  1. f(x)=\tan(x) .
  2. h(x)=\tan(2x) .
  3. k(x)=\tan(2x+\pi) .
  4. m(x)=-\tan(2x+\pi) .
  5. g(x)=-\tan(2x+\pi)+3 .
  6. f(x)=\cot(x) .
  7. h(x)=\cot(2x) .
  8. k(x)=\cot(2x+\pi) .
  9. m(x)=3\cot(2x+\pi) .
  10. g(x)=-2+3\cot(2x+\pi) .
  11. h(x)=\tan(\frac{x}{2}) .
  12. k(x)=\tan(\frac{x}{2}+\frac{\pi}{4}) .
  13. m(x)=3\tan(\frac{x}{2}+\frac{\pi}{4}) .
  14. g(x)=3\tan(\frac{x}{2}+\frac{\pi}{4})-1 .
  15. h(x)=\cot(\frac{x}{2}) .
  16. k(x)=\cot(\frac{x}{2}+\frac{3\pi}{2}) .
  17. m(x)=-3\cot(\frac{x}{2}+\frac{3\pi}{2}) .
  18. g(x)=2-3\cot(\frac{x}{2}+\frac{3\pi}{2}) .


Circular Function

Circular Function

A circular function is a function measured by examining the angle of rotation around the coordinate plane.

Image Attributions

Explore More

Sign in to explore more, including practice questions and solutions for Tangent and Cotangent Graphs.


Please wait...
Please wait...

Original text