Lesson 23 - Solving IVPs using Laplace Transforms
Now that we understand how to take the Laplace transform of a function, let's apply this directly to solving differential equations.
We'll introduce a differential equation with initial values.
Before jumping in to solving with Laplace transform, let's recall a previous method of solving the IVP.
We recognize this as a nonhomogeneous equation with constant coefficients. We can solve this equation by finding the homogeneous solution of the left hand side of the equation and then solving for the complementary solution of the right hand side. Let's do this now.
Characteristic equation
Our homogeneous solution is:
Now for the complementary solution, we use the method of undetermined coefficients. Since
Our full solution, without solving for the coefficients nor taking into account the initial values, becomes
Now recall that we would need to take the first and second derivative of
Try this on your own. For a reminder on how to solve an equation using the method of undetermined coefficients, visit Lesson 10 - Method of Undetermined Coefficients.
Your solution should end up as
Now, let's see if we can arrive to the same solution using Laplace transforms.
First, we must take the Laplace transform of both sides of the equation. In order to do so, I will introduce you to some new definitions that we will need to take the Laplace transform of derivatives.
We recall that the Laplace transform of any function
Notice, we are utilizing our initial conditions here rather than later. Let's apply these definitions to the equation below, starting with the left side.
Left side:
Right side:
Together, we have
Note: From this point on, we are simply performing algebraic manipulation on the differential equation. If you are not comfortable with algebra, it is highly recommended to practice those skills and become comfortable with algebra in order to accurately perform these calculations.
Next, I would recommend that we plug in our initial conditions. This will eliminate some of the variables and help see things clearer.
Our initial conditions were
Let's clean this up
At this point, I recommend lumping together the like terms. Notice that we have three terms that contain
Hopefully you see the value of those parentheses. We can now factor out the
Now, the goal here is to get
Before continuing, we should combine everything into one fraction on the right side.
We're in a good spot here. Let's see what's left to do.
Now, remember our nonhomogeneous solution which started with the characteristic equation of the form
Let's move on by checking to see if we can factor the quadratic. In this case, we can.
Last, let's divide by the binomials.
Now, let's take a deep breath. We did a lot of work, but we're only about halfway done.
We started by taking the Laplace transform of each side of the equation, utilizing our initial conditions, and performed some algebraic manipulation to solve for Y(s). What more is there to do? Well this is technically a solution,
Let's do this now.
To set up
At this point, we can solve for
Since we should be comfortable with this process, I'm going to skip this step and provide the values for
So now we can say that
We can see that this is in a form that we can take the inverse Laplace transform of. Let's do so now.
Notice that this matches the solution that we came up with using the method of undetermined coefficients. I know that this was a longwinded example, but the Laplace transform tends to make solving differential equations much simpler.
To recall, here are the steps to solving an IVP using Laplace transforms.
- Take Laplace transform of the DE on both sides.
- Perform algebraic manipulation to solve for
. - If necessary, perform partial fractions to take inverse Laplace transform.
- Take
.
Try For Yourself
, ,
Next Lesson: Lesson 24 - Introduction to Discontinuous Functions (Heaviside Functions)
Table of Contents: Table of Contents