Skip to main content
Mathematics LibreTexts

6.3: Convolution

  • Page ID
    32222
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    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\), and define the convolution\(^{1}\) of \(f(t)\) and \(g(t)\) as

    \[\label{eq:1} (f \ast g)(t) \overset{\rm{def}}{=} \int_0^t f(\tau)g(t- \tau)d\tau . \]

    As you can see, the convolution of two functions of \(t\) is another function of \(t\).

    Example \(\PageIndex{1}\)

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

    \[ (f \ast g)(t) = \int_0^t e^{\tau}(t- \tau)d\tau = e^t-t-1. \nonumber \]

    To solve the integral we did one integration by parts.

    Example \(\PageIndex{2}\)

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

    \[ (f \ast g)(t) = \int_0^t \sin(\omega \tau)\cos(\omega (t- \tau))d\tau. \nonumber \]

    We apply the identity

    \[ \cos(\theta)\sin(\psi)= \dfrac{1}{2}(\sin(\theta + \psi)-\sin(\theta -\psi )) \nonumber \]

    Hence,

    \[\begin{align}\begin{aligned} (f \ast g)(t) & = \int_0^t \dfrac{1}{2}(\sin(\omega t) - \sin(\omega t-2 \omega \tau )) d\tau \\ &=\left[ \dfrac{1}{2} \tau \sin(\omega t)+\dfrac{1}{4\omega} \cos(2\omega \tau -\omega t) \right]_{\tau =0}^t \\ &= \dfrac{1}{2} t \sin(\omega t). \end{aligned} \end{align} \nonumber \]

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

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

    \[\begin{align}\begin{aligned} f*g &= g* f \\ (c\,f)*g &= f*(c\,g)=c\,(f*g) \\ (f*g)*h&=f*(g*h) \end{aligned}\end{align} \nonumber \]

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

    Theorem \(\PageIndex{1}\)

    Let \(f(t)\) and \(g(t)\) be of exponential type, then

    \[ \mathcal{L}\{(f \ast g)(t)\}= \mathcal{L} \left\{ \int_0^t f(\tau)g(t- \tau)d\tau \right\}=\mathcal{L}\{f(t)\} \mathcal{L} \{g(t)\}. \nonumber \]

    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.

    Example \(\PageIndex{3}\)

    Suppose we have the function of \(s\) defined by

    \[ \dfrac{1}{(s+1)s^2}=\dfrac{1}{s+1}\dfrac{1}{s^2}. \nonumber \]

    We recognize the two entries of Table 6.1.2. That is

    \[ \mathcal{L}^{-1} \left\{ \dfrac{1}{s+1} \right\}=e^{-t}~~~~~~ {\rm{and}}~~~~~~ \mathcal{L}^{-1} \left\{ \dfrac{1}{s^2} \right\}=t. \nonumber \]

    Therefore,

    \[ \mathcal{L}^{-1} \left\{ \dfrac{1}{s+1} \dfrac{1}{s^2} \right\}=\int_0^t \tau e^{-(t- \tau)}d\tau =e^{-t}+t-1. \nonumber \]

    The calculation of the integral involved an integration by parts.

    Solving 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.

    Example \(\PageIndex{4}\)

    Find the solution to

    \[ x''+\omega_0^2x=f(t),~~~~~x(0)=0,~~~~~x'(0)=0, \nonumber \]

    for an arbitrary function \(f(t)\).

    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.

    \[ s^2X(s)+ \omega_0^2X(s)=F(s), \nonumber \]

    or in other words

    \[ X(s)=F(s) \dfrac{1}{s^2+ \omega_0^2}. \nonumber \]

    We know

    \[ \mathcal{L}^{-1} \left\{ \dfrac{1}{s^2+ \omega_0^2} \right\}= \dfrac{\sin(\omega_0 t)}{\omega_0}. \nonumber \]

    Therefore,

    \[ x(t)= \int_0^tf(\tau)\dfrac{\sin(\omega_0( t-\tau))}{\omega_0}d\tau , \nonumber \]

    or if we reverse the order

    \[ x(t)= \int_0^t \dfrac{\sin(\omega_0 \tau)}{\omega_0}f(t-\tau)d\tau . \nonumber \]

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

    \[ x(t)= \int_0^t \dfrac{\sin(\omega_0 \tau)}{\omega_0}\cos(\omega_0(t-\tau))d\tau = \dfrac{1}{\omega_0}\int_0^t \sin(\omega_0 \tau)\cos(\omega_0(t-\tau))d\tau . \nonumber \]

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

    \[ x(t)=\left( \dfrac{1}{\omega_0}\right) \left( \dfrac{1}{2}t\sin(\omega_0t)\right) = \dfrac{1}{2\omega_0} \sin(\omega_0t). \nonumber \]

    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.

    Volterra Integral Equation

    A common integral equation is the Volterra integral equation\(^{2}\)

    \[ x(t) = f(t) + \int_0^t g(t-\tau)x(\tau)\, d\tau \nonumber \]

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

    \[X(s)=F(s)+G(s)X(s), \nonumber \]

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

    \[ X(s) = \dfrac{F(s)}{1-G(s)}. \nonumber \]

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

    Example \(\PageIndex{5}\)

    Solve

    \[ x(t) = e^{-t} + \int _0^t \sinh(t-\tau)x(\tau)\, d\tau \nonumber \]

    We apply Laplace transform to obtain

    \[ X(s) = \dfrac{1}{s+1} + \dfrac{1}{s^2-1}X(s), \nonumber \]

    or

    \[ X(s) = \dfrac{\dfrac{1}{s+1}}{1-\dfrac{1}{s^2-1}} = \dfrac{s-1}{s^2-2}= \dfrac{s}{s^2-2}-\dfrac{1}{s^2-2}. \nonumber \]

    It is not hard to apply Table 6.1.1 to find

    \[ x(t) = \cosh \left( \sqrt{2}\, t \right) -\dfrac{1}{\sqrt{2}} \sinh \left(\sqrt{2}\,t \right). \nonumber \]

    Footnotes

    [1] For those that have seen convolution defined before, you may have seen it defined as \(f\ast g)(t)=\int_{-\infty}^{\infty}f(\tau )g(t-\tau )d\tau \). This definition agrees with \(\eqref{eq:1}\) if you define \(f(t)\) and \(g(t)\) to be zero for \(t<0\). 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.

    [2] Named for the Italian mathematician Vito Volterra (1860–1940).


    This page titled 6.3: Convolution is shared under a not declared license and was authored, remixed, and/or curated by Jiří Lebl.

    • Was this article helpful?