6.2: Graphs of the Other Trigonometric Functions
 Page ID
 31125
\( \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}}} \)
Skills to Develop
 Analyze the graph of \(y=\tan x\).
 Graph variations of \(y=\tan x\).
 Analyze the graphs of \(y=\sec x\) and \(y=\csc x\).
 Graph variations of \(y=\sec x\) and \(y=\csc x\).
 Analyze the graph of \(y=\cot x\).
 Graph variations of \(y=\cot x\).
We know the tangent function can be used to find distances, such as the height of a building, mountain, or flagpole. But what if we want to measure repeated occurrences of distance? Imagine, for example, a police car parked next to a warehouse. The rotating light from the police car would travel across the wall of the warehouse in regular intervals. If the input is time, the output would be the distance the beam of light travels. The beam of light would repeat the distance at regular intervals. The tangent function can be used to approximate this distance. Asymptotes would be needed to illustrate the repeated cycles when the beam runs parallel to the wall because, seemingly, the beam of light could appear to extend forever. The graph of the tangent function would clearly illustrate the repeated intervals. In this section, we will explore the graphs of the tangent and other trigonometric functions.
Analyzing the Graph of \(y =\tan x\)
We will begin with the graph of the tangent function, plotting points as we did for the sine and cosine functions. Recall that
\[\tan \, x=\dfrac{\sin \, x}{\cos \, x}. \nonumber\]
The period of the tangent function is \(\pi\) because the graph repeats itself on intervals of \(k\pi\) where \(k\) is a constant. If we graph the tangent function on \(−\frac{\pi}{2}\) to \(\frac{\pi}{2}\), we can see the behavior of the graph on one complete cycle. If we look at any larger interval, we will see that the characteristics of the graph repeat.
We can determine whether tangent is an odd or even function by using the definition of tangent.
\[\begin{align*} \tan(x)&= \dfrac{\sin(x)}{\cos(x)} \qquad \text{Definition of tangent}\\ &= \dfrac{\sin \, x}{\cos \, x} \qquad \text{Sine is an odd function, cosine is even}\\ &= \dfrac{\sin \, x}{\cos \, x} \qquad \text{The quotient of an odd and an even function is odd}\\ &= \tan \, x \qquad \text{Definition of tangent} \end{align*}\]
Therefore, tangent is an odd function. We can further analyze the graphical behavior of the tangent function by looking at values for some of the special angles, as listed in Table \(\PageIndex{1}\).
\(x\)  \(−\dfrac{\pi}{2}\)  \(−\dfrac{\pi}{3}\)  \(−\dfrac{\pi}{4}\)  \(−\dfrac{\pi}{6}\)  0  \(\dfrac{\pi}{6}\)  \(\dfrac{\pi}{4}\)  \(\dfrac{\pi}{3}\)  \(\dfrac{\pi}{2}\) 

\(\tan x\)  undefined  \(\sqrt{3}\)  \(–1\)  \(\dfrac{\sqrt{3}}{3}\)  0  \(\dfrac{\sqrt{3}}{3}\)  1  \(\sqrt{3}\)  undefined 
These points will help us draw our graph, but we need to determine how the graph behaves where it is undefined. If we look more closely at values when \(\frac{\pi}{3}<x<\frac{\pi}{2}\), we can use a table to look for a trend. Because \(\frac{\pi}{3}≈1.05\) and \(\frac{\pi}{2}≈1.57\), we will evaluate \(x\) at radian measures \(1.05<x<1.57\) as shown in Table \(\PageIndex{2}\).
\(x\)  1.3  1.5  1.55  1.56 

\(\tan x\)  3.6  14.1  48.1  92.6 
As \(x\) approaches \(\dfrac{\pi}{2}\), the outputs of the function get larger and larger. Because \(y=\tan \, x\) is an odd function, we see the corresponding table of negative values in Table \(\PageIndex{3}\).
\(x\)  −1.3  −1.5  −1.55  −1.56 

