Sine and cosine make smooth, unbroken waves, so we now want to see how to graph the other four trigonometric functions: tanx,cotx,secx, and cscx.
1
The Graph of Tangent
Every one of these four functions is a fraction with sinx or cosx in the denominator. We start with tangent, which divides sine by cosine:
tanx=cosxsinx
The Graph of Tangent
On the unit circle, tanx is the slope of the radius line: the curve crosses 0 whenever the radius is flat, shoots toward ±∞ along a vertical asymptote whenever the radius turns vertical (cosx=0), and repeats every half-circle (π) because the radius has the exact same slope on the opposite side.
At angles where tangent is defined, the height of the tangent graph is the slope of the line through the radius of the unit circle.
One full branch of y=tanx has a period of π and climbs from left to right between the vertical asymptotes x=−2π and x=2π, passing through the left quarter-point (−4π,−1), the center (0,0), and the right quarter-point (4π,1).
Because the vertical asymptotes repeat every π units, we can write all of them at once by picking one starting asymptote and adding integer multiples of the distance between asymptotes:
Vertical asymptotes:x=startingasymptote2π+distance betweenasymptotesπk(k an integer)Domain:all real numbers x=2π+πkRange:(−∞,∞)
2
The Graph of Cotangent
Now let's graph cotangent, which flips the tangent fraction upside down:
cotx=sinxcosx
The Graph of Cotangent
tanxcotx=cosxsinx=sinxcosx
sinx=0 when x=?
Because sinx is now in the denominator, the vertical asymptotes move to where sinx=0. One full branch of y=cotx still has width π, running from x=0 to x=π, and goes down from left to right through the quarter-point (4π,1), the center (2π,0), and the quarter-point (43π,−1).
Starting at the asymptote x=0 and adding multiples of π gives all the vertical asymptotes and the domain of y=cotx:
Vertical asymptotes:x=0+πk=πk(k an integer)Domain:all real numbers x=πkRange:(−∞,∞)
3
Graphing Transformed Tangent and Cotangent
Next, we want to graph one period and find all vertical asymptotes of a transformed tangent function:
y=2tan(2x−2π)+1
Instead of calculating period and phase shift with separate formulas, we find where the two asymptotes of one branch move and cut the space between them in half.
Graphing Transformed Tangent and Cotangent
y=2tan(2x−2π)+1
Left asymptote: xRight asymptote: x=?=?
Text solution
Set the inside equal to tangent's parent asymptotesBecause y=tanx has asymptotes at −2π and 2π, the transformed branch puts its asymptotes wherever the inside expression 2x−2π equals −2π and 2π (for cotangent, we would set the inside equal to 0 and π).
Left asymptote:2x−2π2xx=−2π=0=0Right asymptote:2x−2π2xx=2π=π=2π
Cut the space between the asymptotes in halfSplitting the interval from 0 to 2π in half gives the center x-value, and splitting each half again gives the two quarter-marks.
Center xLeft quarter-mark xRight quarter-mark x=4π,=8π,=83π
Apply the vertical shift and vertical stretchThe +1 at the end moves the horizontal center line to y=1, and the 2 in front puts the quarter-points 2 units below that center line on the left and 2 units above it on the right.
Write all vertical asymptotes, the domain, and the rangeThe distance between the consecutive asymptotes x=0 and x=2π is 2π, so we start at x=0 and add multiples of 2π.
Vertical asymptotes:x=0+2πk=2πk(k an integer)Domain:all real numbers x=2πkRange:(−∞,∞)
4
The Graphs of Cosecant and Secant
Now we want to graph cosecant and secant, which are the reciprocals of sine and cosine:
cscx=sinx1,secx=cosx1
The Graphs of Cosecant and Secant
Because cscx=sinx1 takes the reciprocal of every height on the sine wave, the cosecant U-shapes touch the dashed sine wave at its peaks (1) and valleys (−1), curve away toward infinity wherever the sine wave approaches 0, and leave the middle strip between y=−1 and y=1 completely empty.
At angles where sine is nonzero, cosecant’s height is the reciprocal of sine’s height.
Both functions have a period of 2π because one full cycle needs one upward U-shape and one downward U-shape. Their vertical asymptotes occur twice every period, a distance of π apart, wherever the dashed helper wave crosses its center line:
Next, we want to graph a transformed secant function and find its asymptotes, domain, and range:
y=3sec(2x)+1
Rather than learning new transformation rules for U-shapes, we change sec to cos, sketch that helper wave lightly, and flip its peaks and valleys into U-shapes.
Graphing Transformed Secant and Cosecant
y=3sec(2x)+1
AsymptotesDomainRange=?=?=?
Text solution
Sketch one period of the helper cosine waveReplacing sec with cos gives y=3cos(2x)+1, which has its horizontal center line at y=1, an amplitude of 3, and a period of 22π=π divided into four equal quarters at x=0,4π,2π,43π,π.
Place vertical asymptotes where the helper wave crosses its center lineBecause sec(2x)=cos(2x)1 is undefined when cos(2x)=0, the vertical asymptotes happen where the cosine wave crosses its center line y=1, at x=4π and x=43π.
Distance between asymptotes:43π−4π=2πVertical asymptotes:x=4π+2πk(k an integer)Domain:all real numbers x=4π+2πk
Flip the peaks and valleys into U-shapes to read the rangeThe U-shapes open upward from the peaks at height 4 and downward from the valley at height −2, leaving the strip between −2 and 4 empty.
Range:(−∞,−2]∪[4,∞)
When a secant or cosecant graph shifts vertically, the vertical asymptotes stay at the points where the helper wave crosses its horizontal center line (where the cosine or sine part equals 0), even as the wave's x-intercepts move.
As a secant graph shifts up or down, its vertical asymptotes stay fixed where the helper cosine wave crosses its midline, not where the wave crosses the x-axis.
6
Writing an Equation from a Graph
Finally, we want to work backward from a given graph, either repeating S-curves or repeating U-shapes, to write its equation.
Writing an Equation from a Graph
S-curves: yU-shapes: y=?=?
Text solution
First graph (S-curves), pick tangent or cotangent and find the vertical shift and stretchThe branch starts at a vertical asymptote at x=0 and goes down from left to right, so we can use cotangent with no horizontal shift. Its center point (π,−1) gives the center line y=−1, and the quarter-point (2π,2) sits 3 units from that center line.
Vertical shiftVertical stretch=−1,=2−(−1)=3
First graph, find B from the asymptote spacingOne branch runs from x=0 to x=2π, so when x=2π, the inside expression Bx equals cotangent's right asymptote π.
B(2π)By=π=21=3cot(21x)−1
Second graph (U-shapes), connect the tips to build the helper waveDrawing a dashed wave through the empty middle between the peak at (2π,5) and the valley at (23π,1) puts the center line halfway between 1 and 5, with the amplitude from the center line to the peak.
Center line yAmplitude=25+1=3,=5−3=2
Second graph, write the helper wave equation and swap to its reciprocalThe dashed wave starts on its center line at (0,3), rises to a peak at 2π, and finishes one cycle at 2π, which is y=2sin(x)+3, so swapping sin for csc gives the equation of the U-shapes.
Everything about these four graphs comes from looking at which wave sits in the denominator and choosing between the two graph shapes:
The denominator tells you where the base asymptotes are
Functions with cosx on the bottom (tanx=cosxsinx and secx=cosx1) have base vertical asymptotes where cosx=0, at x=−2π and x=2π, so all their asymptotes follow x=2π+πk. Functions with sinx on the bottom (cotx=sinxcosx and cscx=sinx1) have base vertical asymptotes where sinx=0, at x=0 and x=π, so all their asymptotes follow x=πk.
S-curves (tan and cot) cut the space between asymptotes in half
Don't draw a helper wave for tangent or cotangent. Set the inside expression equal to the parent asymptotes (−2π and 2π for tan;0 and π for cot) and split the interval in half for the center and quarter-points. For y=2tan(2x−2π)+1, setting 2x−2π=−2π and 2π gives the branch from x=0 to x=2π with center (4π,1) and range (−∞,∞). When writing an equation from an S-curve whose center moved horizontally to x=3π, put that shift directly into tangent as B(x−3π).
U-shapes (sec and csc) come from flipping a helper wave's peaks and valleys
Don't memorize separate point rules for secant or cosecant; swap sec for cos or csc for sin and sketch the helper wave first. Draw vertical asymptotes wherever the helper wave crosses its horizontal center line, and flip the peaks and valleys into U-shapes. For y=3sec(2x)+1, the helper wave y=3cos(2x)+1 goes between −2 and 4 around y=1, so the middle strip stays empty and the range is (−∞,−2]∪[4,∞).
One pattern writes all vertical asymptotes and the domain
Once you have two neighboring asymptotes on any graph, pick one starting asymptote and add integer multiples of the distance to the next asymptote:
x=starting asymptote+(distance between asymptotes)k,Domain: x=starting asymptote+(distance between asymptotes)k
7
Practice
1
Which two of the functions tanx,cotx,secx, and cscx have vertical asymptotes at x=πk (where k is an integer), and what are the domain and range of each of those two functions?
Write each function as a fraction using sinx and cosx, and check which denominator equals 0 at x=0,π,2π,….
Vertical asymptotes at x=πk occur where the denominator is sinx=0:
cotx=sinxcosx,cscx=sinx1
Warning: Don't pair tanx with cotx just because both have period π;tanx has cosx on the bottom, so its asymptotes are at x=2π+πk. Also be careful not to write [−1,1] or (−∞,∞) for the range of cscx: its U-shapes open away from the middle strip between −1 and 1.
Both cotx and cscx have domain all real numbers x=πk. The range of cotx is (−∞,∞), and the range of cscx is (−∞,−1]∪[1,∞).
2
For one period of y=−3tan(x+4π)+2, find the left and right vertical asymptotes, the center point, and the two quarter-points.
Set the inside expression x+4π equal to tangent's two parent asymptotes −2π and 2π, then cut the interval between them in half.
Set the inside equal to −2π and 2π to find the asymptotes:
x+4πx+4π=−2π⟹x=−43π=2π⟹x=4π
Splitting the interval from −43π to 4π in half gives the center x=−4π on the center line y=2, and the quarter-marks x=−2π and x=0.
Warning: Don't ignore the negative sign in front of −3 and go down on the left and up on the right (which would give (−2π,−1) and (0,5)). The negative sign flips the S-curve upside down, so from the center line y=2 we go up 3 on the left and down 3 on the right:
Left asymptote: x=−43π; right asymptote: x=4π; center point: (−4π,2); left quarter-point: (−2π,5); right quarter-point: (0,−1).
3
Find the equation for all vertical asymptotes and the domain of y=4cot(3x−π)−1.
Set the inside expression 3x−π equal to cotangent's two parent asymptotes to find two consecutive asymptotes and the spacing between them.
Because the function is cotangent, set the inside equal to 0 and π.
Warning: Don't set 3x−π equal to −2π and 2π (tangent's parent asymptotes), which would give the wrong asymptotes x=6π+3πk.
3x−π3x−π=0⟹3x=π⟹x=3π=π⟹3x=2π⟹x=32π
The distance between consecutive asymptotes is 32π−3π=3π.
Asymptotes: x=3π+3πk (or x=3πk), where k is an integer. Domain: all real numbers x=3π+3πk (or x=3πk).
4
For y=2csc(πx)−3, find the midline, peak height, and valley height of the helper sine wave, then find the equation for all vertical asymptotes, the domain, and the range of the cosecant graph.
Replace csc with sin to analyze the helper wave y=2sin(πx)−3 over one full period of π2π=2.
The helper sine wave y=2sin(πx)−3 has midline y=−3, amplitude 2, and period π2π=2:
Peak heightValley height=−3+2=−1,=−3−2=−5
Over one period from x=0 to x=2, the helper sine wave crosses its midline y=−3 at x=0,x=1, and x=2.
Warning: Don't use the full period 2 as the distance between vertical asymptotes (which would give x=2k). The sine wave crosses its midline twice every period, so consecutive asymptotes are 1 unit apart.
Helper wave midline: y=−3; peak height: −1; valley height: −5; vertical asymptotes: x=k (where k is an integer); domain: all real numbers x=k; range: (−∞,−5]∪[−1,∞).
5
A graph consists of repeating S-curves that climb from left to right between consecutive vertical asymptotes at x=−6π and x=65π. That branch has its center point at (3π,1) and passes through the quarter-points (12π,−1) and (127π,3). Write an equation for the function.
Use the climbing direction and the coordinates of the center point (3π,1) to find the parent function, horizontal shift, and vertical shift, then check the distance between the asymptotes for B.
Because the S-curve climbs from left to right, we can use a tangent graph. The center point (3π,1) gives a vertical shift of +1, and the quarter-point (127π,3) sits 3−1=2 units above the center line, giving a vertical stretch of 2.
Warning: Don't use the left asymptote x=−6π as the horizontal shift inside tangent (which would give y=2tan(x+6π)+1). Tangent's center normally sits at x=0, so the horizontal shift is where the center point moved, x=3π.
The distance between the asymptotes is 65π−(−6π)=π, which is tangent's normal period, so B=1:
y=2tan(x−3π)+1
6
A graph consists of repeating U-shapes with vertical asymptotes at x=π,x=3π, and x=5π. It has upward-opening U-shapes with tips at (0,2) and (4π,2), and a downward-opening U-shape with tip at (2π,−6). Write an equation for the function.
Connect the tips (0,2),(2π,−6), and (4π,2) through the empty middle to find the midline, amplitude, and period of the helper wave first.
Connecting the tips gives a helper wave with peak 2 and valley −6:
Midline yAmplitude=22+(−6)=−2,=2−(−2)=4
Because the wave starts at a peak at (0,2) and returns to the next peak at (4π,2), it is a cosine wave with period 4π.
Warning: Don't use the distance between consecutive asymptotes (3π−π=2π) as the period of the helper cosine wave (which would give B=1 and y=4sec(x)−2). One full cosine cycle corresponds to both an upward U-shape and a downward U-shape, running from x=0 to x=4π:
B=Period2π=4π2π=21
Swapping cos for sec in the helper wave y=4cos(21x)−2 gives: