Computer Systems Modelling · Section 5.8 · Interactive lab

The Laplace transform and its properties

The Fourier transform is not guaranteed for a signal that does not satisfy the Dirichlet conditions, such as a unit step or a growing exponential. The Laplace transform gets around this by multiplying the signal by a decaying exponential before transforming it, at the price of a region of convergence that we must carry along. This lab follows Section 5.8.2: the properties of Table 5.3, the convolution property that lets us solve a system (Example 5.22), and the final value theorem. It is the companion of the Fourier Transform Lab.

How it works and what to try

How it works: In three tabs. (1) Properties: Example 5.21 builds a switched-on cosine from two phasors, each with one pole. Then pick a signal from Table 5.4, apply linearity, time scaling, time shifting, frequency shifting, differentiation or integration, and watch the s-plane change. The transform is checked against Equation 5.41 at points inside the region of convergence. (2) Convolution: vary the system and input of Example 5.22, including steps and growing exponentials, and compare the transform method with the convolution integral. (3) Final value theorem: see sX(s) as a weighted average of x(t) that looks further ahead as s → 0, and see when its limit is the value where the signal settles.

Try this: Slide a frequency shift until a pole crosses the imaginary axis and the Fourier transform disappears. Integrate a unit step and get a double pole at the origin. Drive a system with a growing exponential, which the Fourier method cannot handle. Lower the damping of a ringing step through zero and see the final value theorem give an answer that is no longer true.

Section, example, table and equation numbers refer to Chapter 5 of S. Keshav, Mathematical Foundations of Computer Networking, Addison-Wesley, 2012.

Six properties that save integration

The Laplace transform of x(t) is

X(s) = ∫−∞∞ x(t)e−st dt,   s = σ + jωEQ 5.41

Writing e−st as e−σte−jωt shows that X(σ + jω) is the Fourier transform of x(t)e−σt (EQ 5.42). The values of σ for which this converges form the region of convergence (ROC). For a signal that starts at t = 0, the ROC is the half-plane to the right of the rightmost pole. With x(t) ↔ X(s) for α < Re(s) < β:

1. Linearity. ax1(t) + bx2(t) ↔ aX1(s) + bX2(s). The ROC is at least the overlap of the two ROCs.

2. Time scaling. x(at) ↔ (1/|a|)X(s/a), for aα < Re(s) < aβ. Speeding a signal up by a moves every pole and zero away from the origin by the factor a. Frequency scaling in Table 5.3 is the same statement read the other way.

3. Time shifting. x(t − t0) ↔ e−st₀X(s), with the same ROC. A delay moves no poles.

4. Frequency shifting. ectx(t) ↔ X(s − c), for α + Re(c) < Re(s) < β + Re(c). The whole pattern of poles and zeros, and the ROC with it, slides sideways by c. (Table 5.3 calls this constant a; the lab uses c to keep it apart from the speed-up.)

5. Differentiation. dx/dt ↔ sX(s). This adds a zero at the origin. If x jumps at t = 0, its derivative includes an impulse there. The unilateral transform starts just after the jump and misses that impulse, which is why its rule is sX(s) − x(0).

6. Integration. ∫−∞t x(r)dr ↔ X(s)/s, for max(α, 0) < Re(s) < β. This adds a pole at the origin.

Example 5.21: by linearity, a switched-on cosine is two poles and a zerou(t) cos ω1t = ½ejω₁tu(t) + ½e−jω₁tu(t), and each phasor contributes one pole
0.5
0.5
2
0.5
—
—
×pole from αejω₁tu(t)×pole from βe−jω₁tu(t)○zero of the sum
x(t) in timereal part, imaginary part (dashed), real part of x(t)e−σt
|X(σ + jω)| on the line σ = 0.5the Fourier magnitude of x(t)e−σt; the two poles show up as two peaks near ω = ±ω1, about 2σ wide

From Example 5.20, eatu(t) ↔ 1/(s − a) for Re(s) > Re(a), and this holds for a complex a. So the phasor ejω₁tu(t) has one pole, at s = jω1, and its mirror image e−jω₁tu(t) has one at s = −jω1. Both have the ROC Re(s) > 0. Linearity says that weighting and adding the signals weights and adds the transforms, so the sum has the transform α/(s − jω1) + β/(s + jω1). With α = β = ½ this is s/(s2 + ω12), row 8 of Table 5.4: the two poles stay where they were, and adding the two terms creates a zero at the origin. In the Fourier Transform Lab the eternal cosine gave two impulses at ±ω1. Here the poles sit on the imaginary axis at exactly those frequencies. Slide σ towards 0 and the line approaches the poles: the damping e−σt in the time plot gets weaker, and the peaks in the lower plot get taller (about α/σ and β/σ) and narrower (about 2σ wide at half the peak power), tending to the impulses of the eternal cosine. Make α ≠ β and the zero slides along the imaginary axis: the poles and zeros of a real signal are either real or come in conjugate pairs.

