ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL
Lesson 32 -- Using Laplace Tranforms to Solve Initial Value Problems
Prof. Douglas B. Meade
Industrial Mathematics Institute
Department of Mathematics
University of South Carolina
Columbia, SC 29208
URL: http://www.math.sc.edu/~meade/
E-mail: meade@math.sc.edu
Copyright 2001 by Douglas B. Meade
All rights reserved
-------------------------------------------------------------------
Outline of Lesson 32
32.A Definition of Laplace Transform
32.B Laplace Transform and Initial Value Problems
Initialization
Warning, the name changecoords has been redefined
The Laplace transform of a function f defined on the interval is
for all for which the (improper) integral exists.
For example, the Laplace transform of the constant function is
which Maple evaluates to
The built-in Maple command for evaluating Laplace transforms is laplace , found in the inttrans package.
Note that the laplace command obtains this result without any assumptions on the transform variable.
Similarly, the Laplace transform of an exponential function by the definition
is
The built-in command does not require the additional information that , giving immediately the transform
The laplace command applies many of the properties and identities commonly found in tables of Laplace transforms. For example, the operational rule for the transform of the derivatative is
where is the transform of . Maple renders the rule as
The appearance of this result can be improved with the use of the alias command in which the symbol is made to stand for the string "laplace(f(t),t,s)". With this alias in place, the derivative rule reads
The Maple command for the inverse Laplace transform is invlaplace , also in the inttrans package. For example, suppose the Laplace transform of a function is known to be , represented in Maple by
The function whose Laplace transform is the given function is called the inverse Laplace transform of , and is found in Maple with the command
This result can also be obtained from the partial fraction decomposition of the function in the transform domain
and an inspection of the form of the fractions returned. Each fraction is recognized as the transform of an exponential function, and is deduced by the same type of pattern recognition that is used to evaluate definite integrals by hand.
The Laplace transform of a linear ODE with initial conditions for an unknown function x = is an algebraic equation for the transform function X = . The key is to solve this algebraic equation for X, then apply the inverse Laplace transform to obtain the solution to the IVP. An example demonstrates the step-by-step implementation of this procedure.
Suppose the IVP is
The Laplace transform of the ODE is
where again the alias command has been used to simplify the notation.
Substitution of the initial conditions lead to the algebraic equation
which is next solved for , the Laplace transform of the unknown function . A little algebra shows that the Laplace transform of the solution is the rational function
or better still,
the inverse Laplace transform of which is
the solution to the IVP.
Note that if initial conditions are not provided, the Laplace transform still can be used to obtain the general solution. The Laplace transform of the differential equation is still computed, and again solved for , the transform of the unknown function . However, this time the expression for will contain the unknown values of and , as the following calculation shows.
If the inverse Laplace transform of this expression for is obtained, it will contain the parameters and , as the following shows.
Collecting terms in and puts the expression for into the form
Note that this result is a solution to the ODE, as verified by
The form of the general solution illustrates how the initial conditions enter into the solution of an initial value problem. In particular, when the initial conditions are substituted into the general solution via
the result is idential to the solution obtained previously :
This process can be automated with the use of dsolve and the optional argument method=laplace :
`dsolve/inttrans/solveit:`, `Transform of eqns is`, {_s1^2*`laplace/inte\ rnal`(x(t), t, _s1)-4-2*_s1+2*_s1*`laplace/internal`(x(t), t, _s1)+5*`la\ place/internal`(x(t), t, _s1)-3/(_s1^2+9)} `dsolve/inttrans/solveit:`, `Algebraic Solution is`, {`laplace/internal`\ (x(t), t, _s1) = (4*_s1^2+39+2*_s1^3+18*_s1)/(_s1^4+14*_s1^2+2*_s1^3+18*\ _s1+45)}
Laplace transforms are also useful when the forcing function is not explicitly given. For example, if the ODE is
the solution can be written, using the Laplace transform, as
Careful inspection of this result reminds us that this first-order linear ODE has as its integrating factor
Note that the result obtained with the Laplace transform provides more detailed information about the dependence on the initial condition and the forcing function than is obtained with the basic dsolve command, which only gives
`Methods for first order ODEs:` `--- Trying classification methods ---` `trying a quadrature` `trying 1st order linear` `<- 1st order linear successful`
as the solution.
[Back to ODE Powertool Table of Contents]