Search

Search papers and lessons

Laplace Transform

Level 3 · 13 min read

The Laplace transform turns a function of time into a function of a new variable s, so that hard differential equations become algebra that you solve and then translate back.

On this page

  • Colour = topic mix
  • Calculus
  • Discrete math
  • Linear algebra
  • Sign in to see your progress

TL;DR

Many systems are described by an equation that links a quantity to its rate of change (a differential equation). Solving that kind of equation directly can be hard. The Laplace transform takes a function of time, f(t)f(t), and produces a new function, F(s)F(s), of a new variable ss. Derivatives in time become simple multiplications by ss, so the equation turns into ordinary algebra. You solve the algebra, then translate the answer back to a function of time.

This lesson is for a reader who knows integrals and the Exponential Function. It is a method, not a claim about any one physical law.

Where you'll see it: in the step response of an electrical circuit, in the control of motors and aircraft through transfer functions, and in the analysis of mechanical vibrations.

Intuition

Why change the question

Suppose a capacitor charges through a resistor. The voltage y(t)y(t) rises, and the rate at which it rises depends on how far it still has to go. Written down, the rule is a differential equation, and to solve it you have to guess a family of functions and fit it to the start. For many systems that gets messy.

The Laplace transform offers a different route. Instead of working with the function at each moment in time, you build a new function that summarises the whole history with a weight e−ste^{-st}. In that new world, the operation "take the rate of change" becomes "multiply by ss". A differential equation becomes a set of algebraic equations, which you can rearrange with the usual tools.

The steps are the same every time:

flowchart LR
  A["Equation in time, with derivatives"] --> B["Transform each term to s"]
  B --> C["Algebra: solve for F of s"]
  C --> D["Inverse transform back to time"]

The transform is a kind of lens. The same system looks harder in one picture and easier in the other.

The weight that makes it work

The transform uses the factor e−ste^{-st} (an exponential). For a positive ss, this factor shrinks quickly as tt grows, so the integral over an infinite range can settle to a finite number. Think of ss as a dial that sets how fast the weight fades. The plot below shows a simple time function, f(t)=e−tf(t) = e^{-t}, which decays as time goes on.

01234500.20.40.60.81time tf(t)
  • f(t) = e^(-t)
A decaying signal. Its Laplace transform, worked out below, is 1/(s+1): a simple function of s that carries the same information.

The math

Definition: Laplace transform

For a function f(t)f(t) defined for t≥0t \ge 0, the Laplace transform is the function F(s)F(s) given by

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

The integral runs from t=0t = 0 to infinity. Here tt is time, ss is a new variable (a number that can be complex, though for most of this lesson it is a positive real number), f(t)f(t) is the function you start with, and L\mathcal{L} is the operator that performs the transform.

An integral from 00 to infinity is called an improper integral. It is defined as the limit of ordinary integrals up to a large upper bound TT, letting TT grow without limit. You only need that idea to check that the result is finite.

Linearity

The transform respects sums and constant multiples, because the integral does. For constants aa and bb,

L{af+bg}=a L{f}+b L{g}\mathcal{L}\{a f + b g\} = a\,\mathcal{L}\{f\} + b\,\mathcal{L}\{g\}

This means you can transform a complicated signal by transforming its pieces.

The rule for derivatives

