Differential equations/Linear inhomogeneous differential equations
Educational level: this is a tertiary (university) resource. 
Type classification: this is a lesson resource. 
Subject classification: this is a mathematics resource. 
Completion status: this resource is ~25% complete. 
Method of Undetermined Coefficients edit
Definition edit
A nonhomogeneous second order equation is an equation where the right hand side is equal to some constant or function of the independent variable. This technique is best when the right hand side of the equation has a fairly simple derivative.
Solution edit
The solution is divided into two parts and then added together by superposition. The first part is obtained by solving the complimentary (homogeneous) equation. The second part is obtained from a set of equations. To illustrate the solution, we will take the equation as an example.
 Solve the homogeneous equation ( ) and get the roots of the characteristic equation ( ) .
 Plug the roots into the general solution ( ) to obtain the complementary (homogeneous) solution.
 To get the typical (specific) solution to the differential equation, we need to choose a "solution" from a table.
 (any constant):
 :
 :
 :
 :
 :
 :
 :
 :
 :
 :
 :
 Choose the "solution" that best fits the right hand side of the equation. (the solution of must take the form ).
 Differentiate the "solution" to get the derivatives of the solution ( ).
 Substitute those solutions into the left hand side of the original differential equation ( ).
 Collect and compare like terms to solve for the coefficients ( ).
 Substitute the coefficients back into typical "solution" ( ).
 Add the typical and the complementary solutions to get the complete solution
Variation of Parameters edit
Definition edit
A nonhomogeneous second order equation is an equation where the right hand side is equal to some constant or function of the independent variable. This technique is best when the right hand side of the equation has a fairly complicated derivative.
Solution edit
This technique involves solving the complementary equation and using both solutions ( and ) as a basis to solve for two more particular solutions that combine to form the typical solution . To illustrate, let's solve the differential equation .
 Solve for the complementary solution ( ).
 Take each term in the complementary solution and make them separate functions ( ).
 Set up the following three Wronksian matrices and take the determinants of them:

 Solve for the terms and .
 Integrate them to get the terms and .
 Combine them with the complementary solution to get the complete solution ( ) .