Second-order nonhomogeneous differential equations initial value problems
Steps for solving a second-order nonhomogeneous differential equation initial value problem
To solve an initial value problem for a second-order nonhomogeneous differential equation, we’ll follow a very specific set of steps.
Hi! I'm krista.
I create online courses to help you rock your math class. Read more.
We can summarize these steps as follows:
Find the complementary solution .
Find the particular solution .
Put them together to find the general solution .
Find the derivative of the general solution .
Plug the given initial conditions into the general solution and its derivative to create a system of linear equations.
Solve the system in order to find values for and .
Plug and back into the general solution to solve the initial value problem.
Example of a nonhomogeneous differential equation with an exponential function
Take the course
Want to learn more about Differential Equations? I have a step-by-step course for that. :)
Finding the general solution of the second-order nonhomogeneous differential equation given a set of initial conditions
Example
Find the general solution of the differential equation, if and .
First we need to work on the complementary solution, which we’ll do by substituting for the entire right side and focusing only the left side.
Then we’ll make the substitution .
So the roots are
These are distinct real roots, so we’ll use the formula for the complementary solution with distinct real roots and get
We’ll hold on to the complementary solution and switch over to the particular solution. The first thing we notice is that we have a polynomial function, , and an exponential function, . We’ll use as our guess for the polynomial function, and we’ll use as our guess for the exponential function. Putting these together, our guess for the particular solution will be
Comparing this to the complementary solution, we can see that from the complementary solution and from the particular solution are overlapping terms. To fix this, we’ll multiply from the particular solution by , such that our guess becomes
We also need to realize that from the complementary solution and from the particular solution are overlapping terms. To fix this, we’ll multiply the polynomial portion of the particular solution by , such that our guess becomes
Taking the first and second derivatives of this guess, we get
Plugging the first two derivatives into the original differential equation, we get
To solve an initial value problem for a second-order nonhomogeneous differential equation, we’ll follow a very specific set of steps.
Equating coefficients from the left and right side, we get
and
and
We’ll plug the results into our guess for the particular solution to get
Putting this together with the complementary solution gives us the general solution to the differential equation.
Now we’ll take the derivative of the general solution.
We can now plug the given initial conditions and into the general solution and its derivative to create a system of linear equations.
and
Plugging into to solve the system of linear equations gives
Plugging these values for and back into the general solution gives