\(\tan x\)  −3.6  −14.1  −48.1  −92.6 
We can see that, as \(x\) approaches \(−\frac{\pi}{2}\), the outputs get smaller and smaller. Remember that there are some values of \(x\) for which \(\cos \, x=0\). For example, \(\cos \left (\frac{\pi}{2} \right)=0\) and \(\cos \left (\frac{3\pi}{2} \right )=0\). At these values, the tangent function is undefined, so the graph of \(y=\tan \, x\) has discontinuities at \(x=\frac{\pi}{2}\) and \(\frac{3\pi}{2}\). At these values, the graph of the tangent has vertical asymptotes. Figure \(\PageIndex{1}\) represents the graph of \(y=\tan \, x\). The tangent is positive from \(0\) to \(\frac{\pi}{2}\) and from \(\pi\) to \(\frac{3\pi}{2}\), corresponding to quadrants I and III of the unit circle.
Figure \(\PageIndex{1}\): Graph of the tangent function
Graphing Variations of \(y = \tan \, x\)
As with the sine and cosine functions, the tangent function can be described by a general equation.
\[y=A\tan(Bx) \nonumber\]
We can identify horizontal and vertical stretches and compressions using values of \(A\) and \(B\). The horizontal stretch can typically be determined from the period of the graph. With tangent graphs, it is often necessary to determine a vertical stretch using a point on the graph.
Because there are no maximum or minimum values of a tangent function, the term amplitude cannot be interpreted as it is for the sine and cosine functions. Instead, we will use the phrase stretching/compressing factor when referring to the constant \(A\).
FEATURES OF THE GRAPH OF \(y = A \tan(Bx)\)
 The stretching factor is \(A\).
 The period is \(P=\dfrac{\pi}{B}\).
 The domain is all real numbers \(x\),where \(x≠\dfrac{\pi}{2 B }+\dfrac{π}{ B }k\) such that \(k\) is an integer.
 The range is \((−\infty,\infty)\).
 The asymptotes occur at \(x=\dfrac{\pi}{2 B }+\dfrac{π}{ B }k\) where \(k\) is an integer.
 \(y=A\tan(Bx)\) is an odd function.
Graphing One Period of a Stretched or Compressed Tangent Function
We can use what we know about the properties of the tangent function to quickly sketch a graph of any stretched and/or compressed tangent function of the form \(f(x)=A\tan(Bx)\). We focus on a single period of the function including the origin, because the periodic property enables us to extend the graph to the rest of the function’s domain if we wish. Our limited domain is then the interval \(\left (−\dfrac{P}{2},\dfrac{P}{2} \right )\) and the graph has vertical asymptotes at \(\pm \dfrac{P}{2}\) where \(P=\dfrac{\pi}{B}\). On \(\left (−\dfrac{\pi}{2},\dfrac{\pi}{2} \right )\), the graph will come up from the left asymptote at \(x=−\dfrac{\pi}{2}\), cross through the origin, and continue to increase as it approaches the right asymptote at \(x=\dfrac{\pi}{2}\). To make the function approach the asymptotes at the correct rate, we also need to set the vertical scale by actually evaluating the function for at least one point that the graph will pass through. For example, we can use
\[f \left (\dfrac{P}{4} \right )=A\tan \left (B\dfrac{P}{4} \right )=A\tan \left (B\dfrac{\pi}{4B} \right )=A \nonumber\]
because \(\tan \left (\dfrac{\pi}{4} \right )=1\).
Howto: Given the function \(f(x)=A \tan(Bx)\), graph one period.
 Identify the stretching factor, \( A \).
 Identify B and determine the period, \(P=\dfrac{\pi}{ B }\).
 Draw vertical asymptotes at \(x=−\dfrac{P}{2}\) and \(x=\dfrac{P}{2}\).
 For \(A>0\), the graph approaches the left asymptote at negative output values and the right asymptote at positive output values (reverse for \(A<0\)).
 Plot reference points at \(\left (\dfrac{P}{4},A \right )\), \((0,0)\), and \(\left (−\dfrac{P}{4},−A \right )\), and draw the graph through these points.
Example \(\PageIndex{1}\): Sketching a Compressed Tangent
Sketch a graph of one period of the function \(y=0.5\tan \left (\dfrac{\pi}{2}x \right )\).
Solution
First, we identify \(A\) and \(B\).
Figure \(\PageIndex{2}\)
Because \(A=0.5\) and \(B=\dfrac{\pi}{2}\), we can find the stretching/compressing factor and period. The period is \(\dfrac{\pi}{\dfrac{\pi}{2}}=2\), so the asymptotes are at \(x=±1\). At a quarter period from the origin, we have
\[\begin{align*} f(0.5)&= 0.5\tan \left (\dfrac{0.5\pi}{2} \right )\\ &= 0.5\tan \left (\dfrac{\pi}{4} \right )\\ &= 0.5 \end{align*}\]
This means the curve must pass through the points \((0.5,0.5)\), \((0,0)\),and \((−0.5,−0.5)\). The only inflection point is at the origin. Figure \(\PageIndex{3}\) shows the graph of one period of the function.
Figure \(\PageIndex{3}\)
\(\PageIndex{1}\)
Sketch a graph of \(f(x)=3\tan \left (\dfrac{\pi}{6}x \right )\).
 Answer

