## Section6.3Convolution

Note: 1 or 1.5 lectures, §7.2 in [EP], §6.6 in [BD]

### Subsection6.3.1The convolution

We said that the Laplace transformation of a product is not the product of the transforms. All hope is not lost however. We simply have to use a different type of a “product.” Take two functions $f(t)$ and $g(t)$ defined for $t \geq 0\text{,}$ and define the convolution 1  of $f(t)$ and $g(t)$ as

\begin{equation} \mybxbg{~~ (f * g)(t) \overset{\text{def}}{=} \int_0^t f(\tau) g(t-\tau) ~ d\tau . ~~}\label{ltc_convdef}\tag{6.2} \end{equation}

As you can see, the convolution of two functions of $t$ is another function of $t\text{.}$

For those that have seen convolution defined before, you may have seen it defined as $(f * g)(t) = \int_{-\infty}^\infty f(\tau) g(t-\tau) ~ d\tau\text{.}$ This definition agrees with (6.2) if you define $f(t)$ and $g(t)$ to be zero for $t < 0\text{.}$ When discussing the Laplace transform the definition we gave is sufficient. Convolution does occur in many other applications, however, where you may have to use the more general definition with infinities.
###### Example6.3.1.

Take $f(t) = e^t$ and $g(t) = t$ for $t \geq 0\text{.}$ Then

\begin{equation*} (f*g)(t) = \int_0^t e^\tau (t-\tau) ~ d\tau = e^t - t - 1 . \end{equation*}

To solve the integral we did one integration by parts.

###### Example6.3.2.

Take $f(t) = \sin (\omega t)$ and $g(t) = \cos (\omega t)$ for $t \geq 0\text{.}$ Then

\begin{equation*} (f*g)(t) = \int_0^t \sin ( \omega \tau ) \, \cos \bigl( \omega (t-\tau) \bigr) ~ d\tau . \end{equation*}

We apply the identity

\begin{equation*} \cos (\theta) \sin (\psi) = \frac{1}{2} \, \bigl( \sin (\theta + \psi) - \sin (\theta - \psi) \bigr) . \end{equation*}

Hence,

\begin{equation*} \begin{split} (f*g)(t) & = \int_0^t \frac{1}{2} \, \bigl( \sin (\omega t) - \sin (\omega t - 2 \omega \tau ) \bigr) ~ d\tau \\ & = \left[ \frac{1}{2} \, \tau \sin (\omega t) + \frac{1}{4\omega} \, \cos (2 \omega \tau - \omega t) \right]_{\tau=0}^t \\ & = \frac{1}{2} \, t \sin (\omega t) . \end{split} \end{equation*}

The formula holds only for $t \geq 0\text{.}$ We assumed that $f$ and $g$ are zero (or simply not defined) for negative $t\text{.}$

The convolution has many properties that make it behave like a product. Let $c$ be a constant and $f\text{,}$ $g\text{,}$ and $h$ be functions then

\begin{equation*} \begin{aligned} & f * g = g * f , \\ & (c f) * g = f * (c g) = c (f*g) , \\ & ( f * g ) * h = f * ( g * h ) . \end{aligned} \end{equation*}

The most interesting property for us, and the main result of this section is the following theorem.

In other words, the Laplace transform of a convolution is the product of the Laplace transforms. The simplest way to use this result is in reverse.

###### Example6.3.3.

Suppose we have the function of $s$ defined by

\begin{equation*} \frac{1}{(s+1)s^2} = \frac{1}{s+1}\, \frac{1}{s^2} . \end{equation*}

We recognize the two entries of Table 7.2.1. That is

\begin{equation*} \mathcal{L}^{-1} \left\{ \frac{1}{s+1} \right\} = e^{-t} \qquad \text{and} \qquad \mathcal{L}^{-1} \left\{ \frac{1}{s^2} \right\} = t. \end{equation*}

Therefore,

\begin{equation*} \mathcal{L}^{-1} \left\{ \frac{1}{s+1}\, \frac{1}{s^2} \right\} = \int_0^t \tau e^{-(t-\tau)} ~d\tau = e^{-t}+t-1 . \end{equation*}

