Besides cosine and sine, there are other trigonometric functions that are derived from them. These functions also have periodic properties and allow us to model real-world phenomena which makes it vital to be able to graph them as well.
Recall that the tangent function is defined as tanθ=cosθsinθ and it is periodic with a period of π. If we graph the tangent function on the interval [−2π,2π], we are able to see the behavior of the graph on one complete cycle. So, to graph the tangent function, we can use the following table of values...
x
−2π
−3π
−4π
−6π
0
6π
4π
3π
2π
tan(x)
undefined
−3
−1
−33
0
33
1
3
undefined
The graph of the tangent function is undefined at x=−2π and x=2π meaning they are vertical asymptotes. In order to graph the tangent function, we also need to consider the behavior of the graph at the points where the tangent function is undefined. This can be done by looking at the points near the asymptotes. For this case, lets look at points between 3π≈1.05 and 2π≈1.57...
x
1.3
1.5
1.55
1.56
tan(x)
3.6
14.1
48.1
92.6
The value of the tangent function increases rapidly as x approaches 2π. Lets also look at the points between −2π≈−1.57 and −3π≈−1.05 to see the behavior of the graph near the asymptote at x=−2π...
x
−1.3
−1.5
−1.55
−1.56
tan(x)
−3.6
−14.1
−48.1
−92.6
The value of the tangent function decreases rapidly as x approaches −2π. With all this information, we can now graph the tangent function...
Fig. 1 - Tangent Function
note
The tangent function is an odd function because sine is an odd function and cosine is an even function. This causes tangent to be odd because the tangent function is equivalent to the quotient of an odd function and an even function which always results in an odd function. In fact, any function that is the quotient of an odd function and an even function is an odd function.
Similar to the sine and cosine functions, the tangent function can also be described by a general equation. The general equation of the tangent function is y=Atan(Bx−C)+D where A, B, C, and D are all constants.
The features of the graph of y=Atan(Bx−C)+D are as follows...
The stretching factor is ∣A∣.
The period is ∣B∣π.
The domain is x=BC+2πk where k is an integer.
The range is (−∞,∞).
The vertical asymptotes occur at x=BC+2πk where k is an odd integer.
Given the function y=Atan(Bx−C)+D, we can sketch the graph of one period using the following steps...
Verify the function is in the form y=Atan(Bx−C)+D.
Identify the stretching/compressing factor, ∣A∣.
Identify B and use it to find the period, P=∣B∣π.
Identify C and use it to find the phase shift, BC.
Sketch the vertical asymptotes, which occur at x=BC+2∣B∣πk where k is an odd integer.
For AB>0, the graph approaches the left asymptote at negative output values and the right asymptote at positive output values. On the other hand, for AB<0, the graph approaches the left asymptote at positive output values and the right asymptote at negative output values.
Obtain the reference points at (4P,A), (0,0), and (−4P,−A).
Shift the reference points to the right by BC and up by D.
Sketch the graph using the reference points and the asymptotes.
An example of graphing the tangent function is shown below...
Example
Graph one period of the function y=2tan(πx+π)−1.
The function is in the form y=Atan(Bx−C)+D so we are good to continue.
The stretching factor is ∣A∣=2.
The constant B=π so the period is P=∣B∣π=∣π∣π=1.
The constant C=−π so the phase shift is BC=π−π=−1.
The vertical asymptotes occur at x=BC+2∣B∣πk=−1+2(∣π∣)πk=−1+21k where k is an odd integer. Some of the vertical asymptotes are at x=−1+21(−1)=−1−21=−23 and x=−1+21(1)=−1+21=−21.
The constant AB=2(π)=2π where 2π>0. This means the graph approaches the left asymptote at negative output values and the right asymptote at positive output values.
The reference points are at (4P,A)=(41,2), (0,0), and (−4P,−A)=(−41,−2).
Shifting the reference points to the right by BC=−1 and up by D=−1 gives us the points (−43,1), (−1,−1), and (−45,−3).
Using the reference points and the asymptotes, we can sketch the graph of the function...
The secant function can also be defined as secθ=cosθ1. Considering the fact that the function is undefined when cosine is equal to 0, the secant function has vertical asymptotes at 2π, 23π, etc. Also note that since the cosine function will never be less than −1 or greater than 1, the secant function will never be between −1 and 1 as cosine is in the denominator.
Putting this all together, this gives us the graph of the secant function...
Fig. 3 - Secant Function
note
Since cosine is an even function, secant is also an even function. This is because the reciprocal of any even function is also an even function.
Given the function y=Asec(Bx−C)+D, we can sketch the graph of one period using the following steps...
Verify the function is in the form y=Asec(Bx−C)+D.
Identify the stretching/compressing factor, ∣A∣.
Identify B and use it to find the period, P=∣B∣2π.
Identify C and use it to find the phase shift, BC.
Sketch the vertical asymptotes, which occur at x=BC+2∣B∣πk where k is an odd integer.
Sketch the graph of y=Acos(Bx−C)+D.
Use the reciprocal relationship between y=cosx and y=secx to sketch the graph.
Example
Graph one period of f(x)=−6sec(4x+2)−8.
The function is in the form y=Asec(Bx−C)+D so we are good to continue.
The stretching factor is ∣A∣=6.
The constant B=4 so the period is P=∣B∣2π=42π=2π.
The constant C=−2 so the phase shift is BC=4−2=−21.
The vertical asymptotes occur at x=BC+2∣B∣πk where k is an odd integer. Some of the vertical asymptotes are at x=−21+8π(−1)=−21−8π and x=−21+8π(1)=−21+8π.
We can now graph the function using the recriprocal relationship between y=cosx and y=secx...
The cosecant function can also be defined as cscθ=sinθ1. Similar to the secant function, the cosecant function is undefined when sine is equal to 0 which gives us vertical asymptotes at 0, π, 2π, etc. Also, since the sine function will never be less than −1 or greater than 1, the cosecant function will never be between −1 and 1 as sine is in the denominator.
This gives us the graph of the cosecant function...
Fig. 5 - Cosecant Function
note
Since sine is an odd function, cosecant is also an odd function. This is because the reciprocal of any odd function is also an odd function.
Given the function y=Acsc(Bx−C)+D, we can sketch the graph of one period using the following steps...
Verify the function is in the form y=Acsc(Bx−C)+D.
Identify the stretching/compressing factor, ∣A∣.
Identify B and use it to find the period, P=∣B∣2π.
Identify C and use it to find the phase shift, BC.
Sketch the vertical asymptotes, which occur at x=BC+∣B∣πk where k is an integer.
Sketch the graph of y=Asin(Bx−C)+D.
Use the reciprocal relationship between y=sinx and y=cscx to sketch the graph.
Example
Graph one period of f(x)=0.5csc(2x).
The function is in the form y=Acsc(Bx−C)+D so we are good to continue.
The stretching factor is ∣A∣=0.5.
The constant B=2 so the period is P=∣B∣2π=22π=π.
The constant C=0 so the phase shift is BC=20=0.
The vertical asymptotes occur at x=BC+∣B∣πk=0+2π(k) where k is an integer. Some of the vertical asymptotes are at x=−π, x=−2π, x=0, x=2π, and x=π.
We can now graph the function using the recriprocal relationship between y=sinx and y=cscx...
Finally, the cotangent function can be defined as cotθ=tanθ1. Considering the fact that the function is undefined when tangent is equal to 0, the cotangent function has vertical asymptotes at 0, π, 2π, etc. Also, since the output of the tangent function is all real numbers, the cotangent function will also have all real numbers as its output.
This gives us the graph of the cotangent function...
Fig. 7 - Cotangent Function
note
Since tangent is an odd function, cotangent is also an odd function. This is because the reciprocal of any odd function is also an odd function.
Given the function y=Acot(Bx−C)+D, we can sketch the graph of one period using the following steps...
Verify the function is in the form y=Acot(Bx−C)+D.
Identify the stretching/compressing factor, ∣A∣.
Identify B and use it to find the period, P=∣B∣π.
Identify C and use it to find the phase shift, BC.
Sketch the vertical asymptotes, which occur at x=BC+∣B∣πk where k is an integer.
Sketch the graph of y=Atan(Bx−C)+D.
Use the reciprocal relationship between y=tanx and y=cotx to sketch the graph.
Example
Sketch a graph of one period of the function f(x)=4cot(8πx−2π)−2.
The function is in the form y=Acot(Bx−C)+D so we are good to continue.
The stretching factor is ∣A∣=4.
The constant B=8π so the period is P=∣B∣π=8ππ=8.
The constant C=2π so the phase shift is BC=8π2π=4.
The vertical asymptotes occur at x=BC+∣B∣πk=4+8k where k is an integer. Some of the vertical asymptotes are at x=4+8(−1)=−4, x=4+8(0)=4, x=4+8(1)=12, etc.
We can now graph the function using the recriprocal relationship between y=tanx and y=cotx...