Figure \(\PageIndex{4}\)
Graphing One Period of a Shifted Tangent Function
Now that we can graph a tangent function that is stretched or compressed, we will add a vertical and/or horizontal (or phase) shift. In this case, we add \(C\) and \(D\) to the general form of the tangent function.
\[f(x)=A\tan(Bx−C)+D \nonumber\]
The graph of a transformed tangent function is different from the basic tangent function \(\tan x\) in several ways:
FEATURES OF THE GRAPH OF \(y = A\tan(Bx−C)+D\)
 The stretching factor is \( A \).
 The period is \(\dfrac{\pi}{ B }\).
 The domain is \(x≠\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an integer.
 The range is \((−∞,− A ]∪[ A ,∞)\).
 The vertical asymptotes occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an odd integer.
 There is no amplitude.
 \(y=A \tan(Bx)\) is and odd function because it is the qoutient of odd and even functions(sin and cosine perspectively).
Howto: Given the function \(y=A\tan(Bx−C)+D\), sketch the graph of one period.
 Express the function given in the form \(y=A\tan(Bx−C)+D\).
 Identify the stretching/compressing factor, \( A \).
 Identify \(B\) and determine the period, \(P=\dfrac{\pi}{B}\).
 Identify \(C\) and determine the phase shift, \(\dfrac{C}{B}\).
 Draw the graph of \(y=A\tan(Bx)\) shifted to the right by \(\dfrac{C}{B}\) and up by \(D\).
 Sketch the vertical asymptotes, which occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{2 B }k\),where \(k\) is an odd integer.
 Plot any three reference points and draw the graph through these points.
Example \(\PageIndex{2}\): Graphing One Period of a Shifted Tangent Function
Graph one period of the function \(y=−2\tan(\pi x+\pi)−1\).
Solution
 Step 1. The function is already written in the form \(y=A\tan(Bx−C)+D\).
 Step 2.\(A=−2\), so the stretching factor is \(A=2\).
 Step 3. \(B=\pi\), so the period is \(P=\dfrac{\pi}{ B }=\dfrac{\pi}{pi}=1\).
 Step 4. \(C=−\pi\), so the phase shift is \(CB=\dfrac{−\pi}{\pi}=−1\).
 Step 57. The asymptotes are at \(x=−\dfrac{3}{2}\) and \(x=−\dfrac{1}{2}\) and the three recommended reference points are \((−1.25,1)\), \((−1,−1)\), and \((−0.75,−3)\). The graph is shown in Figure \(\PageIndex{5}\).
Figure \(\PageIndex{5}\)
Analysis
Note that this is a decreasing function because \(A<0\).
Exercise \(\PageIndex{2}\)
How would the graph in Example \(\PageIndex{2}\) look different if we made \(A=2\) instead of \(−2\)?
 Answer

It would be reflected across the line \(y=−1\), becoming an increasing function.
Howto: Given the graph of a tangent function, identify horizontal and vertical stretches.
 Find the period \(P\) from the spacing between successive vertical asymptotes or xintercepts.
 Write \(f(x)=A\tan \left (\dfrac{\pi}{P}x \right )\).
 Determine a convenient point \((x,f(x))\) on the given graph and use it to determine \(A\).
Example \(\PageIndex{3}\): Identifying the Graph of a Stretched Tangent
Find a formula for the function graphed in Figure \(\PageIndex{6}\).
Figure \(\PageIndex{6}\): A stretched tangent function
Solution
The graph has the shape of a tangent function.
 Step 1. One cycle extends from \(–4\) to \(4\), so the period is \(P=8\). Since \(P=\dfrac{\pi}{ B }\), we have \(B=\dfrac{π}{P}=\dfrac{\pi}{8}\).
 Step 2. The equation must have the form \(f(x)=A\tan \left (\dfrac{\pi}{8}x \right )\).
 Step 3. To find the vertical stretch \(A\),we can use the point \((2,2)\). \[\begin{align*} 2&=A\tan \left (\dfrac{\pi}{8}\cdot 2 \right )\\ &=A\tan \left (\dfrac{\pi}{4} \right ) \end{align*}\]
Because \(\tan \left (\dfrac{\pi}{4} \right )=1\), \(A=2\).
This function would have a formula \(f(x)=2\tan \left (\dfrac{\pi}{8}x \right )\).
Exercise \(\PageIndex{3}\)
Find a formula for the function in Figure \(\PageIndex{7}\).
Figure \(\PageIndex{7}\)
 Answer

