2.2: Graphs of the Secant and Cosecant Functions

Analyzing the Graphs of \(y = \sec x\) and \(y = \csc x\)

The secant function was defined by the reciprocal identity \(sec \, x=\dfrac\). Notice that the function is undefined when the cosine is \(0\), leading to vertical asymptotes at \(\dfrac<\pi>\), \(\dfrac<3\pi>\) etc. Because the cosine is never more than \(1\) in absolute value, the secant, being the reciprocal, will never be less than \(1\) in absolute value.

We can graph \(y=\sec x\) by observing the graph of the cosine function because these two functions are reciprocals of one another. See Figure \(\PageIndex\). 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 - this is because the inverse of 0 is undefined. 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\).

A graph of cosine of x and secant of x. Asymptotes for secant of x shown at -3pi/2, -pi/2, pi/2, and 3pi/2.

Because there are no maximum or minimum values of a tangent function, the term amplitude cannot be interpreted as it is for the sine and cosine functions. Instead, we will use the phrase stretching/compressing factor when referring to the constant \(A\).

FEATURES OF THE GRAPH OF \(Y = A \sec(Bx)\)

Similar to the secant, the cosecant is defined by the reciprocal identity \(\csc x=\dfrac\). Notice that the function is undefined when the sine is \(0\), leading to a vertical asymptote in the graph at \(0\), \(\pi\), etc. Since the sine is never more than \(1\) in absolute value, the cosecant, being the reciprocal, will never be less than \(1\) in absolute value.

We can graph \(y=\csc x\) by observing the graph of the sine function because these two functions are reciprocals of one another. See Figure \(\PageIndex\). The graph of sine is shown as a dashed orange wave so we can see the relationship. Where the graph of the sine function decreases, the graph of the cosecant function increases. Where the graph of the sine function increases, the graph of the cosecant function decreases.

The cosecant graph has vertical asymptotes at each value of \(x\) where the sine graph crosses the \(x\)-axis; we show these in the graph below with dashed vertical lines.

Note that, since sine is an odd function, the cosecant function is also an odd function. That is, \(\csc(−x)=−\csc x\).

The graph of cosecant, which is shown in Figure \(\PageIndex\), is similar to the graph of secant.

A graph of cosecant of x and sin of x. Five vertical asymptotes shown at multiples of pi.

FEATURES OF THE GRAPH OF \(Y = A \csc(Bx)\)

Graphing Variations of \(y = \sec x\) and \(y= \csc x\)

For shifted, compressed, and/or stretched versions of the secant and cosecant functions, 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.

FEATURES OF THE GRAPH OF \(Y = A\sec(Bx−C)+D\)

FEATURES OF THE GRAPH OF \(Y = A\csc(Bx−C)+D\)

  1. The stretching factor is \(|A|\).
  2. The period is \(\dfrac<2\pi><|B|>\).
  3. The domain is \(x≠\dfrac+\dfrac<\pi><2| B |>k\),where \(k\) is an integer.
  4. The range is \((−∞,−|A|]∪[|A|,∞)\).
  5. The vertical asymptotes occur at \(x=\dfrac+\dfrac<\pi><|B|>k\),where \(k\) is an integer.
  6. There is no amplitude.
  7. \(y=A\csc(Bx)\) is an odd function because sine is an odd function.

HOWTO: Given a function of the form \(y=A\sec(Bx)\), graph one period

  1. Sketch the function \(y=A\cos(Bx)\).
  2. Draw vertical asymptotes where the curve crosses the midline, which is the \(x\)-axis
  3. Fill in the secant curve in between the asymptotes. Where the cosine curve has a maximum, the secant curve will have an upward U. Where the cosine curve has a minimum, the secant curve will have a downward U.

Example \(\PageIndex\): Graphing a Variation of the Secant Function

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

Solution

clipboard_ee82e805893673fbf67dcaece80a3635a.png

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

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

A graph of one period of a modified secant function, which looks like an downward facing parabola and a upward facing parabola.

Q&A: Do the vertical shift and stretch/compression affect the secant’s range?

