Docsity

Solving Initial Value Problems With Laplace Transform-Differential Equations and Transforms-Handout, Exercises of Differential Equations and Transforms

Toggle sidebar
bg1
Differential Equations
© 2007 Paul Dawkins 37 http://tutorial.math.lamar.edu/terms.aspx
Solving IVP’s with Laplace Transforms
It’s now time to get back to differential equations. We’ve spent the last three sections learning
how to take Laplace transforms and how to take inverse Laplace transforms. These are going to
be invaluable skills for the next couple of sections so don’t forget what we learned there.
Before proceeding into differential equations we will need one more formula. We will need to
know how to take the Laplace transform of a derivative. First recall that f(n) denotes the nth
derivative of the function f. We now have the following fact.
Fact
Suppose that f, f’, f”,…f
(n
-
1)
are all continuous functions and f
(n)
is a piecewise continuous
function. Then,
()
{
}
() () ()
( )
()
( )
()
21
12
0000
nnn
nnn
fsFssfsfsff
--
--
¢
=-----LL
Since we are going to be dealing with second order differential equations it will be convenient to
have the Laplace transform of the first two derivatives.
{
}
(
)
(
)
{ } () () ()
2
0
00
ysYsy
ysYssyy
=-
¢¢¢
=--
L
L
Notice that the two function evaluations that appear in these formulas,
(
)
0
y and
(
)
0
y
¢
, are
often what we’ve been using for initial condition in out IVP’s. So, this means that if we are to
use these formulas to solve an IVP we will need initial conditions at t = 0.
While Laplace transforms are particularly useful for nonhomogeneous differential equations
which have Heaviside functions in the forcing function we’ll start off with a couple of fairly
simple problems to illustrate how the process works.
Example 1
Solve the following IVP.
(
)
(
)
1095,0102
yyytyy
¢¢¢¢
-+==-=
Solution
The first step in using Laplace transforms to solve an IVP is to take the transform of every term in
the differential equation.
{
}
{
}
{
}
{
}
1095
yyyt
¢¢¢
-+=LLLL
Using the appropriate formulas from our table of Laplace transforms gives us the following.
() () () () ()
( )
()
2
2
5
001009sYssyysYsyYs
s
¢
----+=
Plug in the initial conditions and collect all the terms that have a Y(s) in them.
( )
()
2
2
5
10912ssYss
s
-++-=
Solve for Y(s).
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download Solving Initial Value Problems With Laplace Transform-Differential Equations and Transforms-Handout and more Exercises Differential Equations and Transforms in PDF only on Docsity!

© 2007 Paul Dawkins 37 http://tutorial.math.lamar.edu/terms.aspx

Solving IVP’s with Laplace Transforms

It’s now time to get back to differential equations. We’ve spent the last three sections learning

how to take Laplace transforms and how to take inverse Laplace transforms. These are going to

be invaluable skills for the next couple of sections so don’t forget what we learned there.

Before proceeding into differential equations we will need one more formula. We will need to

know how to take the Laplace transform of a derivative. First recall that f

(n)

denotes the n

th

derivative of the function f. We now have the following fact.

Fact

Suppose that f , f’, f”,…f

(n-1)

are all continuous functions and f

(n)

is a piecewise continuous

function. Then,

( )

( )

( )

1 2 2 1

n n n n n n

f s F s s f s f sf f


L = - - - L- -

Since we are going to be dealing with second order differential equations it will be convenient to

have the Laplace transform of the first two derivatives.

2

y sY s y

y s Y s sy y

L

L

Notice that the two function evaluations that appear in these formulas,

y 0 and

y 0

, are

often what we’ve been using for initial condition in out IVP’s. So, this means that if we are to

use these formulas to solve an IVP we will need initial conditions at t = 0.

While Laplace transforms are particularly useful for nonhomogeneous differential equations

which have Heaviside functions in the forcing function we’ll start off with a couple of fairly

