TExcelTAD
Home › Differential Equations › The Laplace Transform

The Laplace Transform

The Laplace transform turns a function of time f(t)f(t) into a function of a new variable ss:

F(s)=L{f}(s)=∫0∞e−stf(t) dt.F(s) = \mathcal{L}\{f\}(s) = \int_0^\infty e^{-st} f(t)\,dt.

Its power lies in one property: it turns differentiation into multiplication by ss. A linear ODE with constant coefficients becomes an algebraic equation, solved with ordinary algebra, and transformed back. It also handles switched-on forces and impulses gracefully, which is why engineers use it for circuits and control.

Basic transforms

Compute L{eat}\mathcal{L}\{e^{at}\}: ∫0∞e−(s−a)t dt=1s−a\int_0^\infty e^{-(s-a)t}\,dt = \frac{1}{s - a} for s>as > a. The integral only converges for large enough ss, which is normal: we only need F(s)F(s) for large ss.

f(t)f(t) F(s)F(s) valid for
11 1s\frac{1}{s} s>0s > 0
tnt^n n!sn+1\frac{n!}{s^{n+1}} s>0s > 0
eate^{at} 1s−a\frac{1}{s - a} s>as > a
sin⁡ωt\sin\omega t ωs2+ω2\frac{\omega}{s^2 + \omega^2} s>0s > 0
cos⁡ωt\cos\omega t ss2+ω2\frac{s}{s^2 + \omega^2} s>0s > 0
eatf(t)e^{at}f(t) F(s−a)F(s - a) (shifting in ss)
t f(t)t\,f(t) −F′(s)-F'(s)
python · try it yourself
import sympy as sp

t, s = sp.symbols("t s", positive=True)
w, a = sp.symbols("omega a", positive=True)
for f in (sp.Integer(1), t**3, sp.exp(-2 * t), sp.sin(w * t), sp.cos(w * t), sp.exp(-a * t) * sp.sin(3 * t)):
    print(f"L{{{f}}} =", sp.laplace_transform(f, t, s, noconds=True))
L{1} = 1/s
L{t**3} = 6/s**4
L{exp(-2*t)} = 1/(s + 2)
L{sin(omega*t)} = omega/(omega**2 + s**2)
L{cos(omega*t)} = s/(omega**2 + s**2)
L{exp(-a*t)*sin(3*t)} = 3/((a + s)**2 + 9)

Linearity

L{αf+βg}=αF+βG\mathcal{L}\{\alpha f + \beta g\} = \alpha F + \beta G, because the integral is linear. So L{3−2e4t}=3s−2s−4\mathcal{L}\{3 - 2e^{4t}\} = \frac{3}{s} - \frac{2}{s - 4}.

The derivative rule

Integration by parts gives

L{f′}=sF(s)−f(0),L{f′′}=s2F(s)−sf(0)−f′(0).\mathcal{L}\{f'\} = sF(s) - f(0), \qquad \mathcal{L}\{f''\} = s^2F(s) - sf(0) - f'(0).

Initial conditions enter automatically. This is the rule that makes the transform solve ODEs (Solving ODEs with the Laplace Transform).

python · try it yourself
import sympy as sp

t, s = sp.symbols("t s", positive=True)
f = sp.exp(-t) * sp.cos(2 * t)
F = sp.laplace_transform(f, t, s, noconds=True)
lhs = sp.laplace_transform(f.diff(t), t, s, noconds=True)
print("L{f'}        =", sp.simplify(lhs))
print("s F(s) - f(0) =", sp.simplify(s * F - f.subs(t, 0)))
L{f'}        = (-s - 5)/((s + 1)**2 + 4)
s F(s) - f(0) = (-s - 5)/(s**2 + 2*s + 5)

The two denominators are the same polynomial, (s+1)2+4=s2+2s+5(s + 1)^2 + 4 = s^2 + 2s + 5.

Existence

The transform exists when ff is piecewise continuous and of exponential order: ∣f(t)∣≤Mect\lvert f(t)\rvert \le Me^{ct} for large tt. Every function in this course qualifies; et2e^{t^2} does not.

Numerical check

The defining integral can be computed numerically, a good sanity check on a table entry:

python · try it yourself
import numpy as np
from scipy.integrate import quad

s = 2.0
F_num, _ = quad(lambda t: np.exp(-s * t) * np.sin(3 * t), 0, np.inf, limit=200)
print(f"numeric {F_num:.10f}, table 3/(s^2 + 9) = {3 / (s**2 + 9):.10f}")
numeric 0.2307692308, table 3/(s^2 + 9) = 0.2307692308

In software

  • Control-system tools (scipy.signal, MATLAB's Control System Toolbox) describe systems by their Laplace-domain transfer functions b(s)a(s)\frac{b(s)}{a(s)} (Transfer Functions and Stability).
  • The discrete cousin, the zz-transform, is how digital filters in audio software are designed.

Exercises

Exercise 1: From the table

Find L{5t2−3cos⁡2t}\mathcal{L}\{5t^2 - 3\cos 2t\}.

Answer

10s3−3ss2+4\frac{10}{s^3} - \frac{3s}{s^2 + 4}.

Solution

L{t2}=2s3\mathcal{L}\{t^2\} = \frac{2}{s^3} and L{cos⁡2t}=ss2+4\mathcal{L}\{\cos 2t\} = \frac{s}{s^2 + 4}; use linearity.

Exercise 2: By definition

Compute L{t}\mathcal{L}\{t\} from the integral.

Answer

1s2\frac{1}{s^2}.

Solution

By parts with u=tu = t, dv=e−stdtdv = e^{-st}dt: ∫0∞te−stdt=[−te−sts]0∞+1s∫0∞e−stdt=0+1s2\int_0^\infty te^{-st}dt = \left[-\frac{te^{-st}}{s}\right]_0^\infty + \frac{1}{s}\int_0^\infty e^{-st}dt = 0 + \frac{1}{s^2}.

Exercise 3: Shifting (code)

Use the ss-shift rule to find L{te3t}\mathcal{L}\{te^{3t}\} and confirm with SymPy.

Answer

1(s−3)2\frac{1}{(s - 3)^2}.

Solution

L{t}=1s2\mathcal{L}\{t\} = \frac{1}{s^2}; multiplying by e3te^{3t} replaces ss by s−3s - 3.

python · try it yourself
import sympy as sp
t, s = sp.symbols("t s", positive=True)
print(sp.laplace_transform(t * sp.exp(3 * t), t, s, noconds=True))
(s - 3)**(-2)

Test yourself

L{e−4t}\mathcal{L}\{e^{-4t}\} is…

  1. 1s−4\frac{1}{s - 4}
  2. 1s+4\frac{1}{s + 4}
  3. 4s\frac{4}{s}
  4. e−4se^{-4s}

L{y′′}\mathcal{L}\{y''\} equals…

  1. s2Ys^2Y
  2. s2Y−sy(0)−y′(0)s^2Y - sy(0) - y'(0)
  3. Y′′Y''
  4. sY−y(0)sY - y(0)

Why does the Laplace transform help solve linear ODEs?

  1. It removes all constants
  2. It turns derivatives into multiplication by ss, so the ODE becomes algebra
  3. It makes equations nonlinear
  4. It works only for first-order equations