20. Variation of Parameters
Dated: 01-12-2024
The general solution of the linear first order differential equation of the form
is given by
Note
- In the last equation, the 2nd term \(y_c=c_1e^{-\int Pdx}\) is the solution of the associated homogeneous equation
- Similarly, the first term \(y_p=e^{-\int Pdx}.\int e^{\int Pdx}.f(x)dx\) is a particular solution of the first order non homogeneous linear differential equation.
- Therefore, the solution is \(y = y_c + y_p\).
The Variation of Parameters
First order Equation
The particular solution \(y_p\) of the first-order linear differential equation is given by
This formula can also be derived by another method, known as the variation of parameters. The basic procedure is the same as discussed in the lecture on the construction of a second solution.
Since
is the solution of the homogeneous differential equation
and the equation is linear. Therefore, the general solution of the equation is
The variation of parameters consists of finding a function \(u_1(x)\) such that
is a particular solution of the non-homogeneous differential equation
Notice that the parameter \(c_1\) has been replaced by the variable \(u_1\). We substitute \(y_p\) in the given equation to obtain
Since \(y_1\) is a solution of the homogeneous differential equation, we must have
So that we obtain
This is a variable separable equation. By separating the variables, we have
Integrating the last expression with respect to \(x\), we obtain
Therefore, the particular solution \(y_p\) of the given first-order differential equation is:
Or
Second order Equation
Consider the 2ⁿᵈ-order linear non-homogeneous differential equation
By dividing with \(a_2(x)\), we can write this equation in the standard form
The functions \(P(x)\), \(Q(x)\), and \(f(x)\) are continuous on some interval \(I\). For the complementary function, we consider the associated homogeneous differential equation
Complementary Function
Suppose that \(y_1\) and \(y_2\) are two linearly independent solutions of the homogeneous equation. Then \(y_1\) and \(y_2\) form a fundamental set of solutions of the homogeneous equation on the interval \(I\). Thus, the complementary function is
Since \(y_1\) and \(y_2\) are solutions of the homogeneous equation, we have
and
Particular Integral
For finding a particular solution \(y_p\), we replace the parameters \(c_1\) and \(c_2\) in the complementary function with the unknown variables \(u_1(x)\) and \(u_2(x)\). So that the assumed particular integral is
Since we seek to determine two unknown functions \(u_1\) and \(u_2\), we need two equations involving these unknowns. One of these two equations results from substituting the assumed particular integral into the differential equation.
Assumed \(y_p\) in the given differential equation. We impose the other equation to simplify the first derivative and thereby the 2ⁿᵈ derivative of \(y_p\).
To avoid 2ⁿᵈ derivatives of \(u_1\) and \(u_2\), we impose the condition
Then
So that
Therefore
Substituting in the given non-homogeneous differential equation yields
or
Now making use of the relations
we obtain
Hence \(u_1\) and \(u_2\) must be functions that satisfy the equations
By using Cramer's rule, the solution of this set of equations is given by
where \(W\), \(W_1\), and \(W_2\) denote the following determinants:
The determinant \(W\) can be identified as the Wronskian of the solutions \(y_1\) and \(y_2\). Since the solutions \(y_1\) and \(y_2\) are linearly independent on \(I\). Therefore
Now integrating the expressions for \(u'_1\) and \(u'_2\), we obtain the values of \(u_1\) and \(u_2\), hence the particular solution of the non-homogeneous linear differential equation.
Summary of Method
Step 1
We find the complementary function by solving the associated homogeneous differential equation:
Step 2
If the complementary function is given by:
then \(y_1\) and \(y_2\) are two linearly independent solutions of the homogeneous differential equation. Then compute the Wronskian of these solutions:
Step 3
By dividing with \(a_2\), we transform the given non-homogeneous equation into the standard form:
and we identify the function \(f(x)\).
Step 4
We now construct the determinants \(W_1\) and \(W_2\) given by:
Step 5
Next, we determine the derivatives of the unknown variables \(u_1\) and \(u_2\) through the relations:
Step 6
Integrate the derivatives \(u_1'\) and \(u_2'\) to find the unknown variables \(u_1\) and \(u_2\). So that
Step 7
A particular solution of the given non-homogeneous equation can be written as:
Step 8
The general solution of the differential equation is then given by:
Constants of Integration
We don't need to introduce the constants of integration when computing the indefinite integrals in Step 6 to find the unknown functions 1 of \(u_1\) and \(u_2\). For, if we do introduce these constants, then:
So that the general solution of the given non-homogeneous differential equation is:
If we replace \(c_1 + a_1\) with \(C_1\) and \(c_2 + b_1\) with \(C_2\), we obtain:
This does not provide anything new and is similar to the general solution found in Step 8, namely:
Example
Solve
Solution
Step 1
To find the complementary function
Put
Then the auxiliary equation is
Repeated real roots of the auxiliary equation
Step 2
By inspecting the complementary function \(y_c\), we make the identification:
Step 3
The given differential equation is:
Since this equation is already in the standard form:
Therefore, we identify the function \(f(x)\) as:
Step 4
We now construct the determinants \(W_1\) and \(W_2\):
Step 5
We determine the derivatives of the functions \(u_1\) and \(u_2\):
Step 6
Integrating the last two expressions, we obtain:
Remember: We don't have to add the constants of integration.
Step 7
Therefore, a particular solution of the given differential equation is:
or
Step 8
Hence, the general solution of the given differential equation is:
References
Read more about notations and symbols.