Skip to content
EN - Language: English
MathematicsUniversity

The Laplace transform - from differential equations to algebra, step by step

· 14 min read

In short

The Laplace transform turns a function of time f(t) into a function F(s) of a new variable s. For each s, multiply f(t) by the fading weight e⁻ˢᵗ and take the area under the product from 0 to infinity. The transform of a derivative is sF(s) − f(0), so a linear differential equation becomes an algebraic one. Solve it for F(s), then read the answer back from a table.

Words to know

Laplace transform
A new function F(s) made from f(t). For each s, it is the area under f(t) · e⁻ˢᵗ from t = 0 to infinity.
Weight e⁻ˢᵗ
The factor that multiplies f(t). It fades as t grows, and the bigger s is, the faster it fades.
Transform of a derivative
ℒ{f′} = sF(s) − f(0). Differentiating in t becomes multiplying by s, minus the initial value.
Inverse Laplace transform
The way back from F(s) to f(t), usually by reading a table of transforms from right to left.
Partial fractions
Splitting a fraction such as 1/(s(s + 1)) into simpler ones, here 1/s − 1/(s + 1), that are in the table.

What do you think?

The equation y′+2y=0y' + 2y = 0 with y(0)=3y(0) = 3 contains a derivative. What do you get if you apply the Laplace transform to both sides?

The idea: trade a function of t for a function of s

Take a function of time f(t)f(t). Pick a number ss, multiply f(t)f(t) by the weight e−ste^{-st}, which fades as time goes on, and take the area under the product from t=0t = 0 to infinity. That area is one number, F(s)F(s). Another ss gives another number. Together, these numbers make a new function F(s)F(s): the Laplace transform of ff.

Why bother? Because of one property. The transform of a derivative f′f' is sF(s)−f(0)sF(s) - f(0): differentiating in tt becomes multiplying by ss. So a linear differential equation with constant coefficients becomes an algebraic equation for F(s)F(s). You solve it with ordinary algebra, then use a table of transforms to go back to a function of time.

Area by area, step by step

Go through the animation with the buttons or the arrow keys. The upper picture is time: f(t)f(t) in teal, the weight e−ste^{-st} dashed, and their product in amber, with the area under it. The lower picture is the new variable ss: each area becomes the height of one point of F(s)F(s).

Time t: the function, the weight e⁻ˢᵗ and their product

123450.51t

The variable s: the transform F(s)

-1123412s

f(t) = 1 · s = 1 · F(1) = 1

f(t) and F(s)weight e⁻ˢᵗproduct e⁻ˢᵗ f(t) and its area

Step 1 of 7
Steps of the animation. Arrow keys move between steps.

Take f(t) = 1 and s = 1. The weight e⁻ᵗ fades, and so does the product 1 · e⁻ᵗ. The area under it, from 0 to infinity, is 1. That is one value of the transform: F(1) = 1.

The animation shows the two habits of the transform. A bigger ss means a smaller area, and a function that grows like eate^{at} has a transform only for s>as > a, where the weight fades faster than the function grows.

Try it yourself: from f(t) to F(s)

Pick a function, then slide ss. The upper picture shows tt up to 55, but the area goes on to infinity: its full value is in the readout and is the height of the point in the lower picture.

Function f(t)
s = 1

Time t: f(t), the weight e⁻ˢᵗ and the area under their product

123450.51t

f(t) and F(s)weight e⁻ˢᵗthe product and its area

The variable s: the transform F(s)

-2-1123412s
Transform F(s)
1/s
It exists for
s > 0
Area at s = 1, that is F(1)
1

What to notice:

  • f(t)=1f(t) = 1: slide ss to the right, and the area shrinks like 1s\frac{1}{s}. At s≤0s \le 0 the weight no longer fades, and the area is infinite,
  • f(t)=tf(t) = t: the product te−stte^{-st} first rises, then fades. Its area is 1s2\frac{1}{s^2}, so 11 at s=1s = 1 and only 14\frac{1}{4} at s=2s = 2,
  • eate^{at}: the dashed line in the lower picture stands at s=as = a. With a=−2a = -2 even s=−1s = -1 works, because the function fades on its own,
  • sin⁡ωt\sin \omega t: part of the area lies below the axis and counts as negative. The transform ωs2+ω2\frac{\omega}{s^2 + \omega^2} exists for s>0s > 0. At s≤0s \le 0 the swings never die down, and the area has no value.

Definition and rules

Definition. For a function f(t)f(t) given for t≥0t \ge 0, its Laplace transform is

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