\(g(x)=4\tan(2x)\)
Analyzing the Graphs of \(y = \sec x\) and \(y = \csc x\)
The secant was defined by the reciprocal identity \(sec \, x=\dfrac{1}{\cos x}\). Notice that the function is undefined when the cosine is \(0\), leading to vertical asymptotes at \(\dfrac{\pi}{2}\), \(\dfrac{3\pi}{2}\) etc. Because the cosine is never more than \(1\) in absolute value, the secant, being the reciprocal, will never be less than \(1\) in absolute value.
We can graph \(y=\sec x\) by observing the graph of the cosine function because these two functions are reciprocals of one another. See Figure \(\PageIndex{8}\). The graph of the cosine is shown as a dashed orange wave so we can see the relationship. Where the graph of the cosine function decreases, the graph of the secant function increases. Where the graph of the cosine function increases, the graph of the secant function decreases. When the cosine function is zero, the secant is undefined.
The secant graph has vertical asymptotes at each value of \(x\) where the cosine graph crosses the \(x\)axis; we show these in the graph below with dashed vertical lines, but will not show all the asymptotes explicitly on all later graphs involving the secant and cosecant.
Note that, because cosine is an even function, secant is also an even function. That is, \(\sec(−x)=\sec x\).
Figure \(\PageIndex{8}\): Graph of the secant function, \(f(x)=\sec x=\dfrac{1}{\cos x}\)
As we did for the tangent function, we will again refer to the constant \( A \) as the stretching factor, not the amplitude.
FEATURES OF THE GRAPH OF \(y = A \sec(Bx)\)
 The stretching factor is \( A \).
 The period is \(\dfrac{2\pi}{ B }\).
 The domain is \(x≠\dfrac{\pi}{2 B }k\), where \(k\) is an odd integer.
 The range is \((−∞,−A]∪[A,∞)\).
 The vertical asymptotes occur at \(x=\dfrac{\pi}{2 B }k\), where \(k\) is an odd integer.
 There is no amplitude.
 \(y=A\sec(Bx)\) is an even function because cosine is an even function.
Similar to the secant, the cosecant is defined by the reciprocal identity \(\csc x=\dfrac{1}{\sin x}\). Notice that the function is undefined when the sine is \(0\), leading to a vertical asymptote in the graph at \(0\), \(\pi\), etc. Since the sine is never more than \(1\) in absolute value, the cosecant, being the reciprocal, will never be less than \(1\) in absolute value.
We can graph \(y=\csc x\) by observing the graph of the sine function because these two functions are reciprocals of one another. See Figure \(\PageIndex{7}\). The graph of sine is shown as a dashed orange wave so we can see the relationship. Where the graph of the sine function decreases, the graph of the cosecant function increases. Where the graph of the sine function increases, the graph of the cosecant function decreases.
The cosecant graph has vertical asymptotes at each value of \(x\) where the sine graph crosses the \(x\)axis; we show these in the graph below with dashed vertical lines.
Note that, since sine is an odd function, the cosecant function is also an odd function. That is, \(\csc(−x)=−\csc x\).
The graph of cosecant, which is shown in Figure \(\PageIndex{9}\), is similar to the graph of secant.
Figure \(\PageIndex{9}\): The graph of the cosecant function, \(f(x)=\csc x=\frac{1}{\sin x}\)
FEATURES OF THE GRAPH OF \(y = A \csc(Bx)\)
 The stretching factor is \( A \).
 The period is \(\dfrac{2\pi}{B}\).
 The domain is \(x≠\dfrac{\pi}{B}k\), where \(k\) is an integer.
 The range is \((−∞,−A]∪[A,∞)\).
 The asymptotes occur at \(x=\dfrac{\pi}{ B }k\), where \(k\) is an integer.
 \(y=A\csc(Bx)\) is an odd function because sine is an odd function.
Graphing Variations of \(y = \sec x\) and \(y= \csc x\)
For shifted, compressed, and/or stretched versions of the secant and cosecant functions, we can follow similar methods to those we used for tangent and cotangent. That is, we locate the vertical asymptotes and also evaluate the functions for a few points (specifically the local extrema). If we want to graph only a single period, we can choose the interval for the period in more than one way. The procedure for secant is very similar, because the cofunction identity means that the secant graph is the same as the cosecant graph shifted half a period to the left. Vertical and phase shifts may be applied to the cosecant function in the same way as for the secant and other functions.The equations become the following.
\[y=A\sec(Bx−C)+D\]
\[y=A\csc(Bx−C)+D\]
FEATURES OF THE GRAPH OF \(y = A\sec(Bx−C)+D\)
 The stretching factor is \(A\).
 The period is \(\dfrac{2\pi}{B}\).
 The domain is \(x≠\dfrac{C}{B}+\dfrac{\pi}{2 B }k\),where \(k\) is an odd integer.
 The range is \((−∞,−A]∪[A,∞)\).
 The vertical asymptotes occur at \(x=\dfrac{C}{B}+\dfrac{π}{2 B }k\),where \(k\) is an odd integer.
 There is no amplitude.
 \(y=A\sec(Bx)\) is an even function because cosine is an even function.
FEATURES OF THE GRAPH OF \(y = A\csc(Bx−C)+D\)
 The stretching factor is \(A\).
 The period is \(\dfrac{2\pi}{B}\).
 The domain is \(x≠\dfrac{C}{B}+\dfrac{\pi}{2 B }k\),where \(k\) is an integer.
 The range is \((−∞,−A]∪[A,∞)\).
 The vertical asymptotes occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{B}k\),where \(k\) is an integer.
 There is no amplitude.
 \(y=A\csc(Bx)\) is an odd function because sine is an odd function.