The calculation of the integral involved an integration by parts.

### Subsection6.3.2Solving ODEs

The next example demonstrates the full power of the convolution and the Laplace transform. We can give the solution to the forced oscillation problem for any forcing function as a definite integral.

###### Example6.3.4.

Find the solution to

\begin{equation*} x'' + \omega_0^2 x = f(t) , \quad x(0) = 0, \quad x'(0) = 0 , \end{equation*}

for an arbitrary function $f(t)\text{.}$

We first apply the Laplace transform to the equation. Denote the transform of $x(t)$ by $X(s)$ and the transform of $f(t)$ by $F(s)$ as usual.

\begin{equation*} s^2 X(s) + \omega_0^2 X(s) = F(s) , \end{equation*}

or in other words

\begin{equation*} X(s) = F(s) \frac{1}{s^2+ \omega_0^2} . \end{equation*}

We know

\begin{equation*} {\mathcal{L}}^{-1} \left\{ \frac{1}{s^2+ \omega_0^2} \right\} = \frac{\sin (\omega_0 t)}{\omega_0} . \end{equation*}

Therefore,

\begin{equation*} x(t) = \int_0^t f(\tau) \frac{\sin \bigl( \omega_0 (t-\tau) \bigr)}{\omega_0} ~ d\tau , \end{equation*}

or if we reverse the order

\begin{equation*} x(t) = \int_0^t \frac{\sin (\omega_0 \tau)}{\omega_0} f(t-\tau) ~ d\tau . \end{equation*}

Let us notice one more feature of this example. We can now see how Laplace transform handles resonance. Suppose that $f(t) = \cos (\omega_0 t)\text{.}$ Then

\begin{equation*} x(t) = \int_0^t \frac{\sin (\omega_0 \tau)}{\omega_0} \, \cos \bigl( \omega_0 (t-\tau) \bigr) ~ d\tau = \frac{1}{\omega_0} \int_0^t \sin ( \omega_0 \tau ) \, \cos \bigl(\omega_0 (t-\tau) \bigr) ~ d\tau . \end{equation*}

We have computed the convolution of sine and cosine in Example 6.3.2. Hence

\begin{equation*} x(t) = \left( \frac{1}{\omega_0} \right) \, \left( \frac{1}{2} \, t \, \sin ( \omega_0 t ) \right) = \frac{1}{2 \omega_0} \, t \, \sin ( \omega_0 t ). \end{equation*}

Note the $t$ in front of the sine. The solution, therefore, grows without bound as $t$ gets large, meaning we get resonance.

Similarly, we can solve any constant coefficient equation with an arbitrary forcing function $f(t)$ as a definite integral using convolution. A definite integral, rather than a closed form solution, is usually enough for most practical purposes. It is not hard to numerically evaluate a definite integral.

### Subsection6.3.3Volterra integral equation

A common integral equation is the Volterra integral equation 2

\begin{equation*} x(t) = f(t) + \int_0^t g(t-\tau) x(\tau) ~ d\tau , \end{equation*}

where $f(t)$ and $g(t)$ are known functions and $x(t)$ is an unknown we wish to solve for. To find $x(t)\text{,}$ we apply the Laplace transform to the equation to obtain

\begin{equation*} X(s) = F(s) + G(s) X(s) , \end{equation*}

where $X(s)\text{,}$ $F(s)\text{,}$ and $G(s)$ are the Laplace transforms of $x(t)\text{,}$ $f(t)\text{,}$ and $g(t)$ respectively. We find

\begin{equation*} X(s) = \frac{F(s)}{1-G(s)} . \end{equation*}

To find $x(t)$ we now need to find the inverse Laplace transform of $X(s)\text{.}$

Named for the Italian mathematician Vito Volterra (1860–1940).
###### Example6.3.5.

Solve

\begin{equation*} x(t) = e^{-t} + \int_0^t \sinh(t-\tau) x(\tau) ~ d\tau . \end{equation*}

We apply Laplace transform to obtain

\begin{equation*} X(s) = \frac{1}{s+1} + \frac{1}{s^2-1} X(s) , \end{equation*}

