Professional Documents
Culture Documents
Solving Initial Value Problems Using Laplace Transforms
Solving Initial Value Problems Using Laplace Transforms
Normally when we are given an initial value problem, we have to find the general
solution and compute the respective derivatives depending on the boundary
conditions. We can now use Laplace and inverse Laplace transforms to solve an
initial value problem.
Examples:
y ' ' y '2 y = 0
y( 0 ) = -2
y'( 0 ) = 5
1. Take the Laplace transform of both sides and simplify.
L{ y" y '2 y} = L{0}
L{ y"} L{ y ' } 2 L{ y} = 0
[ s 2Y ( s ) sy (0) y ' (0)] [ sY ( s ) y (0)] 2Y ( s ) = 0
s 2Y ( s ) sy (0) y ' (0) sY ( s ) y (0) 2Y ( s ) = 0
2. Plug in the initial conditions and combine.
s 2Y ( s ) sy (0) y ' (0) sY ( s ) y (0) 2Y ( s ) = 0
s 2Y ( s ) + 2 s 5 sY ( s ) + 2 2Y ( s ) = 0
s 2Y ( s ) + 2 s sY ( s ) 2Y ( s ) 3 = 0
3. Move all the move Y(s) terms to one side of the equation.
s 2Y ( s ) + 2 s sY ( s ) 2Y ( s ) 3 = 0
s 2Y ( s ) sY ( s ) 2Y ( s ) = 3 2 s
4. Factor out Y(s) from the LHS of the equation.
s 2Y ( s ) sY ( s ) 2Y ( s ) = 3 2 s
Y ( s )[ s 2 s 2] = 3 2 s
5. Solve for Y(s).
Y ( s )[ s 2 s 2] = 3 2 s
3 2s
s s2
6. Take the inverse Laplace transform of both sides.
3 2s
L1{Y ( s )} = L1 2
s s 2
3 2s
y (t ) = L1 2
s s 2
To find the inverse Laplace transform on the RHS, must consider
the method of partial fractions. The denominator factors nicely and
will result in two functions.
3 2s
3 2s
A
B
=
+
=
2
s s 2 ( s + 1)( s 2) s + 1 s 2
Y (s) =
s
s
2 s
4 s
e
e
[ s 2W ( s ) sw(0) w' (0)] + W ( s ) =
s
s
2. Plug in the initial conditions and combine.
e 2 s e 4 s
2
[ s W ( s ) sw(0) w' (0)] + W ( s ) =
s
s
2 s
4s
e
e
s 2W ( s ) s + W ( s ) =
s
s
3. Move all the move W(s) terms to one side of the equation.
e 2 s e 4 s
2
s W ( s) s + W (s ) =
s
s
2 s
4 s
e
e
s 2W ( s ) + W ( s ) =
s
s
s
2
s
s 2W ( s ) + W ( s ) =
s
s
e 2 s e 4 s
2
s
W ( s )[ s + 1] =
s
s
5. Solve for W(s).
e 2 s e 4 s
W ( s )[ s 2 + 1] =
s
s
s
e 2s
e 4s
s
W ( s) =
2
2
2
s ( s + 1) s ( s + 1) s + 1
6. Take the inverse Laplace transform of both sides.
e 2 s
e 4 s
s
2
L1{W ( s )} = L1 2
2
s ( s + 1) s ( s + 1) s + 1
e 2s
e 4 s
s
2
w(t ) = L1 2
2
s ( s + 1) s ( s + 1) s + 1
To find the inverse Laplace transform on the RHS, consider two
three functions. The first two are similar except the exponentials in
the denominator. Thus we know both of them take the form
e as F (s ) where in the first fraction a = 2 and in the second fraction a
1
. For F(s), we
= 4. They both share the function F ( s ) =
2
s ( s + 1)
must consider the method of partial fractions. The third one on the
s
other takes the form of 2
, where b = 1.
s + b2
s
1
L1 e 2t 2
= (1 cos(t 2) )u (t 2)
s s + 1
= u (t 2) u (t 2) cos(t 2)
s
1
L1 e 4t 2
= (1 cos(t 4) )u (t 4)
s s + 1
= u (t 4) cos(t 4)u (t 4)
s
L1 2
= cos t
s + 1
Therefore the solution to the IVP is given as
y (t ) = u (t 2) u (t 2) cos(t 2) + u (t 4) u (t 4) cos(t 4) + cos t .