HOWTO: Given a function of the form \(y=A\sec(Bx)\), graph one period
 Express the function given in the form \(y=A\sec(Bx)\).
 Identify the stretching/compressing factor, \(A\).
 Identify \(B\) and determine the period, \(P=\dfrac{2\pi}{ B }\).
 Sketch the graph of \(y=A\cos(Bx)\).
 Use the reciprocal relationship between \(y=\cos \, x\) and \(y=\sec \, x\) to draw the graph of \(y=A\sec(Bx)\).
 Sketch the asymptotes.
 Plot any two reference points and draw the graph through these points.
Example \(\PageIndex{4}\): Graphing a Variation of the Secant Function
Graph one period of \(f(x)=2.5\sec(0.4x)\).
Solution
 Step 1. The given function is already written in the general form, \(y=A\sec(Bx)\).
 Step 2. \(A=2.5\) so the stretching factor is \(2.5\).
 Step 3. \(B=0.4\) so \(P=\dfrac{2\pi}{0.4}=5\pi\). The period is \(5\pi\) units.
 Step 4. Sketch the graph of the function \(g(x)=2.5\cos(0.4x)\).
 Step 5. Use the reciprocal relationship of the cosine and secant functions to draw the cosecant function.
 Steps 6–7. Sketch two asymptotes at \(x=1.25\pi\) and \(x=3.75\pi\). We can use two reference points, the local minimum at \((0,2.5)\) and the local maximum at \((2.5\pi,−2.5)\). Figure \(\PageIndex{10}\) shows the graph.
Figure \(\PageIndex{10}\)
Exercise \(\PageIndex{4}\)
Graph one period of \(f(x)=−2.5\sec(0.4x)\).
 Answer

This is a vertical reflection of the preceding graph because \(A\) is negative.
Figure \(\PageIndex{11}\)
Q&A: Do the vertical shift and stretch/compression affect the secant’s range?
Yes. The range of \(f(x)=A\sec(Bx−C)+D\) is \((−∞,−A+D]∪[A+D,∞)\).
Howto: Given a function of the form \(f(x)=A\sec(Bx−C)+D\), graph one period.
 Express the function given in the form \(y=A \sec(Bx−C)+D\).
 Identify the stretching/compressing factor, \( A \).
 Identify \(B\) and determine the period, \(\dfrac{2\pi}{B}\).
 Identify \(C\) and determine the phase shift, \(\dfrac{C}{B}\).
 Draw the graph of \(y=A \sec(Bx)\). but shift it to the right by \(\dfrac{C}{B}\) and up by \(D\).
 Sketch the vertical asymptotes, which occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{2 B }k\), where \(k\) is an odd integer.
Example \(\PageIndex{5}\): Graphing a Variation of the Secant Function
Graph one period of \(y=4\sec \left (\dfrac{\pi}{3x}−\dfrac{\pi}{2} \right )+1\).
Solution
 Step 1. Express the function given in the form \(y=4\sec \left (\dfrac{\pi}{3x}−\dfrac{\pi}{2} \right )+1\).
 Step 2. The stretching/compressing factor is \( A =4\).
 Step 3. The period is
\[\begin{align*} \dfrac{2\pi}{B}&= \dfrac{2\pi}{\dfrac{\pi}{3}}\\ &= 2\pi \cdot \dfrac{3}{\pi}\\ &= 6 \end{align*}\]
 Step 4. The phase shift is
\[\begin{align*} \dfrac{C}{B}&= \dfrac{\dfrac{\pi}{2}}{\dfrac{\pi}{3}}\\ &= \dfrac{\pi}{2}\cdot \dfrac{3}{\pi}\\ &= 1.5 \end{align*}\]
 Step 5. Draw the graph of \(y=A\sec(Bx)\), but shift it to the right by \(\dfrac{C}{B}=1.5\) and up by \(D=6\).
 Step 6. Sketch the vertical asymptotes, which occur at \(x=0\), \(x=3\), and \(x=6\). There is a local minimum at \((1.5,5)\) and a local maximum at \((4.5,−3)\). Figure \(\PageIndex{12}\) shows the graph.
Figure \(\PageIndex{12}\)
Exercise \(\PageIndex{5}\)
Graph one period of \(f(x)=−6\sec(4x+2)−8\).
 Answer

