
# 10.5: Graphs of the Trigonometric Functions


In this section, we return to our discussion of the circular (trigonometric) functions as functions of real numbers and pick up where we left off in Sections \ref{cosinesinebeyond} and \ref{circularfunctionsbeyond}. As usual, we begin our study with the functions $$f(t) = \cos(t)$$ and $$g(t) = \sin(t)$$.

## Graphs of the Cosine and Sine Functions

From Theorem \ref{cosinesinefunctiondomainrange} in Section \ref{cosinesinebeyond}, we know that the domain of $$f(t) = \cos(t)$$ and of $$g(t) = \sin(t)$$ is all real numbers, $$(-\infty, \infty),$$ and the range of both functions is $$[-1,1]$$. The Even / Odd Identities in Theorem \ref{evenodd} tell us $$\cos(-t) = \cos(t)$$ for all real numbers $$t$$ and $$\sin(-t) = -\sin(t)$$ for all real numbers $$t$$. This means $$f(t) = \cos(t)$$ is an even function, while $$g(t) = \sin(t)$$ is an odd function.\footnote{See section \ref{GraphsofFunctions} for a review of these concepts.} Another important property of these functions is that for coterminal angles $$\alpha$$ and $$\beta$$, $$\cos(\alpha) = \cos(\beta)$$ and $$\sin(\alpha) = \sin(\beta)$$. Said differently, $$\cos(t + 2\pi k) = \cos(t)$$ and $$\sin(t + 2\pi k) = \sin(t)$$ for all real numbers $$t$$ and any integer $$k$$. This last property is given a special name.

Periodic Functions

A function $$f$$ is said to be \textbf{periodic}\index{function ! periodic}\index{periodic function} if there is a real number $$c$$ so that $$f(t+c) = f(t)$$ for all real numbers $$t$$ in the domain of $$f$$. The smallest positive number $$p$$ for which $$f(t+p) = f(t)$$ for all real numbers $$t$$ in the domain of $$f$$, if it exists, is called the \textbf{period} of $$f$$. \index{period ! of a function}

We have already seen a family of periodic functions in Section \ref{LinearFunctions}: the constant functions. However, despite being periodic a constant function has no period. (We'll leave that odd gem as an exercise for you.) Returning to the circular functions, we see that by Definition \ref{periodic}, $$f(t) = \cos(t)$$ is periodic, since $$\cos(t + 2\pi k) = \cos(t)$$ for any integer $$k$$. To determine the period of $$f$$, we need to find the smallest real number $$p$$ so that $$f(t+p) = f(t)$$ for all real numbers $$t$$ or, said differently, the smallest positive real number $$p$$ such that $$\cos(t+p) = \cos(t)$$ for all real numbers $$t$$. We know that $$\cos(t + 2\pi) = \cos(t)$$ for all real numbers $$t$$ but the question remains if any smaller real number will do the trick. Suppose $$p>0$$ and $$\cos(t + p) = \cos(t)$$ for all real numbers $$t$$. Then, in particular, $$\cos(0+p) = \cos(0)$$ so that $$\cos(p) = 1$$. From this we know $$p$$ is a multiple of $$2\pi$$ and, since the smallest positive multiple of $$2\pi$$ is $$2\pi$$ itself, we have the result. Similarly, we can show $$g(t) = \sin(t)$$ is also periodic with $$2\pi$$ as its period.\footnote{Alternatively, we can use the Cofunction Identities in Theorem \ref{cofunctionidentities} to show that $$g(t) = \sin(t)$$ is periodic with period $$2\pi$$ since $$g(t) = \sin(t) = \cos\left(\frac{\pi}{2} - t\right) = f\left(\frac{\pi}{2} - t\right)$$.} Having period $$2\pi$$ essentially means that we can completely understand everything about the functions $$f(t) = \cos(t)$$ and $$g(t) = \sin(t)$$ by studying one interval of length $$2\pi$$, say $$[0,2\pi]$$.\footnote{Technically, we should study the interval $$[0,2\pi)$$,\footnotemark since whatever happens at $$t=2\pi$$ is the same as what happens at $$t=0$$. As we will see shortly, $$t=2\pi$$ gives us an extra check' when we go to graph these functions.} \footnotetext{In some advanced texts, the interval of choice is $$[-\pi, \pi)$$.}

One last property of the functions $$f(t) = \cos(t)$$ and $$g(t) = \sin(t)$$ is worth pointing out: both of these functions are continuous and smooth. Recall from Section \ref{GraphsofPolynomials} that geometrically this means the graphs of the cosine and sine functions have no jumps, gaps, holes in the graph, asymptotes, corners or cusps. As we shall see, the graphs of both $$f(t) = \cos(t)$$ and $$g(t) = \sin(t)$$ meander nicely and don't cause any trouble. We summarize these facts in the following theorem.

Note: Properties of the Cosine and Sine Functions

\index{cosine ! properties of} \index{sine ! properties of}

\begin{tabular}{ll}

