\(\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}}\)

If you like us, please share us on social media.
The latest UCD Hyperlibrary newsletter is now complete, check it out.

MathWiki: The Dynamic Mathematics E-textbook > Analysis > Ordinary Differential Equations > Differential Equations for Engineers > The Laplace transform > Transforms of derivatives and ODEs

Copyright (c) 2006-2014 MindTouch Inc.

This file and accompanying files are licensed under the MindTouch Master Subscription Agreement (MSA).

At any time, you shall not, directly or indirectly: (i) sublicense, resell, rent, lease, distribute, market, commercialize or otherwise transfer rights or usage to: (a) the Software, (b) any modified version or derivative work of the Software created by you or for you, or (c) MindTouch Open Source (which includes all non-supported versions of MindTouch-developed software), for any purpose including timesharing or service bureau purposes; (ii) remove or alter any copyright, trademark or proprietary notice in the Software; (iii) transfer, use or export the Software in violation of any applicable laws or regulations of any government or governmental agency; (iv) use or run on any of your hardware, or have deployed for use, any production version of MindTouch Open Source; (v) use any of the Support Services, Error corrections, Updates or Upgrades, for the MindTouch Open Source software or for any Server for which Support Services are not then purchased as provided hereunder; or (vi) reverse engineer, decompile or modify any encrypted or encoded portion of the Software.

A complete copy of the MSA is available at http://www.mindtouch.com/msa

Transforms of derivatives and ODEs

6.2.1 Transforms of derivatives

