# 2.7.3: Tangent and Cotangent Graphs

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$ $$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\kernel}{\mathrm{null}\,}$$ $$\newcommand{\range}{\mathrm{range}\,}$$ $$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$ $$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$ $$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$ $$\newcommand{\Span}{\mathrm{span}}$$$$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

Involve asymptotes spaced $$\pi$$ radians apart.

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?

### Tangent and cotangent Graphs

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 =\dfrac{y}{x}$$. So here, $$\tan \theta =\dfrac{\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 $$\dfrac{\pi}{2}$$. The period of the graph is therefore $$\pi$$ radians. The domain is all reals except for the asymptotes at $$\dfrac{\pi}{2},\; \dfrac{3\pi}{2} ,\; −\dfrac{\pi}{2}$$, etc. and the range is all real numbers.

cotangent is the reciprocal of tangent, $$\dfrac{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 {\ldots −2\pi ,−\pi , 0, \pi , 2\pi \ldots}$$ The range is all real numbers.

#### Sketching Graphs

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

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

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

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

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

The constant in front of the tangent function will cause the graph to be stretched. It will also have a phase shift of $$\dfrac{\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$$.

##### Example $$\PageIndex{1}$$

Earlier, you were asked to identify which graphs are tangent and cotangent.

Solution

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

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

##### Example $$\PageIndex{2}$$

Graph $$y=−1+\dfrac{1}{3}\cot 2x$$

Solution

##### Example $$\PageIndex{4}$$

Graph $$f(x)=4+\tan (0.5(x−\pi ))$$

Solution

##### Example $$\PageIndex{5}$$

Graph $$y=−2\tan 2x$$

Solution

### Review

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 \left(\dfrac{x}{2}\right)$$
12. $$k(x)=\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)$$
13. $$m(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)$$
14. $$g(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)−1$$
15. $$h(x)=\cot \left(\dfrac{x}{2}\right)$$
16. $$k(x)=\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)$$
17. $$m(x)=−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)$$
18. $$g(x)=2−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)$$

## Vocabulary

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