Skip to main content
Logo image

Section 2.2 Graphs of Other Trigonometric Functions

This section explores the graphs of tangent, cotangent, cosecant, and secant, including their periodic behaviors and transformations.

Subsection 2.2.1 Domains of the Tangent and Cotangent Functions

Recall the Quotient Identity for tangent (Definition 1.4.3):
tanx=sinxcosx
Issues arise when the denominator is zero, i.e., when cosx=0. This leads to undefined points at x=,3π2,π2,π2,3π2,5π2,. In general, any angle of the form nπ2, where n is an odd integer, should be excluded from the domain since tangent is undefined at these values.
Similarly, we defined the cotangent function as
cotx=cosxsinx
The denominator becomes zero when sinx=0, corresponding to x=,π,0,π,2π,. In general, cotx is undefined for angles of the form nπ, where n is an integer. These angles should be excluded from the domain of cotangent.

Remark 2.2.1. Domains for Tangent and Cotangent.

The domains for tangent and cotangent functions are given in Table 2.2.2
Table 2.2.2. Domains of the tangent and cotangent functions
Function Domain
tanθ All real numbers except odd multiples of π2 (90)
cotθ All real numbers except integer multiples of π (180)

Subsection 2.2.2 Ranges of the Tangent and Cotangent Functions

To determine the range of the tangent function, consider the point P(x,y) on the unit circle corresponding to the angle θ, and let a be a real number such that a=tanθ=yx.
Multiplying both sides by x, we obtain:
y=ax
Squaring both sides yields:
y2=a2x2
Substituting into the Pythagorean Identity (Definition 1.5.20), we have:
1=x2+y2=x2+a2x2=x2(1+a2)
Dividing both sides by 1+a2 and taking the square root gives:
x=±11+a2
Similarly, we obtain:
y=±a1+a2
Thus, we conclude:
tanθ=yx=a1+a211+a2=a
In other words, since a can be any real number and tanθ=a, the range of the tangent function consists of all real numbers. A similar method can be used to show that the range of the cotangent function is also the set of all real numbers.

Remark 2.2.3. Ranges for Tangent and Cotangent.

The ranges for tangent and cotangent functions are given in Table 2.2.4
Table 2.2.4. Ranges of the tangent and cotangent functions
Function Range
tanθ All real numbers
cotθ All real numbers

Subsection 2.2.3 Domains of the Cosecant and Secant Functions

Consider the Reciprocal Identity for the cosecant function (Definition 1.4.2):
cscx=1sinx
When sinx=0, corresponding to x=,π,0,π,2π,, the denominator becomes zero. In general, cscx is undefined for angles of the form nπ, where n is an integer, and these values should be excluded from the domain.
Similarly, since the cosecant function is defined as
secx=1cosx
we see that secx is undefined when cosx=0. This occurs at x=,3π2,π2,π2,3π2,5π2,, and thus any angle of the general form nπ2, where n is an odd integer, should be excluded from the domain of secx.

Remark 2.2.5. Domains for Cosecant and Secant.

The domains for cosecant and secant functions are given in Table 2.2.6
Table 2.2.6. Domains of the trigonometric functions
Function Domain
cscθ All real numbers except integer multiples of π (180)
secθ All real numbers except integer multiples of π2 (90)

Subsection 2.2.4 Ranges of the Cosecant and Secant Functions

If the angle is not an integer multiple of π, i.e. xnπ, where n is an integer, then the Reciprocal Identity allows us to define cosecant as
cscx=1sinx.
In Subsection 2.1.1, we learned that the function y=sinx has a range of
1sinx1.
Therefore, taking the reciprocal of the range of sine, we get
cscx1 or cscx1.
In other words, the range of the cosecant function is all real numbers less than or equal to 1 or greater than or equal to 1.
Similarly, since 1cosx1, we can get the range for the secant funcation as
secx1 or secx1
or all real numbers less than or equal to 1 or greater than or equal to 1.