Given a function of the form \(f(x)=A\sec(Bx−C)+D\), graph one period.

  1. Draw the graph of \(f(x)=A\cos(Bx−C)+D\)
  2. Sketch the vertical asymptotes, which occur where the cosine curve passes through its midline at \(y=D\)
  3. Fill in the secant curve in between the asymptotes. Where the cosine curve has a maximum, the secant curve will have an upward U. Where the cosine curve has a minimum, the secant curve will have a downward U.

Example \(\PageIndex\): Graphing a Variation of the Secant Function

Graph one period of \(y=\sec \left (2x−\dfrac<\pi> \right )+3\).

Solution

clipboard_eee1ee4e9f705882726ae375841dbe463.png

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

A graph of one period of a modified secant function. There are two vertical asymptotes, one at approximately x=-pi/20 and one approximately at 3pi/16.

Answer

Q&A: The domain of \(\csc \, x\) was given to be all \(x\) such that \(x≠k\pi\) for any integer \(k\). Would the domain of \(y=A\csc(Bx−C)+D\) be \(x≠\dfrac\)?

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.

Given a function of the form \(y=A\csc(Bx)\), graph one period.

  1. Sketch the function \(y=A\sin(Bx)\).
  2. Draw vertical asymptotes where the curve crosses the midline, which is the \(x\)-axis
  3. Fill in the cosecant curve in between the asymptotes. Where the sine curve has a maximum, the cosecant curve will have an upward U. Where the sine curve has a minimum, the cosecant curve will have a downward U.

Example \(\PageIndex\): Graphing a Variation of the Cosecant Function

Graph one period of \(f(x)=−3\csc(4x)\).

Solution

A graph of one period of a cosecant function. There are vertical asymptotes at x=0, x=pi/4, and x=pi/2.

Graph \(f(x)=0.5\csc(2x)\) over at least two periods.

clipboard_ef7b2e008cc3c176d99d7b5d9b50987d2.png

Answer

Given a function of the form \(f(x)=A \csc(Bx−C)+D\), graph one period

  1. Draw the graph of \(f(x)=A\sin(Bx−C)+D\)
  2. Sketch the vertical asymptotes, which occur where the sine curve passes through its midline at \(y=D\)
  3. Fill in the cosecant curve in between the asymptotes. Where the sine curve has a maximum, the cosecant curve will have an upward U. Where the sine curve has a minimum, the cosecant curve will have a downward U.

Example \(\PageIndex\): Graphing a Vertically Stretched, Horizontally Compressed, and Vertically Shifted Cosecant

Sketch a graph of \(y=2\csc \left (\dfrac<\pi>x \right )+1\).

Solution

The graph for this function is shown in Figure \(\PageIndex\) in dark blue. The orange dashed line is the sine curve and the dashed vertical blue and green lines are the vertical asymptotes.

A graph of 3 periods of a modified cosecant function, with 3 vertical asymptotes, and a dotted sinusoidal function that has local maximums where <a href=the cosecant function has local minimums and local minimums where the cosecant function has local maximums." />

Analysis

The vertical asymptotes shown on the graph mark off one period of the function, and the local extrema in this interval are shown by dots. Notice how the graph of the transformed cosecant relates to the graph of \(f(x)=2\sin \left (\frac<\pi>x \right )+1\),shown as the orange dashed wave.

Given the graph of \(f(x)=2\cos \left (\frac<\pi>x \right )+1\) shown in Figure \(\PageIndex\), sketch the graph of \(g(x)=2\sec \left (\dfrac<\pi>x \right )+1\) on the same axes.

A graph of two periods of a modified cosine function. Range is [-1,3], <a href=graphed from x=-4 to x=4." />Answer A graph of two periods of both a secant and consine function. Grpah shows that cosine function has local maximums where secant function has local minimums and vice versa.

Key Equations

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

Key Concepts

Contributors and Attributions

This page titled 2.2: Graphs of the Secant and Cosecant Functions is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.

  1. Back to top

Recommended articles

  1. Article type Section or Page Author OpenStax License CC BY License Version 4.0 Show Page TOC no
  2. Tags
    1. compressing
    2. cosecant
    3. Cosecant Function
    4. period
    5. source@https://openstax.org/details/books/precalculus
    6. source[1]-math-1520
    7. source[2]-math-1520
    8. stretching