Reading a recording
A recorder stored a voltage pulse x(t) on tape. It stays at 1 V for one second, then falls steadily to 0 V at t = 2 s. The coloured stretch of tape, from 0 to 2 s, holds it.
A player makes a new signal y(t). At each output time t, its read head sits at an input time τ (tau) and copies that value: y(t) = x(τ). Plain playback reads τ = t, so y is a copy of x.
Shift, scale, flip
Now the player reads τ = t − 1: the read head stays 1 s behind. y(t) = x(t − 1) is the same pulse, 1 s later (right). Check: y(2.5) = x(1.5) = 0.5 V. A plus, x(t + 1), moves it earlier.
With τ = 2t the read head covers 2 s of tape every second. The pulse now lasts 1 s instead of 2: y(t) = x(2t) is squeezed toward t = 0. Its height stays 1 V. Check: y(0.75) = x(1.5) = 0.5 V.
With τ = t/2 the head covers only half a second of tape per second, so the pulse stretches to 4 s. A number above 1 in front of t squeezes; a number between 0 and 1 stretches. Check: y(3) = x(1.5) = 0.5 V.
With τ = −t the read head runs backwards along the tape. y(t) = x(−t) is the mirror image of x about t = 0: it sits between −2 s and 0. Only a stored signal allows this: y(−2) needs x(2).
Two at once
Take y(t) = x(2t − 2). Do it in two moves. First the shift: v(t) = x(t − 2) moves the pulse 2 s later, to between 2 and 4 s. The −2 stays inside, with the input time.
Then replace t with 2t: y(t) = v(2t) = x(2t − 2). The pulse is squeezed toward t = 0 and lands between 1 and 2 s. Check one point: y(1) = x(2·1 − 2) = x(0) = 1 V.
In code
In Python with numpy, write x as a function and call it with a new time: x(t - 1) shifts, x(2*t) squeezes, x(-t) flips. Here y, the output tape, holds x(2t − 2) at 801 times from −3 to 5 s.
The working
# step 1/9 · recording x(t) = 1 V for 0 ≤ t ≤ 1 s x(t) = 2 − t V for 1 ≤ t ≤ 2 s x(t) = 0 everywhere else x(0) = 1 V x(1.5) = 0.5 V <- we follow this point x(2) = 0 V the pulse is not symmetric, so a flip will be easy to see
The pulse (1 V for one second, then a fall to 0 V over the next) is a chosen example; every value, curve and head position in the figure is computed from this model. Each operation changes only the time the signal is read at, never the values: y(t) = x(a·t + b). The height of the pulse never changes.