Wednesday 20 June 2012

Inverse Laplace Transforms


Finding the Laplace transform of a function is not terribly difficult if we’ve got a table of transforms in front of us to use as we saw in the last section.  What we would like to do now is go the other way.

We are going to be given a transform, F(s), and ask what function (or functions) did we have originally.  As you will see this can be a more complicated and lengthy process than taking transforms.  In these cases we say that we are finding theInverse Laplace Transform of F(s) and use the following notation.



As with Laplace transforms, we’ve got the following fact to help us take the inverse transform.

Fact
Given the two Laplace transforms F(s) and G(s) then
                                 
for any constants a and b.

So, we take the inverse transform of the individual transforms, put any constants back in and then add or subtract the results back up.

Let’s take a look at a couple of fairly simple inverse transforms.

Example 1  Find the inverse transform of each of the following.
(a)    [Solution]
(b)    [Solution]
(c)    [Solution]
(d)    [Solution]

Solution
I’ve always felt that the key to doing inverse transforms is to look at the denominator and try to identify what you’ve got based on that.  If there is only one entry in the table that has that particular denominator, the next step is to make sure the numerator is correctly set up for the inverse transform process.  If it isn’t, correct it (this is always easy to do) and then take the inverse transform.

If there is more than one entry in the table has a particular denominator, then the numerators of each will be different, so go up to the numerator and see which one you’ve got.  If you need to correct the numerator to get it into the correct form and then take the inverse transform.

So, with this advice in mind let’s see if we can take some inverse transforms.

(a) 

From the denominator of the first term it looks like the first term is just a constant.  The correct numerator for this term is a “1” so we’ll just factor the 6 out before taking the inverse transform.  The second term appears to be an exponential with a = 8 and the numerator is exactly what it needs to be.  The third term also appears to be an exponential, only this time  and we’ll need to factor the 4 out before taking the inverse transforms.

So, with a little more detail than we’ll usually put into these,
                                                   
(b)  

The first term in this case looks like an exponential with  and we’ll need to factor out the 19.  Be careful with negative signs in these problems, it’s very easy to lose track of them.

The second term almost looks like an exponential, except that it’s got a 3s instead of just an s in the denominator.  It is an exponential, but in this case we’ll need to factor a 3 out of the denominator before taking the inverse transform.

The denominator of the third term appears to be #3 in the table with .  The numerator however, is not correct for this.  There is currently a 7 in the numerator and we need a 4! = 24 in the numerator.  This is very easy to fix.  Whenever a numerator is off by a multiplicative constant, as in this case, all we need to do is put the constant that we need in the numerator.  We will just need to remember to take it back out by dividing by the same constant.

So, let’s first rewrite the transform.
                                           

So, what did we do here?  We factored the 19 out of the first term.  We factored the 3 out of the denominator of the second term since it can’t be there for the inverse transform and in the third term we factored everything out of the numerator except the 4! since that is the portion that we need in the numerator for the inverse transform process.

Let’s now take the inverse transform.
                                                   

(c)  

In this part we’ve got the same denominator in both terms and our table tells us that we’ve either got #7 or #8.  The numerators will tell us which we’ve actually got.  The first one has an s in the numerator and so this means that the first term must be #8 and we’ll need to factor the 6 out of the numerator in this case.  The second term has only a constant in the numerator and so this term must be #7, however, in order for this to be exactly #8 we’ll need to multiply/divide a 5 in the numerator to get it correct for the table.

The transform becomes,
                                               

Taking the inverse transform gives,
                                                  

(d)  

