8.1: The Laplace Transform
Transform
In this chapter we will discuss the Laplace transform \(^{1}\) . The Laplace transform turns out to be a very efficient method to solve certain ODE problems. In particular, the transform can take a differential equation and turn it into an algebraic equation. If the algebraic equation can be solved, applying the inverse transform gives us our desired solution. The Laplace transform also has applications in the analysis of electrical circuits, NMR spectroscopy, signal processing, and elsewhere. Finally, understanding the Laplace transform will also help with understanding the related Fourier transform, which, however, requires more understanding of complex numbers.
The Laplace transform also gives a lot of insight into the nature of the equations we are dealing with. It can be seen as converting between the time and the frequency domain. For example, take the standard equation
\[mx''(t) = cx'(t) + kx(t) = f(t). \nonumber \]
We can think of \(t\) as time and \(f(t)\) as incoming signal. The Laplace transform will convert the equation from a differential equation in time to an algebraic (no derivatives) equation, where the new independent variable \(s\) is the frequency.
We can think of the Laplace transform as a black box that eats functions and spits out functions in a new variable. We write \(\mathcal{L} \{f(t)\} = F(s)\) for the Laplace transform of \(f(t)\). It is common to write lower case letters for functions in the time domain and upper case letters for functions in the frequency domain. We use the same letter to denote that one function is the Laplace transform of the other. For example \(F(s)\) is the Laplace transform of \(f(t)\). Let us define the transform.
\[\mathcal{L} \{f(t)\} = F(s) \overset{\rm{def}}{=} \int_0^{\infty} e^{-st}f(t)\,dt. \nonumber \]
We note that we are only considering \(t \ge 0\) in the transform. Of course, if we think of \(t\) as time there is no problem, we are generally interested in finding out what will happen in the future (Laplace transform is one place where it is safe to ignore the past).
Below is a video that introduces Laplace Transforms.
Let us compute some simple transforms.
Suppose \(f(t)=1\), then
\[\mathcal{L} \{1\} = \int_0^{\infty} e^{-st}dt = \left[ \dfrac{e^{-st}}{-s} \right]_{t=0}^{\infty} = \lim_{h\rightarrow \infty} \left[ \dfrac{e^{-st}}{-s} \right]_{t=0}^h = \lim_{h \rightarrow \infty} \left( \dfrac{e^{-sh}}{-s} - \dfrac{1}{-s} \right) = \dfrac{1}{s}. \nonumber \]
The limit (the improper integral) only exists if \(s>0\). So \( \mathcal{L} \{1\}\) is only defined for \(s>0\).
Below is a video on finding the Laplace Transform of a constant using the definition.
Suppose \(f(t)=e^{-at}\), then
\[\mathcal{L} \{e^{-at}\} = \int_0^{\infty} e^{-st}e^{-at} dt = \int _0^{\infty} e^{-(s+a)t} dt = \left [ \dfrac{e^{-(s+a)t}}{-s(s+a)} \right] _{t=0}^{\infty} = \dfrac{1}{s+a} . \nonumber \]
The limit only exists if \(s+a > 0\). So \( \mathcal{L} \{ e^{-at}\}\) is only defined for \(s+a > 0\).
Below is a video on finding the Laplace Transform of an exponential.
Below is a video on finding the Laplace Transform of a cubic.
Below is a video on finding the Laplace Transform of a sin function.
Suppose \(f(t)=t\), then using integration by parts
\[\begin{align}\begin{aligned} \mathcal{L} \{t\} &= \int_0^{\infty} e^{-st}t dt \\ &= \left[ \dfrac{-te^{-st}}{s} \right]_{t=0}^{\infty} + \dfrac{1}{s} \int_0^{\infty} e^{-st} dt \\ &=0 + \dfrac{1}{s} \left[ \dfrac{e^{-st}}{-s} \right]_{t=0}^{\infty} \\ &= \dfrac{1}{s^2}.\end{aligned}\end{align} \nonumber \]
Again, the limit only exists if \(s>0\).
Below is a video on finding the Laplace Transform of a basic step function.
Below is a video on writing as step fuction in terms of the unit step function.
Below is a video on writing a ramp function in terms of the unit step function.
Below is a video on finding the Laplace Transform of a step function.
Below is another video on finding the Laplace Transform of a step function.
Below is a video on finding the Laplace Transform of a piecewise defined function.
Below is a video on finding the Laplace Transform of a function times the unit step function.
A common function is the unit step function , which is sometimes called the Heaviside function \(^{2}\) . This function is generally given as
\[u(t)= \left\{ \begin{array}{cc} 0 & {\rm{if~}}t<0, \\ 1 & {\rm{if~}}t \geq 0.\end{array} \right. \nonumber \]
Let us find the Laplace transform of \(u(t-a)\), where \(a \ge 0\) is some constant. That is, the function that is 0 for \(t<a\) and 1 for \( t \ge a\).
\[ \mathcal{L} \{ u(t-a)\}= \int_0^{\infty}e^{-st}u(t-a)dt= \int_a^{\infty}e^{-st}dt= \left[ \dfrac{e^{-st}}{-s}\right]_{t=a}^{e^{-as}}=\dfrac{e^{-as}}{s}, \nonumber \]
where of course \(s>0\) (and \(a \ge 0\) as we said before).
By applying similar procedures we can compute the transforms of many elementary functions. Many basic transforms are listed in Table \(\PageIndex{1}\).
| \(f(t)\) | \(\mathcal \{f(t)\}\) |
|---|---|
| \(C\) | \(\dfrac{C}{s}\) |
| \(t\) | \(\dfrac{1}{s^{2}}\) |
| \(t^2\) | \(\dfrac{2}{s^3}\) |
| \(t^3\) | \(\dfrac{6}{s^4}\) |
| \(t^n\) | \(\dfrac{n!}{s^{s+1}}\) |
| \(e^{-at}\) | \(\dfrac{1}{s+a}\) |
| \(\sin(\omega t)\) | \(\dfrac{\omega}{s^2+\omega^2}\) |
| \(\cos(\omega t)\) | \(\dfrac{s}{s^2+\omega^2}\) |
| \(\sinh(\omega t)\) | \(\dfrac{\omega}{s^2- \omega^2}\) |
| \(\cosh(\omega t)\) | \(\dfrac{s}{s^2-\omega^2}\) |
| \(u(t-a)\) | \(\dfrac{e^{-as}}{s}\) |
Verify all the entries in Table \(\PageIndex{1}\) .
Since the transform is defined by an integral. We can use the linearity properties of the integral. For example, suppose \(C\) is a constant, then
\[ \mathcal{L} \{f(t)\} = \int_o^{\infty} e^{-st}Cf(t)\, dt = C \int _0^{\infty} e^{-st}f(t) \,dt = C \mathcal{L} \{f(t)\}. \nonumber \]
So we can “pull out” a constant out of the transform. Similarly we have linearity. Since linearity is very important we state it as a theorem.
Linearity of the Laplace Transform
Suppose that \(A\) , \(B\) , and \(C\) are constants, then
\[ \mathcal{L} \{Af(t) + Bg(t)\} = A\mathcal{L} \{f(t)\} + B\mathcal{L} \{g(t)\} \nonumber \]
and in particular
\[\mathcal{L} \{Cf(t)\} = C\mathcal{L} \{f(t)\} . \nonumber \]
Verify theorem \(\PageIndex{1}\). That is, show that \( \mathcal{L} \{Af(t) + Bg(t)\} = A\mathcal{L} \{f(t)\} + B\mathcal{L} \{g(t)\} \) .
These rules together with Table \(\PageIndex{1}\) make it easy to find the Laplace transform of a whole lot of functions already. But be careful. It is a common mistake to think that the Laplace transform of a product is the product of the transforms. In general
\[\mathcal{L} \{f(t)g(t)\} \neq \mathcal{L} \{f(t)\} \mathcal{L} \{g(t)\}. \nonumber \]
It must also be noted that not all functions have a Laplace transform. For example, the function \(1/t\) does not have a Laplace transform as the integral diverges for all \(s\). Similarly, \(\tan\, t\) or \(e^{t^2} \)do not have Laplace transforms.
Existence and Uniqueness
Let us consider when does the Laplace transform exist in more detail. First let us consider functions of exponential order. The function \(f(t)\) is of exponential order as \(t\) goes to infinity if
\[ \left|f(t)\right| \le Me^{ct}, \nonumber \]
for some constants \(M\) and \(c\), for sufficiently large \(t\) (say for all \(t > t_o\) for some \(t_o\)). The simplest way to check this condition is to try and compute
\[ \lim_{t \rightarrow \infty} \dfrac{f(t)}{e^{ct}} \nonumber \]
If the limit exists and is finite (usually zero), then \(f(t)\) is of exponential order.
Use L'Hopital's rule from calculus to show that a polynomial is of exponential order. Hint: Note that a sum of two exponential order functions is also of exponential order. Then show that \(t^n\) is of exponential order for any \(n\) .
For an exponential order function we have existence and uniqueness of the Laplace transform.
Existence
Let \(f(t)\) be continuous and of exponential order for a certain constant \(c\) . Then \( F(s) = \mathcal{L} \{f(t)\} \) is defined for all \(s>c\) .
The existence is not difficult to see. Let \(f(t)\) be of exponential order, that is \(|f(t)| \leq Me^{ct}\) for all \(t>0\) (for simplicity \(t_0=0\)). Let \(s>c\), or in other words \((c-s)<0\). By the comparison theorem from calculus, the improper integral defining \(\mathcal{L}\{f(t)\}\) exists if the following integral exists
\[ \int_0^{\infty}e^{-st}(Me^{ct})dt= M \int_0^{\infty}e^{(c-s)t}dt=M \left[ \dfrac{e^{(c-s)t}}{c-s} \right]_{t=0}^{\infty} = \dfrac{M}{c-s}. \nonumber \]
The transform also exists for some other functions that are not of exponential order, but that will not be relevant to us. Before dealing with uniqueness, let us note that for exponential order functions we obtain that their Laplace transform decays at infinity:
\[ \lim_{s \rightarrow \infty} F(s)=0 \nonumber \]
Uniqueness
Let \(f(t)\) and \(g(t)\) be continuous and of exponential order. Suppose that there exists a constant \(C\) , such that \(F(s) = G(s)\) for all \(s> C\). Then \(f(t)=g(t)\) for all \(t \ge 0\) .
Both theorems hold for piecewise continuous functions as well. Recall that piecewise continuous means that the function is continuous except perhaps at a discrete set of points where it has jump discontinuities like the Heaviside function. Uniqueness however does not “see” values at the discontinuities. So we can only conclude that \(F(s) = G(s)\) outside of discontinuities. For example, the unit step function is sometimes defined using \(u(0)=1/2\). This new step function, however, has the exact same Laplace transform as the one we defined earlier where \(u(0)=1\).
Inverse Transform
As we said, the Laplace transform will allow us to convert a differential equation into an algebraic equation. Once we solve the algebraic equation in the frequency domain we will want to get back to the time domain, as that is what we are interested in. If we have a function \(F(s)\), to be able to find \(f(t)\) such that \(\mathcal{L} \{f(t)\}=F(s) \), we need to first know if such a function is unique. It turns out we are in luck by Theorem \(\PageIndex{3}\) . So we can without fear make the following definition.
If \( F(s) = \mathcal{L} \{f(t)\} \) for some function \(f(t)\). We define the inverse Laplace transform as
\[ \mathcal{L}^{-1} \{F(s)\} \overset{\rm{def}}{=} f(t) \nonumber \]
There is an integral formula for the inverse, but it is not as simple as the transform itself—it requires complex numbers and path integrals. For us it will suffice to compute the inverse using Table \(\PageIndex{1}\) .
Below is a video on finding the inverse Laplace Transform.
Find the inverse Laplace transform of \(F(s) = \dfrac{1}{s+1}\)
Solution
We look at the table to find
\[ \mathcal{L}^{-1} \left\{ \dfrac{1}{s+1} \right\} = e^{-t} \nonumber \]
As the Laplace transform is linear, the inverse Laplace transform is also linear. That is,
\[ \mathcal{L}^{-1} \{AF(s) + BG(s)\} = A\mathcal{L}^{-1} \{F(s)\} + B\mathcal{L}^{-1} \{G(s)\} \nonumber \]
Of course, we also have \( \mathcal{L}^{-1} \{AF(s) = A \mathcal{L}^{-1} \{F(s)\}.\) Let us demonstrate how linearity can be used.
Below is a video on finding the inverse Laplace Transform.
Below is another video on finding the inverse Laplace Transform.
Below is a video on finding the inverse Laplace Transform that gives sinh and an exponential.
Find the inverse Laplace transform of
\[F(s)=\dfrac{s^2+s+1}{s^3+s}. \nonumber \]
Solution
First we use the method of partial fractions to write \(F\) in a form where we can use Table \(\PageIndex{1}\) . We factor the denominator as \(s(s^2+1)\) and write
\[ \dfrac{s^2+s+1}{s^3+s}=\dfrac{A}{s}+\dfrac{Bs+C}{s^2+1} \nonumber \]
Putting the right hand side over a common denominator and equating the numerators we get \(A(s^2+1)+s(Bs+C)=s^2+s+1\). Expanding and equating coefficients we obtain \(A + B =1\), \(C=1\), \(A=1\) and thus \(B=0\). In other words,
\[F(s)=\dfrac{s^2+s+1}{s^3+s} =\dfrac{1}{s}+\dfrac{1}{s^2+1} \nonumber \]
By linearity of the inverse Laplace transform we get
\[ \mathcal{L}^{-1} \left\{ \dfrac{s^2+s+1}{s^3+s} \right\} = \mathcal{L}^{-1} \left\{ \dfrac{1}{s} \right\}+ \mathcal{L}^{-1} \left\{ \dfrac{1}{s^2+1} \right\} = 1 + \sin t. \nonumber \]
Shifting Property of Laplace Transforms
Another useful property is the so-called shifting property or the first shifting property
\[ \mathcal{L} \{e^{-at}f(t)\} = F(s+a) \nonumber \]
where \(F(s)\) is the Laplace transform of \(f(t)\) and \(a\) is a constant.
Derive the first shifting property from the definition of the Laplace transform.
The shifting property can be used, for example, when the denominator is a more complicated quadratic that may come up in the method of partial fractions. We complete the square and write such quadratics as \((s+a)^2 + b\) and then use the shifting property.
Find \[ \mathcal{L}^{-1} \left\{ \dfrac{1}{s^2+4s+8} \right\} . \nonumber \]
Solution
First we complete the square to make the denominator \((s+2)^2+4\). Next we find
\[ \mathcal{L} \left\{ \dfrac{1}{s^2+4} \right\} = \dfrac{1}{2}\sin (2t). \nonumber \]
Putting it all together with the shifting property, we find
\[ \mathcal{L} \left\{ \dfrac{1}{s^2+4s+8} \right\} = \mathcal{L} \left\{ \dfrac{1}{(s+2)^2+4} \right\} = \dfrac{1}{2}e^{-2t} \sin (2t). \nonumber \]
In general, we want to be able to apply the Laplace transform to rational functions , that is functions of the form
\[\dfrac{F(s)}{G(s)} \nonumber \]
where \(F(s)\) and \(G(s)\) are polynomials. Since normally, for the functions that we are considering, the Laplace transform goes to zero as \(s \rightarrow \infty\), it is not hard to see that the degree of \(F(s)\) must be smaller than that of \(G(s)\). Such rational functions are called proper rational functions and we can always apply the method of partial fractions. Of course this means we need to be able to factor the denominator into linear and quadratic terms, which involves finding the roots of the denominator,
Footnotes
[1] Just like the Laplace equation and the Laplacian, the Laplace transform is also named after Pierre-Simon, marquis de Laplace (1749 – 1827).
[2] The function is named after the English mathematician, engineer, and physicist Oliver Heaviside (1850–1925). Only by coincidence is the function “heavy” on “one side.”