C9 · Lesson 2 · Shifting, reversing and scaling time
What x(at + b) does to a signal
An echo is the same sound arriving later, x(t − d). A tape played at double speed is x(2t), shorter and higher. Played backward it's x(−t). These three operations on the time variable come up constantly, most of all in convolution, where one signal is flipped and slid past another. They're easy to state and easy to get backward: x(2t − 4) is not x(2t) moved 4 to the right. Getting the order right once, carefully, saves a great deal of confusion later.
- The faint curve is x(t): a ramp from 0 to 1 over the first second, then flat for a second. The bright curve is .
- Set a = 1 and change b: positive b moves the signal left, earlier. Set b = 0 and change a: a = 2 squeezes it into half the time, and a negative a flips it.
- Now set a = 2 and b = −4. The signal starts at t = 2, not t = 4: the readout shows where x's start lands.
Predict
x(t) has a sharp corner at t = 0. Where is that corner in ?
t = 2. The corner happens where the argument is 0: . Writing shows it as "squeeze by 2, then delay by 2", not delay by 4.
Name it
The three operations
| Operation | Signal | Effect |
|---|---|---|
| shift | delayed by (moved right) when | |
| reversal | mirrored about t = 0 | |
| scaling | squeezed by when , stretched when |
For a combination, solve for where the argument takes a value: a feature of x at appears in where ,
Equivalently, : scale by a, then shift by . A signal lasting D seconds lasts after scaling, and its energy becomes .
Even and odd parts
x is even if (like cos) and odd if (like sin). Every signal is the sum of an even and an odd part:
The product of two even or two odd signals is even; an even times an odd is odd.
In discrete time
Shifts and reversal work the same way with whole-number shifts. Scaling is different: keeps only the even-numbered samples (decimation) and throws the rest away, and only makes sense for even n, so the gaps have to be filled, usually with zeros (expansion).
Worked example
x(t) is the ramp-and-flat signal above, nonzero from 0 to 2. Describe .
Show the solution
- Track the argument. The argument runs from 0 to 2 as t runs from 1.5 down to 0.5.
- Where it lives. So the signal lives on 0.5 ≤ t ≤ 1.5, half as long, and reversed.
- Place each part. The ramp (u from 0 to 1) is at t from 1.5 down to 1, and the flat part at t from 1 down to 0.5.
Answer lives on 0.5 ≤ t ≤ 1.5, half as long and reversed: the ramp runs from t = 1.5 down to 1, and the flat part from 1 down to 0.5.
Worked example
Find the even and odd parts of .
Show the solution
- Reverse the signal.
- Even part. A symmetric two-sided decay:
- Odd part.
- Check. Adding them gives back for t > 0 and 0 for t < 0.
Answer and .
Worked example
x[n] = [1, 2, 3] for n = 0 to 2, and 0 elsewhere. Find x[2 − n] and x[2n].
Show the solution
- Reverse and shift, x[2 − n]. At n = 0 it's x[2] = 3, at n = 1 it's x[1] = 2, at n = 2 it's x[0] = 1.
- Read it off. That's [3, 2, 1] on n = 0 to 2: reversed and shifted back into place.
- Compress, x[2n]. At n = 0 it's x[0] = 1, at n = 1 it's x[2] = 3, and x[4] is 0, so x[2n] is [1, 3].
- What compressing loses. The sample x[1] = 2 is simply gone. Compressing a discrete signal throws samples away, which a continuous signal never does.
Answer x[2 − n] is [3, 2, 1] and x[2n] is [1, 3], both starting at n = 0.
Check
x(t) has a spike at t = 2. Where is it in ?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
x(t) lasts 5 s. How long does last?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A signal has and .
(a)
What is its even part at t = 2?
(b)
What is its odd part at t = 2?
Check
x[n] is nonzero for n = 0 to 11 − 1 and zero elsewhere. For how many n is nonzero?
Check
x[n] has its largest sample at n = 5. Where is it in ?
Check
A signal has energy 4. What is the energy of ?
Check
Is even, odd, or neither?
Check
x(t) is nonzero only for 0 ≤ t ≤ 2. Where is nonzero?
(a)
Where does it start?
(b)
Where does it end?
Check
. At t = −0.5:
(a)
What is its even part?
(b)
And its odd part?
Explain why
Why does start at t = 2 instead of t = 4?
The signal y(t) = x(2t − 4) takes whatever value x has at the point 2t − 4. x starts where its own argument is 0, so y starts where 2t − 4 = 0, which is t = 2. The time axis is squeezed by 2 before the shift is applied to it, so a shift of 4 in the argument becomes a shift of 4/2 = 2 in time. Factoring the argument as 2(t − 2) makes this visible: squeeze by 2, then delay by 2.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.