C92 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 y(t)=x(at+b).
  • 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 y(t)=x(2t−4)?

Name it

The three operations

OperationSignalEffect
shiftx(t−t0)delayed by t0 (moved right) when t0>0
reversalx(−t)mirrored about t = 0
scalingx(at)squeezed by |a| when |a|>1, stretched when |a|<1

For a combination, solve for where the argument takes a value: a feature of x at t0 appears in x(at+b) where at+b=t0,

t=t0−ba

Equivalently, x(at+b)=x(a(t+b/a)): scale by a, then shift by −b/a. A signal lasting D seconds lasts D/|a| after scaling, and its energy becomes E/|a|.

Even and odd parts

x is even if x(−t)=x(t) (like cos) and odd if x(−t)=−x(t) (like sin). Every signal is the sum of an even and an odd part:

xe(t)=x(t)+x(−t)2,xo(t)=x(t)−x(−t)2

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: x[2n] keeps only the even-numbered samples (decimation) and throws the rest away, and x[n/2] 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 x(−2t+3).

Show the solution
  1. Track the argument. The argument u=−2t+3 runs from 0 to 2 as t runs from 1.5 down to 0.5.
  2. Where it lives. So the signal lives on 0.5 ≤ t ≤ 1.5, half as long, and reversed.
  3. 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 x(−2t+3) 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 x(t)=e−tu(t).

Show the solution
  1. Reverse the signal. x(−t)=etu(−t)
  2. Even part. A symmetric two-sided decay: xe(t)=12e−|t|
  3. Odd part. xo(t)=12sgn⁡(t)e−|t|
  4. Check. Adding them gives back e−t for t > 0 and 0 for t < 0.

Answer xe(t)=12e−|t| and xo(t)=12sgn⁡(t)e−|t|.

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
  1. 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.
  2. Read it off. That's [3, 2, 1] on n = 0 to 2: reversed and shifted back into place.
  3. 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].
  4. 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 x(3t+−6)?

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 x(3t) last?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Check

A signal has x(2)=4 and x(−2)=3.

(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 x[2n] nonzero?

Check

x[n] has its largest sample at n = 5. Where is it in y[n]=x[4−n]?

Check

A signal has energy 4. What is the energy of x(2t)?

Check

Is tcos⁡(t) even, odd, or neither?

Check

x(t) is nonzero only for 0 ≤ t ≤ 2. Where is x(2t+4) nonzero?

(a)

Where does it start?

(b)

Where does it end?

Check

x(t)=e−tu(t). At t = −0.5:

(a)

What is its even part?

(b)

And its odd part?

Explain why

Why does x(2t−4) start at t = 2 instead of t = 4?

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.