\hspace{.3in} $$\bullet \, \( The function \(f(x) = \cos(x)$$ & \hspace{.8in} $$\bullet \, \( The function \(g(x) = \sin(x)$$ \\

& \\

\hspace{.5in} -- has domain $$(-\infty, \infty)$$ & \hspace{1in} -- has domain $$(-\infty, \infty)$$ \\ [4pt]

\hspace{.5in} -- has range $$[-1,1]$$ & \hspace{1in} -- has range $$[-1,1]$$ \\ [4pt]

\hspace{.5in} -- is continuous and smooth & \hspace{1in} -- is continuous and smooth \\ [4pt]

\hspace{.5in} -- is even & \hspace{1in} -- is odd \\ [4pt]

\hspace{.5in} -- has period $$2\pi$$ & \hspace{1in} -- has period $$2\pi$$ \\

In the chart above, we followed the convention established in Section \ref{GraphsofFunctions} and used $$x$$ as the independent variable and $$y$$ as the dependent variable.\footnote{The use of $$x$$ and $$y$$ in this context is not to be confused with the $$x$$- and $$y$$-coordinates of points on the Unit Circle which define cosine and sine. Using the term trigonometric function' as opposed to circular function' can help with that, but one could then ask, Hey, where's the triangle?''} This allows us to turn our attention to graphing the cosine and sine functions in the Cartesian Plane. To graph $$y = \cos(x)$$, we make a table as we did in Section \ref{GraphsofFunctions} using some of the common values' of $$x$$ in the interval $$[0,2\pi]$$. This generates a portion of the cosine graph, which we call the \index{fundamental cycle ! of $$y = \cos(x)}\textbf{fundamental cycle}' of \(y = \cos(x)$$. \index{cosine ! graph of}

\hspace{.5in} \begin{tabular}{m{2.7in}m{3in}}

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r||r|r|} \hline x & \cos(x) & (x,\cos(x)) \\ \hline 0 & 1 & (0, 1) \\ \hline \frac{\pi}{4} & \frac{\sqrt{2}}{2} & \left(\frac{\pi}{4}, \frac{\sqrt{2}}{2}\right) \\ \hline \frac{\pi}{2} & 0 & \left(\frac{\pi}{2}, 0\right) \\ \hline \frac{3\pi}{4} & -\frac{\sqrt{2}}{2} & \left(\frac{3\pi}{4}, -\frac{\sqrt{2}}{2}\right) \\ \hline \pi & -1 & (\pi, -1) \\ \hline \frac{5\pi}{4} & -\frac{\sqrt{2}}{2} & \left(\frac{5\pi}{4}, -\frac{\sqrt{2}}{2}\right) \\ \hline \frac{3\pi}{2} & 0 & \left(\frac{3\pi}{2}, 0 \right) \\ \hline \frac{7\pi}{4} & \frac{\sqrt{2}}{2} & \left(\frac{7\pi}{4}, \frac{\sqrt{2}}{2}\right) \\ \hline 2\pi & 1 & (2\pi, 1) \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} &

\begin{mfpic}[25][50]{-1}{7}{-1.5}{1.5}

\point[3pt]{(0,1), (0.7854,0.7071), (1.5708,0), (2.3562,-0.7071), (3.1416, -1), (3.9270,-0.7071), (4.7124,0), (5.4978,0.7071), (6.2832,1)}

\axes

\tlabel[cc](7,-0.15){\scriptsize $$x} \tlabel[cc](0.25,1.5){\scriptsize \(y} \tcaption{The fundamental cycle' of \(y = \cos(x)$$.}

\xmarks{0.7854, 1.5708, 2.3562, 3.1416, 3.9270, 4.7124,5.4978,6.2832 }

\ymarks{-1,1}

\tlpointsep{4pt}

\scriptsize

\axislabels {x}{{$\frac{\pi}{4}$} 0.7854, {$\frac{\pi}{2}$} 1.5708, {$\frac{3\pi}{4}$} 2.3562, {$\pi$} 3.1416, {$\frac{5\pi}{4}$} 3.9270, {$\frac{3\pi}{2}$} 4.7124, {$\frac{7\pi}{4}$} 5.4978, {$2\pi$} 6.2832}

\normalsize

\axislabels {y}{{\scriptsize $$-1} -1, {\scriptsize \(1} 1} \function{0, 6.2832, 0.1}{cos(x)} \end{mfpic} \\ \end{tabular} A few things about the graph above are worth mentioning. First, this graph represents only part of the graph of \(y = \cos(x)$$. To get the entire graph, we imagine copying and pasting' this graph end to end infinitely in both directions (left and right) on the $$x$$-axis. Secondly, the vertical scale here has been greatly exaggerated for clarity and aesthetics. Below is an accurate-to-scale graph of $$y = \cos(x)$$ showing several cycles with the fundamental cycle' plotted thicker than the others. The graph of $$y=\cos(x)$$ is usually described as wavelike' -- indeed, many of the applications involving the cosine and sine functions feature modeling wavelike phenomena.

We can plot the fundamental cycle of the graph of $$y = \sin(x)$$ similarly, with similar results. \index{sine ! graph of

As with the graph of $$y=\cos(x)$$, we provide an accurately scaled graph of $$y = \sin(x)$$ below with the fundamental cycle highlighted.

It is no accident that the graphs of $$y = \cos(x)$$ and $$y = \sin(x)$$ are so similar. Using a cofunction identity along with the even property of cosine, we have

$\sin(x) = \cos\left(\frac{\pi}{2} - x\right) = \cos\left(-\left(x - \frac{\pi}{2}\right)\right) = \cos\left(x - \frac{\pi}{2}\right)$

Recalling Section \ref{Transformations}, we see from this formula that the graph of $$y=\sin(x)$$ is the result of shifting the graph of $$y = \cos(x)$$ to the right $$\frac{\pi}{2}$$ units. A visual inspection confirms this.

Now that we know the basic shapes of the graphs of $$y = \cos(x)$$ and $$y = \sin(x)$$, we can use Theorem \ref{transformationsthm} in Section \ref{Transformations} to graph more complicated curves. To do so, we need to keep track of the movement of some key points on the original graphs. We choose to track the values $$x = 0$$, $$\frac{\pi}{2}$$, $$\pi$$, $$\frac{3\pi}{2}$$ and $$2\pi$$. These quarter marks' correspond to quadrantal angles, and as such, mark the location of the zeros and the local extrema of these functions over exactly one period. Before we begin our next example, we need to review the concept of the argument' of a function as first introduced in Section \ref{FunctionNotation}. For the function $$f(x) = 1 - 5\cos(2x-\pi)$$, the argument of $$f$$ is $$x$$. We shall have occasion, however, to refer to the argument of the \textit{cosine}, which in this case is $$2x-\pi$$. Loosely stated, the argument of a trigonometric function is the expression inside' the function.\index{argument ! of a trigonometric function}

Example $$\PageIndex{1}$$: Cosines Sine Graphing

Graph one cycle of the following functions. State the period of each.

1. \item $$f(x) = 3 \cos\left(\frac{\pi x - \pi}{2}\right) + 1$$
2. \item $$g(x) = \frac{1}{2} \sin(\pi - 2x) + \frac{3}{2}$$

Solution

\item We set the argument of the cosine, $$\frac{\pi x - \pi}{2}$$, equal to each of the values: $$0$$, $$\frac{\pi}{2}$$, $$\pi$$, $$\frac{3\pi}{2}$$, $$2\pi$$ and solve for $$x$$. We summarize the results below.

$\begin{array}{|r|r|r|} \hline a & \frac{\pi x - \pi}{2} = a & x \\ \hline 0 & \frac{\pi x - \pi}{2} = 0 & 1 \\ \hline \frac{\pi}{2} & \frac{\pi x - \pi}{2} = \frac{\pi}{2} & 2 \\ \hline \pi & \frac{\pi x - \pi}{2} = \pi & 3 \\ \hline \frac{3\pi}{2} & \frac{\pi x - \pi}{2} = \frac{3\pi}{2} & 4 \\ \hline 2\pi & \frac{\pi x - \pi}{2} = 2\pi & 5\\ \hline \end{array}$

Next, we substitute each of these $$x$$ values into $$f(x) = 3 \cos\left(\frac{\pi x - \pi}{2}\right) + 1$$ to determine the corresponding $$y$$-values and connect the dots in a pleasing wavelike fashion.

$\begin{array}{|r||r|r|} \hline x & f(x) & (x,f(x)) \\ \hline 1 & 4 & (1,4) \\ \hline 2 & 1 & (2,1) \\ \hline 3 & -2 & (3,-2) \\ \hline 4 & 1 & (4,1) \\ \hline 5 & 4 & (5,4) \\ \hline \end{array}$

One cycle is graphed on $$[1,5]$$ so the period is the length of that interval which is $$4$$.

1. \item Proceeding as above, we set the argument of the sine, $$\pi - 2x$$, equal to each of our quarter marks and solve for $$x$$.

We now find the corresponding $$y$$-values on the graph by substituting each of these $$x$$-values into $$g(x) = \frac{1}{2} \sin(\pi - 2x) + \frac{3}{2}$$. Once again, we connect the dots in a wavelike fashion.

One cycle was graphed on the interval $$\left[ -\frac{\pi}{2}, \frac{\pi}{2}\right]$$ so the period is $$\frac{\pi}{2} - \left(-\frac{\pi}{2}\right) = \pi$$. \qed

The functions in Example \ref{cosinesinegraphex1} are examples of \textbf{sinusoids}. Roughly speaking, a sinusoid is the result of taking the basic graph of $$f(x) = \cos(x)$$ or $$g(x) = \sin(x)$$ and performing any of the transformations\footnote{We have already seen how the Even/Odd and Cofunction Identities can be used to rewrite $$g(x) = \sin(x)$$ as a transformed version of $$f(x) = \cos(x)$$, so of course, the reverse is true: $$f(x) = \cos(x)$$ can be written as a transformed version of $$g(x) = \sin(x)$$. The authors have seen some instances where sinusoids are always converted to cosine functions while in other disciplines, the sinusoids are always written in terms of sine functions. We will discuss the applications of sinusoids in greater detail in Chapter \ref{AppExt}. Until then, we will keep our options open.} mentioned in Section \ref{Transformations}. Sinusoids can be characterized by four properties: period, amplitude, phase shift and vertical shift. We have already discussed period, that is, how long it takes for the sinusoid to complete one cycle. The standard period of both $$f(x) = \cos(x)$$ and $$g(x) = \sin(x)$$ is $$2\pi$$, but horizontal scalings will change the period of the resulting sinusoid. The \index{amplitude}\index{sinusoid ! amplitude}\textbf{amplitude} of the sinusoid is a measure of how tall' the wave is, as indicated in the figure below. The amplitude of the standard cosine and sine functions is $$1$$, but vertical scalings can alter this.

The \index{phase shift}\index{sinusoid ! phase shift}\textbf{phase shift} of the sinusoid is the horizontal shift experienced by the fundamental cycle.\index{sinusoid ! graph of} We have seen that a phase (horizontal) shift of $$\frac{\pi}{2}$$ to the right takes $$f(x) = \cos(x)$$ to $$g(x) = \sin(x)$$ since $$\cos\left(x - \frac{\pi}{2}\right) = \sin(x)$$. As the reader can verify, a phase shift of $$\frac{\pi}{2}$$ to the left takes $$g(x) = \sin(x)$$ to $$f(x)= \cos(x)$$. The vertical shift of a sinusoid is exactly the same as the vertical shifts in Section \ref{Transformations}. In most contexts, the vertical shift of a sinusoid is assumed to be $$0$$, but we state the more general case below. The following theorem, which is reminiscent of Theorem \ref{transformationsthm} in Section \ref{Transformations}, shows how to find these four fundamental quantities from the formula of the given sinusoid.

We note that in some scientific and engineering circles, the quantity $$\phi$$ mentioned in Theorem \ref{sinusoidform} is called the \index{phase} \textbf{phase} of the sinusoid. Since our interest in this book is primarily with \textit{graphing} sinusoids, we focus our attention on the horizontal shift $$-\frac{\phi}{\omega}$$ induced by $$\phi$$.

The proof of Theorem \ref{sinusoidform} is a direct application of Theorem \ref{transformationsthm} in Section \ref{Transformations} and is left to the reader. The parameter $$\omega$$, which is stipulated to be positive, is called the (\textbf{angular}) \textbf{frequency} \index{frequency ! of a sinusoid} of the sinusoid and is the number of cycles the sinusoid completes over a $$2\pi$$ interval. We can always ensure $$\omega > 0$$ using the Even/Odd Identities.\footnote{Try using the formulas in Theorem \ref{sinusoidform} applied to $$C(x) = \cos(-x+\pi)$$ to see why we need $$\omega > 0$$.} We now test out Theorem \ref{sinusoidform} using the functions $$f$$ and $$g$$ featured in Example \ref{cosinesinegraphex1}. First, we write $$f(x)$$ in the form prescribed in Theorem \ref{sinusoidform},

$f(x) = 3 \cos\left(\frac{\pi x - \pi}{2}\right) + 1 = 3\cos\left(\frac{\pi}{2} x + \left(-\frac{\pi}{2}\right)\right) + 1,$

so that $$A = 3$$, $$\omega = \frac{\pi}{2}$$, $$\phi = -\frac{\pi}{2}$$ and $$B = 1$$. According to Theorem \ref{sinusoidform}, the period of $$f$$ is $$\frac{2\pi}{\omega} = \frac{2\pi}{\pi/2} = 4$$, the amplitude is $$|A| = |3| = 3$$, the phase shift is $$-\frac{\phi}{\omega} = -\frac{-\pi/2}{\pi/2} = 1$$ (indicating a shift to the \textit{right} $$1$$ unit) and the vertical shift is $$B = 1$$ (indicating a shift \textit{up} $$1$$ unit.) All of these match with our graph of $$y=f(x)$$. Moreover, if we start with the basic shape of the cosine graph, shift it $$1$$ unit to the right, $$1$$ unit up, stretch the amplitude to $$3$$ and shrink the period to $$4$$, we will have reconstructed one period of the graph of $$y=f(x)$$. In other words, instead of tracking the five quarter marks' through the transformations to plot $$y=f(x)$$, we can use five other pieces of information: the phase shift, vertical shift, amplitude, period and basic shape of the cosine curve. Turning our attention now to the function $$g$$ in Example \ref{cosinesinegraphex1}, we first need to use the odd property of the sine function to write it in the form required by Theorem \ref{sinusoidform}

$g(x) = \frac{1}{2} \sin(\pi - 2x) + \frac{3}{2} = \frac{1}{2} \sin(-(2x - \pi)) + \frac{3}{2} = -\frac{1}{2} \sin(2x - \pi) + \frac{3}{2}= -\frac{1}{2} \sin(2x + (-\pi)) + \frac{3}{2}$

We find $$A = -\frac{1}{2}$$, $$\omega = 2$$, $$\phi = -\pi$$ and $$B = \frac{3}{2}$$. The period is then $$\frac{2\pi}{2} = \pi$$, the amplitude is $$\left| - \frac{1}{2} \right| = \frac{1}{2}$$, the phase shift is $$-\frac{-\pi}{2} = \frac{\pi}{2}$$ (indicating a shift \textit{right} $$\frac{\pi}{2}$$ units) and the vertical shift is \textit{up} $$\frac{3}{2}$$. Note that, in this case, all of the data match our graph of $$y=g(x)$$ with the exception of the phase shift. \phantomsection \label{phaseshiftissue} Instead of the graph \textit{starting} at $$x = \frac{\pi}{2}$$, it ends there. Remember, however, that the graph presented in Example \ref{cosinesinegraphex1} is only one portion of the graph of $$y=g(x)$$. Indeed, another complete cycle begins at $$x = \frac{\pi}{2}$$, and this is the cycle Theorem \ref{sinusoidform} is detecting. The reason for the discrepancy is that, in order to apply Theorem \ref{sinusoidform}, we had to rewrite the formula for $$g(x)$$ using the odd property of the sine function. Note that whether we graph $$y=g(x)$$ using the quarter marks' approach or using the Theorem \ref{sinusoidform}, we get one complete cycle of the graph, which means we have completely determined the sinusoid.

Example $$\PageIndex{1}$$:

Below is the graph of one complete cycle of a sinusoid $$y=f(x)$$.

\begin{center}

\begin{mfpic}[25]{-2}{6}{-3}{4}

\point[3pt]{(-1,2.5), (0.5,0.5), (2,-1.5), (3.5,0.5), (5,2.5)}

\tlabel(-2.25,2.35){\tiny $$\left(-1,\frac{5}{2}\right)} \tlabel(0.75,0.35){\tiny \(\left(\frac{1}{2},\frac{1}{2}\right)} \tlabel[cc](2,-2){\tiny \(\left(2,-\frac{3}{2}\right)} \tlabel(3.75,0.35){\tiny \(\left(\frac{7}{2},\frac{1}{2}\right)} \tlabel(5.25,2.35){\tiny \(\left(5,\frac{5}{2}\right)} \axes \tlabel[cc](6,-0.25){\scriptsize \(x} \tlabel[cc](0.25,4){\scriptsize \(y} \tcaption{One cycle of \(y = f(x)$$.}

\xmarks{-1,1,2,3,4,5}

\ymarks{-2,-1,1,2,3}

\tlpointsep{4pt}

\axislabels {x}{{\tiny $$-1 \hspace{7pt}} -1, {\tiny \(1} 1, {\tiny \(2} 2, {\tiny \(3} 3, {\tiny \(4} 4, {\tiny \(5} 5} \axislabels {y}{ {\tiny \(-2} -2,{\tiny \(-1} -1, {\tiny \(1} 1, {\tiny \(2} 2, {\tiny \(3} 3} \function{-1, 5, 0.1}{2*cos(3.14159265*(x+1)/3)+0.5} \end{mfpic} \end{center} \begin{enumerate} 1. \item Find a cosine function whose graph matches the graph of \(y = f(x)$$.
2. \item Find a sine function whose graph matches the graph of $$y = f(x)$$.

Solution

\begin{enumerate}

1. \item We fit the data to a function of the form $$C(x) = A \cos(\omega x + \phi) + B$$. Since one cycle is graphed over the interval $$[-1,5]$$, its period is $$5-(-1) = 6$$. According to Theorem \ref{sinusoidform}, $$6 = \frac{2\pi}{\omega}$$, so that $$\omega = \frac{\pi}{3}$$. Next, we see that the phase shift is $$-1$$, so we have $$-\frac{\phi}{\omega} = -1$$, or $$\phi = \omega = \frac{\pi}{3}$$. To find the amplitude, note that the range of the sinusoid is $$\left[ -\frac{3}{2}, \frac{5}{2}\right]$$. As a result, the amplitude $$A = \frac{1}{2}\left[ \frac{5}{2} - \left(-\frac{3}{2}\right)\right] = \frac{1}{2} (4) = 2.$$ Finally, to determine the vertical shift, we average the endpoints of the range to find $$B = \frac{1}{2}\left[ \frac{5}{2} + \left(-\frac{3}{2}\right)\right] = \frac{1}{2}(1) = \frac{1}{2}$$. Our final answer is $$C(x) = 2 \cos\left(\frac{\pi}{3} x + \frac{\pi}{3} \right) + \frac{1}{2}$$.
2. \item Most of the work to fit the data to a function of the form $$S(x) = A \sin(\omega x + \phi) + B$$ is done. The period, amplitude and vertical shift are the same as before with $$\omega = \frac{\pi}{3}$$, $$A = 2$$ and $$B = \frac{1}{2}$$. The trickier part is finding the phase shift. To that end, we imagine extending the graph of the given sinusoid as in the figure below so that we can identify a cycle beginning at $$\left(\frac{7}{2}, \frac{1}{2}\right)$$. Taking the phase shift to be $$\frac{7}{2}$$, we get $$-\frac{\phi}{\omega} = \frac{7}{2}$$, or $$\phi = -\frac{7}{2} \omega = -\frac{7}{2}\left(\frac{\pi}{3}\right) = -\frac{7\pi}{6}$$. Hence, our answer is $$S(x) = 2 \sin\left(\frac{\pi}{3} x - \frac{7\pi}{6}\right) + \frac{1}{2}$$.

\begin{center}

\begin{mfpic}[25]{-2}{11}{-3}{4}

\point[3pt]{(3.5,0.5), (5,2.5), (6.5, 0.5), (8, -1.5), (9.5,0.5)}

\tlabel(3.75,0.35){\tiny $$\left(\frac{7}{2},\frac{1}{2}\right)} \tlabel[cc](5,2.75){\tiny \(\left(5,\frac{5}{2}\right)} \tlabel(6.75,0.35){\tiny \(\left(\frac{13}{2},\frac{1}{2}\right)} \tlabel[cc](8,-2){\tiny \(\left(8,-\frac{3}{2}\right)} \tlabel(9.75,0.35){\tiny \(\left(\frac{19}{2},\frac{5}{2}\right)} \axes \tlabel[cc](11,-0.25){\scriptsize \(x} \tlabel[cc](0.25,4){\scriptsize \(y} \tcaption{Extending the graph of \(y = f(x)$$.}

\xmarks{-1,1,2,3,4,5,6,7,8,9,10}

\ymarks{-2,-1,1,2,3}

\tlpointsep{4pt}

\axislabels {x}{{\tiny $$-1 \hspace{7pt}} -1, {\tiny \(1} 1, {\tiny \(2} 2, {\tiny \(3} 3, {\tiny \(4} 4, {\tiny \(5} 5, {\tiny \(6} 6, {\tiny \(7} 7, {\tiny \(8} 8, {\tiny \(9} 9, {\tiny \(10} 10} \axislabels {y}{ {\tiny \(-2} -2,{\tiny \(-1} -1, {\tiny \(1} 1, {\tiny \(2} 2, {\tiny \(3} 3} \dotted \function{-1, 3.5, 0.1}{2*cos(3.14159265*(x+1)/3)+0.5} \function{3.5, 9.5, 0.1}{2*cos(3.14159265*(x+1)/3)+0.5} \end{mfpic} \end{center} \vspace{-.2in} \qed Note that each of the answers given in Example \ref{fitsinusoidtodata1} is one choice out of many possible answers. For example, when fitting a sine function to the data, we could have chosen to start at \(\left(\frac{1}{2}, \frac{1}{2}\right)$$ taking $$A = -2$$. In this case, the phase shift is $$\frac{1}{2}$$ so $$\phi = -\frac{\pi}{6}$$ for an answer of $$S(x) = -2 \sin\left(\frac{\pi}{3} x - \frac{\pi}{6}\right) + \frac{1}{2}$$. Alternatively, we could have extended the graph of $$y=f(x)$$ to the left and considered a sine function starting at $$\left(-\frac{5}{2}, \frac{1}{2}\right)$$, and so on. Each of these formulas determine the same sinusoid curve and their formulas are all equivalent using identities. \phantomsection \label{expandedsinusoid} Speaking of identities, if we use the sum identity for cosine, we can expand the formula to yield $C(x) = A \cos(\omega x + \phi) + B = A\cos(\omega x) \cos(\phi) - A \sin(\omega x)\sin(\phi) + B.$ Similarly, using the sum identity for sine, we get $S(x) = A \sin(\omega x + \phi) + B = A\sin(\omega x) \cos(\phi) + A \cos(\omega x)\sin(\phi) + B.$ Making these observations allows us to recognize (and graph) functions as sinusoids which, at first glance, don't appear to fit the forms of either $$C(x)$$ or $$S(x)$$.

Example $$\PageIndex{1}$$:

Consider the function $$f(x) = \cos(2x) - \sqrt{3} \sin(2x)$$. Find a formula for $$f(x)$$:

1. \item in the form $$C(x) = A \cos(\omega x + \phi) + B$$ for $$\omega > 0 2. \item in the form \(S(x) = A \sin(\omega x + \phi) + B$$ for $$\omega > 0 Check your answers analytically using identities and graphically using a calculator. Solution 1. \item The key to this problem is to use the expanded forms of the sinusoid formulas and match up corresponding coefficients. Equating \(f(x) = \cos(2x) - \sqrt{3} \sin(2x)$$ with the expanded form of $$C(x) = A \cos(\omega x + \phi) + B$$, we get

$\cos(2x) - \sqrt{3} \sin(2x) = A\cos(\omega x) \cos(\phi) - A \sin(\omega x)\sin(\phi) + B$

It should be clear that we can take $$\omega = 2$$ and $$B = 0$$ to get

$\cos(2x) - \sqrt{3} \sin(2x) = A\cos(2x) \cos(\phi) - A \sin(2x)\sin(\phi)$

To determine $$A$$ and $$\phi$$, a bit more work is involved. We get started by equating the coefficients of the trigonometric functions on either side of the equation. On the left hand side, the coefficient of $$\cos(2x)$$ is $$1$$, while on the right hand side, it is $$A \cos(\phi)$$. Since this equation is to hold for all real numbers, we must have\footnote{This should remind you of equation coefficients of like powers of $$x$$ in Section \ref{ParFrac}.} that $$A \cos(\phi) = 1$$. Similarly, we find by equating the coefficients of $$\sin(2x)$$ that $$A \sin(\phi) = \sqrt{3}$$. What we have here is a system of nonlinear equations! We can temporarily eliminate the dependence on $$\phi$$ by using the Pythagorean Identity. We know $$\cos^{2}(\phi) + \sin^{2}(\phi) = 1$$, so multiplying this by $$A^2$$ gives $$A^2\cos^{2}(\phi) + A^2\sin^{2}(\phi) = A^2$$. Since $$A \cos(\phi) = 1$$ and $$A \sin(\phi) = \sqrt{3}$$, we get $$A^2 = 1^2 + (\sqrt{3})^2 = 4$$ or $$A = \pm 2$$. Choosing $$A = 2$$, we have $$2\cos(\phi) = 1$$ and $$2 \sin(\phi) = \sqrt{3}$$ or, after some rearrangement, $$\cos(\phi) = \frac{1}{2}$$ and $$\sin(\phi) = \frac{\sqrt{3}}{2}$$. One such angle $$\phi$$ which satisfies this criteria is $$\phi = \frac{\pi}{3}$$. Hence, one way to write $$f(x)$$ as a sinusoid is $$f(x) = 2 \cos\left(2x + \frac{\pi}{3}\right)$$. We can easily check our answer using the sum formula for cosine $\begin{array}{rcl} f(x) & = & 2 \cos\left(2x + \frac{\pi}{3}\right) \\ [3pt] & = & 2 \left[ \cos(2x) \cos\left(\frac{\pi}{3}\right) - \sin(2x) \sin\left(\frac{\pi}{3}\right) \right]\\ [3pt] & = & 2 \left[ \cos(2x) \left(\frac{1}{2}\right) - \sin(2x) \left(\frac{\sqrt{3}}{2}\right)\right] \\ [3pt] & = & \cos(2x) - \sqrt{3} \sin(2x) \\ \end{array}$

\item Proceeding as before, we equate $$f(x) = \cos(2x) - \sqrt{3} \sin(2x)$$ with the expanded form of $$S(x) = A \sin(\omega x + \phi) + B$$ to get

$\cos(2x) - \sqrt{3} \sin(2x) = A\sin(\omega x) \cos(\phi) + A \cos(\omega x)\sin(\phi) + B$

Once again, we may take $$\omega = 2$$ and $$B = 0$$ so that

$\cos(2x) - \sqrt{3} \sin(2x) = A\sin(2x) \cos(\phi) + A \cos(2x)\sin(\phi)$

We equate\footnote{Be careful here!} the coefficients of $$\cos(2x)$$ on either side and get $$A\sin(\phi) = 1$$ and $$A\cos(\phi) = -\sqrt{3}$$. Using $$A^2\cos^{2}(\phi) + A^2\sin^{2}(\phi) = A^2$$ as before, we get $$A = \pm 2$$, and again we choose $$A = 2$$. This means $$2 \sin(\phi) = 1$$, or $$\sin(\phi) = \frac{1}{2}$$, and $$2\cos(\phi) = -\sqrt{3}$$, which means $$\cos(\phi) = -\frac{\sqrt{3}}{2}$$. One such angle which meets these criteria is $$\phi = \frac{5\pi}{6}$$. Hence, we have $$f(x) = 2 \sin\left(2x + \frac{5\pi}{6}\right)$$. Checking our work analytically, we have $\begin{array}{rcl} f(x) & = & 2 \sin\left(2x + \frac{5\pi}{6}\right) \\ [3pt] & = & 2 \left[ \sin(2x) \cos\left(\frac{5\pi}{6}\right) + \cos(2x) \sin\left(\frac{5\pi}{6}\right) \right]\\ [3pt] & = & 2 \left[ \sin(2x) \left(-\frac{\sqrt{3}}{2}\right) + \cos(2x) \left(\frac{1}{2}\right)\right] \\ [3pt] & = & \cos(2x) - \sqrt{3} \sin(2x) \\ \end{array}$ Graphing the three formulas for $$f(x)$$ result in the identical curve, verifying our analytic work.

\begin{center}

\begin{tabular}{cc}

\includegraphics[width=2in]{./IntroTrigGraphics/TrigGraphs01.jpg} &

\hspace{0.75in} \includegraphics[width=2in]{./IntroTrigGraphics/TrigGraphs02.jpg} \\

\end{tabular}

\end{center}

\qed

It is important to note that in order for the technique presented in Example \ref{expandedsinusoidex1} to fit a function into one of the forms in Theorem \ref{sinusoidform}, the arguments of the cosine and sine function much match. That is, while $$f(x) = \cos(2x) - \sqrt{3} \sin(2x)$$ is a sinusoid, $$g(x) = \cos(2x) - \sqrt{3} \sin(3x)$$ is not.\footnote{This graph does, however, exhibit sinusoid-like characteristics! Check it out!} It is also worth mentioning that, had we chosen $$A = -2$$ instead of $$A = 2$$ as we worked through Example \ref{expandedsinusoidex1}, our final answers would have \textit{looked} different. The reader is encouraged to rework Example \ref{expandedsinusoidex1} using $$A = -2$$ to see what these differences are, and then for a challenging exercise, use identities to show that the formulas are all equivalent. The general equations to fit a function of the form $$f(x) = a \, \cos(\omega x) + b \, \sin(\omega x) + B$$ into one of the forms in Theorem \ref{sinusoidform} are explored in Exercise \ref{sinusoidexercise1}.

## Graphs of the Secant and Cosecant Functions

We now turn our attention to graphing $$y = \sec(x)$$. Since $$\sec(x) = \frac{1}{\cos(x)}$$, we can use our table of values for the graph of $$y = \cos(x)$$ and take reciprocals. We know from Section \ref{circularfunctionsbeyond} that the domain of $$F(x) = \sec(x)$$ excludes all odd multiples of $$\frac{\pi}{2}$$, and sure enough, we run into trouble at $$x = \frac{\pi}{2}$$ and $$x = \frac{3\pi}{2}$$ since $$\cos(x) = 0$$ at these values. Using the notation introduced in Section \ref{RationalGraphs}, we have that as $$x \rightarrow \frac{\pi}{2}^{-}$$, $$\cos(x) \rightarrow 0^{+}$$, so $$\sec(x) \rightarrow \infty$$. (See Section \ref{circularfunctionsbeyond} for a more detailed analysis.) Similarly, we find that as $$x \rightarrow \frac{\pi}{2}^{+}$$, $$\sec(x) \rightarrow -\infty$$; as $$x \rightarrow \frac{3\pi}{2}^{-}$$, $$\sec(x) \rightarrow -\infty$$; and as $$x \rightarrow \frac{3\pi}{2}^{+}$$, $$\sec(x) \rightarrow \infty$$. This means we have a pair of vertical asymptotes to the graph of $$y = \sec(x)$$, $$x = \frac{\pi}{2}$$ and $$x = \frac{3\pi}{2}$$. Since $$\cos(x)$$ is periodic with period $$2\pi$$, it follows that $$\sec(x)$$ is also.\footnote{Provided $$\sec(\alpha)$$ and $$\sec(\beta)$$ are defined, $$\sec(\alpha) = \sec(\beta)$$ if and only if $$\cos(\alpha) = \cos(\beta)$$. Hence, $$\sec(x)$$ inherits its period from $$\cos(x)$$.} Below we graph a fundamental cycle of $$y = \sec(x)$$ \index{secant ! graph of} along with a more complete graph obtained by the usual copying and pasting.'\footnote{In Section \ref{circularfunctionsbeyond}, we argued the range of $$F(x) = \sec(x)$$ is $$(-\infty, -1] \cup [1,\infty)$$. We can now see this graphically.}

As one would expect, to graph $$y = \csc(x)$$ we begin with $$y = \sin(x)$$ and take reciprocals of the corresponding $$y$$-values. Here, we encounter issues at $$x = 0$$, $$x = \pi$$ and $$x = 2\pi$$. Proceeding with the usual analysis, we graph the fundamental cycle of $$y = \csc(x)$$ below along with the dotted graph of $$y=\sin(x)$$ for reference. Since $$y = \sin(x)$$ and $$y = \cos(x)$$ are merely phase shifts of each other, so too are $$y = \csc(x)$$ and $$y = \sec(x)$$. \index{cosecant ! graph of}

Once again, our domain and range work in Section \ref{circularfunctionsbeyond} is verified geometrically in the graph of $$y = G(x) = \csc(x)$$.

Note that, on the intervals between the vertical asymptotes, both $$F(x) = \sec(x)$$ and $$G(x) = \csc(x)$$ are continuous and smooth. In other words, they are continuous and smooth \textit{on their domains}.\footnote{Just like the rational functions in Chapter \ref{Rationals} are continuous and smooth on their domains because polynomials are continuous and smooth everywhere, the secant and cosecant functions are continuous and smooth on their domains since the cosine and sine functions are continuous and smooth everywhere.} The following theorem summarizes the properties of the secant and cosecant functions. Note that all of these properties are direct results of them being reciprocals of the cosine and sine functions, respectively.

Properties of the Secant and Cosecant Functions

1. The function $$F(x) = \sec(x)$$
• has domain $$\left\{ x : x \neq \frac{\pi}{2} + \pi k, \, \, \text{k$$ is an integer} \right\} = \displaystyle{\bigcup_{k=-\infty}^{\infty} \left(\frac{(2k+1) \pi}{2}, \frac{(2k+3) \pi}{2}\right)}\)
• has range $$\{ y : |y| \geq 1 \} = (-\infty, -1] \cup [1, \infty)$$
• is continuous and smooth on its domain
• is even
• has period $$2\pi$$
1. The function $$G(x) = \csc(x)$$
• has domain $$\left\{ x : x \neq \pi k, \, \, \text{k$$ is an integer} \right\} = \displaystyle{\bigcup_{k=-\infty}^{\infty}\left(k\pi, (k+1) \pi \right)}\)
• has range $$\{ y : |y| \geq 1 \} = (-\infty, -1] \cup [1, \infty)$$
• is continuous and smooth on its domain
• is odd
• has period $$2\pi$$

In the next example, we discuss graphing more general secant and cosecant curves.

Example $$\PageIndex{1}$$: seccscgraphex}

Graph one cycle of the following functions. State the period of each.

1. $$f(x) = 1 - 2 \sec(2x) 2. \(g(x) = \dfrac{\csc(\pi - \pi x) - 5}{3} Solution 1. \item To graph \(y = 1 - 2 \sec(2x)$$, we follow the same procedure as in Example \ref{cosinesinegraphex1}. First, we set the argument of secant, $$2x$$, equal to the quarter marks' $$0$$, $$\frac{\pi}{2}$$, $$\pi$$, $$\frac{3\pi}{2}$$ and $$2\pi$$ and solve for $$x$$.

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r|r|r|} \hline a & 2x = a & x \\ \hline 0 & 2x = 0 & 0 \\ \hline \frac{\pi}{2} & 2x = \frac{\pi}{2} & \frac{\pi}{4} \\ \hline \pi & 2x = \pi & \frac{\pi}{2} \\ \hline \frac{3\pi}{2} & 2x = \frac{3\pi}{2} & \frac{3\pi}{4} \\ \hline 2\pi & 2x = 2\pi & \pi \\ \hline \end{array}$

\setlength{\extrarowheight}{0pt}

Next, we substitute these $$x$$ values into $$f(x)$$. If $$f(x)$$ exists, we have a point on the graph; otherwise, we have found a vertical asymptote. In addition to these points and asymptotes, we have graphed the associated cosine curve -- in this case $$y = 1 - 2 \cos(2x)$$ -- dotted in the picture below. Since one cycle is graphed over the interval $$[0,\pi]$$, the period is $$\pi - 0 = \pi$$.

\hspace{.25in} \begin{tabular}{m{2.7in}m{3in}}

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r||r|r|} \hline x & f(x) & (x,f(x)) \\ \hline 0 & - 1 & (0,-1) \\ \hline \frac{\pi}{4} & \text{undefined} & \\ \hline \frac{\pi}{2} & 3 & \left(\frac{\pi}{2}, 3 \right) \\ \hline \frac{3\pi}{4} & \text{undefined} & \\ \hline \pi & -1 & (\pi, -1) \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} &

\begin{mfpic}[27][9]{-1}{4}{-7}{9}

\point[3pt]{(0,-1), (1.5708,3), (3.1416, -1)}

\axes

\tlabel[cc](4,-0.3){\scriptsize $$x} \tlabel[cc](0.25,9){\scriptsize \(y} \tcaption{One cycle of \(y = 1-2\sec(2x)$$.}

\xmarks{0.7854, 1.5708, 2.3562, 3.1416}

\ymarks{-1,1,2,3}

\tlpointsep{4pt}

\scriptsize

\axislabels {x}{{$\frac{\pi}{4}$} 0.7854, {$\frac{\pi}{2}$} 1.5708, {$\frac{3\pi}{4}$} 2.3562, {$\pi$} 3.1416}

\normalsize

\axislabels {y}{{\scriptsize $$-1} -1, {\scriptsize \(1} 1, {\scriptsize \(2} 2, {\scriptsize \(3} 3} \dotted \function{0, 3.1416, 0.1}{1 - 2*cos(2*x)} \dashed \polyline{(0.7854, -7), (0.7854, 9)} \dashed \polyline{(2.3562, -7), (2.3562, 9)} \arrow \function{0, 0.6590, 0.1}{1-2/cos(2*x)} \arrow \reverse \arrow \function{0.9118, 2.230, 0.1}{1-2/cos(2*x)} \arrow \reverse \function{2.4826, 3.14, 0.1}{1-2/cos(2*x)} \end{mfpic} \\ \end{tabular} \item Proceeding as before, we set the argument of cosecant in \(g(x) = \frac{\csc(\pi - \pi x) - 5}{3}$$ equal to the quarter marks and solve for $$x$$.

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r|r|r|} \hline a & \pi - \pi x = a & x \\ \hline 0 & \pi - \pi x = 0 & 1 \\ \hline \frac{\pi}{2} & \pi - \pi x = \frac{\pi}{2} & \frac{1}{2} \\ \hline \pi & \pi - \pi x = \pi & 0 \\ \hline \frac{3\pi}{2} & \pi - \pi x = \frac{3\pi}{2} & -\frac{1}{2} \\ \hline 2\pi & \pi - \pi x = 2\pi & -1 \\ \hline \end{array}$

\setlength{\extrarowheight}{0pt}

Substituting these $$x$$-values into $$g(x)$$, we generate the graph below and find the period to be $$1 - (-1) = 2$$. The associated sine curve, $$y = \frac{\sin(\pi - \pi x) - 5}{3}$$, is dotted in as a reference.

\hspace{.25in} \begin{tabular}{m{2.7in}m{3in}}

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r||r|r|} \hline x & g(x) & (x,g(x)) \\ \hline 1 & \text{undefined} & \\ \hline \frac{1}{2} & -\frac{4}{3} & \left(\frac{1}{2}, -\frac{4}{3} \right) \\ \hline 0 & \text{undefined} & \\ \hline -\frac{1}{2} & -2 & \left(-\frac{1}{2}, -2\right) \\ \hline -1 & \text{undefined} & \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} &

\begin{mfpic}[30]{-2}{2}{-3}{0.5}

\point[3pt]{(0.5,-1.3333), (-0.5, -2)}

\axes

\tlabel[cc](2,-0.3){\scriptsize $$x} \tlabel[cc](0.25,0.5){\scriptsize \(y} \tcaption{One cycle of \(y = \frac{\csc(\pi - \pi x) - 5}{3}$$.}

\xmarks{-1, -0.5, 0.5, 1}

\ymarks{-2,-1}

\tlpointsep{4pt}

\axislabels {x}{{\scriptsize $$-1 \hspace{7pt}} -1, {\scriptsize \(-\frac{1}{2} \hspace{7pt}} -0.5, {\scriptsize \(\frac{1}{2}} 0.5, {\scriptsize \(1} 1} \axislabels {y}{{\scriptsize \(-2} -2, {\scriptsize \(-1} -1} \dotted \function{-1, 1, 0.1}{(sin(3.14159 - 3.14159*x)-5)/3} \dashed \polyline{(-1, -3), (-1, -0.5)} \dashed \polyline{(1, -3), (1,-0.5)} \arrow \reverse \arrow \function{0.9196, 0.08040, -0.1}{((1/sin(3.14159 - 3.14159*x))-5)/3} \arrow \reverse \arrow \function{-0.08043, -0.9196, 0.1}{((1/sin(3.14159 - 3.14159*x))-5)/3} \end{mfpic} \\ \end{tabular} Before moving on, we note that it is possible to speak of the period, phase shift and vertical shift of secant and cosecant graphs and use even/odd identities to put them in a form similar to the sinusoid forms mentioned in Theorem \ref{sinusoidform}. Since these quantities match those of the corresponding cosine and sine curves, we do not spell this out explicitly. Finally, since the ranges of secant and cosecant are unbounded, there is no amplitude associated with these curves. ## Graphs of the Tangent and Cotangent Functions Finally, we turn our attention to the graphs of the tangent and cotangent functions. When constructing a table of values for the tangent function, we see that \(J(x) = \tan(x)$$ is undefined at $$x = \frac{\pi}{2}$$ and $$x = \frac{3\pi}{2}$$, in accordance with our findings in Section \ref{circularfunctionsbeyond}. As $$x \rightarrow \frac{\pi}{2}^{-}$$, $$\sin(x) \rightarrow 1^{-}$$ and $$\cos(x) \rightarrow 0^{+}$$, so that $$\tan(x) = \frac{\sin(x)}{\cos(x)}\rightarrow \infty$$ producing a vertical asymptote at $$x = \frac{\pi}{2}$$. Using a similar analysis, we get that as $$x \rightarrow \frac{\pi}{2}^{+}$$, $$\tan(x) \rightarrow -\infty$$; as $$x \rightarrow \frac{3\pi}{2}^{-}$$, $$\tan(x) \rightarrow \infty$$; and as $$x \rightarrow \frac{3\pi}{2}^{+}$$, $$\tan(x) \rightarrow -\infty$$. Plotting this information and performing the usual copy and paste' produces: \index{tangent ! graph of}

From the graph, it appears as if the tangent function is periodic with period $$\pi$$. To prove that this is the case, we appeal to the sum formula for tangents. We have: $\tan(x+\pi) = \dfrac{\tan(x) + \tan(\pi)}{1 - \tan(x) \tan(\pi)} = \dfrac{\tan(x) + 0}{1 - (\tan(x) )(0)} = \tan(x),$

which tells us the period of $$\tan(x)$$ is at most $$\pi$$. To show that it is exactly $$\pi$$, suppose $$p$$ is a positive real number so that $$\tan(x+p) = \tan(x)$$ for all real numbers $$x$$. For $$x=0$$, we have $$\tan(p) = \tan(0+p) = \tan(0) = 0$$, which means $$p$$ is a multiple of $$\pi$$. The smallest positive multiple of $$\pi$$ is $$\pi$$ itself, so we have established the result. We take as our fundamental cycle for $$y=\tan(x)$$ the interval $$\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)$$, and use as our quarter marks' $$x = -\frac{\pi}{2}$$, $$-\frac{\pi}{4}$$, $$0$$, $$\frac{\pi}{4}$$ and $$\frac{\pi}{2}$$. From the graph, we see confirmation of our domain and range work in Section \ref{circularfunctionsbeyond}.

It should be no surprise that $$K(x) = \cot(x)$$ behaves similarly to $$J(x) = \tan(x)$$. Plotting $$\cot(x)$$ over the interval $$[0,2\pi]$$ results in the graph below. \index{cotangent ! graph of}

\hspace{.5in} \begin{tabular}{m{2.7in}m{3in}}

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r||r|r|} \hline x & \cot(x) & (x,\cot(x)) \\ \hline 0 & \text{undefined} & \\ \hline \frac{\pi}{4} & 1 & \left(\frac{\pi}{4},1 \right) \\ \hline \frac{\pi}{2} & 0 & \left(\frac{\pi}{2},0 \right) \\ \hline \frac{3\pi}{4} & -1 & \left(\frac{3\pi}{4}, -1\right) \\ \hline \pi & \text{undefined} & \\ \hline \frac{5\pi}{4} & 1 & \left(\frac{5\pi}{4}, 1 \right) \\ \hline \frac{3\pi}{2} & 0 & \left(\frac{3\pi}{2}, 0 \right) \\ \hline \frac{7\pi}{4} & -1 & \left(\frac{7\pi}{4}, -1 \right) \\ \hline 2\pi & \text{undefined} & \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} &

\begin{mfpic}[25]{-1}{7}{-4}{4.25}

\point[3pt]{ (0.7854,1), (1.5708,0), (2.3562,-1), (3.9270,1), (4.7124,0), (5.4978,-1)}

\dashed \polyline{(3.1416,-4), (3.1416,4)}

\dashed \polyline{(6.2832,-4), (6.2832,4)}

\axes

\tlabel[cc](7,-0.25){\scriptsize $$x} \tlabel[cc](0.25,4.25){\scriptsize \(y} \tcaption{The graph of \(y = \cot(x)$$ over $$[0,2\pi]$$.}

\xmarks{0.7854, 1.5708, 2.3562, 3.1416, 3.9270, 4.7124,5.4978,6.2832 }

\ymarks{-1,1}

\tlpointsep{4pt}

\scriptsize

\axislabels {x}{{$\frac{\pi}{4}$} 0.7854, {$\frac{\pi}{2}$} 1.5708, {$\frac{3\pi}{4}$} 2.3562, {$\pi$} 3.1416, {$\frac{5\pi}{4}$} 3.9270, {$\frac{3\pi}{2}$} 4.7124, {$\frac{7\pi}{4}$} 5.4978, {$2\pi$} 6.2832}

\axislabels {y}{{\)-1$} -1, {$1$} 1} \normalsize \arrow \reverse \arrow \function{0.2450, 2.8966, 0.1}{cot(x)} \arrow \reverse \arrow \function{3.3865, 6.0382,0.1}{cot(x)} \end{mfpic} \\ \end{tabular} From these data, it clearly appears as if the period of $$\cot(x)$$ is $$\pi$$, and we leave it to the reader to prove this.\footnote{Certainly, mimicking the proof that the period of $$\tan(x)$$ is an option; for another approach, consider transforming $$\tan(x)$$ to $$\cot(x)$$ using identities.} We take as one fundamental cycle the interval $$(0,\pi)$$ with quarter marks: $$x= 0$$, $$\frac{\pi}{4}$$, $$\frac{\pi}{2}$$, $$\frac{3\pi}{4}$$ and $$\pi$$. A more complete graph of $$y=\cot(x)$$ is below, along with the fundamental cycle highlighted as usual. Once again, we see the domain and range of $$K(x) = \cot(x)$$ as read from the graph matches with what we found analytically in Section \ref{circularfunctionsbeyond}. The properties of the tangent and cotangent functions are summarized below. As with Theorem \ref{secantcosecantfunctionprops}, each of the results below can be traced back to properties of the cosine and sine functions and the definition of the tangent and cotangent functions as quotients thereof. Properties of the Tangent and Cotangent Functions \item The function $$J(x) = \tan(x) • \item has domain \(\left\{ x : x \neq \frac{\pi}{2} + \pi k, \, \, \text{k$$ is an integer} \right\} = \displaystyle{\bigcup_{k=-\infty}^{\infty} \left(\frac{(2k+1) \pi}{2}, \frac{(2k+3) \pi}{2}\right)}\) • \item has range $$(-\infty, \infty)$$ • \item is continuous and smooth on its domain • \item is odd • \item has period $$\pi$$ The function $$K(x) = \cot(x)$$ • \item has domain $$\left\{ x : x \neq \pi k, \, \, \text{k$$ is an integer} \right\} = \displaystyle{\bigcup_{k=-\infty}^{\infty}\left(k\pi, (k+1) \pi \right)}\) • \item has range $$(-\infty, \infty)$$ • \item is continuous and smooth on its domain • \item is odd • \item has period $$\pi$$ Example $$\PageIndex{1}$$: Graph one cycle of the following functions. Find the period. 1. \item $$f(x) = 1 - \tan\left(\frac{x}{2}\right)$$. 2. \item $$g(x) = 2\cot\left(\frac{\pi}{2} x + \pi\right) + 1$$. Solution 1. \item We proceed as we have in all of the previous graphing examples by setting the argument of tangent in $$f(x) = 1 - \tan\left(\frac{x}{2}\right)$$, namely $$\frac{x}{2}$$, equal to each of the quarter marks' $$-\frac{\pi}{2}$$, $$-\frac{\pi}{4}$$, $$0$$, $$\frac{\pi}{4}$$ and $$\frac{\pi}{2}$$, and solving for $$x$$. \setlength{\extrarowheight}{2pt} $\begin{array}{|r|r|r|} \hline a & \frac{x}{2} = a & x \\ \hline -\frac{\pi}{2} & \frac{x}{2} = -\frac{\pi}{2} & -\pi \\ \hline -\frac{\pi}{4} &\frac{x}{2} = -\frac{\pi}{4} & - \frac{\pi}{2} \\ \hline 0 & \frac{x}{2} = 0 & 0 \\ \hline \frac{\pi}{4} & \frac{x}{2} = \frac{\pi}{4} & \frac{\pi}{2} \\ \hline \frac{\pi}{2} & \frac{x}{2} = \frac{\pi}{2} & \pi \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} Substituting these $$x$$-values into $$f(x)$$, we find points on the graph and the vertical asymptotes. \hspace{.25in} \begin{tabular}{m{2.7in}m{3in}} \setlength{\extrarowheight}{2pt} $\begin{array}{|r||r|r|} \hline x & f(x) & (x,f(x)) \\ \hline -\pi & \text{undefined} & \\ \hline -\frac{\pi}{2} & 2 & \left(-\frac{\pi}{2}, 2 \right) \\ \hline 0 & 1 & (0,1) \\ \hline \frac{\pi}{2} & 0 & \left(\frac{\pi}{2}, 0 \right) \\ \hline \pi & \text{undefined} & \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} & \begin{mfpic}[20]{-4}{4}{-3}{5} \point[3pt]{(-1.5708,2),(0,1), (1.5708,0)} \axes \tlabel[cc](4,-0.3){\scriptsize $$x} \tlabel[cc](0.25,5){\scriptsize \(y} \tcaption{One cycle of \(y = 1 - \tan\left(\frac{x}{2}\right)$$.} \xmarks{ -3.1416, -1.5708, 1.5708, 3.1416} \ymarks{-2,-1,1,2} \tlpointsep{4pt} \scriptsize \axislabels {x}{{\)-\pi \hspace{7pt}$} -3.1416,{\)-\frac{\pi}{2} \hspace{7pt}$} -1.5708, {$\frac{\pi}{2}$} 1.5708,, {$\pi\$} 3.1416}

\normalsize

\axislabels {y}{{\scriptsize $$-2} -2,{\scriptsize \(-1} -1, {\scriptsize \(1} 1, {\scriptsize \(2} 2} \dashed \polyline{(-3.1416, -3), (-3.1416, 5)} \dashed \polyline{(3.1416, -3), (3.1416, 5)} \arrow \reverse \arrow \function{-2.6516, 2.6516, 0.1}{1-tan(0.5*x)} \end{mfpic} \\ \end{tabular} We see that the period is \(\pi - (-\pi) = 2\pi$$.

\item The `quarter marks' for the fundamental cycle of the cotangent curve are $$0$$, $$\frac{\pi}{4}$$, $$\frac{\pi}{2}$$, $$\frac{3\pi}{4}$$ and $$\pi$$. To graph $$g(x) = 2\cot\left(\frac{\pi}{2} x + \pi\right) + 1$$, we begin by setting $$\frac{\pi}{2} x + \pi$$ equal to each quarter mark and solving for $$x$$.

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r|r|r|} \hline a & \frac{\pi}{2} x + \pi = a & x \\ \hline 0 & \frac{\pi}{2} x + \pi = 0 & -2 \\ \hline \frac{\pi}{4} & \frac{\pi}{2} x + \pi = \frac{\pi}{4} & -\frac{3}{2} \\ \hline \frac{\pi}{2} & \frac{\pi}{2} x + \pi = \frac{\pi}{2} & -1 \\ \hline \frac{3\pi}{4} & \frac{\pi}{2} x + \pi =\frac{3\pi}{4} & -\frac{1}{2} \\ \hline \pi & \frac{\pi}{2} x + \pi = \pi & 0 \\ \hline \end{array}$

\setlength{\extrarowheight}{0pt}

We now use these $$x$$-values to generate our graph.

\hspace{.25in} \begin{tabular}{m{2.7in}m{3in}}

\setlength{\extrarowheight}{2pt}

$\begin{array}{|r||r|r|} \hline x & g(x) & (x,g(x)) \\ \hline -2 & \text{undefined} & \\ \hline -\frac{3}{2} & 3 & \left(-\frac{3}{2}, 3 \right) \\ \hline -1 & 1 & (-1,1) \\ \hline -\frac{1}{2} & -1 & \left(-\frac{1}{2}, -1 \right) \\ \hline 0 & \text{undefined} & \\ \hline \end{array}$ \setlength{\extrarowheight}{0pt} &

\begin{mfpic}[30][20]{-3}{1}{-2}{4}

\point[3pt]{(-1.5,3),(-1,1), (-0.5,-1)}

\axes

\tlabel[cc](1,-0.3){\scriptsize $$x} \tlabel[cc](0.25,4){\scriptsize \(y} \tcaption{\scriptsize One cycle of \(y = 2\cot\left(\frac{\pi}{2} x + \pi\right) + 1$$.}

\xmarks{ -2, -1}

\ymarks{-1,1,2,3}

\tlpointsep{4pt}

\axislabels {x}{{\scriptsize $$-2 \hspace{7pt}} -2,{\scriptsize \(-1 \hspace{7pt}} -1} \axislabels {y}{{\scriptsize \(-1} -1,{\scriptsize \(1} 1, {\scriptsize \(2} 2, {\scriptsize \(3} 3} \dashed \polyline{(-2, -2), (-2, 4)} \arrow \reverse \arrow \function{-1.62566, -0.3743, 0.1}{1+2*cot((1.5708*x)+ 3.1416)} \end{mfpic} \\ \end{tabular} We find the period to be \(0 - (-2) = 2$$. \qed

\end{enumerate}

\end{ex}

As with the secant and cosecant functions, it is possible to extend the notion of period, phase shift and vertical shift to the tangent and cotangent functions as we did for the cosine and sine functions in Theorem \ref{sinusoidform}. Since the number of classical applications involving sinusoids far outnumber those involving tangent and cotangent functions, we omit this. The ambitious reader is invited to formulate such a theorem, however.

## Contributors

• Carl Stitz, Ph.D. (Lakeland Community College) and Jeff Zeager, Ph.D. (Lorain County Community College)