Special solution of inhomogeneous linear differential equations
The general solution of an inhomogeneous linear differential equation can be obtained as the sum of a special solution and the general solution of the corresponding homogeneous differential equation. We study the method of variation of parameters in particular.
Consider the linear differential equation of the form
where
Suppose we can factorize
(a linear differential equation of , given ), (a linear differential equation of , given ),
and we can process one after the other. Thus, by factorizing the polynomial , we only need to consider the case where ( ). That is, This ODE can be readily solved by using the method of variation of parameters. The general solution of this ODE is obtained as
where is a constant.
Example. Let us solve .
Note that so the given ODE is . Solving the homogeneous ODE , we have
Similarly, solving , we have a special solution
Thus, the general solution is
where are constants. □
Let's consider the more general case where with . In particular, when , we have . We want to solve the following second-order ODE:
Let , and we have
We first solve the homogeneous case which yields
Now, regarding as a function of , substitute it into (eq:odea), we have
Thus, we have the special solution
Next, we solve
Solving the homogeneous case , we have
Regarding as a function of and substituting it into (eq:odeb), we have
Integrating this using (eq:odea),
Thus, we have the special solution
Note the symmetry between the two terms on the right-hand side. This means that swapping and does not change the result. This is expected as the differential operators are commutative: .
Example. Let us solve
The corresponding homogeneous equation is . Noting , its solution is
where are constants. Now, we use the method of variation of parameters by regarding and as functions of . According to the above result, we have
where is a constant. Similarly,
where is a constant. Thus, the general solution is
Using Euler's formula ( ), this can be further "simplified" (exercise!) as
where and are constants. Note that this is a real-valued function if and are real. □
Next, let's consider Of course, so that we can apply the technique above. Let , and we solve . As we have seen above,
Next, we solve . This gives
We can continue the same process to solve for any . Let the solution of be for . We can see that
and
Example. Solve . It is an exercise to show that the general solution is
where and are constants. □
Comments
Post a Comment