Laplace Transforms — Definition and Basic Properties
Show the code
# This is a code cell that imports the necessary libraries for our session.import sympy as sym # SymPy for symbolic mathematicsimport numpy as np # NumPy for numerical computationsimport matplotlib as mpl # Matplotlib for plottingimport matplotlib.pyplot as plt # Matplotlib pyplot interfacefrom IPython.display import Math, displaympl.rcParams['figure.dpi'] =150mpl.rcParams['axes.spines.top'] =Falsempl.rcParams['axes.spines.right'] =False# Declare the symbolic variables used throughoutt, s = sym.symbols('t s', real=True)
In this document we work through fully solved examples for the topics covered in Section 3.1 of the text (Logan 2015): the definition of the Laplace transform, the basic operational properties (linearity, the shift property, the switching property), and techniques for finding inverse transforms (table look-up, partial fractions, and completing the square).
Reference: Key Laplace Transform Facts
The Laplace transform of \(f(t)\), defined for \(t \geq 0\), is \[
F(s) = \mathcal{L}[f(t)] = \int_0^{\infty} e^{-st} f(t)\,dt,
\] whenever the integral converges.
First Shift (Exponential Shift) Property. If \(\mathcal{L}[f(t)] = F(s)\), then \[
\mathcal{L}[e^{at}f(t)] = F(s - a).
\]
Second Shift (Switching) Property. If \(\mathcal{L}[f(t)] = F(s)\), then \[
\mathcal{L}[H(t-a)\,f(t-a)] = e^{-as}F(s),
\] or equivalently in inverse form, \[
\mathcal{L}^{-1}[e^{-as}F(s)] = H(t-a)\,f(t-a).
\]
Part I — Forward Transforms
Example 1 — Linearity and the Table: \(2 - 3e^{4t} + t^2 e^{-t}\)
The function \((t+1)H(t-2)\) switches on at \(t = 2\), but it is not yet in the standard switching form \(H(t-a)f(t-a)\) because the multiplying function is \(f(t) = t+1\), not \(f(t-2)\). We rewrite \(t+1\) in terms of \((t-2)\): \[
t + 1 = (t - 2) + 3.
\] Therefore \[
(t+1)H(t-2) = (t-2)H(t-2) + 3H(t-2).
\]
Each piece is now in standard switching form. Apply \(\mathcal{L}[H(t-a)f(t-a)] = e^{-as}F(s)\) with \(a = 2\):
\(\mathcal{L}[(t-2)H(t-2)]\): here \(f(t) = t\), so \(F(s) = 1/s^2\), giving \(e^{-2s}/s^2\).
\(\mathcal{L}[3H(t-2)]\): here \(f(t) = 3\), so \(F(s) = 3/s\), giving \(3e^{-2s}/s\).
The rewriting trick. Whenever you see \(f(t)H(t-a)\) and \(f(t)\) is not naturally a function of \((t-a)\), write \(t = (t-a)+a\) (or expand \(f\) about \(t=a\)) to put the expression into standard switching form before applying the property.
This makes geometric sense: shifting \(\cos t\) to the right by \(\pi/2\) produces \(\sin t\). Compare the result with \(\mathcal{L}[\cos t] = s/(s^2+1)\) — the transforms are different because the functions differ for \(t > 0\).
Be careful: \(\cos(t - \pi/2)\) here is a simple trig identity, not a switched-on cosine. The switching property applies only when the Heaviside function \(H(t-a)\) is present.
Term 1:\(\mathcal{L}^{-1}\!\left[\dfrac{5}{s}\right] = 5\).
Term 2:\(\dfrac{3}{s^2+4}\). The table entry for \(\sin(kt)\) requires the form \(\dfrac{k}{s^2+k^2}\). Here \(k^2 = 4\) so \(k = 2\). The numerator needs to be \(2\), not \(3\), so we write: \[
\frac{3}{s^2+4} = \frac{3}{2}\cdot\frac{2}{s^2+4}.
\]
Adjusting the numerator. When the denominator is \(s^2 + k^2\) but the numerator is a constant \(c \neq k\), factor as \(\dfrac{c}{s^2+k^2} = \dfrac{c}{k}\cdot\dfrac{k}{s^2+k^2}\) and invert to get \(\dfrac{c}{k}\sin(kt)\).
Recognise the shifted form \(\dfrac{n!}{(s-a)^{n+1}}\) with \(a = -4\) and \(n = 2\) (so \(n! = 2! = 2\) and \(n+1 = 3\)): \[
\frac{6}{(s+4)^3} = 3\cdot\frac{2!}{(s+4)^3}.
\]
From the table, \(\mathcal{L}^{-1}\!\left[\dfrac{2!}{(s-(-4))^3}\right] = t^2 e^{-4t}\), so: \[
\mathcal{L}^{-1}\!\left[\frac{6}{(s+4)^3}\right] = 3t^2 e^{-4t}.
\]
The factor \(e^{-3s}\) signals the switching property with \(a = 3\). We first find \(\mathcal{L}^{-1}\!\left[\dfrac{2}{s(s+4)}\right]\) and then shift.
Step 2 — Partial fraction decomposition of \(\dfrac{2}{s(s+4)}\).
We can simplify: \(2\sin(2t - \pi) = 2\sin(2t)\cos\pi = -2\sin(2t)\), so the expression can also be written as \(-2H(t-\pi/2)\sin(2t)\), though the shifted form makes the structure clearest.
Figure 1: The inverse transform \(f(t) = e^{-3t}[3\cos(2t)-\sin(2t)]\) from Example 15. The decaying exponential envelope \(\pm\sqrt{10}\,e^{-3t}\) is shown dashed.
Example 16 — Switching with a Delayed Ramp: \(\dfrac{5}{s^2}e^{-s}\)
Figure 2: The delayed ramp \(5(t-1)H(t-1)\) from Example 16 (red) alongside the un-delayed ramp \(5t\) (dashed). The switch-on at \(t=1\) is clearly visible.
TipSummary: Strategy for Inverse Laplace Transforms
Work through these steps in order:
Look for \(e^{-as}\). If present, factor it out, find \(\mathcal{L}^{-1}[F(s)]\) of the remaining piece, then apply the switching property: \(\mathcal{L}^{-1}[e^{-as}F(s)] = H(t-a)f(t-a)\).
Check for a direct table match.\(\dfrac{c}{s-a}\), \(\dfrac{c}{s^2+k^2}\), \(\dfrac{cs}{s^2+k^2}\), \(\dfrac{c}{(s-a)^{n+1}}\) all have immediate inverses.
Split mixed numerators. If the numerator is \(\alpha s + \beta\) over \(s^2 + k^2\) (or \((s-a)^2 + k^2\)), separate into \(\cos\)/\(\sin\) (or \(e^{at}\cos\)/\(e^{at}\sin\)) terms.
Complete the square. If the denominator is a quadratic \(s^2 + bs + c\) with complex roots, write it as \((s-a)^2 + k^2\) and rewrite the numerator in terms of \((s-a)\) before inverting.
Partial fractions. For a rational \(F(s)\) with real roots in the denominator, decompose into simpler fractions first, then invert each piece.
References
Logan, J David. 2015. A First Course in Differential Equations, Third Edition.
TipExpand for Session Info
import sysprint("Python version:", sys.version)print('\n'.join(f'{m.__name__}=={m.__version__}'for m inglobals().values()ifgetattr(m, '__version__', None)))