MathsCalculus

Laplace Transform
calculator.

Get Laplace transforms and inverses of standard functions, with a check by integral.

How it's worked out

The Laplace transform turns a function of time f(t) into a function F(s). It multiplies f by a decaying exponential and adds up the result over all time from 0 on.

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

The factor e−ste^{-st} has to beat any growth in f. If |f(t)|≤Meαt|f(t)| \le M e^{\alpha t}, the integral converges wherever the real part of s is larger than α. That half of the s-plane is the region of convergence. Its edge sits at the rightmost pole of F(s), and a pole is a value of s where F blows up.

Forward and inverse use the same table of pairs/13%3A_Laplace_Transform/13.06%3A_Table_of_Laplace_transforms), read in either direction, with your constants put in. Each result is then tested by working out the integral numerically at one value of s. Two rules explain most of the table, and they are why the transform can solve differential equations.

eatf(t);→;F(s−a)e^{at} f(t) ;\to; F(s - a)
f′(t);→;sF(s)−f(0)f'(t) ;\to; s F(s) - f(0)

The first is the shift rule. The second turns a derivative into a multiplication by s, so a differential equation becomes algebra, and the starting value f(0) comes along by itself. In the "Any f(t)" mode, the tool skips the table and evaluates the integral at one real s, with a method called double-exponential quadrature, which copes with a function that is infinite at t = 0.

Worked examples

Nadia models a damped vibration

A sensor mount rings and dies away like e−2tsin⁡5te^{-2t} \sin 5t. Nadia starts from the sine entry, 5s2+25\frac{5}{s^2 + 25}, and the shift rule replaces s with s + 2. The tool gives 5(s+2)2+25\frac{5}{(s + 2)^2 + 25}, valid when the real part of s is above −2.

The integral at s = 1 gives 0.147059, and so does the formula. The poles sit at −2 ± 5i. The real part gives a time constant of 0.5 and the imaginary part gives a period of 1.257.

Open this example in the tool

Luis solves a cooling equation with an inverse transform

Luis has y′ + 3y = 0 with y(0) = 2. The derivative rule turns it into sY(s) − 2 + 3Y(s) = 0, so Y(s)=2s+3Y(s) = \frac{2}{s + 3}.

The inverse of 1s+3\frac{1}{s + 3} is e−3te^{-3t}, so the factor of 2 gives y(t)=2e−3ty(t) = 2 e^{-3t}. The equation became one line of algebra, and the starting value went in through the f(0) term, with nothing left to fit at the end.

Open this example in the tool

Ada checks a function that is infinite at the start

1t\frac{1}{\sqrt{t}} is not in the table, and it is infinite at t = 0. Ada asks for its value at s = 4 by integration and gets 0.886227.

She can check that by hand. The power rule gives Γ(1/2)s\frac{\Gamma(1/2)}{\sqrt{s}}, and Γ(½) is √π, so this is π2\frac{\sqrt{\pi}}{2}, about 0.886227. The two agree.

Open this example in the tool

Reading your result

Poles tell you how f(t) behaves. A pole with a negative real part means decay. A positive real part means growth. An imaginary part means oscillation, with period 2π divided by that part. A repeated pole on the imaginary axis means growth like a power of t.

The region of convergence is part of the answer. The transform of e2te^{2t} is 1s−2\frac{1}{s - 2}, and that formula gives a number at s = 1. But the integral does not converge there, since the region starts at 2. The tool tells you when your s is outside it.

Sums follow from the table. The transform is linear, so 3 sin 2t + t² becomes 3 times its sine entry plus the entry for t². Transform each term here, then add them. For a general fraction in s, split it first with the partial fraction calculator.

Common mistakes

  • Getting the sign of the shift wrong. A factor of e−2te^{-2t} moves s to s + 2, not s − 2. The tool writes s + 2 in the answer, so you can compare it with your own.
  • Squaring b twice, or not at all. The bottom for sin 5t holds 25, not 5, and the top holds 5, not 25.
  • Expecting a value for a function that grows too fast. et2e^{t^2} outruns every exponential, so its integral has no finite value at any s. At s = 1 the tool reports that the integral does not settle.
  • Using the numerical mode for a formula or a complex s. It gives one number at one positive real s. It cannot give you F(s) as a formula, or a value at a complex s.

Questions people ask

Outside it, the formula for F(s) still gives numbers, but they are not the value of the integral. It also matters for signals: two different signals can share one formula and differ only in their regions. Here f(t) is taken as starting at t = 0, so the region is always the right part of the plane.

Sources