Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 37 ยท Modelling and Transfer Functions

The Laplace Transform for Control

Learn the Laplace transform pairs and properties used in control, solve differential equations in the s-domain, and do partial fractions with SciPy residue.

Differential equations are awkward to combine and analyse. The Laplace transform turns them into algebra. It maps a function of time f(t) to a function of a complex variable s:

Text
F(s) = integral from 0 to infinity of f(t) e^(-s t) dt

Derivatives become multiplication by s, convolution becomes multiplication, and a feedback loop becomes the simple fraction you saw in Block Diagrams and Feedback Basics. Nearly everything in classical control uses it. You do not need to compute integrals by hand: a short table and a few properties cover almost all practical work.

Verifying the definition numerically

Take f(t) = e^(-2t). The integral should be 1/(s + 2). For s = 3 that is 0.2. We can check it with numerical integration:

Python The Laplace integral by numbers

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The essential pairs

f(t) for t >= 0 F(s) Name
delta(t) 1 Unit impulse
1 1/s Unit step
t 1/s^2 Unit ramp
t^n / n! 1/s^(n+1) Power
e^(-a t) 1/(s + a) Exponential
t e^(-a t) 1/(s + a)^2 Repeated pole
sin(w t) w/(s^2 + w^2) Sine
cos(w t) s/(s^2 + w^2) Cosine
e^(-a t) sin(w t) w/((s + a)^2 + w^2) Damped sine

The properties you actually use

  • Linearity: L{a f + b g} = a F + b G.
  • Derivative: L{f'} = s F(s) - f(0), and L{f''} = s^2 F - s f(0) - f'(0). With zero initial conditions, differentiation is just multiplication by s.
  • Integral: L{integral of f} = F(s)/s.
  • Time delay: L{f(t - T)} = e^(-sT) F(s).
  • Final value theorem: if s F(s) has all its poles in the left half-plane, then f(infinity) = lim s->0 of s F(s).
  • Initial value theorem: f(0+) = lim s->infinity of s F(s).

Why Laplace helps control

Calculus to algebra Derivative becomes times s.
Easy interconnection Blocks multiply, loops are fractions.
Poles tell the story Their location sets the response.

Time domain for intuition, s-domain for design.

1 / 2

Solving an ODE step by step

Solve y' + 3 y = 6 with y(0) = 0. Transform: s Y - 0 + 3 Y = 6/s, so Y(s) = 6 / (s (s + 3)). Split into partial fractions: 6/(s(s+3)) = 2/s - 2/(s+3). Invert using the table: y(t) = 2 - 2 e^(-3t). Check: y(0) = 0, and y(infinity) = 2, which the final value theorem confirms: lim s->0 of s * 6/(s(s+3)) = 6/3 = 2.

Partial fractions with SciPy

Finding residues by hand gets tedious for higher-order denominators. scipy.signal.residue does it: for B(s)/A(s) it returns residues r, poles p and a direct term k, so that B/A = sum r_i / (s - p_i) + k.

Python Partial fractions and the time response

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The three terms are 5/s - 10/(s+1) + 5/(s+2), so y(t) = 5 - 10 e^(-t) + 5 e^(-2t). Both lines print the same values, and they approach 5 as t grows.

Repeated and complex poles

For a repeated pole such as 1/(s+1)^2, the inverse is t e^(-t), which grows briefly before decaying. Complex poles -a +/- j w come in conjugate pairs and give e^(-at) times sinusoids at frequency w. These two facts drive nearly every result in the next chapters: the real part of a pole sets decay speed and the imaginary part sets oscillation frequency.

Python Pole locations and time response

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A pole at +0.5 produces e^(0.5 t), which explodes. This is the earliest hint of the stability story told in Stability and Pole Locations.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the Laplace transform of the unit step?

    The integral of e^(-st) from 0 to infinity is 1/s. The transform 1 belongs to the impulse and 1/s^2 to the ramp.
  2. 2. With zero initial conditions, differentiating in time corresponds to

    L{f'} = s F(s) - f(0), so with f(0) = 0 it is simply s F(s).
  3. 3. Y(s) = 6/(s(s+3)). What is y(infinity)?

    By the final value theorem, lim s->0 of s Y(s) = 6/3 = 2. All poles of sY(s) are in the left half-plane, so the theorem applies.
  4. 4. Which pole gives a time response that grows without bound?

    A pole at s = +0.5 produces e^(0.5t). Poles with negative real parts decay.

Summary

  • The Laplace transform turns derivatives into multiplication by s and ODEs into algebra.
  • Memorise the table: step 1/s, ramp 1/s^2, exponential 1/(s+a), sine and cosine.
  • Partial fractions (use scipy.signal.residue) split Y(s) into terms you can invert.
  • The final value theorem gives steady-state values, if the poles of sY(s) are in the left half-plane.
  • Real parts of poles set decay rates and imaginary parts set oscillation frequencies.

Next: Transfer Functions, Poles and Zeros