Python · EQ 5.41 as a sum, against linearity

    

Now pick a starting signal from Table 5.4 and apply a property. Call the new signal z(t), with transform Z(s). There is no system here: z is just x after the property has been applied (in the next tab, y(t) and Y(s) are the output of a system). The lab shows what the property does to the poles (×), the zeros (○) and the ROC, and compares the Z(s) the property predicts with one computed directly from EQ 5.41 at three points inside the ROC.

1
1
0.5

The pair

—
ROC of X(s)
—
ROC of Z(s)
—

—

—
Signalsx(t) (faint); z(t); z(t)e−σt (dashed); impulses as arrows
The s-planepoles × and zeros ○ of X(s) (faint); of Z(s); shaded: ROC of Z(s); the line Re(s) = σ; ● test points
Along the line Re(s) = σ|X(σ + jω)| (faint); |Z(σ + jω)|, the magnitude of the Fourier transform of z(t)e−σt
Python · the property against EQ 5.41

    

What to notice

Slide the delay. No pole moves and the ROC stays put, because the factor e−st₀ has no poles of its own. On the imaginary axis (σ = 0) the magnitude does not change, as in the Fourier Transform Lab. On any other line it is scaled by e−σt₀.

Change the speed-up. The poles move along straight lines through the origin. A pole further to the left is a faster decay, and a pole further from the real axis is a faster oscillation, so a signal that is twice as fast has poles twice as far out.

Choose frequency shifting and slide c. The pattern moves sideways and the ROC moves with it. Starting from e−tu(t), the pole reaches the origin at c = 1. From there on the imaginary axis is outside the ROC, so the signal still has a Laplace transform but no Fourier transform in the ordinary sense.

Move σ across the edge of the ROC and watch the dashed curve in the top plot. To the right of every pole, z(t)e−σt dies away and EQ 5.41 converges. To the left of a pole it does not, and the formula for Z(s) is no longer the transform of z(t).

Try these

  1. Start from the unit step and choose frequency shifting with c = −1. Which row of Table 5.4 have you derived, and what is its ROC?
    Show answer
    The new signal is e−tu(t), and Z(s) = X(s + 1) = 1/(s + 1). This is row 5 with α = −1. The pole has moved from 0 to −1, and the ROC from Re(s) > 0 to Re(s) > −1.
  2. Start from cos(2t)u(t) and shift by c = −0.5. Where are the poles and the zero now, and which row of Table 5.4 is this?
    Show answer
    Everything moves left by 0.5: the poles go from ±2j to −0.5 ± 2j and the zero from 0 to −0.5. The transform is (s + 0.5)/((s + 0.5)2 + 4), which is row 10, the exponentially modulated cosine, with α = −0.5 and ω = 2.
  3. Integrate the unit step. What is the new signal, and what does the 2 beside the pole mean?
    Show answer
    The running integral of u(t) is the ramp tu(t), and Z(s) = (1/s)(1/s) = 1/s2, row 4. Integration adds a pole at the origin, where the step already had one, so the origin is now a double pole. The ROC is still Re(s) > 0.
  4. Differentiate e−tu(t). The property gives s/(s + 1). What does the unilateral rule sX(s) − x(0) give, and why do the two differ?
    Show answer
    The signal jumps from 0 to 1 at t = 0, so its derivative is δ(t) − e−tu(t), with transform 1 − 1/(s + 1) = s/(s + 1). The unilateral rule gives s/(s + 1) − 1 = −1/(s + 1), the transform of −e−tu(t) alone. The two differ by exactly 1, the transform of the impulse, which the unilateral integral does not see.
  5. Start from the damped sine e−t/2 sin(3t)u(t) and set the speed-up to a = 2 with no delay. Predict the poles of Z(s) before you look.
    Show answer
    The poles of X(s) = 3/((s + 0.5)2 + 9) are at −0.5 ± 3j. Scaling by a = 2 doubles them to −1 ± 6j: the new signal e−t sin(6t)u(t) decays twice as fast and oscillates twice as fast. As a check, ½X(s/2) = 6/((s + 1)2 + 36), which is row 9 with α = −1 and ω = 6.