Figure \(\PageIndex{13}\)
Q&A: The domain of \(\csc \, x\) was given to be all \(x\) such that \(x≠k\pi\) for any integer \(k\). Would the domain of \(y=A\csc(Bx−C)+D\) be \(x≠\dfrac{C+k\pi}{B}\)?
Yes. The excluded points of the domain follow the vertical asymptotes. Their locations show the horizontal shift and compression or expansion implied by the transformation to the original function’s input.
Howto: Given a function of the form \(y=A\csc(Bx)\), graph one period.
 Express the function given in the form \(y=A\csc(Bx)\).
 \(A\).
 Identify \(B\) and determine the period, \(P=\dfrac{2\pi}{ B }\).
 Draw the graph of \(y=A\sin(Bx)\).
 Use the reciprocal relationship between \(y=sin \, x\) and \(y=\csc \, x\) to draw the graph of \(y=A\csc(Bx)\).
 Sketch the asymptotes.
 Plot any two reference points and draw the graph through these points.
Example \(\PageIndex{6}\): Graphing a Variation of the Cosecant Function
Graph one period of \(f(x)=−3\csc(4x)\).
Solution
 Step 1. The given function is already written in the general form, \(y=A\csc(Bx)\).
 Step 2. \( A = −3 =3\),so the stretching factor is \(3\).
 Step 3. \(B=4\),so \(P=\dfrac{2\pi}{4}=\dfrac{\pi}{2}\). The period is \(\dfrac{\pi}{2}\) units.
 Step 4. Sketch the graph of the function \(g(x)=−3\sin(4x)\).
 Step 5. Use the reciprocal relationship of the sine and cosecant functions to draw the cosecant function.
 Steps 6–7. Sketch three asymptotes at \(x=0\), \(x=\dfrac{\pi}{4}\), and \(x=\dfrac{\pi}{2}\). We can use two reference points, the local maximum at \(\left (\dfrac{\pi}{8},−3 \right )\) and the local minimum at \(\left (\dfrac{3\pi}{8},3 \right )\). Figure \(\PageIndex{14}\) shows the graph.
Figure \(\PageIndex{14}\)
Exercise \(\PageIndex{6}\)
Graph one period of \(f(x)=0.5\csc(2x)\).
 Answer

Figure \(\PageIndex{15}\)
Howto: Given a function of the form \(f(x)=A \csc(Bx−C)+D\), graph one period
 Express the function given in the form \(y=A\csc(Bx−C)+D\).
 Identify the stretching/compressing factor, \(A\).
 Identify \(B\) and determine the period, \(\dfrac{2\pi}{ B }\).
 Identify \(C\) and determine the phase shift, \(\dfrac{C}{B}\).
 Draw the graph of \(y=A\csc(Bx)\) but shift it to the right by and up by \(D\).
 Sketch the vertical asymptotes, which occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an integer.
Example \(\PageIndex{7}\): Graphing a Vertically Stretched, Horizontally Compressed, and Vertically Shifted Cosecant
Sketch a graph of \(y=2\csc \left (\dfrac{\pi}{2}x \right )+1\). What are the domain and range of this function?
Solution
 Step 1. Express the function given in the form \(y=2\csc \left (\dfrac{\pi}{2}x \right )+1\).
 Step 2. Identify the stretching/compressing factor, \( A =2\).
 Step 3. The period is \(\dfrac{2\pi}{ B }=\dfrac{2\pi}{\dfrac{\pi}{2}}=2\pi⋅\dfrac{2}{\pi}=4\).
 Step 4. The phase shift is \(\dfrac{0}{\dfrac{\pi}{2}}=0\).
 Step 5. Draw the graph of \(y=A\csc(Bx)\) but shift it up \(D=1\).
 Step 6. Sketch the vertical asymptotes, which occur at \(x=0\), \(x=2\), \(x=4\).
The graph for this function is shown in Figure \(\PageIndex{16}\).
Figure \(\PageIndex{16}\): A transformed cosecant function
Analysis
The vertical asymptotes shown on the graph mark off one period of the function, and the local extrema in this interval are shown by dots. Notice how the graph of the transformed cosecant relates to the graph of \(f(x)=2\sin \left (\frac{\pi}{2}x \right )+1\),shown as the orange dashed wave.
Exercise \(\PageIndex{7}\)
Given the graph of \(f(x)=2\cos \left (\frac{\pi}{2}x \right )+1\) shown in Figure \(\PageIndex{17}\), sketch the graph of \(g(x)=2\sec \left (\dfrac{\pi}{2}x \right )+1\) on the same axes.
Figure \(\PageIndex{17}\)
 Answer

