Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Definition and properties

The Laplace transform is used in signals/controls. It is also a way to solve differential equations using algebra. It is defined as:

F(s)=L[f(t)]=0estf(t)d ⁣tF(s) = L[f(t)] = \int_0^\infty e^{-st} f(t) \d{t}

The inverse Laplace transform of F is f, i.e., f(t)=L1[F(s)]f(t) = L^{-1}[F(s)]. The Laplace transform of many functions can be computed using integration by parts. For example, the Laplace transform of f(t)=tf(t) = t is:

L[t]=0esttd ⁣t=tests0+0estsd ⁣t=ests20=1s2\begin{align} L[t] &= \int_0^\infty e^{-st} t \d{t} \\ &= \left.-\frac{te^{-st}}{s}\right|_0^\infty + \int_0^\infty \frac{e^{-st}}{s} \d{t} \\ &= -\left.\frac{e^{-st}}{s^2}\right|_0^\infty \\ &= \frac{1}{s^2} \end{align}

Importantly, the Laplace transform of the first derivative of an unknown function f(t)=y(t)f(t) = y'(t) is:

L[y(t)]=0esty(t)d ⁣t=esty(t)00y(t)(sest)d ⁣t=[0y(0)]+s0estyd ⁣t=y(0)+sL[y(t)]=sY(s)y(0)\begin{align} L[y'(t)] &= \int_0^\infty e^{-st} y'(t) \d{t} \\ &= \left.e^{-st} y(t)\right|_0^\infty - \int_0^\infty y(t) \left(-s e^{-st}\right) \d{t} \\ &= [0 - y (0)] + s \int_0^\infty e^{-st} y \d{t} \\ &= -y(0) + s L[y(t)] \\ &= s Y(s) - y(0) \end{align}

using u=estu = e^{-st} and d ⁣v=y(t)d ⁣t\d{v} = y'(t) \d{t}. Some common Laplace transforms are:

f(t)f(t)F(s)=L[f(t)]F(s) = L[f(t)]
tnt^n, n=0,1,2,n=0, 1, 2, \cdotsn!sn+1\dfrac{n!}{s^{n+1}}
eate^{at}1sa\dfrac{1}{s - a}
sin(at)\sin(at)as2+a2\dfrac{a}{s^2 + a^2}
cos(at)\cos(at)ss2+a2\dfrac{s}{s^2 + a^2}
eatsin(bt)e^{at} \sin(bt)b(sa)2+b2\dfrac{b}{(s - a)^2 + b^2}
eatcos(bt)e^{at} \cos(bt)sa(sa)2+b2\dfrac{s - a}{(s - a)^2 + b^2}

The Laplace transform is a linear operator, so

L[kf]=kL[f]L[f+g]=L[f]+L[g]\begin{align} L[kf] &= kL[f] \\ L[f + g] &= L[f] + L[g] \end{align}

Solving first-order ODEs

Nonhomogeneous, first-order ODEs with constant coefficients are nice to solve with Laplace transforms:

y+by=r(t),y(0)=y0y' + by = r(t), \quad y(0) = y_0

Apply the Laplace transform to both sides of the equation:

L[y+by]=L[r]L[y]+bL[y]=L[r](sYy0)+bY=RY=y0+Rs+b\begin{align} L[y' + by] &= L[r] \\ L[y'] + bL[y] &= L[r]\\ \left(sY - y_0\right) + bY &= R\\ Y &= \frac{y_0 + R}{s+b} \end{align}

where Y=L[y(t)]Y = L[y(t)] and R=L[r(t)]R = L[r(t)]. If we can invert y=L1[Y]y = L^{-1}[Y] using tables, we have a solution!

Example 1: Laplace transform

Solve the initial value problem

y=ky,y(0)=2y' =-ky, \quad y(0) =2

Rearrange, apply Laplace transform Y=L[y]Y = L[y], and solve for YY:

y+ky=0L[y+ky]=L[0]L[y]+kL[y]=L[0]sYy(0)+kY=0(s+k)Y2=0Y=2s+k\begin{align} y'+ ky &= 0 \\ L[y'+ky] &= L[0] \\ L[y']+kL[y] &= L[0] \\ sY - y(0) + k Y &= 0 \\ (s+k) Y - 2 &= 0 \\ Y &= \frac{2}{s+k} \end{align}

Invert Laplace transform:

y=L1[2s+k]=2L1[1s+k]=2ekty = L^{-1}\left[\frac{2}{s+k}\right] = 2L^{-1}\left[\frac{1}{s+k}\right] = 2 e^{-kt}

Example 2: Laplace transform with partial fractions

Solve the initial value problem:

yy=t,y(0)=1y'-y = t, \quad y(0) = 1

Rearrange, apply Laplace transform Y=L[y]Y = L[y], and solve for YY:

L[yy]=L[t]L[y]L[y]=L[t]sYy(0)Y=1s2(s1)Y1=1s2Y=1s1+1s2(s1)\begin{align} L[y'-y] &= L[t]\\ L[y']-L[y] &= L[t]\\ sY - y(0) - Y &= \frac{1}{s^2}\\ (s-1) Y - 1 &= \frac{1}{s^2}\\ Y &= \frac{1}{s-1} + \frac{1}{s^2(s-1)} \end{align}

These terms do not immediately correspond to the Laplace transform table, but we can separate them using partial fraction decomposition:

1(s1)s2=A1s1+A2s+A3s2\frac{1}{(s-1) s^2} = \frac{A_1}{s-1} + \frac{A_2}{s} + \frac{A_3}{s^2}

A1A_1 and A3A_3 can be found using the coverup method:

A1=112=1A3=101=1\begin{align} A_1 &= \frac{1}{1^2} = 1 \\ A_3 &= \frac{1}{0-1} = -1 \end{align}

To find A2A_2, substitute and cross multiply:

1=s2+A2(s1)s(s1)1 = s^2 + A_2(s-1)s - (s-1)

then compare the coefficient of the s2s^2 terms on either side:

1+A2=0A2=11 + A_2 = 0 \to A_2 = -1

So, all together:

Y=2s11s1s2Y = \frac{2}{s-1} - \frac{1}{s} - \frac{1}{s^2}

Solve for yy by applying the inverse Laplace transform

y=L1[Y]=2L1[1s1]L1[1s]L1[1s2]=2et1t\begin{align} y &=L^{-1}[Y]\\ &=2L^{-1}\left[\frac{1}{s-1}\right]-L^{-1}\left[\frac{1}{s}\right]-L^{-1}\left[\frac{1}{s^2}\right]\\ &=2e^t-1-t \end{align}

Example: Hormone level

The concentration of a hormone in the blood c varies due to sinusoidal production by the thyroid and continuous removal according to:

c=A+Bcos(πt12)kcc' = A + B\cos\left(\frac{\pi t}{12}\right) - kc

The concentration is c0c_0 at 6 AM (t=0t = 0). What is the average concentration between 6 PM and 6 AM the same day?


To solve, rearrange and use the Laplace transform:

c+kc=A+Bcos(πt12)[sC(s)c0]+kC(s)=L[A+Bcos(πt12)](s+k)Cc0=As+Bss2+(π/12)2C(s)=(1s+k)[c0+As+Bss2+(π/12)2]=c0s+k+As(s+k)+Bs[s2+(π/12)2](s+k)\begin{align} c' + kc &= A + B\cos\left(\frac{\pi t}{12}\right) \\ [sC(s) - c_0] + kC(s) &= L\left[A + B\cos\left(\frac{\pi t}{12}\right)\right] \\ (s+k) C - c_0 &= \frac{A}{s} + \frac{Bs}{s^2 + (\pi/12)^2} \\ C(s) &= \left(\frac{1}{s + k}\right)\left[c_0 + \frac{A}{s} + \frac{Bs}{s^2 + (\pi/12)^2}\right] \\ &= \frac{c_0}{s + k} + \frac{A}{s(s + k)} + \frac{Bs}{[s^2 + (\pi/12)^2](s + k)} \end{align}

Use partial fraction decomposition on both fractions. The first one is:

1s(s+k)=c1s+c2s+k\frac{1}{s(s + k)} = \frac{c_1}{s} + \frac{c_2}{s + k}

and the cover-up method gives c1=1/kc_1 = 1/k and c2=1/kc_2 = -1/k. For the next one:

s[s2+(π/12)2](s+k)=c1s+c2s2+(π/12)2+c3s+k\frac{s}{[s^2 + (\pi/12)^2](s + k)} = \frac{c_1 s + c_2}{s^2 + (\pi/12)^2} + \frac{c_3}{s + k}

The cover-up method gives

c3=kk2+(π/12)2c_3 = \frac{-k}{k^2 + (\pi/12)^2}

while cross-multiplying and matching coefficients gives

s=(c1s+c2)(s+k)+c3[s2+(π/12)2]s=(c1+c3)s2+(c1k+c2)s+c2k+c3(π/12)2\begin{align} s &= (c_1 s + c_2)(s + k) + c_3\left[s^2 + (\pi/12)^2\right] \\ s &= (c_1 + c_3)s^2 + (c_1 k + c_2)s + c_2 k + c_3(\pi/12)^2 \end{align}

so

c1+c3=0c1k+c2=1c2k+c3(π/12)2=0\begin{align} c_1 + c_3 &= 0 \\ c_1 k + c_2 &= 1 \\ c_2 k + c_3 (\pi/12)^2 &= 0 \end{align}

Using our solution for c3c_3 in the first equation gives c1c_1 and in the third equation gives c2c_2:

c1=kk2+(π12)2,c2=(π/12)2k2+(π/12)2c_1 = \frac{k}{k^2 + \left(\frac{\pi}{12}\right)^2}, \quad c_2 = \frac{(\pi/12)^2}{k^2 + (\pi/12)^2}

All together,

C(s)=c0s+k+Ak[1s1s+k]+Bk2+(π/12)2[kss2+(π/12)2+(π/12)2s2+(π/12)2ks+k]\begin{align} C(s) &= \frac{c_0}{s + k} + \frac{A}{k} \left[\frac{1}{s} - \frac{1}{s+k} \right] \\ &+ \frac{B}{k^2 + (\pi/12)^2} \left[\frac{ks}{s^2 + (\pi/12)^2} + \frac{(\pi/12)^2}{s^2 + (\pi/12)^2} - \frac{k}{s+k} \right] \end{align}

Invert the Laplace transforms term by term:

c(t)=c0ekt+Ak(1ekt)+Bk2+(π/12)2[kcos(πt12)+π12sin(πt12)kekt]=Ak+Bk2+(π/12)2[kcos(πt12)+π12sin(πt12)]+[c0AkBkk2+(π12)2]ekt\begin{align} c(t) &= c_0 e^{-kt} + \frac{A}{k} \left(1 - e^{-kt}\right) \\ &+ \frac{B}{k^2 + (\pi/12)^2} \left[k \cos\left(\frac{\pi t}{12}\right) + \frac{\pi}{12} \sin\left(\frac{\pi t}{12}\right) - k e^{-kt}\right] \\ &= \frac{A}{k} + \frac{B}{k^2 + (\pi/12)^2} \left[k \cos\left(\frac{\pi t}{12}\right) + \frac{\pi}{12} \sin\left(\frac{\pi t}{12}\right)\right] \\ &+ \left[c_0 - \frac{A}{k} - \frac{Bk}{k^2 + \left(\frac{\pi}{12}\right)^2}\right] e^{-kt} \end{align}

The average concentration is:

c=1t1t0t0t1c(t)d ⁣t=124121224(Ak+Bk2+(π/12)2[kcos(πt12)+π12sin(πt12)]+[c0AkBkk2+(π/12)2]ekt)d ⁣t=112[Akt+Bk2+(π/12)2(12kπsin(πt12)cos(πt12))+1k(Ak+Bkk2+(π/12)2)ekt]1224=Ak16Bk2+(π/12)2112[Ak2+Bk2+(π/12)2](e12ke24k)\begin{align} \langle c \rangle &= \frac{1}{t_1-t_0} \int_{t_0}^{t_1} c(t) \d{t} \\ &= \frac{1}{24 - 12} \int_{12}^{24} \Biggl( \frac{A}{k} + \frac{B}{k^2 + (\pi/12)^2} \left[k \cos\left(\frac{\pi t}{12}\right) + \frac{\pi}{12} \sin\left(\frac{\pi t}{12}\right)\right] \\ &+ \left[c_0 - \frac{A}{k} - \frac{Bk}{k^2 + (\pi/12)^2}\right] e^{-kt} \Biggr) \d{t} \\ &= \frac{1}{12} \Biggl[ \frac{A}{k} t + \frac{B}{k^2 + (\pi/12)^2} \left( \frac{12k}{\pi} \sin\left( \frac{\pi t}{12} \right) - \cos\left( \frac{\pi t}{12} \right) \right) \\ &+ \frac{1}{k} \left( \frac{A}{k} + \frac{Bk}{k^2 + (\pi/12)^2} \right) e^{-kt} \Biggr]_{12}^{24} \\ &= \frac{A}{k} - \frac{1}{6} \frac{B}{k^2 + (\pi/12)^2} - \frac{1}{12}\left[\frac{A}{k^2} + \frac{B}{k^2 + (\pi/12)^2}\right] (e^{-12k} - e^{-24k}) \end{align}

Skill builder problems

Solve the following IVPs using Laplace transforms:

Solution to Exercise 1
L[y+4y]=L[e4x]sYy(0)+4Y=1s4(s+4)Y=1s4Y=1(s+4)(s4)\begin{align} L[y' + 4y] &= L[e^{4x}] \\ sY - y(0) + 4Y &= \frac{1}{s-4} \\ (s+4) Y &= \frac{1}{s-4} \\ Y &= \frac{1}{(s+4)(s-4)} \end{align}

Use partial fractions

1(s+4)(s4)=A1s+4+A2s4\frac{1}{(s+4)(s-4)} = \frac{A_1}{s+4} + \frac{A_2}{s-4}

and cover up to find A1=1/8A_1 = -1/8 and A2=1/8A_2 = 1/8.

Solve by inverting the Laplace transforms:

Y=18(1s41s+4)y=L1[Y]=18(L1[1s4]L1[1s+4])=18(e4xe4x)\begin{align} Y &= \frac{1}{8} \left(\frac{1}{s-4} - \frac{1}{s+4} \right) \\ y = L^{-1}[Y] &= \frac{1}{8}\left( L^{-1}\left[\frac{1}{s-4}\right] - L^{-1}\left[\frac{1}{s+4}\right] \right) \\ &= \frac{1}{8}(e^{4x} - e^{-4x}) \end{align}
Solution to Exercise 2
L[y+2y]=L[8]sYy(0)+2Y=8s(s+2)Y1=8sY=1s+2+8s(s+2)\begin{align} L[y' + 2y] &= L[8] \\ sY - y(0) + 2Y &= \frac{8}{s} \\ (s+2) Y - 1 &= \frac{8}{s} \\ Y &= \frac{1}{s+2} + \frac{8}{s(s+2)} \end{align}

Use partial fractions and the cover-up method for the second fraction:

8s(s+2)=A1s+A2s+2\frac{8}{s(s+2)} = \frac{A_1}{s} + \frac{A_2}{s+2}

to find A1=4A_1 = 4 and A2=4A_2 = -4. Solve by simplifying and inverting the Laplace transforms:

Y=4s3s+2y=L1[Y]=4L1[1s]3L1[1s+2]=43e2x\begin{align} Y &= \frac{4}{s} - \frac{3}{s+2} \\ y = L^{-1}[Y] &= 4L^{-1}\left[\frac{1}{s}\right] - 3L^{-1}\left[\frac{1}{s+2}\right] \\ &= 4 - 3e^{-2x} \end{align}
Solution to Exercise 3
L[yy]=L[12x+sin3x]sYy(0)Y=1s2s2+3s2+9(s1)Y=1+1s2s2+3s2+9Y=1s1+1s(s1)2s2(s1)+3(s2+9)(s1)\begin{align} L[y' - y] &= L[1 - 2x + \sin 3x ] \\ sY - y(0) - Y &= \frac{1}{s} - \frac{2}{s^2} + \frac{3}{s^2 + 9} \\ (s-1)Y &= -1 + \frac{1}{s} - \frac{2}{s^2} + \frac{3}{s^2 + 9} \\ Y &= -\frac{1}{s - 1} + \frac{1}{s(s - 1)} - \frac{2}{s^2(s - 1)} + \frac{3}{(s^2 + 9)(s - 1)} \end{align}

Use partial fractions:

1s(s1)=A1s+A2s12s2(s1)=A3s+A4s2+A5s13(s2+9)(s1)=A6s+B6s2+9+A7s1\begin{align} \frac{1}{s(s-1)} &= \frac{A_1}{s} + \frac{A_2}{s-1} \\ \frac{-2}{s^2(s - 1)} &= \frac{A_3}{s} + \frac{A_4}{s^2} + \frac{A_5}{s - 1} \\ \frac{3}{(s^2 + 9)(s - 1)} &= \frac{A_6s + B_6}{s^2 + 9} + \frac{A_7}{s - 1} \end{align}

Cover up to find:

A1=101=1A4=201=2A7=312+9=310A2=11=1A5=21=2\begin{align} A_1 &=\frac{1}{0-1} = -1 & A_4 &= \frac{-2}{0 - 1} = 2 & A_7 &= \frac{3}{1^2 + 9} = \frac{3}{10} \\ A_2 &=\frac{1}{1} = 1 & A_5 &= \frac{-2}{1} = -2 \end{align}

Finish the rest by cross-multiplying or pluggin in values. For the first fraction, plug in s=1s=-1 and known coefficients:

1=A3+2+11 = -A_3 + 2 + 1

then solve A3=2A_3 = 2. For the third fraction, cross-multiply

3=(A6s+B6)(s1)+310(s2+9)3 = (A_6 s + B_6)(s-1) + \frac{3}{10}(s^2+9)

Then compare like powers of ss. Here, I use s2s^2 and s0s^0:

A6+310=0B6+2710=3\begin{align} A_6 + \frac{3}{10} &= 0 \\ -B_6 + \frac{27}{10} &= 3 \end{align}

so A6=3/10A_6 = -3/10 and B6=3/10B_6 = -3/10. Simplify Y

Y=1s+2s217101s13101s2+9310ss2+9Y = \frac{1}{s} + \frac{2}{s^2} - \frac{17}{10} \frac{1}{s-1} - \frac{3}{10} \frac{1}{s^2+9} - \frac{3}{10} \frac{s}{s^2+9}

Apply inverse Laplace transform across the equation:

y=L1[1s]+2L1[1s2]1710L1[1s1]110L1[3s2+9]310L1[ss2+9]y = L^{-1}\left[\frac{1}{s}\right] + 2 L^{-1}\left[\frac{1}{s^2}\right] - \frac{17}{10} L^{-1}\left[\frac{1}{s - 1}\right] - \frac{1}{10} L^{-1}\left[\frac{3}{s^2 + 9}\right] - \frac{3}{10} L^{-1}\left[\frac{s}{s^2 + 9}\right]

So, the solution is

y=1+2x1710ex110sin3x310cos3xy = 1 + 2x - \frac{17}{10} e^x - \frac{1}{10} \sin 3x - \frac{3}{10} \cos 3x