Skip to main content
Mathematics LibreTexts

7.2: Graphs of the Other Trig Functions

  • Page ID
    145597
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    In this section, we will explore the graphs of the other four trigonometric functions. We’ll begin with the tangent function. Recall that in Chapter 5 we defined tangent as \(y\)/\(x\) or sine/cosine, so you can think of the tangent as the slope of a line through the origin making the given angle with the positive \(x\) axis.

    At an angle of 0, the line would be horizontal with a slope of zero. As the angle increases towards \(\pi \)/2, the sloA graph of tangent of theta. Dashed lines showing vertical asymptotes are drawn at theta equals negative pi over 2 and at pi over 2.  Between these asymptotes, the graph increases, concave down to the left of the origin, and concave up to the right of the origin, approaching infinity as theta approches pi over 2 from the left, and approaching negative infinity as theta approachs negative pi over 2 from the right.  This shape is repeated to the left and right, so another segment to the right of pi over 2 passes through pi comma 0.pe increases more and more. At an angle of \(\pi \)/2, the line would be vertical and the slope would be undefined. Immediately past \(\pi \)/2, the line would have a steep negative slope, giving a large negative tangent value. There is a break in the function at \(\pi \)/2, where the tangent value jumps from large positive to large negative.

    We can use these ideas along with the definition of tangent to sketch a graph. Since tangent is defined as sine/cosine, we can determine that tangent will be zero when sine is zero: at -\(\pi \), 0, \(\pi \), and so on. Likewise, tangent will be undefined when cosine is zero: at -\(\pi \)/2, \(\pi \)/2, and so on.

    The tangent is positive from 0 to \(\pi \)/2 and \(\pi \) to 3\(\pi \)/2, corresponding to quadrants 1 and 3 of the unit circle.

    Using technology, we can obtain a graph of tangent on a standard grid.

    A graph of tangent of theta on a standard axis

    Notice that the graph appears to repeat itself. For any angle on the circle, there is a second angle with the same slope and tangent value halfway around the circle, so the graph repeats itself with a period of \(\pi \); we can see one continuous cycle from - \(\pi \)/2 to \(\pi \)/2, before it jumps and repeats itself.

    The graph has vertical asymptotes and the tangent is undefined wherever a line at that angle would be vertical: at \(\pi \)/2, 3\(\pi \)/2, and so on. While the domain of the function is limited in this way, the range of the function is all real numbers.

    FEATURES OF THE GRAPH OF TANGENT

    The graph of the tangent function \(m(\theta )=\tan (\theta )\)

    • The period of the tangent function is \(\pi \)
    • The domain of the tangent function is \(\theta \ne \dfrac{\pi }{2} +k\pi\), where \(k\) is an integer
    • The range of the tangent function is all real numbers, \((-\infty ,\infty )\)

    With the tangent function, like the sine and cosine functions, horizontal stretches/compressions are distinct from vertical stretches/compressions. 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.

    Example \(\PageIndex{1}\)

    Find a formula for the function graphed here.

    A graph showing three increasing segments, each concave down at first, then switching to concave up. The first segment passes through negative 8 comma 0, the second through the origin, and the third through 8 comma 0.  The middle segment approaches negative infinity as theta approaches negative 4 from the right, and approaches infinity as theta approaches 4 from the left.

    Solution

    The graph has the shape of a tangent function, however the period appears to be 8. We can see one full continuous cycle from -4 to 4, suggesting a horizontal stretch. To stretch \(\pi \) to 8, the input values would have to be multiplied by\(\dfrac{8}{\pi }\). Since the constant \(k\) in \(f(\theta )=a\tan \left(k\theta \right)\)is the reciprocal of the horizontal stretch \(\dfrac{8}{\pi }\), the equation must have form

    \[f(\theta )=a\tan \left(\dfrac{\pi }{8} \theta \right).\nonumber\]

    We can also think of this the same way we did with sine and cosine. The period of the tangent function is \(\pi\) but it has been transformed and now it is 8; remember the ratio of the “normal period” to the “new period” is \(\dfrac{\pi }{8}\)and so this becomes the value on the inside of the function that tells us how it was horizontally stretched.

    To find the vertical stretch a, we can use a point on the graph. Using the point (2, 2)

    \[2=a\tan \left(\dfrac{\pi }{8} \cdot 2\right)=a\tan \left(\dfrac{\pi }{4} \right)\nonumber\] Since \[\tan \left(\dfrac{\pi }{4} \right)=1,\quad a = 2\nonumber\]

    This function would have a formula\[f(\theta )=2\tan \left(\dfrac{\pi }{8} \theta \right)\nonumber\]

    Exercise \(\PageIndex{1}\)

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

    Answer

    A tangent graph, with vertical asysmptoes at negative 3 and 3.  There are increasing segments between and on either side of the asymptotes.  The middle one passes through the origin, the next passes through 6 comma 0.

    For the graph of secant, we remember the reciprocal identity where \(\sec (\theta )=\dfrac{1}{\cos (\theta )}\). Notice that the function is undefined when the cosine is 0, leading to a vertical asymptote in the graph at \(\pi/2 \)/, \(3\pi/2\), etc. Since the cosine is always no more than one in absolute value, the secant, being the reciprocal, will always be no less than one in absolute value. Using technology, we can generate the graph. The graph of the cosine is shown dashed so you can see the relationship.

    A graph of cosine is shown dashed. The graph of secant is formed out of distinct U-shaped segments, each between vertical asymptotes located at each value where cosine is 0, including pi over 2 and 3 pi over 2.  The center U-shaped segment opens upwards, with the lowest point of the U touching the peak of the cosine at 0 comma 1.  The next U-shaped segment opens downwards, with the highest point of the inverted U touching the lowest point of the cosine at pi comma negative 1.  This pattern repeats, with each U-shaped segment touching a peak of valley of the cosine.

    \[f(\theta )=\sec (\theta )=\dfrac{1}{\cos (\theta )}\nonumber\]

    The graph of cosecant is similar. In fact, since \(\sin (\theta )=\cos \left(\dfrac{\pi }{2} -\theta \right)\), it follows that \(\csc (\theta )=\sec \left(\dfrac{\pi }{2} -\theta \right)\), suggesting the cosecant graph is a horizontal shift of the secant graph. This graph will be undefined where sine is 0. Recall from the unit circle that this occurs at 0, \(\pi \), 2\(\pi \), etc. The graph of sine is shown dashed along with the graph of the cosecant.

    A graph of sine is shown dashed. The graph of cosecant is formed out of distinct U-shaped segments, each between vertical asymptotes located at each value where sine is 0, including 0 and pi.  One U-shaped segment opens upwards, with the lowest point of the U touching the peak of the sine at pi over 2 comma 1.  The next U-shaped segment opens downwards, with the highest point of the inverted U touching the lowest point of the sine at 3 pi over 2 comma negative 1.  This pattern repeats, with each U-shaped segment touching a peak of valley of the sine.

    \[f(\theta )=\csc (\theta )=\dfrac{1}{\sin (\theta )}\nonumber\]

    FEATURES OF THE GRAPH OF SECANT AND COSECANT

    The secant and cosecant graphs have period \(2\pi \) like the sine and cosine functions.

    • Secant has domain \(\theta \ne \dfrac{\pi }{2} +k\pi\), where \(k\) is an integer
    • Cosecant has domain \(\theta \ne k\pi\), where \(k\) is an integer
    • Both secant and cosecant have range of \((-\infty ,-1]\bigcup [1,\infty )\)

    Example \(\PageIndex{2}\)

    Sketch a graph of \(f(\theta )=2\csc \left(\dfrac{\pi }{2} \theta \right)+1\). What is the domain and range of this function?

    Solution

    The basic cosecant graph has vertical asymptotes at the integer multiples of \(\pi \). Because of the factor \(\dfrac{\pi }{2}\) inside the cosecant, the graph will be compressed by \(\dfrac{2}{\pi }\), so the vertical asymptotes will be compressed to \(\theta =\dfrac{2}{\pi } \cdot k\pi =2k\). In other words, the graph will have vertical asymptotes at the integer multiples of 2, and the domain will correspondingly be \(\theta \ne 2k\), where \(k\) is an integer.

    The basic sine graph has a range of [-1, 1]. The vertical stretch by 2 will stretch this to [-2, 2], and the vertical shift up 1 will shift the range of this function to [-1, 3].

    The basic cosecant graph has a range of \((-\infty ,-1] \bigcup [1,\infty )\). The vertical stretch by 2 will stretch this to \((-\infty ,-2] \bigcup [2,\infty )\), and the vertical shift up 1 will shift the range of this function to \((-\infty ,-1] \bigcup [3,\infty )\).

    The resulting graph is shown to the right.A cosecant and sine graph shown on the same axes. The sine graph is dashed, and has midline at 1, amplitude 2, and a period of 4, reaching a peak at 1 comma 3 and a lowest point at 3 comma negative 1, and touching the midline at 0 comma 1 and 2 comma 1.  The cosecant graph has U-shaped segments.  One segment is upwards opening, touching the sine graph at 1 comma 3, with vertical asymptotes on either side at 0 and 2.  The next segment is downwards opening, touching the sine graph at 3 comma negative 1, with vertical asymptotes on either side at 2 and 4.

    Notice how the graph of the transformed cosecant relates to the graph of \(f(\theta )=2\sin \left(\dfrac{\pi }{2} \theta \right)+1\) shown dashed.

    Exercise \(\PageIndex{2}\)

    Given the graph of \(f(\theta )=2\cos \left(\dfrac{\pi }{2} \theta \right)+1\) shown, sketch the graph of \(g(\theta )=2\sec\left( \frac{\pi }{2}\theta \right)+1\) A sinusoidal graph in the shape of a cosine function.  It has a lowest point at negative 2 comma negative 2, a highest point at 0 comma 3, and another lowest point at 2 comma negative 1.on the same axes.

    Answer

    A secant graph, drawn on top of a cosine graph. The secant graph has upwards-opening U-shaped segments with the lowest points touching the cosine graph at 0 comma 3 and 4 comma 3, and has downwards-opening U-shaped segments with the highest points touching the cosine graph at negative 2 comma negative 1 and 2 comma negative 1.

    Finally, we’ll look at the graph of cotangent. Based on its definition as the ratio of cosine to sine, it will be undefined when the sine is zero: at at 0, \(\pi \), 2\(\pi \), etc. The resulting graph is similar to that of the tangent. In fact, it is a horizontal flip and shift of the tangent function, as we’ll see shortly in the next example.

    A cotangent graph, similar to a shifted, vertically flipped tangent graph.  It has vertical asymptotes at 0, pi, 2 pi, etc, with decreasing segments between each consecutive asymptote. One segment approaches infinity as theta approaches 0 from the right, and decreases concave up to pi over 2 comma 0, then decreases concave down, approaching infinity as theta approaches pi from the left.

    FEATURES OF THE GRAPH OF COTANGENT

    • The cotangent graph has period \(\pi \)
    • Cotangent has domain \(\theta \ne k\pi\), where \(k\) is an integer
    • Cotangent has range of all real numbers, \((-\infty ,\infty )\)

    In Section 6.1, we determined that the sine function was an odd function and the cosine was an even function by observing the graph and establishing the negative angle identities for cosine and sine. Similarly, you may notice from its graph that the tangent function appears to be odd. We can verify this using the negative angle identities for sine and cosine:

    \[\tan \left(-\theta \right)=\dfrac{\sin \left(-\theta \right)}{\cos \left(-\theta \right)} =\dfrac{-\sin \left(\theta \right)}{\cos \left(\theta \right)} =-\tan \left(\theta \right)\nonumber\]

    The secant, like the cosine it is based on, is an even function, while the cosecant, like the sine, is an odd function.

    NEGATIVE ANGLE IDENTITIES TANGENT, COTANGENT, SECANT AND COSECANT

    \[\tan \left(-\theta \right)=-\tan \left(\theta \right)\]

    \[\cot \left(-\theta \right)=-\cot \left(\theta \right)\]

    \[\sec \left(-\theta \right)=\sec \left(\theta \right)\]

    \[\csc \left(-\theta \right)=-\csc \left(\theta \right)\]

    Example \(\PageIndex{3}\)

    Prove that \(\tan \left(\theta \right)=-\cot \left(\theta -\dfrac{\pi }{2} \right)\).

    Solution

    \[\tan \left(\theta \right)\nonumber\]Using the definition of tangent
    \[=\dfrac{\sin \left(\theta \right)}{\cos \left(\theta \right)}\nonumber\]Using the cofunction identities
    \[=\dfrac{\cos \left(\dfrac{\pi }{2} -\theta \right)}{\sin \left(\dfrac{\pi }{2} -\theta \right)}\nonumber\]Using the definition of cotangent
    \[=\cot \left(\dfrac{\pi }{2} -\theta \right)\nonumber\]Factoring a negative from the inside
    \[=\cot \left(-\left(\theta -\dfrac{\pi }{2} \right)\right)\nonumber\]Using the negative angle identity for cot
    \[=-\cot \left(\theta -\dfrac{\pi }{2} \right)\nonumber\]

    Important Topics of This Section

    • The tangent and cotangent functions
    • Period
    • Domain
    • Range
    • The secant and cosecant functions
    • Period
    • Domain
    • Range
    • Transformations
    • Negative Angle identities

    This page titled 7.2: Graphs of the Other Trig Functions is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by David Lippman & Melonie Rasmussen (The OpenTextBookStore) via source content that was edited to the style and standards of the LibreTexts platform.