The reason the transform is useful is the rule for derivatives. Take L{f′}\mathcal{L}\{f'\} and use Integration by Parts with u=e−stu = e^{-st} and dv=f′(t) dtdv = f'(t)\,dt. The boundary term at infinity vanishes for the functions we use, and what remains is

L{f′}(s)=s F(s)−f(0)\mathcal{L}\{f'\}(s) = s\,F(s) - f(0)

The derivative in time becomes a multiplication by ss, and the starting value f(0)f(0) appears as a correction. Applying the rule again to f′′f'' gives L{f′′}=s2F(s)−sf(0)−f′(0)\mathcal{L}\{f''\} = s^2 F(s) - s f(0) - f'(0). Each derivative adds one power of ss.

Inverse transform

To go back from F(s)F(s) to f(t)f(t) you use the inverse transform, written L−1\mathcal{L}^{-1}. In practice you do not evaluate a contour integral by hand. You match F(s)F(s) against a table of known transforms, such as the ones below, and reverse the lookup.

f(t)f(t)F(s)=L{f}(s)F(s) = \mathcal{L}\{f\}(s)
111s\dfrac{1}{s}
eate^{at}1s−a\dfrac{1}{s - a}
sin⁡(ωt)\sin(\omega t)ωs2+ω2\dfrac{\omega}{s^2 + \omega^2}
cos⁡(ωt)\cos(\omega t)ss2+ω2\dfrac{s}{s^2 + \omega^2}

Worked examples

Example
1. The constant function, step by step

Take f(t)=1f(t) = 1 for all t≥0t \ge 0.

  1. Write the definition: F(s)=∫0∞e−st⋅1 dtF(s) = \int_0^{\infty} e^{-st} \cdot 1 \, dt.
  2. An Antiderivative of e−ste^{-st} is −1se−st-\tfrac{1}{s} e^{-st}, which you can check by differentiating it.
  3. Evaluate between 00 and a large TT: [−1se−sT]−[−1se0]=1s−1se−sT\left[-\tfrac{1}{s} e^{-sT}\right] - \left[-\tfrac{1}{s} e^{0}\right] = \tfrac{1}{s} - \tfrac{1}{s} e^{-sT}.
  4. For s>0s \gt 0 the term e−sTe^{-sT} goes to zero as TT grows, leaving F(s)=1sF(s) = \tfrac{1}{s}.
  5. Interpretation: a constant signal turned on at t=0t = 0 has transform 1/s1/s. Notice that the answer has a pole at s=0s = 0, a point where it blows up. Such a point is called a pole of F(s)F(s).
Example
2. The exponential, the standard textbook case

Take f(t)=eatf(t) = e^{at}, where aa is a constant.

  1. Write the definition: F(s)=∫0∞e−steat dt=∫0∞e(a−s)t dtF(s) = \int_0^{\infty} e^{-st} e^{at} \, dt = \int_0^{\infty} e^{(a - s)t} \, dt.
  2. Combine the exponents, which is allowed because exey=ex+ye^{x} e^{y} = e^{x+y}.
  3. Use the same antiderivative as before, now with a−sa - s in place of −s-s: the integral is [1a−se(a−s)t]0∞\left[\tfrac{1}{a - s} e^{(a-s)t}\right]_0^{\infty}.
  4. The upper limit goes to zero when a−s<0a - s \lt 0, that is when s>as \gt a. The lower limit gives 1a−s\tfrac{1}{a - s} with a minus sign, so F(s)=1s−aF(s) = \tfrac{1}{s - a}.
  5. Check with a=0a = 0: the result is 1/s1/s, which matches Example 1.
  6. Interpretation: the transform of a growing or decaying exponential is a simple fraction with its pole at s=as = a. The location of the pole tells you the rate of the exponential.
Example
3. A capacitor charging: the realistic case

A resistor and a capacitor are connected to a battery at time t=0t = 0. The voltage across the capacitor y(t)y(t) obeys

y′(t)+y(t)=1,y(0)=0y'(t) + y(t) = 1, \qquad y(0) = 0

The time constant is 1 in these units, and the battery supplies a constant voltage of 1.

  1. Transform each term. Using the derivative rule, L{y′}=sY(s)−y(0)=sY(s)\mathcal{L}\{y'\} = sY(s) - y(0) = sY(s), since y(0)=0y(0) = 0. The constant 1 transforms to 1/s1/s by Example 1. So
sY(s)+Y(s)=1ssY(s) + Y(s) = \frac{1}{s}
  1. Solve the algebra. Factor the left side: (s+1)Y(s)=1s(s + 1) Y(s) = \tfrac{1}{s}, so Y(s)=1s(s+1)Y(s) = \dfrac{1}{s(s+1)}.
  2. Split the fraction into two pieces you already know. Check that 1s−1s+1=(s+1)−ss(s+1)=1s(s+1)\dfrac{1}{s} - \dfrac{1}{s+1} = \dfrac{(s+1) - s}{s(s+1)} = \dfrac{1}{s(s+1)}. So Y(s)=1s−1s+1Y(s) = \dfrac{1}{s} - \dfrac{1}{s+1}.
  3. Translate back term by term. The first term is the transform of 11 and the second is the transform of e−te^{-t} (Example 2 with a=−1a = -1). So y(t)=1−e−ty(t) = 1 - e^{-t}.
  4. Check: at t=0t = 0, y=1−1=0y = 1 - 1 = 0, which matches the start. As tt grows, e−te^{-t} shrinks and yy approaches 1, the battery voltage.
  5. Interpretation: the capacitor charges smoothly toward the battery voltage. After one time constant, about 63 percent of the way there, which is 1−e−1≈0.631 - e^{-1} \approx 0.63. The transform turned the calculus into a short sequence of fractions.

Tradeoffs and failure modes

The transform is strongest for linear equations with constant coefficients and for inputs that switch on at a definite time. It is weaker elsewhere.

SituationWhat goes wrongBetter choice
Coefficients depend on timeDerivatives no longer turn into simple multiplicationsUse a time-domain method, or a transform suited to the problem
The system is nonlinearLinearity fails, so the transform does not split the problemUse numerical solvers such as [[ordinary-differential-equation
Signal starts before t=0t = 0 or runs forever in both directionsThe one-sided definition above ignores the pastUse the two-sided Laplace transform, or the Fourier Transform
The inverse is hard to find from a tableThe lookup fails for an unusual F(s)F(s)Break F(s)F(s) into simpler fractions first, as in Example 3
The region of convergence is ignoredA transform can be defined for some ss and not others, and the answer is wrong outside that rangeAlways state the range of ss for which the integral converges

History

Integrals with an exponential weight like this appear in the work of Pierre-Simon Laplace in the late 1700s, who used them in his work on probability and on difference equations. Their use as a tool for solving differential equations came much later.

In the 1890s the electrical engineer Oliver Heaviside solved circuit problems with an operator method that worked in practice, though he could not justify every step to the standards of mathematicians. In the early 1900s the mathematicians Bromwich and others gave the method a rigorous form, including the inverse formula now named after Bromwich. The method caught on because engineers could solve circuits and control systems with tables and algebra, and the same tools are still taught in engineering courses today.

Recap

The Laplace transform turns f(t)f(t) into F(s)F(s) with the integral ∫0∞e−stf(t) dt\int_0^{\infty} e^{-st} f(t)\,dt. Derivatives become multiplication by ss, so a linear differential equation becomes algebra. You solve for F(s)F(s), split it into known pieces, and translate back. The same idea is the basis of the transfer function used to describe how a system responds to an input.

Check yourself

QuestionRecall: what does the Laplace transform do to a derivative, and what extra term appears?Show answer

The transform of f′f' is sF(s)−f(0)sF(s) - f(0). The derivative in time becomes multiplication by ss, and the starting value of ff appears as a correction term. This is what lets a differential equation become algebra.

QuestionComputation: find L{e3t}(s)\mathcal{L}\{e^{3t}\}(s) and state the range of ss where it is valid.Show answer

Use the exponential result with a=3a = 3: L{e3t}(s)=1s−3\mathcal{L}\{e^{3t}\}(s) = \dfrac{1}{s-3}. The integral converges when s>3s \gt 3, because only then does e(3−s)te^{(3-s)t} go to zero as tt grows. Outside that range the integral does not settle to a finite number, so the formula does not apply.

QuestionWhy: why does the factor e−ste^{-st} make the integral useful even though the signal runs to infinity?Show answer

For a positive ss the factor e−ste^{-st} decays quickly as tt grows. It acts like a weight that fades into the future, so the integral of the product with f(t)f(t) can stay finite for many functions that do not decay on their own. The choice of ss sets how fast the weight fades.

QuestionApplied: a capacitor charges toward a battery of voltage VV through a circuit with time constant 1, starting from zero. Using the method of Example 3, what is the transform Y(s)Y(s) and the voltage at t=2t = 2?Show answer

The equation is y′+y=Vy' + y = V with y(0)=0y(0) = 0, so Y(s)=Vs(s+1)=V(1s−1s+1)Y(s) = \dfrac{V}{s(s+1)} = V\left(\dfrac{1}{s} - \dfrac{1}{s+1}\right). Translating back gives y(t)=V(1−e−t)y(t) = V(1 - e^{-t}). At t=2t = 2, y=V(1−e−2)≈0.865 Vy = V(1 - e^{-2}) \approx 0.865\,V. The voltage is about 86.5 percent of the battery voltage after two time constants.

Sources