How do we find the solution of a higher-order nonhomogeneous linear differential equation with constant coefficients?

Jenn, Founder Calcworkshop®, 15+ Years Experience (Licensed & Certified Teacher)
By using the amazing process called Undetermined Coefficients.
Solutions by the method of Undetermined Coefficients sometimes called the Superposition Approach, is where we make a “guess” as to the appropriate form for our solution set, which is then tested by differentiating the resulting equation.
The trick to mastering this technique is to know how to make an appropriate “guess.”
Understanding the General Solution and Its Components
So, let’s dig a bit deeper and see what undetermined coefficients are all about.
- The general solution of the differential equation
when and in an interval I, is is the homogeneous solution, sometimes called the complementary function is the particular solution
Formulating the Homogeneous Solution and Making an Educated Guess for the Particular Solution
Alright, so here’s what you need to know.
First, we will find the homogeneous solution using the methods we learned in our previous videos to solve second and higher-order DEs (i.e., distinct real roots, complex roots, and repeated roots).
Next, we employ the method of undetermined coefficients to form the particular solution…this is where we must make our educated guess.
How? By choosing something that has the same form as
In other words, we want our guess to look as much like
Don’t worry. A few examples, along with the video, will help to illustrate this process.
Example 1: Solving a Nonhomogeneous DE with Exponential Function
Solve
Setting Up & Solving the Characteristic Equation
Okay, so first, we will solve for the homogeneous solution by creating the characteristic equation.
If we let
Next, we solve the characteristic equation for our roots.
Because we found two distinct, real roots, we can write our complementary function as follows:
Formulating a Guess for the Particular Solution
Now it’s time to focus on
Because
Now all we have to do is take the appropriate number of derivatives that match our DE, which is a second-order differential equation.
Solving for the Coefficient in the Particular Solution
Next, we will substitute these derivatives into our differential equation and solve for the missing coefficient, A.
This means that our particular solution is
Combining Homogeneous and Particular Solutions
Finally, we are ready to write our final solution by combining our complementary (homogeneous) function with our particular solution.
And that’s it. Not bad, right?
Important Considerations When Making a Guess
But I do need to warn you about something…
To find
Why?
Because no term of
Example 2: Solving a Nonhomogeneous DE with Polynomial and Exponential Functions
Let’s take a look.
Solve
Setting Up & Solving the Characteristic Equation
First, we will solve for the homogeneous solution by creating the characteristic equation.
If we let
Next, we solve the characteristic equation for our roots.
Finding the Homogeneous Solution
Because we found two repeating real roots, we can write our complementary function as follows:
Creating an Appropriate Guess for the Particular Solution
Now it’s time to focus on
Because
Adjusting the Guess to Avoid Overlap with the Homogeneous Solution
But there’s a problem! Notice that one of the terms in our homogeneous solution is exactly the same as our guess – and that’s not allowed.
This means we need to tweak our guess so they are different… we do so by multiplying each term of our particular solution by
If we multiply our guess by
But we still have a match.
So, we multiply our particular solution by
Determining the Particular Solution
Finally, we don’t have any terms that match our complementary function, so now our guess is set and ready to find our derivatives that match our DE.
Next, we will substitute these derivatives into our differential equation and solve for the missing coefficients, A and B, using the comparison method like we did when evaluating Partial Fractions.
This means that our particular solution is
Writing the General Solution
Lastly, we are ready to write our final solution by combining our complementary (homogeneous) function with our particular solution.
Conclusion and Recap
Don’t fear. Together we will work through the process in detail so you will quickly get the swing of things.
So, we will begin our lesson with an understanding that to solve a nonhomogeneous, or inhomogeneous, linear differential equation, we must do two things:
- Find the complimentary function to the Homogeneous Solution, using the techniques from our previous lessons.
- Find any Particular Solution for the nonhomogeneous equation.
We will use the method of undetermined coefficients, where a “guess” is made as to the appropriate form, which is then tested by differentiating the resulting equation. And we will practice using multiple examples to make a reasonable guess so the process becomes more second nature.
Then we will use our new skills and write the general solution for nonhomogeneous DEs.
Let’s jump right in!
Video Tutorial w/ Full Lesson & Detailed Examples
Get access to all the courses and over 450 HD videos with your subscription
Monthly and Yearly Plans Available
Still wondering if CalcWorkshop is right for you?
Take a Tour and find out how a membership can take the struggle out of learning math.