# 8.3 Graphs of the Other Trigonometric Functions

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\space x=\dfrac{\sin\space x}{\cos\space x}\]

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 \(−\dfrac{\pi}{2}\) to \(\dfrac{\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.

\(\tan(-x)=\dfrac{\sin(-x)}{\cos(-x)}\) Definition of tangent

\(=\dfrac{-\sin\space x}{\cos\space x}\) Sine is an odd function, cosine is even.

\(=-\dfrac{\sin\space x}{\cos\space x}\) The quotient of an odd and an even function is odd.

\(=-\tan\space x\) Definition of tangent.

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 8.3.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 \(\dfrac{\pi}{3}<x<\dfrac{\pi}{2}\), we can use a table to look for a trend. Because \(\dfrac{\pi}{3}≈1.05\) and \(\dfrac{\pi}{2}≈1.57\), we will evaluatex x at radian measures \(1.05<x<1.57\) as shown in **Table 8.3.2**.

\(x\) |
1.3 | 1.5 | 1.55 | 1.56 |
---|---|---|---|---|

\(tan\space x\) |
3.6 | 14.1 | 48.1 | 92.6 |

**Table 8.3.2**

As \(x\) approaches \(\dfrac{\pi}{2}\), the outputs of the function get larger and larger. Because \(y=tan\space x\) is an odd function, we see the corresponding table of negative values in **Table 8.3.3**.

\(x\) |
−1.3 | −1.5 | −1.55 | −1.56 |
---|---|---|---|---|

\(\tan\space x\) |
−3.6 | −14.1 | −48.1 | −92.6 |

**Table 8.3.3**

We can see that, asx x approaches \(−\dfrac{\pi}{2}\), the outputs get smaller and smaller. Remember that there are some values of \(x\) for which \(\cos\space x=0\). For example, \(\cos(\dfrac{\pi}{2})=0\) and \(\cos(\dfrac{3\pi}{2})=0\). At these values, the tangent function is undefined, so the graph of \(y=\tan\space x\) has discontinuities at \(x=\dfrac{\pi}{2}\) and \(\dfrac{3\pi}{2}\). At these values, the graph of the tangent has vertical asymptotes. **Figure 8.3.1** represents the graph of \(y=\tan\space x\). The tangent is positive from 0 to \(\dfrac{\pi}{2}\) and from \(\pi\) to \(\dfrac{3\pi}{2}\), corresponding to quadrants I and III of the unit circle.

**Figure 8.3.1: **Graph of the tangent function

### Graphing Variations of \(y = \tan\space x\)

As with the sine and cosine functions, the **tangent** function can be described by a general equation.

\[y=A\tan(Bx)\]

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.

A General Note: 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 \((−\dfrac{P}{2},\dfrac{P}{2})\) and the graph has vertical asymptotes at \(\pm \dfrac{P}{2}\) where \(P=\dfrac{\pi}{B}\). On \((−\dfrac{\pi}{2},\dfrac{\pi}{2})\), 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(\dfrac{P}{4})=A\tan(B\dfrac{P}{4})=A\tan(B\dfrac{\pi}{4B})=A\]

because \(\tan(\dfrac{\pi}{4})=1\).

How to:** 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 \((\dfrac{P}{4},A)\), \((0,0)\), and \((−\dfrac{P}{4},−A)\), and draw the graph through these points.

Example

Sketching a Compressed Tangent

Sketch a graph of one period of the function \(y=0.5\tan(\dfrac{\pi}{2}x)\).

**Solution:**

First, we identify A and B.

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

\[f(0.5)=0.5\tan(\dfrac{0.5\pi}{2})\]

\[=0.5\tan(\dfrac{\pi}{4})\]

\[=0.5\]

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 8.3.2** shows the graph of one period of the function.

**Figure 8.3.2**

Exercise

Sketch a graph of \(f(x)=3\tan(\dfrac{\pi}{6}x)\).

**Solution:**

#### 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\]

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).

How to: 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

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 5-7.*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 8.3.3**.

**Figure 8.3.3**

Analysis

Note that this is a decreasing function because \(A<0\).

Exercise

How would the graph in Example look different if we made \(A=2\) instead of \(−2\)?

**Solution:**

It would be reflected across the line \(y=−1\), becoming an increasing function.

Given the graph of a tangent function, identify horizontal and vertical stretches.

- Find the period \(P\) from the spacing between successive vertical asymptotes or
*x*-intercepts. - Write \(f(x)=A\tan(\dfrac{\pi}{P}x)\).
- Determine a convenient point \((x,f(x))\) on the given graph and use it to determine \(A\).

Example

Identifying the Graph of a Stretched Tangent

Find a formula for the function graphed in **Figure 8.3.4**.

**Figure 8.3.4 **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(\dfrac{\pi}{8}x)\).*Step 3.*To find the vertical stretch \(A\),we can use the point \((2,2)\).\[2=A\tan(\dfrac{\pi}{8}⋅2)=A\tan(\dfrac{\pi}{4})\]