simple problems to illustrate how the process works.

Example 1 Solve the following IVP.

y ¢¢ - 10 y ¢ + 9 y = 5 , t y 0 = - 1 y ¢ 0 = 2

Solution

The first step in using Laplace transforms to solve an IVP is to take the transform of every term in

the differential equation.

y 10 y 9 y 5 t

L - L + L =L

Using the appropriate formulas from our table of Laplace transforms gives us the following.

2

2

s Y s sy 0 y 0 10 sY s y 0 9 Y s

s

Plug in the initial conditions and collect all the terms that have a Y(s) in them.

2

2

s 10 s 9 Y s s 12

s

Solve for Y(s).

© 2007 Paul Dawkins 38 http://tutorial.math.lamar.edu/terms.aspx

2

s

Y s

s s s s s

At this point it’s convenient to recall just what we’re trying to do. We are trying to find the

solution, y(t) , to an IVP. What we’ve managed to find at this point is not the solution, but its

Laplace transform. So, in order to find the solution all that we need to do is to take the inverse

transform.

Before doing that let’s notice that in its present form we will have to do partial fractions twice.

However, if we combine the two terms up we will only be doing partial fractions once. Not only

that, but the denominator for the combined term will be identical to the denominator of the first

term. This means that we are going to partial fraction up a term with that denominator no matter

what so we might as well make the numerator slightly messier and then just partial fraction once.

This is one of those things where we are apparently making the problem messier, but in the

process we are going to save ourselves a fair amount of work!

Combining the two terms gives,

2 3

2

s s

Y s

s s s

The partial fraction decomposition for this transform is,

2

A B C D

Y s

s s s s

Setting numerators equal gives,

2 3 2 2

5 + 12 s - s = As s - 9 s - 1 + B s - 9 s - 1 + Cs s - 1 + Ds s - 9

Picking appropriate values of s and solving for the constants gives,

s B B

s D D

s C C

s A A

= = fi =

= = - fi = -

= = fi =

= = - + fi =

Plugging in the constants gives,

50 5 31

81 9 81

2

Y s

s s s s

Finally taking the inverse transform gives us the solution to the IVP.

9

t t

y t = + t + e - e

© 2007 Paul Dawkins 40 http://tutorial.math.lamar.edu/terms.aspx

2 3

A B C D

Y s

s s s s

Setting numerator equal gives,

3 2

2

3 2

s s A s B s s C s s D s

A B s A B C s A B C D s

A B C D

In this case it’s probably easier to just set coefficients equal and solve the resulting system of

equation rather than pick values of s. So, here is the system and its solution.

3

2

1

0

s A B

A B

s A B C

s A B C D

C D

s A B C D

Ô = - =

Ô

fi

˝

Ô

Ô

We will get a common denominator of 125 on all these coefficients and factor that out when we

go to plug them back into the transform. Doing this gives,

2!

2!

2 3

1

2

Y s

s s

s s

Ê ˆ

= Á + - - ˜

Á ˜

Ë ¯

Notice that we also had to factor a 2 out of the denominator of the first term and fix up the

numerator of the last term in order to get them to match up to the correct entries in our table of

transforms.

Taking the inverse transform then gives,

2

2 2 2 2

t

t t t

y t t t


Ê ˆ

Á ˜

Ë ¯

e e e e

Example 3 Solve the following IVP.

y 6 y 15 y 2sin 3 t , y 0 1 y 0 4

Solution

Take the Laplace transform of everything and plug in the initial conditions.

( )

( ) ( )

2

2

2

2

s Y s sy y sY s y Y s

s

s s Y s s

s

Now solve for Y(s) and combine into a single term as we did in the previous two examples.

( )( )

3 2

2 2

s s s

Y s

s s s

© 2007 Paul Dawkins 41 http://tutorial.math.lamar.edu/terms.aspx

Now, do the partial fractions on this. First let’s get the partial fraction decomposition.

2 2

