Phase shift
The graph of \displaystyle y = \sin\left(3x - \frac{\pi}{2}\right) is a sine wave slid sideways. How far did it slide, and why is the answer not \displaystyle \frac{\pi}{2}?
Where you are 4 in Amplitude, period and phase shift
When you reach for it
Reach for this move whenever a sine or cosine has a number added to or subtracted from the input after the input has been multiplied, as in
and you want to know where its cycles start: which way the graph slid, and how far. The number you can see, \displaystyle \frac{\pi}{2}, is not the answer. The input has to be rewritten as the coefficient times a shifted variable, \displaystyle 3\left(x - \frac{\pi}{6}\right), and only then can the slide be read. Here it is \displaystyle \frac{\pi}{6}.
The procedure
The sliding rule you already have
From shifting a graph: if g is any function and h is a number, the graph of y = g(x - h) is the graph of y = g(x) moved h to the right (to the left when h is negative). The rule has one condition that is easy to pass over. It is about x itself being replaced by x - h. Nothing else about the formula may change.
Why the subtracted number is not the slide
Start from g(x) = \sin 3x, a sine wave squeezed so that one cycle takes \displaystyle \frac{2\pi}{3} instead of 2\pi (see Finding the period from the equation). Is \displaystyle y = \sin\left(3x - \frac{\pi}{2}\right) the same as \displaystyle g\left(x - \frac{\pi}{2}\right)? Replace x by \displaystyle x - \frac{\pi}{2} and see:
That is a different function. At \displaystyle x = \frac{\pi}{3} the given function is \displaystyle \sin\left(\pi - \frac{\pi}{2}\right) = \sin\frac{\pi}{2} = 1, while \displaystyle \sin\left(3 \cdot \frac{\pi}{3} - \frac{3\pi}{2}\right) = \sin\left(-\frac{\pi}{2}\right) = -1. One is at a peak where the other is at a trough.
The trouble is the order of operations. In \displaystyle 3x - \frac{\pi}{2} the input is first multiplied by 3 and only then has \displaystyle \frac{\pi}{2} taken away. To see a slide, x itself must be shifted first, so factor out the 3:
Multiplying back by the distributive property returns \displaystyle 3x - \frac{\pi}{2}, which confirms the factoring. Now
and the sliding rule applies: the graph of y = \sin 3x moved \displaystyle \frac{\pi}{6} to the right. The \displaystyle \frac{\pi}{2} was measured after the squeeze by 3, so it was three times the distance the graph actually moved along the x-axis. Dividing by 3 undoes that.
A second view: where the cycle starts
The function \sin u runs through one cycle as u goes from 0 to 2\pi. Here \displaystyle u = 3x - \frac{\pi}{2}, so the cycle that sat at [0, 2\pi] now sits where
Adding \displaystyle \frac{\pi}{2} to each part and dividing by 3 gives \displaystyle \frac{\pi}{6} \le x \le \frac{5\pi}{6}. The cycle starts at \displaystyle \frac{\pi}{6}, which is the same number factoring gave, and lasts \displaystyle \frac{5\pi}{6} - \frac{\pi}{6} = \frac{2\pi}{3}. This is no coincidence: \displaystyle 3\left(x - \frac{\pi}{6}\right) is zero exactly when \displaystyle x = \frac{\pi}{6}, so solving “input = 0” and factoring are the same piece of algebra. The five key points of the cycle come from \displaystyle u = 0, \frac{\pi}{2}, \pi, \frac{3\pi}{2}, 2\pi, which give \displaystyle x = \frac{\pi}{6}, \frac{\pi}{3}, \frac{\pi}{2}, \frac{2\pi}{3}, \frac{5\pi}{6}, a quarter period \displaystyle \frac{\pi}{6} apart. These are the dots in the figure.
The general statement
For any number b \ne 0, factoring b out of bx - d gives
and the same for cosine. When an equation is written as
the number c is the phase shift: the graph is the graph of y = A\sin bx + k (or the cosine one) moved c to the right when c > 0 and |c| to the left when c < 0. So the phase shift of \sin(bx - d) is \displaystyle \frac{d}{b}, and the phase shift of \sin(bx + d) is \displaystyle -\frac{d}{b}, a slide to the left. The Amplitude and reflection A and the vertical shift k act on the output, so they do not change c.
Why this is right: let g(x) = A\sin bx + k. Then, by the distributive property,
so A\sin(bx - bc) + k is the graph of g slid c. For \sin(bx - d) to match, bc must equal d, that is, \displaystyle c = \frac{d}{b}.
Worked examples
Three phase shifts
Find the phase shift of each graph, and say which way it slides. (a) y = \sin\left(4x - \pi\right), (b) \displaystyle y = \cos\left(2x + \frac{2\pi}{3}\right), (c) \displaystyle y = \sin\left(\frac{x}{2} - \frac{\pi}{3}\right).
Solution(a) Factor 4 out of the input: \displaystyle 4x - \pi = 4\left(x - \frac{\pi}{4}\right), since \displaystyle 4 \cdot \frac{\pi}{4} = \pi. So \displaystyle y = \sin\left(4\left(x - \frac{\pi}{4}\right)\right), the graph of y = \sin 4x moved \displaystyle \frac{\pi}{4} to the right.
(b) Factor 2: \displaystyle 2x + \frac{2\pi}{3} = 2\left(x + \frac{\pi}{3}\right), which is \displaystyle 2\left(x - \left(-\frac{\pi}{3}\right)\right). The phase shift is \displaystyle -\frac{\pi}{3}: the graph of y = \cos 2x moved \displaystyle \frac{\pi}{3} to the left.
(c) The coefficient of x is \displaystyle \frac{1}{2}, and dividing by \displaystyle \frac{1}{2} means multiplying by 2: \displaystyle \frac{x}{2} - \frac{\pi}{3} = \frac{1}{2}\left(x - \frac{2\pi}{3}\right). The graph of \displaystyle y = \sin\frac{x}{2} moves \displaystyle \frac{2\pi}{3} to the right. This time the slide is larger than the number in the formula, because the wave is stretched rather than squeezed.
A negative coefficient on x
Find the phase shift of \displaystyle y = \sin\left(\frac{\pi}{2} - 2x\right).
SolutionWrite the input with the x term first, \displaystyle -2x + \frac{\pi}{2}, and factor out the whole coefficient -2, sign included:
Check: \displaystyle -2 \cdot \left(-\frac{\pi}{4}\right) = \frac{\pi}{2}. So \displaystyle y = \sin\left(-2\left(x - \frac{\pi}{4}\right)\right), the graph of y = \sin(-2x) moved \displaystyle \frac{\pi}{4} to the right.
Many writers first use \sin(-\theta) = -\sin\theta to make the coefficient positive: \displaystyle y = -\sin\left(2x - \frac{\pi}{2}\right), which factors to \displaystyle y = -\sin\left(2\left(x - \frac{\pi}{4}\right)\right). The parent is now y = -\sin 2x, which is the same function as y = \sin(-2x), and the shift is again \displaystyle \frac{\pi}{4} to the right. Both routes agree because both find the x that makes the input zero, here \displaystyle \frac{\pi}{2} - 2x = 0 at \displaystyle x = \frac{\pi}{4}.
One cycle of a shifted cosine
Find the interval of one full cycle of \displaystyle y = \cos\left(3x + \frac{\pi}{4}\right) that starts at the phase shift, and its five key points.
SolutionFactor: \displaystyle 3x + \frac{\pi}{4} = 3\left(x + \frac{\pi}{12}\right), so the phase shift is \displaystyle -\frac{\pi}{12}. The period of \cos 3x is \displaystyle \frac{2\pi}{3}, so the cycle runs from \displaystyle -\frac{\pi}{12} to \displaystyle -\frac{\pi}{12} + \frac{2\pi}{3} = \frac{7\pi}{12}. Check the right end in the original form: \displaystyle 3 \cdot \frac{7\pi}{12} + \frac{\pi}{4} = \frac{7\pi}{4} + \frac{\pi}{4} = 2\pi.
A cosine cycle starts at a peak. The key points are a quarter period, \displaystyle \frac{\pi}{6}, apart:
| x | \displaystyle -\frac{\pi}{12} | \displaystyle \frac{\pi}{12} | \displaystyle \frac{\pi}{4} | \displaystyle \frac{5\pi}{12} | \displaystyle \frac{7\pi}{12} |
|---|---|---|---|---|---|
| \displaystyle 3x + \frac{\pi}{4} | 0 | \displaystyle \frac{\pi}{2} | \pi | \displaystyle \frac{3\pi}{2} | 2\pi |
| y | 1 | 0 | -1 | 0 | 1 |
Pedals out of step
Bekzod and Shahzoda ride a tandem bicycle. The chain makes both cranks turn once a second, and each crank arm is 7 inches long. The heights of their right pedals above their crank axles, in inches, t seconds after a start signal, are
The 7 is the Amplitude and reflection. Whose pedal is behind, by how many seconds, and when does each pedal first reach the top?
SolutionFactor the coefficient of t:
So h_S is h_B with t replaced by \displaystyle t - \frac{1}{4}: Shahzoda’s pedal is \displaystyle \frac{1}{4} second behind and does everything Bekzod’s does a quarter second later. Bekzod’s pedal is at the top when \displaystyle 2\pi t = \frac{\pi}{2}, at \displaystyle t = \frac{1}{4}. Shahzoda’s is at the top when \displaystyle 2\pi\left(t - \frac{1}{4}\right) = \frac{\pi}{2}, at \displaystyle t = \frac{1}{2}.
Reading the \displaystyle \frac{\pi}{2} straight off would claim a lag of about 1.57 seconds, longer than the whole 1-second turn. The \displaystyle \frac{\pi}{2} is an angle, a quarter turn; dividing by the turning rate 2\pi converts it to a time, a quarter of the period.
From a slide back to a formula
Jasur slides the graph of y = \sin 5x by \displaystyle \frac{\pi}{10} to the left. Write the new equation with the input multiplied out, and name a simpler function with the same graph.
SolutionA slide of \displaystyle \frac{\pi}{10} to the left replaces x by \displaystyle x + \frac{\pi}{10}, the whole of x, inside the bracket:
The number added is \displaystyle \frac{\pi}{2}, five times the slide. Check: the input is zero at \displaystyle x = -\frac{\pi}{10}, the start of the shifted cycle. Since \displaystyle \sin\left(\theta + \frac{\pi}{2}\right) = \cos\theta (the cosine graph is the sine graph slid \displaystyle \frac{\pi}{2} left, as in Graphing sine and cosine), this is y = \cos 5x.
Two shifts, one graph
Show that \displaystyle y = \sin\left(2x - \frac{\pi}{3}\right) and \displaystyle y = \sin\left(2x + \frac{5\pi}{3}\right) have the same graph, though their phase shifts differ.
SolutionFactoring, \displaystyle 2x - \frac{\pi}{3} = 2\left(x - \frac{\pi}{6}\right), a slide of \displaystyle \frac{\pi}{6} right, and \displaystyle 2x + \frac{5\pi}{3} = 2\left(x + \frac{5\pi}{6}\right), a slide of \displaystyle \frac{5\pi}{6} left. The two slides differ by \displaystyle \frac{\pi}{6} - \left(-\frac{5\pi}{6}\right) = \pi, which is exactly the period of \sin 2x. A wave slid by one whole period lands on itself, so the graphs agree. In the formulas, \displaystyle 2x + \frac{5\pi}{3} = \left(2x - \frac{\pi}{3}\right) + 2\pi, and sine repeats every 2\pi.
Boundaries
- The coefficient b must not be 0: factoring divides by b, and \sin(0 \cdot x - d) is a constant with no slide to read.
- The input must be a line in x, bx - d. Something like \sin\left(x^2 - 1\right) is not a slid sine wave, and has no phase shift.
- A phase shift is only fixed up to whole periods. If c is a phase shift of a wave with period p, so is c + np for every integer n. The usual choice is the one of smallest size.
- The shift is measured from a named parent. The same graph is a sine slid one amount and a cosine slid another, as in Example 5, so say which parent you mean.
- With a negative b, factor out b with its sign, or first turn the coefficient positive with \sin(-\theta) = -\sin\theta or \cos(-\theta) = \cos\theta.
Where this goes next
With the Amplitude and reflection, the period, the midline and the phase shift, every number in y = A\sin\bigl(b(x - c)\bigr) + k has a meaning on the graph, and Writing an equation from a wave runs the reading backward, from a picture to a formula. The factoring move is not special to waves: \displaystyle y = \sqrt{2x - 6} = \sqrt{2(x - 3)} is the square root graph squeezed and then slid 3 to the right, not 6.
Exercises
Factor and read the shift
For each graph, factor the input, give the phase shift, and say which way the graph slides.
- \displaystyle y = \sin\left(2x - \frac{\pi}{2}\right)
- y = \sin\left(3x + \pi\right)
- \displaystyle y = \cos\left(5x - \frac{\pi}{3}\right)
- \displaystyle y = \cos\left(\frac{x}{3} + \frac{\pi}{6}\right)
- \displaystyle y = \sin\left(\pi x - \frac{\pi}{4}\right)
- y = \sin\left(6x - 2\right)
One cycle
- Find the cycle of \displaystyle y = \sin\left(4x - \frac{\pi}{2}\right) that starts at the phase shift, and its five key points.
- Find the cycle of \displaystyle y = \cos\left(2x + \frac{\pi}{3}\right) that starts at the phase shift, and its five key points.
- Find the smallest positive x at which \displaystyle y = \sin\left(3x - \frac{\pi}{4}\right) equals 1.
- Find the smallest positive x-intercept of \displaystyle y = \sin\left(2x + \frac{\pi}{3}\right).
From the slide to the formula
- The graph of y = \sin 2x is slid \displaystyle \frac{\pi}{8} to the right. Write its equation with the input multiplied out.
- The graph of y = \cos 3x is slid \displaystyle \frac{\pi}{9} to the left. Write its equation with the input multiplied out.
- Write a sine function with b = 2 whose cycle starts at \displaystyle x = \frac{\pi}{3}, with the input multiplied out.
The tandem bicycle
These use Example 4, where Bekzod’s pedal height is h_B = 7\sin(2\pi t).
- On another day Jasur takes Shahzoda’s seat, and his pedal height is \displaystyle h_J = 7\sin\left(2\pi t - \frac{\pi}{3}\right). How many seconds behind Bekzod’s pedal is his?
- When does Jasur’s pedal from Exercise 14 first reach the top, for t \ge 0?
- Bekzod’s left pedal is at the other end of the same crank: h_L = 7\sin(2\pi t - \pi). Find its lag behind his right pedal in seconds, and show that h_L = -h_B.
- Climbing a hill, they pedal at two turns a second: h_B = 7\sin(4\pi t) and \displaystyle h_S = 7\sin\left(4\pi t - \frac{\pi}{2}\right). How many seconds behind is Shahzoda’s pedal now?
- A pedal with height h = 7\sin(2\pi t + d), where 0 \le d < 2\pi, first reaches the top at \displaystyle t = \frac{1}{10} second. Find d.
Reasoning
- Jasur says \displaystyle y = \sin\left(3x - \frac{\pi}{3}\right) is the graph of y = \sin 3x slid \displaystyle \frac{\pi}{3} to the right. Test his claim at \displaystyle x = \frac{\pi}{9} and give the correct slide.
- The phase shifts of y = \cos(2x - \pi) and y = \cos(2x + \pi) point in opposite directions. Explain why the two graphs are nevertheless the same.
- Take b > 0 and d > 0. Explain why the phase shift of \sin(bx - d) is smaller than d when b > 1 and larger than d when 0 < b < 1.
- Explain why solving “input = 0” always gives the same phase shift as factoring the input.
Answers
- \displaystyle 2\left(x - \frac{\pi}{4}\right): phase shift \displaystyle \frac{\pi}{4}, to the right.
- \displaystyle 3\left(x + \frac{\pi}{3}\right): phase shift \displaystyle -\frac{\pi}{3}, \displaystyle \frac{\pi}{3} to the left.
- \displaystyle 5\left(x - \frac{\pi}{15}\right): phase shift \displaystyle \frac{\pi}{15}, to the right.
- \displaystyle \frac{1}{3}\left(x + \frac{\pi}{2}\right), since \displaystyle \frac{1}{3} \cdot \frac{\pi}{2} = \frac{\pi}{6}: phase shift \displaystyle -\frac{\pi}{2}, \displaystyle \frac{\pi}{2} to the left.
- \displaystyle \pi\left(x - \frac{1}{4}\right): phase shift \displaystyle \frac{1}{4}, to the right. A phase shift need not involve \pi.
- \displaystyle 6\left(x - \frac{1}{3}\right): phase shift \displaystyle \frac{1}{3}, to the right.
- \displaystyle 4\left(x - \frac{\pi}{8}\right), period \displaystyle \frac{\pi}{2}, so the cycle is \displaystyle \left[\frac{\pi}{8}, \frac{5\pi}{8}\right] with quarter period \displaystyle \frac{\pi}{8}. Key points \displaystyle \left(\frac{\pi}{8}, 0\right), \displaystyle \left(\frac{\pi}{4}, 1\right), \displaystyle \left(\frac{3\pi}{8}, 0\right), \displaystyle \left(\frac{\pi}{2}, -1\right), \displaystyle \left(\frac{5\pi}{8}, 0\right).
- \displaystyle 2\left(x + \frac{\pi}{6}\right), period \pi, so the cycle is \displaystyle \left[-\frac{\pi}{6}, \frac{5\pi}{6}\right] with quarter period \displaystyle \frac{\pi}{4}. Key points \displaystyle \left(-\frac{\pi}{6}, 1\right), \displaystyle \left(\frac{\pi}{12}, 0\right), \displaystyle \left(\frac{\pi}{3}, -1\right), \displaystyle \left(\frac{7\pi}{12}, 0\right), \displaystyle \left(\frac{5\pi}{6}, 1\right).
- \displaystyle x = \frac{\pi}{4}. Sine is 1 when its input is \displaystyle \frac{\pi}{2} + 2\pi n for an integer n; \displaystyle 3x - \frac{\pi}{4} = \frac{\pi}{2} gives \displaystyle x = \frac{\pi}{4}, and one turn less gives \displaystyle x = -\frac{5\pi}{12}, which is negative.
- \displaystyle x = \frac{\pi}{3}. Sine is 0 when its input is n\pi for an integer n; \displaystyle 2x + \frac{\pi}{3} = n\pi gives \displaystyle x = \frac{n\pi}{2} - \frac{\pi}{6}, which is \displaystyle -\frac{\pi}{6} for n = 0 and \displaystyle \frac{\pi}{3} for n = 1.
- \displaystyle y = \sin\left(2\left(x - \frac{\pi}{8}\right)\right) = \sin\left(2x - \frac{\pi}{4}\right).
- \displaystyle y = \cos\left(3\left(x + \frac{\pi}{9}\right)\right) = \cos\left(3x + \frac{\pi}{3}\right).
- \displaystyle y = \sin\left(2\left(x - \frac{\pi}{3}\right)\right) = \sin\left(2x - \frac{2\pi}{3}\right).
- \displaystyle \frac{1}{6} second, since \displaystyle 2\pi t - \frac{\pi}{3} = 2\pi\left(t - \frac{1}{6}\right).
- \displaystyle t = \frac{5}{12} second: \displaystyle 2\pi t - \frac{\pi}{3} = \frac{\pi}{2} gives \displaystyle 2\pi t = \frac{5\pi}{6}. That is Bekzod’s \displaystyle \frac{1}{4} plus Jasur’s lag \displaystyle \frac{1}{6}.
- \displaystyle 2\pi t - \pi = 2\pi\left(t - \frac{1}{2}\right), a lag of \displaystyle \frac{1}{2} second, half a turn. Since \sin(\theta - \pi) = -\sin\theta, h_L = -7\sin(2\pi t) = -h_B: when one pedal is at the top, the other is at the bottom.
- \displaystyle \frac{1}{8} second, since \displaystyle 4\pi t - \frac{\pi}{2} = 4\pi\left(t - \frac{1}{8}\right). The same quarter turn takes half the time at twice the rate.
- \displaystyle d = \frac{3\pi}{10}. The top needs \displaystyle 2\pi t + d = \frac{\pi}{2} + 2\pi n for an integer n; at \displaystyle t = \frac{1}{10} this is \displaystyle d = \frac{3\pi}{10} + 2\pi n, and only n = 0 lies in [0, 2\pi). The tops come at \displaystyle t = \frac{1}{10} + n, so \displaystyle \frac{1}{10} is indeed the first for t \ge 0.
- At \displaystyle x = \frac{\pi}{9} the given function is \sin 0 = 0, but his function there is \displaystyle \sin\left(3\left(\frac{\pi}{9} - \frac{\pi}{3}\right)\right), which is \displaystyle \sin\left(-\frac{2\pi}{3}\right) = -\frac{\sqrt{3}}{2}, so his graph is a different one. Factoring, \displaystyle 3x - \frac{\pi}{3} = 3\left(x - \frac{\pi}{9}\right): the slide is \displaystyle \frac{\pi}{9} to the right.
- The factored forms are \displaystyle 2\left(x - \frac{\pi}{2}\right) and \displaystyle 2\left(x + \frac{\pi}{2}\right): slides of \displaystyle \frac{\pi}{2} right and \displaystyle \frac{\pi}{2} left. They differ by \pi, the period of \cos 2x, and a wave moved one full period lands on itself. In the formulas, 2x + \pi = (2x - \pi) + 2\pi.
- The phase shift is \displaystyle \frac{d}{b}. Dividing a positive d by a number above 1 makes it smaller, and by a number between 0 and 1 makes it larger. On the graph: for b > 1 the wave is squeezed, so a given change in the input is covered by a shorter stretch of x; for 0 < b < 1 it is stretched, and the stretch is longer.
- For b \ne 0, the factored input b(x - c) is zero exactly when x = c, because a product with a nonzero factor b is zero only when the other factor is. So the x that makes the input zero is the phase shift. On the graph, it is where the slid cycle begins, the image of the start of the parent cycle at x = 0.