Remark 2.2.7. Ranges for Cosecant and Secant.

The ranges for cosecant and secant functions are given in Table 2.2.8
Table 2.2.8. Ranges of the cosecant and secant functions
Function Range
cscθ All real numbers greater than or equal to 1 or less than or equal to 1
secθ All real numbers greater than or equal to 1 or less than or equal to 1

Subsection 2.2.5 The Tangent Function

In Subsection 1.5.4, we learned that the tangent function is periodic with a period of π. To graph y=tanx, we focus on plotting one period and then repeat those values to complete the graph.
We also know that the domain of tangent includes all real numbers except any angle of the form nπ2, where n is an odd integer. These values are excluded since tangent is undefined there. In fact, any line of the form x=nπ2 (e.g. x=π2 and x=π2) is a vertical asymptote
Knowing the location of the vertical asymptotes, we choose the interval (π2,π2) to plot our points for tangent. This interval has a length of π (one period), allowing us to repeat the values to complete the graph of tangent over the entire domain.
Recall from Definition 1.3.2 that on the unit circle, the expression tanθ=yx denotes the ratio of the y-coordinate to the x-coordinate of a point P(x,y) associated with an angle θ. This ratio changes dynamically as θ varies from zero to π2.
As θ approaches zero, the y-value tends to zero, and x approaches 1, resulting in tanθ being a small fraction. Conversely, as θ approaches π2, the y-value approaches 1, while x becomes extremely small and near zero. This causes tanθ to evaluate as a fraction divided by a very small number, producing a large number. A similar effect occurs when θ is between π2 and zero, except tanθ is negative in this range. This behavior is shown in Figure 2.2.9.
Figure 2.2.9. As θ moves from 90 to 90, this figure plots the values of y=tanθ. Move the slider for θ to see how changing the angle affects tanθ. Note that while we will generally be using radians when graphing trigonometric functions, this figure uses degrees to help visualize the angle.
Next we recall values of tangent for known angles, which are listed in Table 2.2.10 and plotted in Figure 2.2.11.
Table 2.2.10. Values for y=tanx
x tanx (x,y)
π3 3 (π3,3)
π4 1 (π4,1)
π6 33 (π6,33)
0 0 (0,0)
π6 33 (π6,33)
π4 1 (π4,1)
π3 3 (π3,3)
Figure 2.2.11. The values in Table 2.2.10 plotted on a graph with a smooth curve connecting the points to make the curve for y=tan(x).
Notice the symmetrical nature of the tangent function’s graph with respect to the origin, a feature explained in Section 1.5.7, where we learned that tangent is an odd function.
Since the graph in Figure 2.2.11 represents one period, we can complete the graph of y=tanx by extending the pattern in both directions to obtain Figure 2.2.12.
Figure 2.2.12. The plot for y=tan(x)

Subsection 2.2.6 The Cotangent Function

The domain of the cotangent function is defined for all angles except those of the form nπ, where n is an integer. These excluded values correspond to vertical asymptotes. In fact, any line of the form x=nπ, where n is an integer, serves as a vertical asymptote. Additionally, as we learned in Subsection 1.5.4, the cotangent function has a period of π. We can construct a plot for it in a manner similar to how we constructed the tangent function, as illustrated in Figure 2.2.13.
Figure 2.2.13. As θ moves from 0 to 180, this figure plots the values of y=cotθ. Move the slider for θ to see how changing the angle affects cotθ. Note that while we will generally be using radians when graphing trigonometric functions, this figure uses degrees to help visualize the angle.
Plotting points for y=cotx and using the fact that the cotangent function is periodic, we obtain the graph for cotangent in Figure 2.2.14
Figure 2.2.14. The plot for y=cot(x).
The symmetry of the cotangent function about the origin is evident, confirming its nature as an odd function, as explained in Section 1.5.7.

Subsection 2.2.7 The Cosecant Function

The cosecant function has vertical asymptotes at points nπ, where n is an integer, corresponding to the values where the function is undefined. These points are the same ones excluded from the domain of cscx. As discussed in Subsection 1.5.4, the cosecant function has a period of 2π. Given this, we choose to examine its behavior within one period, specifically from 0 to 2π, since this interval spans one complete period of the cosecant function.
Consider the Reciprocal Identity for the cosecant function (Definition 1.4.2):
cscx=1sinx.
As x approaches zero, sine decreases to zero, making cosecant approach positive infinity. Increasing x towards π2, sin(x) increases to 1, and cosecant decreases to 1. As x moves from π2 to π, sine approaches zero, causing csc(x) to approach infinity.
Similarly, for x>π nearing π, sin(x) becomes a small, negative number near zero, resulting in csc(x) approaching negative infinity. As x increases to 3π2, sin(x) decreases to 1, and csc(x) increases to 1. Finally, from 3π2 to 2π, sin(x) approaches a small negative number, causing cosecant to approach negative infinity. This behavior is shown in Figure 2.2.15.
Figure 2.2.15. As θ moves from 0 to 360, this figure plots the values of y=sinx and y=cscθ. Move the slider for θ to see how changing the angle affects cscθ. Note that while we will generally be using radians when graphing trigonometric functions, this figure uses degrees to help visualize the angle.
Next we recall values of sine and cosecant for known angles, which are listed in Table 2.2.16 and plotted in Figure 2.2.17.
Table 2.2.16. Values for y=cscx
x sinx cscx x sinx cscx
0 0 Undefined π 0 Undefined
π6 12 2 7π6 12 2
π4 22 2 5π4 22 2
π3 32 233 4π3 32 233
π2 1 1 3π2 1 1
2π3 32 233 5π3 32 233
3π4 22 2 7π4 22 2
5π6 12 2 11π6 12 2
2π 0 Undefined
Figure 2.2.17. The values in Table 2.2.16 plotted on a graph with a smooth curve connecting the points to make the curve for y=csc(x).
Since the graph in Figure 2.2.17 represents one period, we can complete the graph of y=cscx by extending the pattern in both directions to obtain Figure 2.2.18.
Figure 2.2.18. The plot for y=sin(x) and y=csc(x).
Notice the graph of the cosecant function is symmetric with respect to the origin, confirming what we learned in Section 1.5.7, that cosecant is an odd function.

Subsection 2.2.8 The Secant Function

As discussed earlier in this section, the secant function has a domain for all real numbers except angles of nπ2, where n is an integer. These excluded values correspond to the vertical asymptotes of the secant function. With a period of 2π, we can focus on the interval 0 to 2π. The construction of the secant function plot follows a similar approach to that used for the cosecant function, as illustrated in Figure 2.2.19.
Figure 2.2.19. As θ moves from 0 to 360, this figure plots the values of y=cosx and y=secθ. Move the slider for θ to see how changing the angle affects secθ. Note that while we will generally be using radians when graphing trigonometric functions, this figure uses degrees to help visualize the angle.
Plotting points for y=secx and using the fact that the secant function is periodic, we obtain the graph for secant in Figure 2.2.20.
Figure 2.2.20. The plot for y=cos(x) and y=sec(x).
Notice the graph of the secant function is symmetric about the y-axis, and thus secant is an even function, confirming what we learned in Section 1.5.7.

Subsection 2.2.9 Graphing Transformations of Other Trigonometric Functions

Similar to the graphs of sine and cosine, the graphs of the other trigonometric functions can undergo vertical stretching and compressing, horizontal stretching and compressing, phase shifts, vertical shift transformations, and reflections about the x- and y-axes. However, unlike the sine and cosine functions, there is no amplitude for the other trigonometric functions. These transformations are listed in Definition 2.2.21.

Definition 2.2.21. Transformations of the Tangent, Cotangent, Cosecant, and Secant Functions.

