Graphs of the Other Trigonometric Functions
We know the tangent function can be used to find distances, such as the height of a building, mountain, or flagpole. But what if we want to measure repeated occurrences of distance? Imagine, for example, a police car parked next to a warehouse. The rotating ...
We know the tangent function can be used to find distances, such as the height of a building, mountain, or flagpole. But what if we want to measure repeated occurrences of distance? Imagine, for example, a police car parked next to a warehouse. The rotating light from the police car would travel across the wall of the warehouse in regular intervals. If the input is time, the output would be the distance the beam of light travels. The beam of light would repeat the distance at regular intervals. The tangent function can be used to approximate this distance. Asymptotes would be needed to illustrate the repeated cycles when the beam runs parallel to the wall because, seemingly, the beam of light could appear to extend forever. The graph of the tangent function would clearly illustrate the repeated intervals. In this section, we will explore the graphs of the tangent and other trigonometric functions.
We will begin with the graph of the tangent function, plotting points as we did for the sine and cosine functions. Recall that
The period of the tangent function is π because the graph repeats itself on intervals of kπ where k is a constant. If we graph the tangent function on − π 2 to π 2 , we can see the behavior of the graph on one complete cycle. If we look at any larger interval, we will see that the characteristics of the graph repeat.
We can determine whether tangent is an odd or even function by using the definition of tangent.
Therefore, tangent is an odd function. We can further analyze the graphical behavior of the tangent function by looking at values for some of the special angles, as listed in [link].
x | − π 2 | − π 3 | − π 4 | − π 6 | 0 | π 6 | π 4 | π 3 | π 2 |
tan( x ) | undefined | − 3 | –1 | − 3 3 | 0 | 3 3 | 1 | 3 | undefined |
These points will help us draw our graph, but we need to determine how the graph behaves where it is undefined. If we look more closely at values when π 3 <x< π 2 , we can use a table to look for a trend. Because π 3 ≈1.05 and π 2 ≈1.57, we will evaluate x at radian measures 1.05<x<1.57 as shown in [link].
x | 1.3 | 1.5 | 1.55 | 1.56 |
tan x | 3.6 | 14.1 | 48.1 | 92.6 |
As x approaches π 2 , the outputs of the function get larger and larger. Because y=tan x is an odd function, we see the corresponding table of negative values in [link].
x | −1.3 | −1.5 | −1.55 | −1.56 |
tan x | −3.6 | −14.1 | −48.1 | −92.6 |
We can see that, as x approaches − π 2 , the outputs get smaller and smaller. Remember that there are some values of x for which cos x=0. For example, cos( π 2 )=0 and cos( 3π 2 )=0. At these values, the tangent function is undefined, so the graph of y=tan x has discontinuities at x= π 2 and 3π 2 . At these values, the graph of the tangent has vertical asymptotes. [link] represents the graph of y=tan x. The tangent is positive from 0 to π 2 and from π to 3π 2 , corresponding to quadrants I and III of the unit circle.
Graph of the tangent functionAs with the sine and cosine functions, the tangent function can be described by a general equation.
We can identify horizontal and vertical stretches and compressions using values of A and B. The horizontal stretch can typically be determined from the period of the graph. With tangent graphs, it is often necessary to determine a vertical stretch using a point on the graph.
Because there are no maximum or minimum values of a tangent function, the term amplitude cannot be interpreted as it is for the sine and cosine functions. Instead, we will use the phrase stretching/compressing factor when referring to the constant A.
- The stretching factor is | A |.
- The period is P= π | B | .
- The domain is all real numbers x, where x≠ π 2| B | + π | B | k such that k is an integer.
- The range is (−∞,∞).
- The asymptotes occur at x= π 2| B | + π | B | k, where k is an integer.
- y=Atan( Bx ) is an odd function.
Graphing One Period of a Stretched or Compressed Tangent Function
We can use what we know about the properties of the tangent function to quickly sketch a graph of any stretched and/or compressed tangent function of the form f(x)=Atan(Bx). We focus on a single period of the function including the origin, because the periodic property enables us to extend the graph to the rest of the function’s domain if we wish. Our limited domain is then the interval ( − P 2 , P 2 ) and the graph has vertical asymptotes at ± P 2 where P= π B . On ( − π 2 , π 2 ), the graph will come up from the left asymptote at x=− π 2 , cross through the origin, and continue to increase as it approaches the right asymptote at x= π 2 . To make the function approach the asymptotes at the correct rate, we also need to set the vertical scale by actually evaluating the function for at least one point that the graph will pass through. For example, we can use
because tan( π 4 )=1.
Given the function f(x)=Atan(Bx), graph one period.
- Identify the stretching factor, | A |.
- Identify B and determine the period, P= π | B | .
- Draw vertical asymptotes at x=− P 2 and x= P 2 .
- For A>0, the graph approaches the left asymptote at negative output values and the right asymptote at positive output values (reverse for A<0 ).
- Plot reference points at ( P 4 ,A ), ( 0,0 ), and ( − P 4 ,−A ), and draw the graph through these points.
Sketch a graph of one period of the function y=0.5tan( π 2 x ).
First, we identify A and B.
Because A=0.5 and B= π 2 , we can find the stretching/compressing factor and period. The period is π π 2 =2, so the asymptotes are at x=±1. At a quarter period from the origin, we have
This means the curve must pass through the points ( 0.5,0.5 ), ( 0,0 ), and ( −0.5,−0.5 ). The only inflection point is at the origin. [link] shows the graph of one period of the function.
Sketch a graph of f(x)=3tan( π 6 x ).
Graphing One Period of a Shifted Tangent Function
Now that we can graph a tangent function that is stretched or compressed, we will add a vertical and/or horizontal (or phase) shift. In this case, we add C and D to the general form of the tangent function.
The graph of a transformed tangent function is different from the basic tangent function tan x in several ways:
- The stretching factor is | A |.
- The period is π | B | .
- The domain is x≠ C B + π | B | k, where k is an integer.
- The range is (−∞,−| A |]∪[| A |,∞).
- The vertical asymptotes occur at x= C B + π 2| B | k, where k is an odd integer.
- There is no amplitude.
- y=A tan(Bx) is and odd function because it is the qoutient of odd and even functions(sin and cosine perspectively).
Given the function y=Atan(Bx−C)+D, sketch the graph of one period.
- Express the function given in the form y=Atan( Bx−C )+D.
- Identify the stretching/compressing factor, | A |.
- Identify B and determine the period, P= π | B | .
- Identify C and determine the phase shift, C B .
- Draw the graph of y=Atan(Bx) shifted to the right by C B and up by D.
- Sketch the vertical asymptotes, which occur at x= C B + π 2| B | k, where k is an odd integer.
- Plot any three reference points and draw the graph through these points.
Graph one period of the function y=−2tan(πx+π) −1.
How would the graph in [link] look different if we made A=2 instead of −2?
It would be reflected across the line y=−1, becoming an increasing function.
Given the graph of a tangent function, identify horizontal and vertical stretches.
- Find the period P from the spacing between successive vertical asymptotes or x-intercepts.
- Write f(x)=Atan( π P x ).
- Determine a convenient point (x,f(x)) on the given graph and use it to determine A.
Find a formula for the function graphed in [link].
A stretched tangent functionThe graph has the shape of a tangent function.
Because tan( π 4 )=1, A=2.
This function would have a formula f(x)=2tan( π 8 x ).
Find a formula for the function in [link].
g(x)=4tan(2x)
The secant was defined by the reciprocal identity sec x= 1 cos x . Notice that the function is undefined when the cosine is 0, leading to vertical asymptotes at π 2 , 3π 2 , etc. Because the cosine is never more than 1 in absolute value, the secant, being the reciprocal, will never be less than 1 in absolute value.
We can graph y=sec x by observing the graph of the cosine function because these two functions are reciprocals of one another. See [link]. The graph of the cosine is shown as a dashed orange wave so we can see the relationship. Where the graph of the cosine function decreases, the graph of the secant function increases. Where the graph of the cosine function increases, the graph of the secant function decreases. When the cosine function is zero, the secant is undefined.
The secant graph has vertical asymptotes at each value of x where the cosine graph crosses the x-axis; we show these in the graph below with dashed vertical lines, but will not show all the asymptotes explicitly on all later graphs involving the secant and cosecant.
Note that, because cosine is an even function, secant is also an even function. That is, sec( −x )=sec x.
Graph of the secant function, f(x)=secx= 1 cosxAs we did for the tangent function, we will again refer to the constant | A | as the stretching factor, not the amplitude.
- The stretching factor is | A |.
- The period is 2π | B | .
- The domain is x≠ π 2| B | k, where k is an odd integer.
- The range is (−∞,−| A |]∪[| A |,∞).
- The vertical asymptotes occur at x= π 2| B | k, where k is an odd integer.
- There is no amplitude.
- y=Asec( Bx ) is an even function because cosine is an even function.
Similar to the secant, the cosecant is defined by the reciprocal identity csc x= 1 sin x . Notice that the function is undefined when the sine is 0, leading to a vertical asymptote in the graph at 0, π, 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 [link]. 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 )=−cscx.
The graph of cosecant, which is shown in [link], is similar to the graph of secant.
The graph of the cosecant function, f(x)=cscx= 1 sinx- The stretching factor is | A |.
- The period is 2π | B | .
- The domain is x≠ π | B | k, where k is an integer.
- The range is ( −∞,−| A | ]∪[ | A |,∞ ).
- The asymptotes occur at x= π | B | k, where k is an integer.
- y=Acsc( Bx ) is an odd function because sine is an odd function.
For shifted, compressed, and/or stretched versions of the secant and cosecant functions, we can follow similar methods to those we used for tangent and cotangent. That is, we locate the vertical asymptotes and also evaluate the functions for a few points (specifically the local extrema). If we want to graph only a single period, we can choose the interval for the period in more than one way. The procedure for secant is very similar, because the cofunction identity means that the secant graph is the same as the cosecant graph shifted half a period to the left. Vertical and phase shifts may be applied to the cosecant function in the same way as for the secant and other functions.The equations become the following.
- The stretching factor is | A |.
- The period is 2π | B | .
- The domain is x≠ C B + π 2| B | k, where k is an odd integer.
- The range is (−∞,−| A |]∪[| A |,∞).
- The vertical asymptotes occur at x= C B + π 2| B | k, where k is an odd integer.
- There is no amplitude.
- y=Asec( Bx ) is an even function because cosine is an even function.
- The stretching factor is | A |.
- The period is 2π | B | .
- The domain is x≠ C B + π 2| B | k, where k is an integer.
- The range is (−∞,−| A |]∪[| A |,∞).
- The vertical asymptotes occur at x= C B + π |B| k, where k is an integer.
- There is no amplitude.
- y=Acsc( Bx ) is an odd function because sine is an odd function.
Given a function of the form y=Asec( Bx ), graph one period.
- Express the function given in the form y=Asec( Bx ).
- Identify the stretching/compressing factor, | A |.
- Identify B and determine the period, P= 2π | B | .
- Sketch the graph of y=Acos( Bx ).
- Use the reciprocal relationship between y=cos x and y=sec x to draw the graph of y=Asec( Bx ).
- Sketch the asymptotes.
- Plot any two reference points and draw the graph through these points.
Graph one period of f(x)=2.5sec(0.4x).
Graph one period of f(x)=−2.5sec(0.4x).
This is a vertical reflection of the preceding graph because A is negative.
Do the vertical shift and stretch/compression affect the secant’s range?
Yes. The range of f( x )=Asec( Bx−C )+D is ( −∞,−| A |+D ]∪[ | A |+D,∞ ).
Given a function of the form f( x )=Asec( Bx−C )+D, graph one period.
- Express the function given in the form y=A sec(Bx−C)+D.
- Identify the stretching/compressing factor, | A |.
- Identify B and determine the period, 2π | B | .
- Identify C and determine the phase shift, C B .
- Draw the graph of y=A sec(Bx) . but shift it to the right by C B and up by D.
- Sketch the vertical asymptotes, which occur at x= C B + π 2| B | k, where k is an odd integer.
Graph one period of y=4sec( π 3 x− π 2 )+1.
Graph one period of f( x )=−6sec(4x+2)−8.
The domain of csc x was given to be all x such that x≠kπ for any integer k. Would the domain of y=Acsc(Bx−C)+D be x≠ C+kπ B ?
Yes. The excluded points of the domain follow the vertical asymptotes. Their locations show the horizontal shift and compression or expansion implied by the transformation to the original function’s input.
Given a function of the form y=Acsc( Bx ), graph one period.
- Express the function given in the form y=Acsc( Bx ).
- | A |.
- Identify B and determine the period, P= 2π | B | .
- Draw the graph of y=Asin( Bx ).
- Use the reciprocal relationship between y=sin x and y=csc x to draw the graph of y=Acsc( Bx ).
- Sketch the asymptotes.
- Plot any two reference points and draw the graph through these points.
Graph one period of f(x)=−3csc(4x).
Graph one period of f(x)=0.5csc(2x).
Given a function of the form f( x )=Acsc( Bx−C )+D, graph one period.
- Express the function given in the form y=Acsc(Bx−C)+D.
- Identify the stretching/compressing factor, | A |.
- Identify B and determine the period, 2π | B | .
- Identify C and determine the phase shift, C B .
- Draw the graph of y=Acsc(Bx) but shift it to the right by and up by D.
- Sketch the vertical asymptotes, which occur at x= C B + π | B | k, where k is an integer.
Sketch a graph of y=2csc( π 2 x )+1. What are the domain and range of this function?
The graph for this function is shown in [link].
A transformed cosecant functionThe 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)=2sin( π 2 x )+1, shown as the orange dashed wave.
Given the graph of f(x)=2cos( π 2 x )+1 shown in [link], sketch the graph of g(x)=2sec( π 2 x )+1 on the same axes.
The last trigonometric function we need to explore is cotangent. The cotangent is defined by the reciprocal identity cot x= 1 tan x . Notice that the function is undefined when the tangent function is 0, leading to a vertical asymptote in the graph at 0,π, etc. Since the output of the tangent function is all real numbers, the output of the cotangent function is also all real numbers.
We can graph y=cot x by observing the graph of the tangent function because these two functions are reciprocals of one another. See [link]. Where the graph of the tangent function decreases, the graph of the cotangent function increases. Where the graph of the tangent function increases, the graph of the cotangent function decreases.
The cotangent graph has vertical asymptotes at each value of x where tan x=0; we show these in the graph below with dashed lines. Since the cotangent is the reciprocal of the tangent, cot x has vertical asymptotes at all values of x where tan x=0, and cot x=0 at all values of x where tan x has its vertical asymptotes.
The cotangent function- The stretching factor is | A |.
- The period is P= π | B | .
- The domain is x≠ π | B | k, where k is an integer.
- The range is (−∞,∞).
- The asymptotes occur at x= π | B | k, where k is an integer.
- y=Acot( Bx ) is an odd function.
We can transform the graph of the cotangent in much the same way as we did for the tangent. The equation becomes the following.
- The stretching factor is | A |.
- The period is π | B | .
- The domain is x≠ C B + π | B | k, where k is an integer.
- The range is (−∞,−| A |]∪[| A |,∞).
- The vertical asymptotes occur at x= C B + π | B | k, where k is an integer.
- There is no amplitude.
- y=Acot(Bx) is an odd function because it is the quotient of even and odd functions (cosine and sine, respectively)
Given a modified cotangent function of the form f( x )=Acot( Bx ), graph one period.
- Express the function in the form f( x )=Acot( Bx ).
- Identify the stretching factor, | A |.
- Identify the period, P= π | B | .
- Draw the graph of y=Atan(Bx).
- Plot any two reference points.
- Use the reciprocal relationship between tangent and cotangent to draw the graph of y=Acot( Bx ).
- Sketch the asymptotes.
Determine the stretching factor, period, and phase shift of y=3cot(4x), and then sketch a graph.
The orange graph in [link] shows y=3tan( 4x ) and the blue graph shows y=3cot( 4x ).
Given a modified cotangent function of the form f( x )=Acot( Bx−C )+D, graph one period.
- Express the function in the form f( x )=Acot( Bx−C )+D.
- Identify the stretching factor, | A |.
- Identify the period, P= π | B | .
- Identify the phase shift, C B .
- Draw the graph of y=Atan(Bx) shifted to the right by C B and up by D.
- Sketch the asymptotes x= C B + π | B | k, where k is an integer.
- Plot any three reference points and draw the graph through these points.
Sketch a graph of one period of the function f( x )=4cot( π 8 x− π 2 )−2.
The graph is shown in [link].
One period of a modified cotangent functionMany real-world scenarios represent periodic functions and may be modeled by trigonometric functions. As an example, let’s return to the scenario from the section opener. Have you ever observed the beam formed by the rotating light on a police car and wondered about the movement of the light beam itself across the wall? The periodic behavior of the distance the light shines as a function of time is obvious, but how do we determine the distance? We can use the tangent function.
Suppose the function y=5tan( π 4 t ) marks the distance in the movement of a light beam from the top of a police car across a wall where t is the time in seconds and y is the distance in feet from a point on the wall directly across from the police car.
- Find and interpret the stretching factor and period.
- Graph on the interval [ 0,5 ].
- Evaluate f( 1 ) and discuss the function’s value at that input.
- We know from the general form of y=Atan( Bt ) that | A | is the stretching factor and π B is the period.
- 1 How Governments Can Encourage Innovation
- 2 Introduction to Government Budgets and Fiscal Policy
- 3 Regression (Fuel Efficiency)
- 4 Probability Topics
- 5 Mean or Expected Value and Standard Deviation
- 6 Transformation of Functions
- 7 Outliers
- 8 Polar Coordinates
- 9 Confidence Interval (Women's Heights)
- 10 Central Limit Theorem (Cookie Recipes)
Note that this is a decreasing function because A<0.