We already know how to graph sine and cosine waves, and now we want to graph the other four trigonometric functions: cosecant, secant, tangent, and cotangent.
1
Graphs of Cosecant and Secant
We start by graphing y=csc(x) and y=sec(x) and finding their vertical asymptotes, domains, and ranges. Both functions are just wave1, so we can build their graphs directly from sine and cosine.
Graphs of Cosecant and Secant
As x moves from 0 to 2π, the graph of csc(x)=sin(x)1 touches the dotted sine wave at its peak y=1 and valley y=−1, shoots toward a vertical asymptote wherever sin(x) crosses 0, and stays completely outside the strip between −1 and 1.
Taking the reciprocal of each nonzero height of the sine wave gives you the cosecant graph, which meets sine at its peaks and valleys, stays outside the middle strip, and shoots along a vertical asymptote wherever sine hits zero.
Because a full sine or cosine wave takes 2π to repeat, csc(x) and sec(x) also have period 2π, but each wave crosses its midline twice per period, placing the vertical asymptotes π units apart:
csc(x)Asymptotes: Domain: sec(x)Asymptotes: Domain: =sin(x)1x=steps of π for any integer kπk,x=πk=cos(x)1x=2π+πk,x=2π+πk
Range of csc(x) and sec(x): (−∞,−1]∪[1,∞)
2
Graphing a Transformed Cosecant Function
Now let's graph a transformed cosecant function and find its asymptotes, domain, and range:
y=2csc(2πx)+1
Graphing a Transformed Cosecant Function
y=2csc(2πx)+1
asymptotesdomainrange=?=?=?
Text solution
1. Sketch the helper sine waveReplace csc with sin to get the dotted helper wave y=2sin(2πx)+1, which shifts the midline up to y=1, stretches 2 units above and below that midline, and completes one period in 4 units:
Midline: Peak: Valley: y=1,1+2=3,1−2=−1
Period=2π2π=2π⋅π2=4
2. Draw vertical asymptotes at the midline crossings and U-branches from the peak and valleyWherever the helper wave crosses its midline y=1, the sine part is 0, so the crossings at x=0,2,4 give the vertical asymptotes while the cosecant branches curve away from the peak and valley:
Asymptotes on [0,4]: Peak: Valley: x=0,2,4,(1,3),(3,−1)
x=0
x=2
x=4
y=1
2
2
(1,3)
(3,−1)
y=2csc(2πx)+1
y=2sin(2πx)+1
3. Read the asymptotes, domain, and range off the graph. The vertical asymptotes repeat every 2 units, and the U-branches stay outside the strip between −1 and 3:
So y=2csc(2πx)+1 has vertical asymptotes every 2 units wherever its helper sine wave crosses the midline y=1, and its graph stays outside the strip between −1 and 3.
3
Graphs of Tangent and Cotangent
Next, let's see what happens when we divide one wave by the other to graph y=tan(x)=cos(x)sin(x) and y=cot(x)=sin(x)cos(x).
Graphs of Tangent and Cotangent
tan(x)=cos(x)sin(x)
u
v
x
y=tan(x)
−2π
2π
π
23π
2π
As the radius line turns around the unit circle, its slope cos(x)sin(x) gives the height of tan(x), growing without bound in size as the radius approaches a vertical position at x=2π+πk and repeating every half-turn π instead of 2π.
The height of the tangent graph is just the slope of the radius line, which grows without bound in size as the line approaches vertical and repeats every half-turn.
For cot(x)=sin(x)cos(x), the vertical asymptotes occur at the angles where sin(x)=0, and the curve goes downhill between 0 and π:
You don't need to memorize which functions have asymptotes at πk and which have them at 2π+πk: just write the function in terms of sin(x) and cos(x) and see which one is in the denominator.
4
Graphing a Transformed Tangent Function
Because tangent and cotangent have no peaks or valleys, we don't use a helper wave to graph
y=3tan(2x−π)−1
Instead, we find two consecutive vertical asymptotes to mark off one period and divide the space between them into quarters.
Graphing a Transformed Tangent Function
y=3tan(2x−π)−1
x=−2π
x=2π
y=tan(x)
Text solution
1. Set the inside equal to the basic asymptotes −2π and 2πSetting the inside expression 2x−π equal to the two basic tangent asymptotes handles the horizontal stretch and shift at the same time:
Left asymptote: 2x−π⟹2x⟹xRight asymptote: 2x−π⟹2x⟹x=−2π=2π=4π=2π=23π=43π
2. Divide the period into quarters and step from the midlineHalfway between 4π and 43π is the center mark x=2π on the midline y=−1, and at the quarter marks x=83π and x=85π the vertical stretch of 3 moves the points 3 units below and 3 units above the midline:
3. State the period, all vertical asymptotes, the domain, and the range. Subtracting the two consecutive asymptotes gives the period (which matches dividing tangent's basic period π by the coefficient of x,B=2, to get Bπ=2π), and adding integer multiples of that period to the first asymptote gives all of them:
So y=3tan(2x−π)−1 repeats every 2π units with vertical asymptotes at x=4π+2πk, climbs through (83π,−4),(2π,−1), and (85π,2), and has range (−∞,∞).
Key concepts
All four graphs come down to which function is in the denominator and whether you are graphing wave1 or a ratio of sin and cos.
For cosecant and secant, csc(x)=sin(x)1 and sec(x)=cos(x)1 have period 2π. For a transformed graph, divide 2π by the absolute value of the coefficient of x inside, and sketch the matching sin or cos helper wave first. Everywhere the helper wave crosses its midline, draw a vertical asymptote; everywhere it hits a peak or valley, draw a U-branch curving away from the strip in the middle. In y=2csc(2πx)+1, the helper wave y=2sin(2πx)+1 stays on [−1,3] and crosses y=1 at x=2k, which gives asymptotes x=2k and range (−∞,−1]∪[3,∞). (For the helper function y=2sin(2πx)+1 itself, there are no vertical asymptotes, and the range is [−1,3].)
For tangent and cotangent, tan(x)=cos(x)sin(x) and cot(x)=sin(x)cos(x) have period π, range (−∞,∞), and no peaks or valleys, so we do not need a helper wave. Instead, for a transformed graph, find one period by setting the inside equal to two consecutive basic asymptotes: −2π and 2π for tan (going uphill), or 0 and π for cot (going downhill). To check the period, divide π by the absolute value of the coefficient of x inside. In y=3tan(2x−π)−1, solving 2x−π=±2π gives consecutive asymptotes x=4π and x=43π (period 2π), a center point halfway between on the midline at (2π,−1), and quarter points 3 units below and above the midline. Once you have one asymptote and the spacing between neighboring asymptotes, write all of them as one asymptote+(spacing)k and exclude those x-values for the domain.
5
Practice
1
Among the four functions y=csc(x),y=sec(x),y=tan(x), and y=cot(x), which have vertical asymptotes at x=πk and which have vertical asymptotes at x=2π+πk (where k is any integer)? State the domain and range of each function.
Write each function as a fraction using sin(x) and cos(x): which function is in the denominator, and where does it equal 0?
Write each function in terms of sin(x) and cos(x) to see where the denominator hits 0 (don't pair tan(x) with cot(x) or csc(x) with sec(x) by name; pair the functions that share the same denominator):
yy=csc(x)=sin(x)1and=cot(x)=sin(x)cos(x)
Both have sin(x) in the denominator, which equals 0 at x=πk, so both have vertical asymptotes at x=πk and domain x=πk.
yy=sec(x)=cos(x)1and=tan(x)=cos(x)sin(x)
Both have cos(x) in the denominator, which equals 0 at x=2π+πk, so both have vertical asymptotes at x=2π+πk and domain x=2π+πk.
For the ranges, remember that csc(x) and sec(x) never take values strictly between −1 and 1. The range of csc(x) and sec(x) is (−∞,−1]∪[1,∞), and the range of tan(x) and cot(x) is (−∞,∞).
2
Find the period, the equations of all vertical asymptotes, the domain, and the range of y=4csc(2x)−3.
Picture the helper wave y=4sin(2x)−3: what is its period, how often does it cross its midline, and what are its valley and peak heights?
Use the helper wave y=4sin(2x)−3:
Period=22π=π
The helper sine wave starts on its midline at x=0 and crosses the midline twice each period, every half-period 2π (don't use the full period π as the asymptote spacing, which would give x=πk and miss every odd multiple of 2π):
Vertical asymptotes: x=2πk (where k is any integer),Domain: x=2πk
From the midline y=−3, the amplitude 4 reaches down to −3−4=−7 and up to −3+4=1 (don't forget the −3 shift and write (−∞,−4]∪[4,∞)):
Range: (−∞,−7]∪[1,∞)
3
Graph one period of y=3sec(πx)+1 on [0,2] by finding the peaks, valley, and midline crossings of its helper cosine wave, then state the equations of all vertical asymptotes, the domain, and the range.
For the helper wave y=3cos(πx)+1, where does a cosine wave start at x=0, and at which quarter marks of [0,2] does it cross its midline y=1?
Sketch the helper wave y=3cos(πx)+1, which has midline y=1 and period π2π=2, divided into quarter marks at x=0,21,1,23,2. Because cosine starts at a peak rather than on the midline (starting on the midline like sine is a common mistake that puts the asymptotes at x=k instead of x=21+k):
Midline: Peaks: Valley: y=1,(0,4) and (2,4),(1,−2)
Midline crossings on [0,2]: x=21 and x=23
x=21
x=23
y=1
(0,4)
(2,4)
(1,−2)
y=3sec(πx)+1
y=3cos(πx)+1
The asymptotes start at x=21 and repeat every 23−21=1 unit:
Vertical asymptotes: x=21+k (where k is any integer)
Domain: Range: x=21+k,(−∞,−2]∪[4,∞)
4
Graph one period of y=2tan(x+4π)−3 by finding two consecutive vertical asymptotes, the center point, and the two quarter points, then state the period, the equations of all vertical asymptotes, the domain, and the range.
Set the inside x+4π equal to the basic tangent asymptotes −2π and 2π (don't set it equal to 0 and π, which belong to cotangent and would give x=−4π and x=43π).
What are the two basic asymptotes of tan(x) that you should set x+4π equal to?
Set the inside x+4π equal to the basic tangent asymptotes −2π and 2π (don't set it equal to 0 and π, which belong to cotangent and would give x=−4π and x=43π):
x+4πx+4π=−2π=2π⟹x=−43π,⟹x=4π
Halfway between −43π and 4π is x=−4π on the midline y=−3. At the quarter marks x=−2π and x=0, step down 2 and up 2 from −3 (don't step by 1 and write −4 and −2):
Center point: Left quarter point: Right quarter point: (−4π,−3),(−2π,−5),(0,−1)
x=−43π
x=4π
y=−3
2
2
(−2π,−5)
(−4π,−3)
(0,−1)
y=2tan(x+4π)−3
Subtract the consecutive asymptotes for the period and add multiples of the period to one asymptote:
Period=4π−(−43π)=π,All vertical asymptotes: x=4π+πk (where k is any integer)
Domain: Range: x=4π+πk,(−∞,∞)
5
Graph one period of y=3cot(2πx−π)+2 by finding two consecutive vertical asymptotes, the center point, and the two quarter points, then state the period, the equations of all vertical asymptotes, the domain, and the range.
Basic cot(x) sits between 0 and π and goes downhill: what do you get when you set 2πx−π equal to 0 and π?
Set the inside 2πx−π equal to the basic cotangent asymptotes 0 and π:
2πx−π⟹2πx⟹x2πx−π⟹2πx⟹x=0=π=2=π=2π=4
Halfway between 2 and 4 is x=3 on the midline y=2. Because cotangent goes downhill from left to right, the left quarter mark x=25 steps up3 from the midline and the right quarter mark x=27 steps down3 (going uphill like tangent would swap the heights to (25,−1) and (27,5)):
The distance between the asymptotes is 4−2=2 (don't use B2π=4, which is the sine and cosine period formula), and starting at x=2 in steps of 2 hits every even integer x=2k:
Period: 2,All vertical asymptotes: x=2k (where k is any integer)