Figure \(\PageIndex{18}\)
Analyzing the Graph of \(y = \cot x\)
The last trigonometric function we need to explore is cotangent. The cotangent is defined by the reciprocal identity \(cot \, x=\dfrac{1}{\tan x}\). Notice that the function is undefined when the tangent function is \(0\), leading to a vertical asymptote in the graph at \(0\), \(\pi\), etc. Since the output of the tangent function is all real numbers, the output of the cotangent function is also all real numbers.
We can graph \(y=\cot x\) by observing the graph of the tangent function because these two functions are reciprocals of one another. See Figure \(\PageIndex{19}\). Where the graph of the tangent function decreases, the graph of the cotangent function increases. Where the graph of the tangent function increases, the graph of the cotangent function decreases.
The cotangent graph has vertical asymptotes at each value of \(x\) where \(\tan x=0\); we show these in the graph below with dashed lines. Since the cotangent is the reciprocal of the tangent, \(\cot x\) has vertical asymptotes at all values of \(x\) where \(\tan x=0\), and \(\cot x=0\) at all values of \(x\) where \(\tan x\) has its vertical asymptotes.
Figure \(\PageIndex{19}\): The cotangent function
FEATURES OF THE GRAPH OF \(y = A \cot(BX)\)
 The stretching factor is \(A\).
 The period is \(P=\dfrac{\pi}{B}\).
 The domain is \(x≠\dfrac{\pi}{B}k\), where \(k\) is an integer.
 The range is \((−∞,∞)\).
 The asymptotes occur at \(x=\dfrac{\pi}{ B }k\), where \(k\) is an integer.
 \(y=A\cot(Bx)\) is an odd function.