For functions of the form
y=Atan(B(xC))+D,y=Acot(B(xC))+D,
y=Acsc(B(xC))+D,andy=Asec(B(xC))+D,
we can express the transformations as follows:
  • Vertical Compression/Stretch: |A|
    • |A| is the value of the vertical stretch/compression.
    • If |A|>1, there is vertical stretching.
    • If 0<|A|<1, there is vertical compression.
  • Period and Horizontal Stretch/Compression: |B|
    • The period is π|B| for tangent and cotangent, and 2π|B| for cosecant and secant.
    • If |B|>1, there is horizontal compression, and the period is shortened.
    • If 0<|B|<1, there is horizontal stretching, and the period is lengthened.
  • Phase Shift: C
    • If C is positive, there is a shift to the right.
    • If C is negative, there is a shift to the left.
  • Vertical Shift: D
    • If D is positive, there is a shift upward.
    • If D is negative, there is a shift downward.
  • Reflection about the x-axis:
    • If A is negative (A<0), there is a reflection about the x-axis.
  • Reflection about the y-axis:
    • If B is negative (B<0), there is a reflection about the y-axis.
  • Vertical Asymptotes:
    • For tangent and cotangent, vertical asymptotes occur at
      x=C+π|B|n,
      where n is an integer.
    • For cosecant and secant, vertical asymptotes occur at
      x=C+π2|B|n,
      where n is an integer.

Remark 2.2.22. Other Forms of Transformations.

For functions of the form
y=Atan(BxE)+D,y=Acot(BxE)+D,
y=Acsc(BxE)+D,andy=Asec(BxE)+D,
the transformations are the same as above, except for the phase shift and vertical asymptotes where you replace C with EB. If EB<0 the phase shift is to the right, and if EB>0 it is to the left.
  • For tangent and cotangent, vertical asymptotes occur at
    x=EB+π|B|n,
    where n is an integer.
  • For cosecant and secant, vertical asymptotes occur at
    x=EB+π2|B|n,
    where n is an integer.

Example 2.2.23. Vertical Stretch/Compression and Reflection about the x-axis.

Graph each function
  1. y=tan(x)
  2. y=2tan(x)
  3. y=12tan(x)
  4. y=tan(x)

Solution.

Figure 2.2.24. The transformations of the tangent function graph, starting with a baseline of y=tan(x) along with graphs with a vertical stretch, a vertical compression, and a reflection about the x-axis.

Example 2.2.25. Horizontal Stretch/Compression and Reflection about the y-axis.

Identify the period and graph one period for each of the following functions:
  1. y=cot(x)
  2. y=cot(2x)
  3. y=cot(12x)
  4. y=cot(x)

Solution.

  1. The period for y=cot(x) is π
  2. The period for y=cot(2x) is
    period=π|2|=π2
  3. The period for y=cot(12x) is
    period=π|12|=2π
  4. The period for y=cot(x) is
    period=π|1|=π
Figure 2.2.26. The transformations of the cotangent function graph, starting with a baseline of y=cot(x) along with graphs with a horizontal stretch, a horizontal compression, and a reflection about the y-axis.

Example 2.2.27. Phase Shifts and Vertical Shifts.

Graph the function y=csc(xπ2)+2.

Solution.

Figure 2.2.28. The graphs of y=csc(xπ2)+2 and y=sin(xπ2)+2 start with the plots of y=csc(x) and y=sin(x) and add a phase shift of π2 to the right and a vertical shift up by 2.
Explore the effects of various transformations using the interactive features in Figure 2.2.29 and Figure 2.2.30.
Figure 2.2.29. Manipulate the graphs of tangent and cotangent by adjusting the sliders for A, B, C, and D. Observe the effects on period, phase and vertical shifts, as well as reflections about the x- and y-axes. Additionally, you can toggle between the tangent and cotangent graphs by selecting the corresponding function.
Figure 2.2.30. Manipulate the graphs of cosecant and secant by adjusting the sliders for A, B, C, and D. Observe the effects on period, phase and vertical shifts, as well as reflections about the x- and y-axes. Additionally, you can toggle between the cosecant and secant graphs by selecting the corresponding function.