or

\begin{equation*} X(s) = \frac{\frac{1}{s+1}}{1- \frac{1}{s^2-1}} = \frac{s-1}{s^2 - 2} = \frac{s}{s^2 - 2} - \frac{1}{s^2 - 2} . \end{equation*}

It is not hard to apply Table 7.1.5 to find

\begin{equation*} x(t) = \cosh \bigl( \sqrt{2} \, t \bigr) - \frac{1}{\sqrt{2}} \sinh \bigl( \sqrt{2}\, t \bigr). \end{equation*}

### Subsection6.3.4Exercises

###### Exercise6.3.1.

Let $f(t) = t^2$ for $t \geq 0\text{,}$ and $g(t) = u(t-1)\text{.}$ Compute $f * g\text{.}$

###### Exercise6.3.2.

Let $f(t) = t$ for $t \geq 0\text{,}$ and $g(t) = \sin t$ for $t \geq 0\text{.}$ Compute $f * g\text{.}$

###### Exercise6.3.3.

Find the solution to

\begin{equation*} m x'' + c x' + k x = f(t) , \quad x(0) = 0, \quad x'(0) = 0 , \end{equation*}

for an arbitrary function $f(t)\text{,}$ where $m > 0\text{,}$ $c > 0\text{,}$ $k > 0\text{,}$ and $c^2 - 4km > 0$ (system is overdamped). Write the solution as a definite integral.

###### Exercise6.3.4.

Find the solution to

\begin{equation*} m x'' + c x' + k x = f(t) , \quad x(0) = 0, \quad x'(0) = 0 , \end{equation*}

for an arbitrary function $f(t)\text{,}$ where $m > 0\text{,}$ $c > 0\text{,}$ $k > 0\text{,}$ and $c^2 - 4km < 0$ (system is underdamped). Write the solution as a definite integral.

###### Exercise6.3.5.

Find the solution to

\begin{equation*} m x'' + c x' + k x = f(t) , \quad x(0) = 0, \quad x'(0) = 0 , \end{equation*}

for an arbitrary function $f(t)\text{,}$ where $m > 0\text{,}$ $c > 0\text{,}$ $k > 0\text{,}$ and $c^2 = 4km$ (system is critically damped). Write the solution as a definite integral.

###### Exercise6.3.6.

Solve

\begin{equation*} x(t) = e^{-t} + \int_0^t \cos(t-\tau) x(\tau) ~ d\tau . \end{equation*}
###### Exercise6.3.7.

Solve

\begin{equation*} x(t) = \cos t + \int_0^t \cos(t-\tau) x(\tau) ~ d\tau . \end{equation*}
###### Exercise6.3.8.

Compute ${\mathcal{L}}^{-1} \left\{ \frac{s}{{(s^2+4)}^2} \right\}$ using convolution.

###### Exercise6.3.9.

Write down the solution to $x''-2x=e^{-t^2}\text{,}$ $x(0)=0\text{,}$ $x'(0)=0$ as a definite integral. Hint: Do not try to compute the Laplace transform of $e^{-t^2}\text{.}$

###### Exercise6.3.101.

Let $f(t) = \cos t$ for $t \geq 0\text{,}$ and $g(t) = e^{-t}\text{.}$ Compute $f * g\text{.}$

$\frac{1}{2}(\cos t + \sin t - e^{-t})$

###### Exercise6.3.102.

Compute ${\mathcal{L}}^{-1} \left\{ \frac{5}{s^4+s^2} \right\}$ using convolution.

$5t-5\sin t$

###### Exercise6.3.103.

Solve $x''+x = \sin t\text{,}$ $x(0) = 0\text{,}$ $x'(0)=0$ using convolution.

$\frac{1}{2}(\sin t - t \cos t)$
Solve $x'''+x' = f(t)\text{,}$ $x(0) = 0\text{,}$ $x'(0)=0\text{,}$ $x''(0)=0$ using convolution. Write the result as a definite integral.
$\int_0^t f(\tau) \bigl( 1 - \cos (t-\tau)\bigr)~ d\tau$