Created by Dr. V. R. Ratnaparkhe
Signals & SystemsVirtual Laboratory
Experiment 09 Β· Signals & Systems Lab

Time-Shifting Property of Transforms

Show that a time shift multiplies the Laplace, Z and Fourier transforms by an exponential factor.

Linear phasee^{-st0}z^{-n0}CO 1-4

Aim

Write a program to prove the time-shifting property of the Laplace, Z and Fourier transforms.

Objectives

  • State the time-shifting property for all three transforms.
  • Compute the transform of x and of its shifted copy independently, then show that their ratio is e^{βˆ’stβ‚€}, z^{βˆ’nβ‚€} or e^{βˆ’j2Ο€ftβ‚€}.
  • See that a shift leaves the magnitude spectrum unchanged and adds a linear phase.
  • Explain why a one-sided Laplace or Z transform needs a delay (tβ‚€, nβ‚€ β‰₯ 0) with the u(t βˆ’ tβ‚€) window.
Fourier: x(t βˆ’ tβ‚€) ⇄ e^{βˆ’j2Ο€ftβ‚€} Β· X(f) β†’ |Β·| unchanged, phase βˆ’ 2Ο€ftβ‚€ Laplace: x(t βˆ’ tβ‚€)u(t βˆ’ tβ‚€) ⇄ e^{βˆ’stβ‚€} Β· X(s), tβ‚€ β‰₯ 0 Z: x[n βˆ’ nβ‚€] ⇄ z^{βˆ’nβ‚€} Β· X(z) (causal x, nβ‚€ β‰₯ 0) DTFT: x[n βˆ’ nβ‚€] ⇄ e^{βˆ’jΟ‰nβ‚€} Β· X(e^{jΟ‰})

Proof (Fourier)

Let y(t) = x(t βˆ’ tβ‚€). Then Y(f) = ∫x(t βˆ’ tβ‚€)e^{βˆ’j2Ο€ft}dt. Substitute Ο„ = t βˆ’ tβ‚€: Y(f) = ∫x(Ο„)e^{βˆ’j2Ο€f(Ο„+tβ‚€)}dΟ„ = e^{βˆ’j2Ο€ftβ‚€}X(f). The Laplace and Z proofs use the same change of variable.

Visual meaning

Each frequency component is delayed by the same time tβ‚€. A component at frequency f therefore picks up a phase lag of 2Ο€ftβ‚€ radians, which grows in proportion to f. That is linear phase: the shape of the signal is kept, and only its position moves.

The animation shows two harmonics shifted by the same tβ‚€. The higher harmonic turns through more phase.
  1. Choose the Fourier tab. Pick a signal and drag tβ‚€. Check that the magnitude curves overlap exactly.
  2. Look at the phase-difference plot. It should lie on the line βˆ’2Ο€ftβ‚€. Read the slope and work out tβ‚€ from it.
  3. Choose the Laplace tab. The table computes β„’{x(t βˆ’ tβ‚€)u(t βˆ’ tβ‚€)} numerically (directly from the shifted signal) and compares it with e^{βˆ’stβ‚€}X(s) at several values of s.
  4. Choose the Z tab. Do the same with Ξ£ x[n βˆ’ nβ‚€]z^{βˆ’n} and z^{βˆ’nβ‚€}X(z), and look at the DTFT phase.
  5. Record at least one reading for each transform, with your hand-calculated value of the shift factor.

Pre-lab diagnostic

Signal & shift

Audio (headphones)Stereo: the delay makes the sound appear to jump from left to right. Phase test: shifting each harmonic changes only its phase, and the tone sounds the same, because |X| is unchanged.
Original (blue) and shifted (amber)
Magnitude: |X| (blue), |X_shift| (amber, dashed)
Phase difference ∠X_shift βˆ’ ∠X (green) vs theory βˆ’2Ο€ftβ‚€ (dashed)

Verification table

Conclusion

Post-lab quiz

Self-evaluation

exp9_timeshift.m

%% Experiment 9: Time-shifting property
clc; clear; close all;
% ---------- Fourier ----------
dt = 1e-3; t = -2:dt:10; f = -4:0.01:4; a = 1; t0 = 1.5;
x  = exp(-a*t).*(t>=0);       xs = exp(-a*(t-t0)).*(t>=t0);
FT = @(s) arrayfun(@(ff) trapz(t, s.*exp(-1j*2*pi*ff*t)), f);
X = FT(x);  Xs = FT(xs);
subplot(2,1,1); plot(f,abs(X),f,abs(Xs),'--'); title('|X| and |X_s| identical');
subplot(2,1,2); plot(f,unwrap(angle(Xs))-unwrap(angle(X)), f,-2*pi*f*t0,'--');
title('phase difference = -2\pi f t_0');
fprintf('max |Xs - e^{-j2pi f t0}X| = %g\n', max(abs(Xs - exp(-1j*2*pi*f*t0).*X)));
% ---------- Laplace (symbolic) ----------
syms tt s
X_s  = laplace(exp(-a*tt));
Xsh  = laplace(exp(-a*(tt-t0))*heaviside(tt-t0));
simplify(Xsh - exp(-s*t0)*X_s)              % -> 0
% ---------- Z (symbolic) ----------
syms n z; n0 = 3;
Xz  = ztrans(0.8^n);
Xzs = ztrans(0.8^(n-n0)*heaviside(n-n0+0.5));
simplify(Xzs - z^(-n0)*Xz)                   % -> 0