for every ss at which this integral converges. We also write L{f(t)}=F(s)\mathcal{L}\{f(t)\} = F(s), with the capital letter for the transform. The transform is named after the French mathematician Pierre-Simon Laplace (1749-1827).

A short table. These transforms come straight from the definition, as in Example 1 below.

f(t)f(t) F(s)F(s) for
11 1s\frac{1}{s} s>0s > 0
tt 1s2\frac{1}{s^2} 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

Linearity. Constants come out, and a sum is transformed term by term: L{af+bg}=aF+bG\mathcal{L}\{af + bg\} = aF + bG. So L{5}=5s\mathcal{L}\{5\} = \frac{5}{s}.

Derivatives. The transform of a derivative brings in the initial values:

L{f′}=sF(s)−f(0)\mathcal{L}\{f'\} = sF(s) - f(0)
L{f′′}=s2F(s)−sf(0)−f′(0)\begin{aligned} \mathcal{L}\{f''\} &= s^2 F(s) \\ &\quad - s f(0) - f'(0) \end{aligned}

The first rule comes from integration by parts: the boundary term gives −f(0)-f(0), and what is left is ss times the integral of e−stf(t)e^{-st} f(t). Using it twice gives the second rule.

Going back. Two continuous functions with the same transform are equal (this is Lerch’s theorem). So a table can be read from right to left: this is the inverse Laplace transform, L−1\mathcal{L}^{-1}. A fraction that is not in the table is first split into partial fractions.

Example 1: a transform from the definition

Find the Laplace transform of f(t)=e2tf(t) = e^{2t}.

Step 1. Write the definition

We put f(t)=e2tf(t) = e^{2t} into the integral.

F(s)=∫0∞e−ste2t dtF(s) = \int_0^{\infty} e^{-st} e^{2t}\, dt

Step 2. Combine the exponentials

When powers of ee are multiplied, their exponents add.

e−ste2t=e−st+2t=e−(s−2)t\begin{aligned} e^{-st} e^{2t} &= e^{-st + 2t} \\ &= e^{-(s-2)t} \end{aligned}

Step 3. Integrate up to a finite time T

An integral to infinity is the limit of integrals up to TT. An antiderivative of e−kte^{-kt} is −e−ktk-\frac{e^{-kt}}{k}, here with k=s−2k = s - 2.

∫0Te−(s−2)t dt=[−e−(s−2)ts−2]0T=1−e−(s−2)Ts−2\begin{aligned} &\int_0^{T} e^{-(s-2)t}\, dt \\ &= \Big[ \frac{-e^{-(s-2)t}}{s-2} \Big]_0^T \\ &= \frac{1 - e^{-(s-2)T}}{s - 2} \end{aligned}

Step 4. Let T grow without limit

If s>2s > 2, the exponent −(s−2)T-(s - 2)T is negative and grows in size, so e−(s−2)Te^{-(s-2)T} tends to 00.

F(s)=1s−2F(s) = \boxed{\frac{1}{s - 2}}

Answer

L{e2t}=1s−2\mathcal{L}\{e^{2t}\} = \frac{1}{s - 2} for s>2s > 2: the transform exists where the weight fades faster than e2te^{2t} grows.

Example 2: a differential equation

Solve y′+2y=4y' + 2y = 4 with y(0)=1y(0) = 1.

Step 1. Transform each term

The derivative brings in y(0)=1y(0) = 1, and the constant 44 becomes 4s\frac{4}{s}.

L{y′}=sY−1L{2y}=2YL{4}=4s\begin{aligned} \mathcal{L}\{y'\} &= sY - 1 \\ \mathcal{L}\{2y\} &= 2Y \\ \mathcal{L}\{4\} &= \frac{4}{s} \end{aligned}

Step 2. Write the new equation

We put the three transforms into the equation. It has no derivatives any more.

sY−1+2Y=4ssY - 1 + 2Y = \frac{4}{s}

Step 3. Solve for Y

We collect the terms with YY, move 11 to the right, add the fractions and divide by s+2s + 2.

(s+2)Y=1+4s(s+2)Y=s+4sY=s+4s(s+2)\begin{aligned} (s + 2)Y &= 1 + \frac{4}{s} \\ (s + 2)Y &= \frac{s + 4}{s} \\ Y &= \boxed{\frac{s + 4}{s(s + 2)}} \end{aligned}

Step 4. Split into partial fractions

We look for AA and BB with s+4s(s+2)=As+Bs+2\frac{s + 4}{s(s + 2)} = \frac{A}{s} + \frac{B}{s + 2}. Multiplying by s(s+2)s(s + 2) gives an equation that holds for every ss.

s+4=A(s+2)+Bss + 4 = A(s + 2) + Bs

Step 5. Find A

We put in s=0s = 0, so the term BsBs disappears.

4=2AA=2\begin{aligned} 4 &= 2A \\ A &= \boxed{2} \end{aligned}

Step 6. Find B

We put in s=−2s = -2, so the term A(s+2)A(s + 2) disappears.

2=−2BB=−1\begin{aligned} 2 &= -2B \\ B &= \boxed{-1} \end{aligned}

Step 7. Read the table backwards

2s\frac{2}{s} is the transform of 22, and 1s+2\frac{1}{s + 2} the transform of e−2te^{-2t} (the rule for eate^{at} with a=−2a = -2).

Y=2s−1s+2y(t)=2−e−2t\begin{aligned} Y &= \frac{2}{s} - \frac{1}{s + 2} \\ y(t) &= 2 - e^{-2t} \end{aligned}

Answer

y(t)=2−e−2ty(t) = 2 - e^{-2t}: the solution starts at 11 and rises towards 22.

Your turn

Solve y′′+4y=0y'' + 4y = 0 with y(0)=0y(0) = 0 and y′(0)=2y'(0) = 2, using the Laplace transform.

Hintshow

Use the rule for the second derivative, and look for ωs2+ω2\frac{\omega}{s^2 + \omega^2} in the table.

Solutiontry it on your own first

Step 1. Transform the second derivative

We use the rule for y′′y'' with y(0)=0y(0) = 0 and y′(0)=2y'(0) = 2.

L{y′′}=s2Y−s⋅0−2=s2Y−2\begin{aligned} \mathcal{L}\{y''\} &= s^2 Y - s \cdot 0 - 2 \\ &= s^2 Y - 2 \end{aligned}

Step 2. Write the new equation

We put it into the equation, with L{4y}=4Y\mathcal{L}\{4y\} = 4Y and L{0}=0\mathcal{L}\{0\} = 0.

s2Y−2+4Y=0s^2 Y - 2 + 4Y = 0

Step 3. Solve for Y

We collect the terms with YY and divide by s2+4s^2 + 4.

(s2+4)Y=2Y=2s2+4\begin{aligned} (s^2 + 4)Y &= 2 \\ Y &= \boxed{\frac{2}{s^2 + 4}} \end{aligned}

Step 4. Find it in the table

It is ωs2+ω2\frac{\omega}{s^2 + \omega^2} with ω=2\omega = 2, the transform of sin⁡2t\sin 2t.

Y=2s2+22y(t)=sin⁡2t\begin{aligned} Y &= \frac{2}{s^2 + 2^2} \\ y(t) &= \sin 2t \end{aligned}

Answer

y(t)=sin⁡2ty(t) = \sin 2t: the solution swings between −1-1 and 11 for ever.

Common mistakes

  • Forgetting the initial value. L{y′}\mathcal{L}\{y'\} is sY−y(0)sY - y(0), not sYsY. Without −y(0)-y(0), the equation y′+2y=0y' + 2y = 0 with y(0)=3y(0) = 3 would give Y=0Y = 0, and the solution would be lost.
  • Ignoring where the transform exists. 1s−2\frac{1}{s - 2} is the transform of e2te^{2t} only for s>2s > 2. At s=1s = 1 the formula gives −1-1, but the area is infinite.
  • Transforming a product factor by factor. L{t⋅t}=L{t2}=2s3\mathcal{L}\{t \cdot t\} = \mathcal{L}\{t^2\} = \frac{2}{s^3}, not 1s2⋅1s2=1s4\frac{1}{s^2} \cdot \frac{1}{s^2} = \frac{1}{s^4}. Sums are transformed term by term, products are not: a product of two transforms belongs to the convolution of the functions, a different operation.
  • Mixing up sine and cosine. ωs2+ω2\frac{\omega}{s^2 + \omega^2}, with ω\omega on top, belongs to sin⁡ωt\sin \omega t, and ss2+ω2\frac{s}{s^2 + \omega^2}, with ss on top, to cos⁡ωt\cos \omega t.
  • Stopping at Y(s). Y(s)Y(s) is not yet the answer: the solution is a function of tt. Go back with the table.

In exams and at university

In England, A-level Mathematics and Further Mathematics do not include the Laplace transform. Further Mathematics solves second-order linear equations with constant coefficients another way, through the auxiliary equation. In the United States, the differential equations of AP Calculus are separable equations and slope fields, and in BC also Euler’s method and logistic growth.

At university, the Laplace transform is part of a course on differential equations, especially for engineers. In the open textbook Notes on Diffy Qs by Jiří Lebl it is chapter 6, after first-order and higher-order linear equations, systems, Fourier series and eigenvalue problems. In Jeffrey Chasnov’s open lecture notes Differential Equations it comes right after second-order linear equations. Engineers then use it for electric circuits, signals and control, where a circuit or a filter is described by a transfer function of ss.

Check yourself

Test yourself

What is L{5}\mathcal{L}\{5\}?

What is L{e−3t}\mathcal{L}\{e^{-3t}\}?

If y(0)=4y(0) = 4, what is L{y′}\mathcal{L}\{y'\}?

For which ss does L{e4t}\mathcal{L}\{e^{4t}\} exist?

Which function has the transform 3s2+9\frac{3}{s^2 + 9}?

Flashcards for review

Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.

Flashcards

  1. What is the Laplace transform of f(t)f(t)?

    F(s)=∫0∞e−stf(t) dtF(s) = \int_0^{\infty} e^{-st} f(t)\, dt, for every ss at which the integral converges.
  2. What is F(s)F(s) for one value of ss?

    One number: the area under the product e−stf(t)e^{-st} f(t) from t=0t = 0 to infinity.
  3. What are L{1}\mathcal{L}\{1\} and L{t}\mathcal{L}\{t\}?

    1s\frac{1}{s} and 1s2\frac{1}{s^2}, both for s>0s > 0.
  4. What is L{eat}\mathcal{L}\{e^{at}\}?

    1s−a\frac{1}{s - a}, only for s>as > a, where the weight e−ste^{-st} fades faster than eate^{at} grows.
  5. What are the transforms of sin⁡ωt\sin \omega t and cos⁡ωt\cos \omega t?

    ωs2+ω2\frac{\omega}{s^2 + \omega^2} and ss2+ω2\frac{s}{s^2 + \omega^2}, for s>0s > 0.
  6. What is the transform of a derivative f′f'?

    L{f′}=sF(s)−f(0)\mathcal{L}\{f'\} = sF(s) - f(0).
  7. What is the transform of a second derivative f′′f''?

    L{f′′}=s2F(s)−sf(0)−f′(0)\mathcal{L}\{f''\} = s^2 F(s) - s f(0) - f'(0).
  8. Why does the Laplace transform help with differential equations?

    Derivatives become multiplication by ss, with the initial values included. A linear equation with constant coefficients becomes an algebraic equation for Y(s)Y(s).
  9. How do you get from Y(s)Y(s) back to y(t)y(t)?

    Split Y(s)Y(s) into partial fractions and read the table of transforms from right to left: the inverse transform.
  10. Is the transform of a product the product of the transforms?

    No. For example, L{t2}=2s3\mathcal{L}\{t^2\} = \frac{2}{s^3}, while L{t}⋅L{t}=1s4\mathcal{L}\{t\} \cdot \mathcal{L}\{t\} = \frac{1}{s^4}.

Sources

We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.

  1. Jiří Lebl - Notes on Diffy Qs, 6.1 The Laplace transform (definition, table, linearity, existence for s large enough, uniqueness, a product is not transformed factor by factor) · CC BY-SA 4.0
  2. Jiří Lebl - Notes on Diffy Qs, 6.2 Transforms of derivatives and ODEs (sF(s) − f(0), solving an initial value problem with partial fractions) · CC BY-SA 4.0
  3. Jiří Lebl - Notes on Diffy Qs, 6.3 Convolution (the transform of a convolution is the product of the transforms) · CC BY-SA 4.0
  4. Jeffrey R. Chasnov - Differential Equations, chapter 4 The Laplace transform (definition, table, derivatives by parts, initial value problems) (PDF) · CC BY 3.0 HK
  5. Wikibooks - Circuit Theory/Laplace Transform (the derivative rule, circuits in the s-domain) · CC BY-SA 4.0
  6. Wikibooks - Signals and Systems/LaPlace Transform (the transform in signal processing, transfer functions of filters) · CC BY-SA 4.0
  7. Wikipedia - Laplace transform (definition, properties, Lerch’s theorem, named after Pierre-Simon Laplace) · CC BY-SA 4.0

More explainers