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

Laplace & Z-Transforms

Find forward and inverse Laplace and Z transforms, see pole-zero plots and ROC, and verify numerically.

s-planez-planeROCCO 1

Aim

Find the Laplace and inverse Laplace transforms of the given functions, verify the results by analytical calculation, and plot their characteristics. Find the Z-transform and inverse Z-transform of the given functions and verify the results by analytical calculation.

Objectives

  • Evaluate F(s) = ∫₀^∞ f(t)e^{−st}dt and state its region of convergence (ROC).
  • Invert rational F(s) by partial fractions and check the answer numerically.
  • Evaluate X(z) = Σ x[n]z^{−n} and see how the ROC tells causal and anti-causal sequences apart.
  • Invert X(z) by long division (power series) and by partial fractions, and compare the two.
  • Draw pole–zero plots and relate pole positions to how f(t) or x[n] behaves.

Laplace transform

F(s) = ∫₀^∞ f(t) e^{−st} dt, s = σ + jω f(t) = (1/2πj) ∫ F(s) e^{st} ds
f(t)F(s)ROC
u(t)1/sσ > 0
e^{−at}u(t)1/(s+a)σ > −a
t·u(t)1/s²σ > 0
sin(ωt)u(t)ω/(s²+ω²)σ > 0
cos(ωt)u(t)s/(s²+ω²)σ > 0
e^{−at}sin(ωt)u(t)ω/((s+a)²+ω²)σ > −a
t·e^{−at}u(t)1/(s+a)²σ > −a

Z-transform

X(z) = Σₙ x[n] z^{−n}, z = r·e^{jω} ROC: the values of z where the sum converges
x[n]X(z)ROC
δ[n]1all z
u[n]1/(1−z⁻¹)|z| > 1
aⁿu[n]1/(1−az⁻¹)|z| > |a|
−aⁿu[−n−1]1/(1−az⁻¹)|z| < |a|
n·aⁿu[n]az⁻¹/(1−az⁻¹)²|z| > |a|
cos(ω₀n)u[n](1−cosω₀z⁻¹)/(1−2cosω₀z⁻¹+z⁻²)|z| > 1
aⁿcos(ω₀n)u[n](1−a cosω₀z⁻¹)/(1−2a cosω₀z⁻¹+a²z⁻²)|z| > |a|

Inverse methods

Partial fractions: write F(s) = Σ Aᵢ/(s − pᵢ), where Aᵢ = (s − pᵢ)F(s) evaluated at s = pᵢ. Then f(t) = Σ Aᵢe^{pᵢt}u(t). Power series (long division): divide the numerator by the denominator in powers of z⁻¹. The coefficient of z^{−n} is x[n].

Poles tell the story: poles in the left half of the s-plane (or inside the unit circle in the z-plane) give decaying responses. Poles on the jω axis (or on the unit circle) give sustained oscillation. Poles in the right half (or outside the circle) give growth.
  1. Laplace: choose a function and set a and ω. Read F(s), the poles and the ROC.
  2. Move the test point σ inside the ROC. The numeric integral should match F(s). Then move σ outside the ROC and watch the integral diverge.
  3. Inverse Laplace: choose each F(s). Work out the partial fractions by hand first, then compare with the panel. The verification table recomputes ℒ{f(t)} numerically at several s.
  4. Z: choose aⁿu[n] and then −aⁿu[−n−1]. They have the same X(z) but different ROCs. Check each sum at a test |z| inside and outside its ROC.
  5. Inverse Z: compare the long-division terms with the closed-form x[n]. The max error should be ~0.
  6. Record every function in the Observations table with your hand-calculated value.

Pre-lab diagnostic

Function f(t)

Audio

Pitch follows the pole's frequency (|ω| or angle). Loudness decays, holds or grows depending on whether the pole is stable, marginal or unstable.

f(t)
s-plane: × poles, ○ zeros, shaded = ROC, ◆ = test point
|F(σ+jω)| along the test line

Transform verification table

Record from any of the four modes. Type the value you worked out by hand at the same test point or index.

Analysis

Post-lab quiz

Self-evaluation

exp8_laplace_z.m

%% Experiment 8: Laplace and Z transforms (Symbolic Math Toolbox)
clc; clear; close all;
syms t s n z a w positive
% ---- Laplace ----
F1 = laplace(exp(-a*t))              % 1/(a + s)
F2 = laplace(exp(-a*t)*sin(w*t))     % w/((a+s)^2 + w^2)
f3 = ilaplace((s+3)/((s+1)*(s+2)))    % 2*exp(-t) - exp(-2*t)
[r,p,k] = residue([1 3],[1 3 2])       % residues 2, -1 at poles -1, -2
fplot(f3,[0 6]); grid on; title('f(t) = L^{-1}\{(s+3)/((s+1)(s+2))\}');
figure; pzmap(tf([1 3],[1 3 2]));        % Control System Toolbox
% ---- Z ----
X1 = ztrans(a^n)                     % z/(z - a)
X2 = ztrans(n*(1/2)^n)               % 2z/(2z-1)^2
x3 = iztrans(1/((1-0.5/z)*(1-0.25/z)))  % 2(1/2)^n - (1/4)^n
% long division / power series via impulse response:
b = 1; aa = [1 -0.75 0.125];
xn = filter(b, aa, [1 zeros(1,14)])     % first 15 terms
[r,p,k] = residuez(b, aa)                % partial fractions in z^-1
figure; zplane(b, aa);