Let us see how the Laplace transform is used for differential equations. First let us try to find the Laplace transform of a function that is a derivative. That is, suppose \(g((t(\) is a continuous differentiable function of exponential order. Then

 ∫ ∫ ′ ∞ -st ′ [ -st ]∞ ∞ -st L {g (t)} = e g(t) dt = e g(t) t=0 - (- s)e g(t) dt = - g(0) + sL {g (t)}. 0 0

We repeat this procedure for higher derivatives. The results are listed in Table 6.2. The procedure also works for piecewise smooth functions, that is functions that are piecewise continuous with a piecewise continuous derivative. The fact that the function is of exponential order is used to show that the limits appearing above exist. We will not worry much about this fact.

f (t) L {f(t)} = F(s)
g′(t) sG (s) - g(0)
g′′(t) s2G (s) - sg(0) - g′(0)
g′′′(t) s3G (s) - s2g(0 ) - sg′(0 ) - g′′(0)


Table 6.2: Laplace transforms of derivatives (G(s) = L{g(t)} as usual).

 Exercise 6.2.1: Verify Table 6.2.

6.2.2 Solving ODEs with the Laplace transform

Notice that the Laplace transform turns differentiation into multiplication by \(s\). Let us see how to apply this fact to differential equations.

Example 6.2.1: Take the equation

\( x''(t) + x(t) = \cos (2t)\),   \(x(0)=0\),   \(x'(0)=1\).

We will take the Laplace transform of both sides. By \(X(s)\) we will, as usual, denote the Laplace transform of \(x(t)\).

 ′′ L {x (t) + x(t)} = L {cos(2t)}, 2 ′ ---s-- s X(s) - sx(0) - x (0) + X (s) = s2 + 4.

We plug in the initial conditions now—this makes the computations more streamlined—to obtain

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

We solve for \(X(s)\),

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

We use partial fractions (exercise) to write

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

Now take the inverse Laplace transform to obtain

\[ x(t) = \dfrac{1}{3}\cos (t) - \dfrac{1}{3} \cos (2t) + \sin (t).\]

The procedure for linear constant coefficient equations is as follows. We take an ordinary differential equation in the time variable \(t\). We apply the Laplace transform to transform the equation into an algebraic (non differential) equation in the frequency domain. All the \(x(t)\), \(x'(t)\), \(x''(t)\), and so on, will be converted to \(X(s)\), \(sX(s)-x(0)\), \(s^2X(s) - sx(0) - x'(0)\), and so on. We solve the equation for \(X(s)\). Then taking the inverse transform, if possible, we find \(x(t)\).

It should be noted that since not every function has a Laplace transform, not every equation can be solved in this manner. Also if the equation is not a linear constant coefficient ODE, then by applying the Laplace transform we may not obtain an algebraic equation.

6.2.3 Using the Heaviside function

Before we move on to more general equations than those we could solve before, we want to consider the Heaviside function. See Figure 6.1 for the graph.

 (|| u(t) = {|0 if t < 0, |(1 if t ≥ 0.


Figure 6.1: Plot of the Heaviside (unit step) function \(u(t)\).

This function is useful for putting together functions, or cutting functions off. Most commonly it is used as \(u(t-a)\) for some constant \(a\). This just shifts the graph to the right by \(a\). That is, it is a function that is 0 when \(<a\) and 1 when \(t \ge a\). Suppose for example that \(f(t)\) is a “signal” and you started receiving the signal \(\sin t\) at time \( t = \pi\). The function \(f(t)\) should then be defined as

 ( ||{ 0 if t < π, f(t) = ||( sin t if t ≥ π.

Using the Heaviside function, \(f(t)\) can be written as

\[ f(t) = u(t- \pi) \sin t\]

Similarly the step function that is 1 on the interval \( [1,2)\) and zero everywhere else can be written as

\[ u(t-1) - u(t-2).\]

The Heaviside function is useful to define functions defined piecewise. If you want to define f(tj such that \(f(t)=t\) when \(t\) is in \([0,1]\), \(f(t) = -t +2\) when \(t\) is in \([1,2)\) and \(f(t)=0\) otherwise, you can use the expression

\[ f(t) = t \left(u(t) -u(t-1)\right) + (-t+2) \left(u(t-1)-u(t-2) \right).\]

Hence it is useful to know how the Heaviside function interacts with the Laplace transform. We have already seen that

\[ \mathcal{L} \{ u(t-a)\} = \dfrac{e^{-as}}{2}.\]

Shifting Property

This can be generalized into a shifting property or second shifting property.

\[ \mathcal{L}  \{ f(t-a)u(t-a) \} = e^{-as} \mathcal{L} \{ f(t) \}. \tag {6.1}\]


Example 6.2.2: Suppose that the forcing function is not periodic. For example, suppose that we had a mass-spring system

\( x''(t) + x(t) = f(t)\),   \(x(0) = 0\),   \(x'(0) = 0\),

where \(f(t)=1\) if \(1 \le t < 5\) and zero otherwise. We could imagine a mass-spring system, where a rocket is fired for 4 seconds starting at \(t=1\). Or perhaps an RLC circuit, where the voltage is raised at a constant rate for 4 seconds starting at \(t=1\), and then held steady again starting at \(t=5\).

We can write \(f(t) = u(t-1) - u(t-5)\). We transform the equation and we plug in the initial conditions as before to obtain

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

We solve for \(X(s)\) to obtain

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

We leave it as an exercise to the reader to show that

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

In other words L {1 - cos t} =--1-- s(s2+1) . So using (6.1) we find

 { } -1 e-s -1 {-s } ( ) L ---2---- = L e L {1 - cos t} = 1 - cos(t - 1) u(t - 1). s(s + 1)


 { } -1 --e-5s-- -1{ -5s } ( ) L s(s2 + 1) = L e L{1 - cost} = 1 - cos(t - 5) u(t - 5).

Hence, the solution is

\[ x(t) = \left( 1 - \cos (t-1) \right) u(t-1) - \left(1-\cos (t-5) \right) u(t-5).\]

The plot of this solution is given in Figure 6.2.



Figure 6.2: Plot of \(x(t)\).

6.2.4 Transfer functions

Laplace transform leads to the following useful concept for studying the steady state behavior of a linear system. Suppose we have an equation of the form

\[ Lx = f(t),\]

where \(L\) is a linear constant coefficient differential operator. Then \(f(t)\) is usually thought of as input of the system and \(x(t)\) is thought of as the output of the system. For example, for a mass-spring system the input is the forcing function and output is the behavior of the mass. We would like to have an convenient way to study the behavior of the system for different inputs.

Let us suppose that all the initial conditions are zero and take the Laplace transform of the equation, we obtain the equation

\[ A(s)X(s) = F(s). \]

Solving for the ratio X(s)∕F(s) we obtain the so called transfer function H (s) = 1∕A(s) .

\[ H(s) = \dfrac{X(s)}{F(s)}\]

In other words, \(X(s) = H(s)F(s)\). We obtain an algebraic dependence of the output of the system based on the input. We can now easily study the steady state behavior of the system given different inputs by simply multiplying by the transfer function.


Example 6.2.3: Given x′′ + ω 20x = f (t) , let us find the transfer function (assuming the initial conditions are zero).

First, we take the Laplace transform of the equation.

 2 2 s X (s) + ω0X (s) = F (s).

Now we solve for the transfer function X(s)∕F (s) .

H (s) = X(s)-= ---1---. F(s) s2 + ω 20

Let us see how to use the transfer function. Suppose we have the constant input f (t) = 1 . Hence F (s) = 1∕s , and

 1 1 X(s) = H(s)F (s) = ------2--. s2 + ω 0s

Taking the inverse Laplace transform of X (s) we obtain

 1 --cos(ω-0t) x (t) = ω 2 . 0

6.2.5 Transforms of integrals

A feature of Laplace transforms is that it is also able to easily deal with integral equations. That is, equations in which integrals rather than derivatives of functions appear. The basic property, which can be proved by applying the definition and doing integration by parts, is

\[ \mathcal{L} \left\{ \int_0^t f(\tau) \, d\tau \right\} = \dfrac{1}{s}F(s).\]

It is sometimes useful (e.g. for computing the inverse transform) to write this as

\[   \int_0^t f(\tau) \, d\tau  = \mathcal{L}^{-1} \left\{\dfrac{1}{s}F(s)\right\}.\]


Example 6.2.4: To compute \( \mathcal{L}^{-1} \left\{\dfrac{1}{s(s^2+1)}\right\} \) we could proceed by applying this integration rule.

\[  \mathcal{L}^{-1} \left\{ \dfrac{1}{2} \dfrac{1}{s^2+1} \right\} = \int_0^t \mathcal{L}^{-1} \left \{ \dfrac{1}{s^2+1} \right\} = \int_0^t \sin \tau \, d\tau = 1 -\cos t.\]


Example 6.2.5: An equation containing an integral of the unknown function is called an integral equation. For example, take

\[ t^2 = \int _0^t e^{\tau}x(\tau)\, d\tau\]

where we wish to solve for \(x(t)\). We apply the Laplace transform and the shifting property to get

\[ \dfrac{2}{s^3} = \dfrac{1}{s} \mathcal{L} \{ e^tx(t)\} = \dfrac{1}{s}X(s-1),\]

where \(X(s) = \mathcal{L} \{x(t) \}\). Thus

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

We use the shifting property again to get

\[ x(t) = 2e^{-t}t.\]

6.2.6 Exercises

Exercise 6.2.2: Using the Heaviside function write down the piecewise function that is 0 for t < 0 , t2 for t in [0,1] and \(t\) for \(t>1\).

Exercise 6.2.3: Using the Laplace transform solve

mx ′′ + cx ′ + kx = 0, x(0) = a, x′(0 ) = b,

where m > 0 , c > 0 , k > 0 , and  2 c - 4km > 0 (system is overdamped).

Exercise 6.2.4: Using the Laplace transform solve

mx ′′ + cx ′ + kx = 0, x(0) = a, x′(0 ) = b,

where m > 0 , c > 0 , k > 0 , and  2 c - 4km < 0 (system is underdamped).

Exercise 6.2.5: Using the Laplace transform solve

mx ′′ + cx ′ + kx = 0, x(0) = a, x′(0 ) = b,

where m > 0 , c > 0 , k > 0 , and  2 c = 4km (system is critically damped).

Exercise 6.2.6: Solve x′′ + x = u(t - 1) for initial conditions x(0 ) = 0 and x′(0 ) = 0 .

Exercise 6.2.7: Show the differentiation of the transform property. Suppose L {f(t)} = F (s) , then show

L {-tf(t)} = F′(s).

Hint: Differentiate under the integral sign.

Exercise 6.2.8: Solve  ′′′ 3 x + x = t u(t - 1) for initial conditions x (0) = 1 and  ′ x(0) = 0 , x′′(0) = 0 .

Exercise 6.2.9: Show the second shifting property: L{f (t - a )u(t - a )} = e-asL {f(t)} .

Exercise 6.2.10: Let us think of the mass-spring system with a rocket from Example 6.2.2. We noticed that the solution kept oscillating after the rocket stopped running. The amplitude of the oscillation depends on the time that the rocket was fired (for 4 seconds in the example). a) Find a formula for the amplitude of the resulting oscillation in terms of the amount of time the rocket is fired. b) Is there a nonzero time (if so what is it?) for which the rocket fires and the resulting oscillation has amplitude 0 (the mass is not moving)?

Exercise 6.2.11: Define

 (||(t - 1)2 if 1 ≤ t < 2, |||{ f (t) = |||3 - t if 2 ≤ t < 3, ||(0 otherwise.

a) Sketch the graph of f(t) . b) Write down f (t) using the Heaviside function. c) Solve x ′′ + x = f(t) , x(0) = 0 , x′(0) = 0 using Laplace transform.

Exercise 6.2.12: Find the transfer function for mx ′′ + cx′ + kx = f(t) (assuming the initial conditions are zero).

Exercise 6.2.101: Using the Heaviside function u(t) , write down the function

 (| ||||0 if x < 1 f(x) = {|t - 1 if 1 ≤ x < 2 . ||||( 1 if x ≥ 2

Exercise 6.2.102: Solve x′′ - x = (t2 - 1)u(t - 1) for initial conditions x(0) = 1 , x′(0) = 2 using the Laplace transform.

Exercise 6.2.103: Find the transfer function for x ′ + x = f(t) (assuming the initial conditions are zero).

Last modified
15:23, 7 Nov 2013


This page has no custom tags.


Lower Divisional

Creative Commons License UC Davis GeoWiki by University of California, Davis is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. Permissions beyond the scope of this license may be available at copyright@ucdavis.edu. Terms of Use