Graphing Variations of \(y =\cot x\)
We can transform the graph of the cotangent in much the same way as we did for the tangent. The equation becomes the following.
\[y=A\cot(Bx−C)+D\]
PROPERTIES OF THE GRAPH OF \(y = A \cot(Bxc)+D\)
 The stretching factor is \( A \).
 The period is \(\dfrac{\pi}{B}\)
 The domain is \(x≠\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an integer.
 The range is \((−∞,−A]∪[A,∞)\).
 The vertical asymptotes occur at \(x=\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an integer.
 There is no amplitude.
 \(y=A\cot(Bx)\) is an odd function because it is the quotient of even and odd functions (cosine and sine, respectively)
Howto: Given a modified cotangent function of the form \(f(x)=A\cot(Bx)\),graph one period.
 Express the function in the form \(f(x)=A\cot(Bx)\).
 Identify the stretching factor, \(A\).
 Identify the period, \(P=\dfrac{\pi}{B}\).
 Draw the graph of \(y=A\tan(Bx)\).
 Plot any two reference points.
 Use the reciprocal relationship between tangent and cotangent to draw the graph of \(y=Acot(Bx)\).
 Sketch the asymptotes.
Example \(\PageIndex{8}\): Graphing Variations of the Cotangent Function
Determine the stretching factor, period, and phase shift of \(y=3\cot(4x)\), and then sketch a graph.
Solution
 Step 1. Expressing the function in the form \(f(x)=A\cot(Bx)\) gives \(f(x)=3\cot(4x)\).
 Step 2. The stretching factor is \(A=3\).
 Step 3. The period is \(P=\dfrac{\pi}{4}\).
 Step 4. Sketch the graph of \(y=3\tan(4x)\).
 Step 5. Plot two reference points. Two such points are \(\left (\dfrac{\pi}{16},3 \right )\) and \(\left (\dfrac{3\pi}{16},−3 \right )\).
 Step 6. Use the reciprocal relationship to draw \(y=3\cot(4x)\).
 Step 7. Sketch the asymptotes, \(x=0\), \(x=\dfrac{\pi}{4}\).
The orange graph in Figure \(\PageIndex{20}\) shows \(y=3\tan(4x)\) and the blue graph shows \(y=3\cot(4x)\).
Figure \(\PageIndex{20}\)
Howto: Given a modified cotangent function of the form \(f(x)=A\cot(Bx−C)+D\), graph one period.
 Express the function in the form \(f(x)=A\cot(Bx−C)+D\).
 Identify the stretching factor, \( A \).
 Identify the period, \(P=\dfrac{\pi}{B}\).
 Identify the phase shift, \(\dfrac{C}{B}\).
 Draw the graph of \(y=A\tan(Bx)\) shifted to the right by \(\dfrac{C}{B}\) and up by \(D\).
 Sketch the asymptotes \(x=\dfrac{C}{B}+\dfrac{\pi}{ B }k\),where \(k\) is an integer.
 Plot any three reference points and draw the graph through these points.
Example \(\PageIndex{9}\): Graphing a Modified Cotangent
Sketch a graph of one period of the function \(f(x)=4\cot \left (\dfrac{\pi}{8}x−\dfrac{\pi}{2} \right )−2\).
Solution
 Step 1. The function is already written in the general form \(f(x)=A\cot(Bx−C)+D\).
 Step 2. \(A=4\),so the stretching factor is \(4\).
 Step 3. \(B=\dfrac{\pi}{8}\), so the period is \(P=\dfrac{\pi}{ B }=\dfrac{\pi}{\dfrac{\pi}{8}}=8\).
 Step 4. \(C=\dfrac{\pi}{2}\),so the phase shift is \(CB=\dfrac{\dfrac{\pi}{2}}{\dfrac{\pi}{8}}=4\).
 Step 5. We draw \(f(x)=4\tan \left (\dfrac{\pi}{8}x−\dfrac{\pi}{2} \right )−2\).
 Step 67. Three points we can use to guide the graph are \((6,2)\), \((8,−2)\), and \((10,−6)\). We use the reciprocal relationship of tangent and cotangent to draw \(f(x)=4\cot \left (\dfrac{\pi}{8}x−\dfrac{\pi}{2} \right )−2\).
 Step 8. The vertical asymptotes are \(x=4\) and \(x=12\).
The graph is shown in Figure \(\PageIndex{21}\).
Figure \(\PageIndex{21}\): One period of a modified cotangent function
Using the Graphs of Trigonometric Functions to Solve RealWorld Problems
Many realworld scenarios represent periodic functions and may be modeled by trigonometric functions. As an example, let’s return to the scenario from the section opener. Have you ever observed the beam formed by the rotating light on a police car and wondered about the movement of the light beam itself across the wall? The periodic behavior of the distance the light shines as a function of time is obvious, but how do we determine the distance? We can use the tangent function.
Example \(\PageIndex{10}\): Using Trigonometric Functions to Solve RealWorld Scenarios
Suppose the function \(y=5\tan(\dfrac{\pi}{4}t)\) marks the distance in the movement of a light beam from the top of a police car across a wall where \(t\) is the time in seconds and \(y\) is the distance in feet from a point on the wall directly across from the police car.
 Find and interpret the stretching factor and period.
 Graph on the interval \([0,5]\).
 Evaluate \(f(1)\) and discuss the function’s value at that input.
Solution
 We know from the general form of \(y=A\tan(Bt)\) that \( A \) is the stretching factor and \(\dfrac{\pi}{B}\) is the period.
Figure \(\PageIndex{22}\)
We see that the stretching factor is \(5\). This means that the beam of light will have moved \(5\) ft after half the period.
The period is \(\dfrac{\pi}{\tfrac{\pi}{4}}=\dfrac{\pi}{1}⋅\dfrac{4}{\pi}=4\). This means that every \(4\) seconds, the beam of light sweeps the wall. The distance from the spot across from the police car grows larger as the police car approaches.
 To graph the function, we draw an asymptote at \(t=2\) and use the stretching factor and period. See Figure \(\PageIndex{23}\)
Figure \(\PageIndex{23}\)
 period: \(f(1)=5\tan(\frac{\pi}{4}(1))=5(1)=5\); after \(1\) second, the beam of has moved \(5\) ft from the spot across from the police car.
Media
Access these online resources for additional instruction and practice with graphs of other trigonometric functions.
Key Equations
Shifted, compressed, and/or stretched tangent function  \(y=A \tan(Bx−C)+D\) 
Shifted, compressed, and/or stretched secant function  \(y=A \sec(Bx−C)+D\) 
Shifted, compressed, and/or stretched cosecant function  \(y=A \csc(Bx−C)+D\) 
Shifted, compressed, and/or stretched cotangent function  \(y=A \cot(Bx−C)+D\) 
Key Concepts
 The tangent function has period \(π\).
 \(f( x )=A\tan( Bx−C )+D\) is a tangent with vertical and/or horizontal stretch/compression and shift. See Example \(\PageIndex{1}\), Example \(\PageIndex{2}\), and Example \(\PageIndex{3}\).
 The secant and cosecant are both periodic functions with a period of \(2\pi\). \(f( x )=A\sec( Bx−C )+D\) gives a shifted, compressed, and/or stretched secant function graph. See Example \(\PageIndex{4}\) and Example \(\PageIndex{5}\).
 \(f( x )=A\csc( Bx−C )+D\) gives a shifted, compressed, and/or stretched cosecant function graph. See Example \(\PageIndex{6}\) and Example \(\PageIndex{7}\).
 The cotangent function has period \(\pi\) and vertical asymptotes at \(0,±\pi,±2\pi\),....
 The range of cotangent is \(( −∞,∞ )\), and the function is decreasing at each point in its range.
 The cotangent is zero at \(±\dfrac{\pi}{2},±\dfrac{3\pi}{2}\),....
 \(f(x)=A\cot(Bx−C)+D\) is a cotangent with vertical and/or horizontal stretch/compression and shift. See Example \(\PageIndex{8}\) and Example \(\PageIndex{9}\).
 Realworld scenarios can be solved using graphs of trigonometric functions. See Example \(\PageIndex{10}\).
Contributors
Jay Abramson (Arizona State University) with contributing authors. Textbook content produced by OpenStax College is licensed under a Creative Commons Attribution License 4.0 license. Download for free at https://openstax.org/details/books/precalculus.