In this case the first term will be a sine once we factor a 3 out of the denominator, while the second term appears to be a hyperbolic sine (#17).  Again, be careful with the difference between these two.  Both of the terms will also need to have their numerators fixed up.  Here is the transform once we’re done rewriting it.
                                                

Notice that in the first term we took advantage of the fact that we could get the 2 in the numerator that we needed by factoring the 8.  The inverse transform is then,
                                                 

So, probably the best way to identify the transform is by looking at the denominator.  If there is more than one possibility use the numerator to identify the correct one.   Fix up the numerator if needed to get it into the form needed for the inverse transform process.  Finally, take the inverse transform.

Let’s do some slightly harder problems.  These are a little more involved than the first set.

Example 2  Find the inverse transform of each of the following.
(a)    [Solution]
(b)    [Solution]
(c)    [Solution]
(d)    [Solution]

Solution
(a)  

From the denominator of this one it appears that it is either a sine or a cosine.  However, the numerator doesn’t match up to either of these in the table.  A cosine wants just an s in the numerator with at most a multiplicative constant, while a sine wants only a constant and no s in the numerator. 

We’ve got both in the numerator.  This is easy to fix however.  We will just split up the transform into two terms and then do inverse transforms.
                                              

Do not get too used to always getting the perfect squares in sines and cosines that we saw in the first set of examples.  More often than not (at least in my class) they won’t be perfect squares!

(b)  

In this case there are no denominators in our table that look like this.  We can however make the denominator look like one of the denominators in the table by completing the square on the denominator.  So, let’s do that first.
                                             

Recall that in completing the square you take half the coefficient of the s, square this, and then add and subtract the result to the polynomial.  After doing this the first three terms should factor as a perfect square.

So, the transform can be written as the following.
                                                         

Okay, with this rewrite it looks like we’ve got #19 and/or #20’s from our table of transforms.  However, note that in order for it to be a #19 we want just a constant in the numerator and in order to be a #20 we need an  a in the numerator.  We’ve got neither of these so we’ll have to correct the numerator to get it into proper form.

In correcting the numerator always get the  a first.  This is the important part.  We will also need to be careful of the 3 that sits in front of the s.  One way to take care of this is to break the term into two pieces, factor the 3 out of the second and then fix up the numerator of this term.  This will work, however it will put three terms into our answer and there are really only two terms. 

So, we will leave the transform as a single term and correct it as follows,
                                                     

We needed an s + 4 in the numerator, so we put that in.  We just needed to make sure and take the 4 back out by subtracting it back out.  Also, because of the 3 multiplying the s we needed to do all this inside a set of parenthesis.  Then we partially multiplied the 3 through the second term and combined the constants.  With the transform in this form, we can break it up into two transforms each of which are in the tables and so we can do inverse transforms on them,
                                       

(c)  

This one is similar to the last one.  We just need to be careful with the completing the square however.  The first thing that we should do is factor a 2 out of the denominator, then complete the square.  Remember that when completing the square a coefficient of 1 on the s2 term is needed!  So, here’s the work for this transform.
                                                   

So, it looks like we’ve got #21 and #22 with a corrected numerator.  Here’s the work for that and the inverse transform.
                               

In correcting the numerator of the second term, notice that I only put in the square root since we already had the “over 2” part of the fraction that we needed in the numerator.

(d)  

This one appears to be similar to the previous two, but it actually isn’t.  The denominators in the previous two couldn’t be easily factored.  In this case the denominator does factor and so we need to deal with it differently.  Here is the transform with the factored denominator.
                                                       

The denominator of this transform seems to suggest that we’ve got a couple of exponentials, however in order to be exponentials there can only be a single term in the denominator and no s’s in the numerator.

To fix this we will need to do partial fractions on this transform.  In this case the partial fraction decomposition will be
                                                        

Don’t remember how to do partial fractions?  In this example we’ll show you one way of getting the values of the constants and after this example we’ll review how to get the correct form of the partial fraction decomposition.

Okay, so let’s get the constants.  There is a method for finding the constants that will always work, however it can lead to more work than is sometimes required.  Eventually, we will need that method, however in this case there is an easier way to find the constants.

Regardless of the method used, the first step is to actually add the two terms back up.  This gives the following.
                                            

Now, this needs to be true for any s that we should choose to put in.  So, since the denominators are the same we just need to get the numerators equal.  Therefore, set the numerators equal.
                                                   

Again, this must be true for ANY value of s that we want to put in.  So, let’s take advantage of that.  If it must be true for any value of s then it must be true for , to pick a value at random.  In this case we get,
                                              

We found A by appropriately picking s.  We can B in the same way if we chose .
                                           

This will not always work, but when it does it will usually simplify the work considerably.

So, with these constants the transform becomes,
                                                        

We can now easily do the inverse transform to get,
                                                       

The last part of this example needed partial fractions to get the inverse transform.  When we finally get back to differential equations and we start using Laplace transforms to solve them, you will quickly come to understand that partial fractions are a fact of life in these problems.  Almost every problem will require partial fractions to one degree or another.

Note that we could have done the last part of this example as we had done the previous two parts.  If we had we would have gotten hyperbolic functions.  However, recalling the definition of the hyperbolic functions we could have written the result in the form we got from the way we worked our problem.  However, most students have a better feel for exponentials than they do for hyperbolic functions and so it’s usually best to just use partial fractions and get the answer in terms of exponentials.  It may be a little more work, but it will give a nicer (and easier to work with) form of the answer.

Be warned that in my class I’ve got a rule that if the denominator can be factored with integer coefficients then it must be.

So, let’s remind you how to get the correct partial fraction decomposition.  The first step is to factor the denominator as much as possible.  Then for each term in the denominator we will use the following table to get a term or terms for our partial fraction decomposition.


Factor in
denominator
Term in partial
fraction decomposition

Notice that the first and third cases are really special cases of the second and fourth cases respectively.

So, let’s do a couple more examples to remind you how to do partial fractions.

Example 3  Find the inverse transform of each of the following.
(a)    [Solution]
(b)    [Solution]
(c)    [Solution]

Solution
(a)  

Here’s the partial fraction decomposition for this part.
                                                  

Now, this time we won’t go into quite the detail as we did in the last example.  We are after the numerator of the partial fraction decomposition and this is usually easy enough to do in our heads.  Therefore, we will go straight to setting numerators equal.
                       

As with the last example, we can easily get the constants by correctly picking values of s.
                         

So, the partial fraction decomposition for this transform is,
                                                 

Now, in order to actually take the inverse transform we will need to factor a 5 out of the denominator of the last term.  The corrected transform as well as its inverse transform is.
                                                 

(b)  

So, for the first time we’ve got a quadratic in the denominator.  Here’s the decomposition for this part.
                                                       

Setting numerators equal gives,
                                           

Okay, in this case we could use  to quickly find A, but that’s all it would give.  In this case we will need to go the “long” way around to getting the constants.  Note that this way will always work, but is sometimes more work than is required.

The “long” way is to completely multiply out the right side and collect like terms.
                                      

In order for these two to be equal the coefficients of the s2s and the constants must all be equal.  So, setting coefficients equal gives the following system of equations that can be solved.
                        

Notice that I used s0 to denote the constants.  This is habit on my part and isn’t really required, it’s just what I’m used to doing.  Also, the coefficients are fairly messy fractions in this case.  Get used to that.  They will often be like this when we get back into solving differential equations.

There is a way to make our life a little easier as well with this.  Since all of the fractions have a denominator of 47 we’ll factor that out as we plug them back into the decomposition.  This will make dealing with them much easier.  The partial fraction decomposition is then,
                                          

The inverse transform is then.
                               

(c)  

With this last part do not get excited about the s3.  We can think of this term as
                                                               
and it becomes a linear term to a power.  So, the partial fraction decomposition is
                                               

Setting numerators equal and multiplying out gives.
                

Setting coefficients equal gives the following system.
               

This system looks messy, but it’s easier to solve than it might look.  First we get C for free from the last equation.  We can then use the fourth equation to find B.  The third equation will then give Aetc.

When plugging into the decomposition we’ll get everything with a denominator of 5, then factor that out as we did in the previous part in order to make things easier to deal with.
                                          

Note that we also factored a minus sign out of the last two terms.  To complete this part we’ll need to complete the square on the later term and fix up a couple of numerators.  Here’s that work.
                              

The inverse transform is then.
                             

So, one final time.  Partial fractions are a fact of life when using Laplace transforms to solve differential equations.  Make sure that you can deal with them. 

Step Functions

Before proceeding into solving differential equations we should take a look at one more function.  Without Laplacetransforms it would be much more difficult to solve differential equations that involve this function in g(t).

The function is the Heaviside function and is defined as,


Here is a graph of the Heaviside function.
Step_G1

Heaviside functions are often called step functions.  Here is some alternate notation for Heaviside functions.


We can think of the Heaviside function as a switch that is off until t = c at which point it turns on and takes a value of 1.  So what if we want a switch that will turn on and takes some other value, say 4, or -7?

Heaviside functions can only take values of 0 or 1, but we can use them to get other kinds of switches.  For instance 4uc(t)is a switch that is off until t = c and then turns on and takes a value of 4.  Likewise, -7uc(t) will be a switch that will take a value of -7 when it turns on.

Now, suppose that we want a switch that is on (with a value of 1) and then turns off at t = c.  We can use Heaviside functions to represent this as well.  The following function will exhibit this kind of behavior.

Prior to t = c the Heaviside is off and so has a value of zero.  The function as whole then for t < c has a value of 1.  When we hit t = c the Heaviside function will turn on and the function will now take a value of 0. 

We can also modify this so that it has values other than 1 when it is one.  For instance,

will be a switch that has a value of 3 until it turns off at t = c.

We can also use Heaviside functions to represent much more complicated switches. 

Example 1  Write the following function (or switch) in terms of Heaviside functions.
                                              
Solution
There are three sudden shifts in this function and so (hopefully) it’s clear that we’re going to need three Heaviside functions here, one for each shift in the function.  Here’s the function in terms of Heaviside functions.
                                          

It’s fairly easy to verify this.

In the first interval, t < 6 all three Heaviside functions are off and the function has the value
                                                                
Notice that when we know that Heaviside functions are on or off we tend to not write them at all as we did in this case.

In the next interval,  the first Heaviside function is now on while the remaining two are still off.  So, in this case the function has the value.
                                                        

In the third interval,  the first two Heaviside functions are one while the last remains off.  Here the function has the value.
                                                      

In the last interval,  all three Heaviside function are one and the function has the value.
                                                   

So, the function has the correct value in all the intervals.

All of this is fine, but if we continue the idea of using Heaviside function to represent switches, we really need to acknowledge that most switches will not turn on and take constant values.  Most switches will turn on and vary continually with the value of t.

So, let’s consider the following function.
Step_G2

We would like a switch that is off until t = c and then turns on and takes the values above.  By this we mean that when t = c we want the switch to turn on and take the value of f(0) and when t = c + 4 we want the switch to turn on and take the value of f(4)etc.  In other words, we want the switch to look like the following,

Step_G3

Notice that in order to take the values that we want the switch to take it needs to turn on and take the values of !  We can use Heaviside functions to help us represent this switch as well.  Using Heaviside functions this switch can be written as           

Okay, we’ve talked a lot about Heaviside functions to this point, but we haven’t even touched on Laplace transforms yet.  So, let’s start thinking about that.  Let’s determine the Laplace transform of (1).  This is actually easy enough to derive so let’s do that.  Plugging (1) into the definition of the Laplace transform gives,



Notice that we took advantage of the fact that the Heaviside function will be zero if t < c and 1 otherwise.  This means that we can drop the Heaviside function and start the integral at c instead of 0.  Now use the substitution u = t  c and the integral becomes,


The second exponential has no u’s in it and so it can be factored out of the integral.  Note as well that in the substitution process the lower limit of integration went back to 0.


Now, the integral left is nothing more than the integral that we would need to compute if we were going to find the Laplace transform of f(t).  Therefore, we get the following formula

In order to use (2) the function f(t) must be shifted by c, the same value that is used in the Heaviside function.  Also note that we only take the transform of f(t) and not f(t-c)!  We can also turn this around to get a useful formula for inverseLaplace transforms.


We can use (2) to get the Laplace transform of a Heaviside function by itself.  To do this we will consider the function in (2)to be f(t) = 1.  Doing this gives us


Putting all of this together leads to the following two formulas.

Let’s do some examples.

Example 2  Find the Laplace transform of each of the following.
(a)    [Solution]
(b)    [Solution]
(c)    [Solution]
(d)    [Solution]
Solution
In all of these problems remember that the function MUST be in the form
                                                             
before we start taking transforms.  If it isn’t in that form we will have to put it into that form!

(a)  

So there are three terms in this function.  The first is simply a Heaviside function and so we can use (4) on this term.  The second and third terms however have functions with them and we need to identify the functions that are shifted for each of these.  In the second term it appears that we are using the following function,
                                       
and this has been shifted by the correct amount.

The third term uses the following function,
                           
which has also been shifted by the correct amount.

With these functions identified we can now take the transform of the function.
                                     

(b) 

This part is going to cause some problems.  There are two terms and neither has been shifted by the proper amount.  The first term needs to be shifted by 3 and the second needs to be shifted by 5.  So, since they haven’t been shifted, we will need to force the issue.  We will need to add in the shifts, and then take them back out of course.  Here they are.
                                    

Now we still have some potential problems here.  The first function is still not really shifted correctly, so we’ll need to use
to get this shifted correctly.

The second term can be dealt with in one of two ways.  The first would be to use the formula
                                      
to break it up into cosines and sines with arguments of t-5 which will be shifted as we expect.  There is an easier way to do this one however.  From our table of Laplace transforms we have #16 and using that we can see that if

This will make our life a little easier so we’ll do it this way.

Now, breaking up the first term and leaving the second term alone gives us,
                          

Okay, so it looks like the two functions that have been shifted here are
                                                           
Taking the transform then gives,
                              

It’s messy, especially the second term, but there it is.  Also, do not get excited about the  and .  They are just numbers.

(c)  

This one isn’t as bad as it might look on the surface.  The first thing that we need to do is write it in terms of Heaviside functions.
                                              

Since the t4 is in both terms there isn’t anything to do when we add in the Heaviside function.  The only thing that gets added in is the sine term.  Notice as well that the sine has been shifted by the proper amount.

All we need to do now is to take the transform.
                                                      

(d) 

Again, the first thing that we need to do is write the function in terms of Heaviside functions.
                                              

We had to add in a “-8” in the second term since that appears in the second part and we also had to subtract a t in the second term since the t in the first portion is no longer there.  This subtraction of the t adds a problem because the second function is no longer correctly shifted.  This is easier to fix than the previous example however.

Here is the corrected function.
                                       

So, in the second term it looks like we are shifting
                                                           

The transform is then,
                                                

Without the Heaviside function taking Laplace transforms is not a terribly difficult process provided we have our trustytable of transforms.  However, with the advent of Heaviside functions, taking transforms can become a fairly messy process on occasion.

So, let’s do some inverse Laplace transforms to see how they are done.

Example 3  Find the inverse Laplace transform of each of the following.
(a)    [Solution]
(b)    [Solution]
(c)    [Solution]
(d)    [Solution]

Solution
All of these will use (3) somewhere in the process.  Notice that in order to use this formula the exponential doesn’t really enter into the mix until the very end.  The vast majority of the process is finding the inverse transform of the stuff without the exponential.

In these problems we are not going to go into detail on many of the inverse transforms.  If you need a refresher on some of the basics of inverse transforms go back and take a look at the previous section.

(a)  

In light of the comments above let’s first rewrite the transform in the following way.
                                          

Now, this problem really comes down to needing f(t).  So, let’s do that.  We’ll need to partial fraction F(s) up.  Here’s the partial fraction decomposition.
                                                       

Setting numerators equal gives,
                                                     

We’ll find the constants here by selecting values of s.  Doing this gives,
                                     

So, the partial fraction decomposition becomes,
                                                      

Notice that we factored a 3 out of the denominator in order to actually do the inverse transform.  The inverse transform of this is then,
                                                        

Now, let’s go back and do the actual problem.  The original transform was,
                                                           

Note that we didn’t bother to plug in F(s).  There really isn’t a reason to plug it back in.  Let’s just use (3) to write down the inverse transform in terms of symbols.  The inverse transform is,
                                                        
where, f(t) is,
                                                        

This is all the farther that we’ll go with the answer.  There really isn’t any reason to plug in f(t) at this point.  It would make the function longer and definitely messier.  We will give almost all of our answers to these types of inverse transforms in this form.

(b) 

This problem is not as difficult as it might at first appear to be.  Because there are two exponentials we will need to deal with them separately eventually.  Now, this might lead us to conclude that the best way to deal with this function is to split it up as follows,
                                  

Notice that we factored out the exponential, as we did in the last example, since we would need to do that eventually anyway.  This is where a fairly common complication arises.  Many people will call the first function F(s) and the second function H(s) and the partial fraction both of them. 

However, if instead of just factoring out the exponential we would also factor out the coefficient we would get,
                                

Upon doing this we can see that the two functions are in fact the same function.  The only difference is the constant that was in the numerator.  So, the way that we’ll do these problems is to first notice that both of the exponentials have only constants as coefficients.  Instead of breaking things up then, we will simply factor out the whole numerator and get,
                         
and now we will just partial fraction F(s).

Here is the partial fraction decomposition.
                                                       

Setting numerators equal and combining gives us,
                                           

Setting coefficient equal and solving gives,
                          

Substituting back into the transform gives and fixing up the numerators as needed gives,
                                             

As we did in the previous section we factored out the common denominator to make our work a little simpler.  Taking the inverse transform then gives,
                                           

At this point we can go back and start thinking about the original problem.
                                                

We’ll also need to distribute the F(s) through as well in order to get the correct inverse transform.  Recall that in order to use (3) to take the inverse transform you must have a single exponential times a single transform.  This means that we must multiply the F(s) through the parenthesis.  We can now take the inverse transform,
                                        
where,

(c)  

In this case, unlike the previous part, we will need to break up the transform since one term has a constant in it and the other has an s.  Note as well that we don’t consider the exponential in this, only its coefficient.  Breaking up the transform gives,
                          

We will need to partial fraction both of these terms up.  We’ll start with G(s).
                                                         

Setting numerators equal gives,
                                                     

Now, pick values of s to find the constants.
                                     

So G(s) and its inverse transform is,
                                                         

Now, repeat the process for H(s).
                                                        

Setting numerators equal gives,
                                                       

Now, pick values of s to find the constants.
                                    

So H(s) and its inverse transform is,
                                                        

Putting all of this together gives the following,
                                                   
where,
                                  

(d)  

This one looks messier than it actually is.  Let’s first rearrange the numerator a little.
                                           

In this form it looks like we can break this up into two pieces that will require partial fractions.  When we break these up we should always try and break things up into as few pieces as possible for the partial fractioning.  Doing this can save you a great deal of unnecessary work.  Breaking up the transform as suggested above gives,
                              

Note that we canceled an s in F(s).  You should always simplify as much a possible before doing the partial fractions. 

Let’s partial fraction up F(s) first.

Setting numerators equal gives,
                                                           

Now, pick values of s to find the constants.
                                    

So F(s) and its inverse transform is,
                                                           

Now partial fraction H(s).

Setting numerators equal gives,
                                                 

Pick values of s to find the constants.
                        

So H(s) and its inverse transform is,
                                                      

Now, let’s go back to the original problem, remembering to multiply the transform through the parenthesis.
                               

Taking the inverse transform gives,
                    

So, as this example has shown, these can be a somewhat messy.  However, the mess is really only that of notation and amount of work.  The actual partial fraction work was identical to the previous sections work.  The main difference in this section is we had to do more of it.  As far as the inverse transform process goes.  Again, the vast majority of that was identical to the previous section as well.

So, don’t let the apparent messiness of these problems get you to decide that you can’t do them.  Generally they aren’t as bad as they seem initially.
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 theLaplace 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 ff’, f”,…f(n-1) are all continuous functions and f(n) is a piecewise continuous function.  Then,
      

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.


Notice that the two function evaluations that appear in these formulas,  and , 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.
                              

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

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

Plug in the initial conditions and collect all the terms that have a Y(s) in them.
                                               
Solve for Y(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,
                                                      

The partial fraction decomposition for this transform is,
                                                  

Setting numerators equal gives,
              

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

Plugging in the constants gives,
                                                  

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

That was a fair amount of work for a problem that probably could have been solved much quicker using the techniques from the previous chapter.  The point of this problem however, was to show how we would use Laplace transforms to solve an IVP.

There are a couple of things to note here about using Laplace transforms to solve an IVP.  First, using Laplace transforms reduces a differential equation down to an algebra problem.  In the case of the last example the algebra was probably more complicated than the straight forward approach from the last chapter.  However, in later problems this will be reversed.  The algebra, while still very messy, will often be easier than a straight forward approach.

Second, unlike the approach in the last chapter, we did not need to first find a general solution, differentiate this, plug in the initial conditions and then solve for the constants to get the solution.  With Laplace transforms, the initial conditions are applied during the first step and at the end we get the actual solution instead of a general solution.

In many of the later problems Laplace transforms will make the problems significantly easier to work than if we had done the straight forward approach of the last chapter.  Also, as we will see, there are some differential equations that simply can’t be done using the techniques from the last chapter and so, in those cases, Laplace transforms will be our only solution.

Let’s take a look at another fairly simple problem.

Example 2  Solve the following IVP.
                              
Solution
As with the first example, let’s first take the Laplace transform of all the terms in the differential equation.  We’ll the plug in the initial conditions to get,
                      

Now solve for Y(s).
                                         

Now, as we did in the last example we’ll go ahead and combine the two terms together as we will have to partial fraction up the first denominator anyway, so we may as well make the numerator a little more complex and just do a single partial fraction.  This will give,
                                                      

The partial fraction decomposition is then,
                                        

Setting numerator equal gives,
           

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.
                    

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,
                                

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,
                                   

Example 3  Solve the following IVP.
                       
Solution
Take the Laplace transform of everything and plug in the initial conditions.
                        

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

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

Now, setting numerators equal gives,
       

Setting coefficients equal and solving for the constants gives,
                            

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.
                             

Finally, take the inverse transform.
                    

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.
                         
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 = 0.  This is actually fairly simple to do, however we will need to do a change of variable to make it work. We are going to define
                                               

Let’s start with the original differential equation.
                                                

Notice that we put in the (t) part on the derivatives to make sure that we get things correct here.  We will next substitute in for t.
                                       

Now, to simplify life a little let’s define,
                                                           

Then, by the chain rule, we get the following for the first derivative.
                                               

By a similar argument we get the following for the second derivative.
The initial conditions for u(η) are,
                                                  
The IVP under these new variables is then,
                         

This is an IVP that we can use Laplace transforms on provided we replace all the t’s in our table with Î·’s.  So, taking the Laplace transform of this new differential equation and plugging in the new initial conditions gives,
                         

Solving for U(s) gives,
                                   

Note that unlike the previous examples we did not completely combine all the terms this time.  In all the previous examples we did this because the denominator of one of the terms was the common denominator for all the terms.  Therefore, upon combining, all we did was make the 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.
                                            

Plugging these into our transform and combining like terms gives us
                                  

Now, taking the inverse transform will give the solution to our new IVP.  Don’t forget to use Î·’s instead of t’s!
                          

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

So the solution to the original IVP is,
             

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.

Nonconstant Coefficient IVP’s

In this section we are going to see how Laplace transforms can be used to solve some differential equations that do not have constant coefficients.  This is not always an easy thing to do.  However, there are some simple cases that can be done.

To do this we will need a quick fact.

Fact
If f(t) is a piecewise continuous function on  of exponential order then,
                                                                                                                        (1)

A function f(t) is said to be of exponential order Î± if there exists positive constants T and M such that


Put in other words, a function that is of exponential order will grow no faster than

for some M and Î± and all sufficiently large t.  One way to check whether a function is of exponential order or not is to compute the following limit.


If this limit is finite for some Î± then the function will be of exponential order Î±.  Likewise, if the limit is infinite for every Î± then the function is not of exponential order.

Almost all of the functions that you are liable to deal with in a first course in differential equations are of exponential order.  A good example of a function that is not of exponential order is


We can check this by computing the above limit.

This is true for any value of Î± and so the function is not of exponential order. 

Do not worry too much about this exponential order stuff.  This fact is occasionally needed in using Laplace transforms with non constant coefficients.

So, let’s take a look at an example.

Example 1  Solve the following IVP.
                               

Solution
So, for this one we will need to recall that #30 in our table of Laplace transforms tells us that,
                                                 

So, upon taking the Laplace transforms of everything and plugging in the initial conditions we get,
                            

Unlike the examples in the previous section where we ended up with a transform for the solution, here we get a linear first order differential equation that must be solved in order to get a transform for the solution.

The integrating factor for this differential equation is,
                                              

Multiplying through, integrating and solving for Y(s) gives,
                                             

Now, we have a transform for the solution.  However that second term looks unlike anything we’ve seen to this point.  This is where the fact about the transforms of exponential order functions comes into play.  We are going to assume that whatever our solution is, it is of exponential order.  This means that
                                                         

The first term does go to zero in the limit.  The second term however, will only go to zero if c = 0.  Therefore, we must have c = 0 in order for this to be the transform of our solution.

So, the transform of our solution, as well as the solution is,
                                               

 I’ll leave it to you to verify that this is in fact a solution if you’d like to.

Now, not all nonconstant differential equations need to use (1).  So, let’s take a look at one more example.

Example 2  Solve the following IVP.
                              
Solution
From the first example we have,
                                                     

We’ll also need,
                                          

Taking the Laplace transform of everything and plugging in the initial conditions gives,
                           

Once again we have a linear first order differential equation that we must solve in order to get a transform for the solution.  Notice as well that we never used the second initial condition in this work.  That is okay, we will use it eventually.

Since this linear differential equation is much easier to solve compared to the first one, we’ll leave the details to you.  Upon solving the differential equation we get,
                                                             

Now, this transform goes to zero for all values of c and we can take the inverse transform of the second term.  Therefore, we won’t need to use (1) to get rid of the second term as did in the previous example.

Taking the inverse transform gives,
                                                              

Now, is where we will use the second initial condition.  Upon differentiating and plugging in the second initial condition we can see that c = -4.

So, the solution to this IVP is,
                                                              

So, we’ve seen how to use Laplace transforms to solve some nonconstant coefficient differential equations.  Notice however that all we did was add in an occasional t to the coefficients.  We couldn’t get too complicated with the coefficients.  If we had we would not have been able to easily use Laplace transforms to solve them.

Sometimes Laplace transforms can be used to solve nonconstant differential equations, however, in general, nonconstant differential equations are still very difficult to solve.
In this section we will use Laplace transforms to solve IVP’s which contain Heaviside functions in the forcing function.  This is where Laplace transform really starts to come into its own as a solution method.

To work these problems we’ll just need to remember the following two formulas,


In other words, we will always need to remember that in order to take the transform of a function that involves a Heaviside we’ve got to make sure the function has been properly shifted.

Let’s work an example.

Example 1  Solve the following IVP.
                        
Solution
First let’s rewrite the forcing function to make sure that it’s being shifted correctly and to identify the function that is actually being shifted.
                                                 

So, it is being shifted correctly and the function that is being shifted is .  Taking the Laplace transform of everything and plugging in the initial conditions gives,
                         

Now solve for Y(s).
                            

Notice that we combined a couple of terms to simplify things a little.  Now we need to partial fraction F(s) and G(s).  We’ll leave it to you to check the details of the partial fractions.
                                

We now need to do the inverse transforms on each of these.  We’ll start with F(s).
                               

Now G(s).
                             

Okay, we can now get the solution to the differential equation.  Starting with the transform we get,
                                                  
where f(t) and g(t) are the functions shown above.

There is can be a fair amount of work involved in solving differential equations that involve Heaviside functions.

Let’s take a look at another example or two.

Example 2  Solve the following IVP.
                       
Solution
Let’s rewrite the differential equation so we can identify the function that is actually being shifted.
                                          

So, the function that is being shifted is  and it is being shifted correctly.  Taking the Laplace transform of everything and plugging in the initial conditions gives,
                           
Now solve for Y(s).
                                      

Notice that we combined the first two terms to simplify things a little.  Also there was some canceling going on in this one.  Do not expect that to happen on a regular basis.  We now need to partial fraction F(s).  We’ll leave the details to you to check.
                                       

Okay, we can now get the solution to the differential equation.  Starting with the transform we get,
                                               
where f(t) is given above.

Example 3  Solve the following IVP.
                     
Solution
Let’s take the Laplace transform of everything and note that in the third term we are shifting 4t.
                  

Now solve for Y(s).
             

So, we have three functions that we’ll need to partial fraction for this problem.  I’ll leave it to you to check the details.
                               
                       
                                      

Okay, we can now get the solution to the differential equation.  Starting with the transform we get,
                               
where f(t), g(t) and h(t) are given above.

Let’s work one more example.

Example 4  Solve the following IVP.
                              
where,
                                                 
Solution
The first step is to get g(t) written in terms of Heaviside functions so that we can take the transform.
                                           

Now, while this is g(t) written in terms of Heaviside functions it is not yet in proper form for us to take the transform.  Remember that each function must be shifted by a proper amount.  So, getting things set up for the proper shifts gives us,
                             

So, for the first Heaviside it looks like  is the function that is being shifted and for the second Heaviside it looks like  is being shifted.

Now take the Laplace transform of everything and plug in the initial conditions.
     

Solve for Y(s).
               

Now, in the solving process we simplified things into as few terms as possible.  Even doing this, it looks like we’ll still need to do three partial fractions. 

I’ll leave the details of the partial fractioning to you to verify.  The partial fraction form and inverse transform of each of these are.
                                        
                                  
                                            

Putting this all back together is going to be a little messy.  First rewrite the transform a little to make the inverse transform process possible.
                   

Now, taking the inverse transform of all the pieces gives us the final solution to the IVP.
        
where f(t)g(t), and h(t) are defined above.

So, the answer to this example is a little messy to write down, but overall the work here wasn’t too terribly bad. 

Before proceeding with the next section let’s see how we would have had to solve this IVP if we hadn’t had Laplacetransforms.  To solve this IVP we would have had to solve three separate IVP’s.  One for each portion of g(t).  Here is a list of the IVP’s that we would have had to solve.

  1. 0 < t < 6

            The solution to this IVP, with some work, can be made to look like,



where, y1(t) is the solution to the first IVP.  The solution to this IVP, with some work, can be made to look like,



where, y2(t) is the solution to the second IVP.  The solution to this IVP, with some work, can be made to look like,



There is a considerable amount of work required to solve all three of these and in each of these the forcing function is not that complicated.  Using Laplace transforms saved us a fair amount of work.





No comments:

Post a Comment