Because \(\tan(\dfrac{\pi}{4})=1\), \(A=2\).

This function would have a formula \(f(x)=2\tan(\dfrac{\pi}{8}x)\).

Exercise

Find a formula for the function in **Figure 8.3.5**.

**Figure 8.3.5**

**Solution:**

\(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\space 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 8.3.6**. 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 8.3.6 **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.

A General Note: 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 8.3.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 8.3.7**, is similar to the graph of secant.

**Figure 8.3.7 **The graph of the cosecant function, \(f(x)=\csc x=\frac{1}{\sin x}\)

A General Note: 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\]

A General Note: 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.

A General Note: 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.

**Given a function of the form **\(y=Asec(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\space x\) and \(y=\sec\space 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

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 8.3.8**shows the graph.

**Figure 8.3.8**

Exercise

Graph one period of \(f(x)=−2.5\sec(0.4x)\).

**Solution:**

This is a vertical reflection of the preceding graph because A is negative.

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,∞)\).

How to:** 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

Graphing a Variation of the Secant Function

Graph one period of \(y=4\sec(\dfrac{\pi}{3x}−\dfrac{\pi}{2})+1\).

**Solution:**

*Step 1.*Express the function given in the form \(y=4\sec(\dfrac{\pi}{3x}−\dfrac{\pi}{2})+1\).*Step 2.*The stretching/compressing factor is \(| A |=4\).*Step 3.*The period is

\[\dfrac{2\pi}{|B|}=\dfrac{2\pi}{\dfrac{\pi}{3}}\]

\[=2\pi ⋅\dfrac{3}{\pi}\]

\[=6\]

*Step 4.*The phase shift is

\[\dfrac{C}{B}=\dfrac{\dfrac{\pi}{2}}{\dfrac{\pi}{3}}\]

\[=\dfrac{\pi}{2}⋅\dfrac{3}{\pi}\]

\[=1.5\]

*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 8.3.9**shows the graph.

**Figure 8.3.9**

Exercise

Graph one period of \(f(x)=−6\sec(4x+2)−8\).

**Solution:**

Q&A

**The domain of \(\csc\space 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.*

How to:** 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\space x\) and \(y=\csc\space 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

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 \((\dfrac{\pi}{8},−3)\) and the local minimum at \((\dfrac{3\pi}{8},3)\).**Figure 8.3.10**shows the graph.

**Figure 8.3.10**

Exercise

Graph one period of \(f(x)=0.5\csc(2x)\).

**Solution:**

How to:** 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

Graphing a Vertically Stretched, Horizontally Compressed, and Vertically Shifted Cosecant

Sketch a graph of \(y=2\csc(\dfrac{\pi}{2}x)+1\). What are the domain and range of this function?

**Solution:**

*Step 1.*Express the function given in the form \(y=2\csc(\dfrac{\pi}{2}x)+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 8.3.11**.

**Figure 8.3.11 **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(\frac{\pi}{2}x)+1\),shown as the orange dashed wave.

Exercise

Given the graph of \(f(x)=2\cos(\frac{\pi}{2}x)+1\) shown in **Figure 8.3.12**, sketch the graph of \(g(x)=2\sec(\dfrac{\pi}{2}x)+1\) on the same axes.

**Figure 8.3.12**

**Solution:**

### 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\space 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 8.3.13**. 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 8.3.13 **The cotangent function

A General Note: 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(*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 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)

How to:** 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

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 \((\dfrac{\pi}{16},3)\) and \((\dfrac{3\pi}{16},−3)\).*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 8.3.14** shows \(y=3\tan(4x)\) and the blue graph shows \(y=3\cot(4x)\).

**Figure 8.3.14**

How to:** 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

Graphing a Modified Cotangent

Sketch a graph of one period of the function \(f(x)=4\cot(\dfrac{\pi}{8}x−\dfrac{\pi}{2})−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(\dfrac{\pi}{8}x−\dfrac{\pi}{2})−2\).*Step 6-7.*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(\dfrac{\pi}{8}x−\dfrac{\pi}{2})−2\).*Step 8.*The vertical asymptotes are \(x=4\) and \(x=12\).

The graph is shown in **Figure 8.3.15**.

**Figure 8.3.15 **One period of a modified cotangent function

### Using the Graphs of Trigonometric Functions to Solve Real-World Problems

Many real-world 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

Using Trigonometric Functions to Solve Real-World 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:**

1. 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 8.3.16**

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 \(\frac{\pi}{\frac{\pi}{4}}=\frac{\pi}{1}⋅\frac{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.

2. To graph the function, we draw an asymptote at \(t=2\) and use the stretching factor and period. See **Figure 8.3.17**

**Figure 8.3.17**

3. 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, Example, and Example.
- 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 and Example.
- \(f( x )=A\csc( Bx−C )+D\) gives a shifted, compressed, and/or stretched cosecant function graph. See Example andExample.
- 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 andExample.
- Real-world scenarios can be solved using graphs of trigonometric functions. See Example.