2.7.3: Tangent and Cotangent Graphs
- Page ID
- 14939
\( \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}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)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\).

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:
-
Figure \(\PageIndex{21}\) -
Figure \(\PageIndex{22}\) -
Figure \(\PageIndex{23}\) -
Figure \(\PageIndex{24}\) -
Figure \(\PageIndex{25}\) -
Figure \(\PageIndex{26}\)
The tangent and cotangent graphs are the third and sixth graphs.
Graph \(y=−1+\dfrac{1}{3}\cot 2x\)
Solution

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

Graph \(y=−2\tan 2x\)
Solution

Review
Graph each of the following functions
- \(f(x)=\tan (x)\)
- \(h(x)=\tan (2x)\)
- \(k(x)=\tan (2x+\pi )\)
- \(m(x)=−\tan (2x+\pi )\)
- \(g(x)=−\tan (2x+\pi )+3\)
- \(f(x)=\cot (x)\)
- \(h(x)=\cot (2x)\)
- \(k(x)=\cot (2x+\pi )\)
- \(m(x)=3\cot (2x+\pi )\)
- \(g(x)=−2+3\cot (2x+\pi )\)
- \(h(x)=\tan \left(\dfrac{x}{2}\right)\)
- \(k(x)=\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)\)
- \(m(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)\)
- \(g(x)=3\tan \left(\dfrac{x}{2}+\dfrac{\pi}{4} \right)−1\)
- \(h(x)=\cot \left(\dfrac{x}{2}\right)\)
- \(k(x)=\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)
- \(m(x)=−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)
- \(g(x)=2−3\cot \left(\dfrac{x}{2}+\dfrac{3\pi}{2} \right)\)
Review (Answers)
To see the Review answers, open this PDF file and look for section 2.11.
Vocabulary
Term | Definition |
---|---|
Circular Function | A circular function is a function measured by examining the angle of rotation around the coordinate plane. |
Additional Resources
Video: Animation: Graphing the Tangent Function Using the Unit Circle
Practice: Tangent and cotangent Graphs