Exercises 2.2.10 Exercises

Exercise Group.

Graph the function.

Exercise Group.

Determine the period for each function, and sketch the graph.

Exercise Group.

Match the given function to one of the graphs below.

Exercise Group.

Find the period, phase shift, and vertical shift of each function and sketch the graph.
27.
y=2tan(x)+3
Answer.
Period: π; Phase Shift: 0; Vertical Shift: 3
28.
y=12cot(12x)+1
Answer.
Period: 2π; Phase Shift: 0; Vertical Shift: 1
29.
y=csc(x+π4)
Answer.
Period: 2π; Phase Shift: π4; Vertical Shift: 0
30.
y=13sec(2x)
Answer.
Period: π; Phase Shift: 0; Vertical Shift: 0
31.
y=2sec(π2x)+4
Answer.
Period: 4; Phase Shift: 0; Vertical Shift: 4
32.
y=cot(xπ3)+2
Answer.
Period: π; Phase Shift: π3; Vertical Shift: 2
33.
y=tan(xπ6)+1
Answer.
Period: π; Phase Shift: π6; Vertical Shift: 1
34.
y=14sec(x)
Answer.
Period: 2π; Phase Shift: 0; Vertical Shift: 0
35.
y=3csc(x+π2)
Answer.
Period: 2π; Phase Shift: π2; Vertical Shift: 0
36.
y=tan(2(xπ4))+2
Answer.
Period: π2; Phase Shift: π4; Vertical Shift: 2

Navigating with Shadows.

When navigating the open ocean, maintaining a straight course poses challenges due to limited visual markers. One technique involves the steersperson using the positions of shadows cast by objects on the canoe—such as crew members, railings, and sails—to keep them fixed on the deck, ensuring a straight trajectory. However, if the canoe veers off course, the changing position of the canoe relative to the sun leads to a shift in the shadows. Observing these shadow movements allows the steersperson to make course corrections. It’s important to note that this method is effective only over a short duration, as the sun’s continuous movement across the sky causes ongoing changes in shadow positions. To illustrate the limitations over extended periods, consider the example of the Samoan double-hulled voyaging vaʻa, Gaualofa, with a 14-meter-high mast. The length of the shadow is modeled by
l(t)=14|cot(π12t)|,
where l is the shadow length in meters and t represents the hours since 6 am (assuming sunrise at 6 am and sunset at 6 pm). In each of the following questions, calculate the length of the shadow, rounded to the nearest tenth of a meter, for the given time.
42.
Graph the length of the shadow, l, throughout the day from 6:00am to 6:00pm (0<t<12)

Exercise Group.

An observer on Rangiroa spots the Faʻafaite, a double-hulled voyaging canoe from Tahiti, sailing off the north coast of the atoll, maintaining a distance of three nautical miles from the shore and traveling east. Let θ represent the angle formed between the line from the observer to the vaʻa and a line extending due north from the observer, measured in radians. The angle θ is negative if the vaʻa is to the left of the observer and positive when to the right, as shown in the figure above. The distance (in nautical miles), denoted by d(θ) from Faʻafaite to the observer is given by the function
d(θ)=3sec(θ).
In each of the following questions, calculate the distance from the observer to Faʻafaite, d(θ), in nautical miles, for the given angle θ. Round your answer to two decimal places.
50.
Graph the function d(θ) on the domain π3θπ3.
51.
What happens to d as θ approaches π2?
Answer.
As θ approaches π2, the function d(θ)=3sec(θ) approaches positive infinity.
52.
What is the closest distance Faʻafaite comes to shore? Where does this occur?
Answer.
3 NM, when Faʻafaite is directly north of the observer (θ=0)