As B Cs D

Y s

s s s

Now, setting numerators equal gives,

3 2 2 2

3 2

s s s As B s s Cs D s

A C s A B D s A B C s B D

Setting coefficients equal and solving for the constants gives,

3

2

1

0

s A C

A B

s A B D

s A B C

C D

s B D

Ô

Ô

fi

˝

Ô

Ô

Now, plug these into the decomposition, complete the square on the denominator of the second

term and then fix up the numerators for the inverse transform process.

2 2

2 2

6

3

3 6

2 2 2 2

s s

Y s

s s s

s s

s

s

s s

s s

s s

Ê ˆ

Á ˜

Ë ¯

Ê ˆ

= Á + ˜

Á ˜

Ë ¯

Ê ˆ

= Á + - - ˜

Á ˜

Ë ¯

Finally, take the inverse transform.

3 3

cos 3 sin 3 11 cos 6 sin 6

t t

y t t t t t

Ê ˆ

Á ˜

Ë ¯

e e

To this point we’ve only looked at IVP’s in which the initial values were at t = 0. This is because

we need the initial values to be at this point in order to take the Laplace transform of the

derivatives. The problem with all of this is that there are IVP’s out there in the world that have

initial values at places other than t = 0. Laplace transforms would not be as useful as it is if we

couldn’t use it on these types of IVP’s. So, we need to take a look at an example in which the

initial conditions are not at t = 0 in order to see how to handle these kinds of problems.

Example 4 Solve the following IVP.

y 4 y cos t 3 4 , t y 3 0 y 3 7

Solution

The first thing that we will need to do here is to take care of the fact that initial conditions are not

at t = 0. The only way that we can take the Laplace transform of the derivatives is to have the

initial conditions at t = 0.

This means that we will need to formulate the IVP in such a way that the initial conditions are at t

© 2007 Paul Dawkins 43 http://tutorial.math.lamar.edu/terms.aspx

numerator a little messier, and reduced the number of partial fractions required down from two to

one. Note that all the terms in this transform that had only powers of s in the denominator were

combined for exactly this reason.

In this transform however, if we combined both of the remaining terms into a single term we

would be left with a fairly involved partial fraction problem. Therefore, in this case, it would

probably be easier to just do partial fractions twice. We’ve done several partial fractions

problems in this section and many partial fraction problems in the previous couple of sections so

we’re going to leave the details of the partial fractioning to you to check. Partial fractioning each

of the terms in our transform gives us the following.

( )

1

17

2 2

2 11 17 17

16 16 4

3 3 2

s

s s s s

s s

s s s s s s

Ê - + ˆ

Á ˜

Ë ¯

Plugging these into our transform and combining like terms gives us

11 17 273

4 16 272

3 2 2

2! 11 17 273

2! 4 16 272

3 2 2 2

s

U s

s s s s s

s

s s s s s s

Ê ˆ

Á ˜

Ë ¯

Ê ˆ

Á ˜

Ë ¯

Now, taking the inverse transform will give the solution to our new IVP. Don’t forget to use h ’s

instead of t ’s!

( ) ( ( ) ( ))

2 4

4sin cos

u

h

h h h h h

= + + - e + -

This is not the solution that we are after of course. We are after y(t). However, we can get this

by noticing that

y t = y h + 3 = u h = u t - 3

So the solution to the original IVP is,

( )

( ( ) ( ))

( )

( ( ) ( ))

2 4 3

4 3 2

3 3 4sin 3 cos 3

4sin 3 cos 3

t

t

y t t t t t

y t t t t t

e

e

So, we can now do IVP’s that don’t have initial conditions that are at t = 0. We also saw in the

last example that it isn’t always the best to combine all the terms into a single partial fraction

problem as we have been doing prior to this example.

The examples worked in this section would have been just as easy, if not easier, if we had used

techniques from the previous chapter. They were worked here using Laplace transforms to

illustrate the technique and method.