Higher-Order Variation of Parameters
Solving linear systems can sometimes be a necessary component of solving nonlinear systems.
This post is part of the book Justin Math: Linear Algebra. Suggested citation: Skycak, J. (2019). Higher-Order Variation of Parameters. In Justin Math: Linear Algebra. https://justinmath.com/higher-order-variation-of-parameters/
Want to get notified about new posts? Join the mailing list and follow on X/Twitter.
Until this point, we have been working exclusively with linear systems. However, solving linear systems can sometimes be a necessary component of solving nonlinear systems.
Second-Order Variation of Parameters
For example, recall the variation of parameters method for solving a second-order differential equation of the form
Variation of parameters proceeds by first guessing a solution of the form
where y1 and y2 are the two zero solutions of the differential equation
and u1(x) and u2(x) are some unknown multiplier functions that we solve for by setting up a system of equations.
To set up the first equation in our system, we force
and equate it to the true derivative of yf:
The second equation comes from substituting our guess for yf into the differential equation and simplifying, using the fact that y1 and y2 are the zero solutions.
This results in a square system of 2 equations.
In 2 dimensions, we can easily solve for u′1 and u′2 using elimination, obtaining the result below.
Then, we can simply integrate and substitute these back into our particular solution.
Higher-Order Variation of Parameters
When we wish to use variation of parameters to find the particular solution of an Nth order differential equation
we guess a solution of the form
and force
By equating each derivative with the true derivative of yf up to order N, we can set up a system of equations.
This system is difficult to solve by elimination. But now we can use Cramer’s rule! First, let’s write our system more compactly, using the notation
The system becomes
According to Cramer’s rule, each u′i is given by
The denominator of this fraction is also known as the Wronskian, denoted
If we define Wi,f as
then we have
Finally, we can write the particular solution to the differential equation by integrating and substituting into our initial guess.
Demonstration
Let’s illustrate this method on a simple example. To make it easier to find the zero solutions, we’ll choose an example with constant coefficients, but remember that this method works even when the coefficients are functions themselves.
We start off by finding the zero solutions, i.e. those that satisfy the equation whose right-hand side is zero.
We do this by finding the roots of the characteristic polynomial p(r)=r3−2r2−r+2. We can find the roots via factoring by grouping.
These roots correspond to the following zero solutions:
It remains to find the particular solution. To use variation of parameters, we need three independent zero solutions, so we’ll choose the simplest ones from above: e−x,ex,e2x.
Substituting these into the variation of parameters formula, we have a particular solution of the form
with f(x)=e3x. Now, it remains to do the computations. First, we compute the standard Wronskian in the denominator.
Next, we compute the modified Wronskians in the numerators.
Lastly, we substitute back into the formula for the particular solution, and simplify.
The full solution to the differential equation, then, is
Exercises
Solve the following differential equations using variation of parameters. (You can view the solution by clicking on the problem.)
1)y‴−y″−4y′+4y=e2x
Solution:
y=C−2e−2x+C1ex+(C2+14x)e2x
2)y‴−y″−5y′−3y=ex
Solution:
y=(C−1,0+C−1,1x)e−x+C3e3x−18ex
3)y‴+y″−y′−y=cosx
Solution:
y=C1ex+(C−1,0+C−1,1x)e−x−14(sinx+cosx)
4)y‴−2y″−9y′+18y=sinx
Solution:
y=C−3e−3x+C2e2x+C3e3x+125sinx+150cosx
5)y‴−2y″+y′−2=cosx
Solution:
y=C0+(C1,0+C1,1x)ex+2x+12cosx
6)y‴−y″+y′−4=sinx
Solution:
y=[C1sin(√152x)+C2cos(√152x)]e12x+x+110sinx−310cosx+C3
This post is part of the book Justin Math: Linear Algebra. Suggested citation: Skycak, J. (2019). Higher-Order Variation of Parameters. In Justin Math: Linear Algebra. https://justinmath.com/higher-order-variation-of-parameters/
Want to get notified about new posts? Join the mailing list and follow on X/Twitter.