Solving a Second-Order Linear Differential Equation with Non-Homogeneous Term Using Undetermined Coefficients and Variation of Parameters

Solving a Second-Order Linear Differential Equation with Non-Homogeneous Term Using Undetermined Coefficients and Variation of Parameters

" "

When tackling a differential equation as complex as the one provided, it is essential to employ a systematic approach that leverages both undetermined coefficients and the variation of parameters. This article will guide you through the detailed steps in solving the differential equation:

" "

1. Homogeneous Solution: The Starting Point

" "

The given equation is a second-order linear non-homogeneous ordinary differential equation. The first step is to solve the corresponding homogeneous equation:

" "

x^2 frac{d^2 y}{dx^2} - 3x frac{dy}{dx}   5y  0.

" "

Step 1.1: Substitution for the Characteristic Equation

" "

We can make a substitution (y x^m) to derive the characteristic equation. Calculating the necessary derivatives:

" "

frac{dy}{dx}  mx^{m-1} and frac{d^2y}{dx^2}  m(m-1)x^{m-2}.

" "

Substituting these into the homogeneous equation:

" "

x^2 m(m-1)x^{m-2} - 3xmx^{m-1}   5x^m  0.

" "

Simplifying, we obtain:

" "

mm -1x^m - 3mx^m   5x^m  0.

" "

Factoring out (x^m), which is non-zero for (x eq 0), we get:

" "

mm -1 - 3m   5  0

" "

which simplifies to:

" "

m^2 - 4m   5  0.

" "

Step 1.2: Solving the Characteristic Equation

" "

Solving the characteristic equation using the quadratic formula:

" "

m  frac{-b pm sqrt{b^2 - 4ac}}{2a}  frac{4 pm sqrt{(-4)^2 - 4 cdot 1 cdot 5}}{2 cdot 1}  frac{4 pm sqrt{16 - 20}}{2}  frac{4 pm sqrt{-4}}{2}  frac{4 pm 2i}{2}  2 pm i.

" "

Thus, the roots are (m_1 2 i) and (m_2 2 - i).

" "

Step 1.3: General Solution of the Homogeneous Equation

" "

The general solution of the homogeneous equation is:

" "

y_h  x^2 C_1 cos(log{x})   C_2 sin(log{x}),

" "

where (C_1) and (C_2) are constants.

" "

2. Particular Solution: Addressing the Non-Homogeneous Part

" "

Next, we need a particular solution (y_p) to the non-homogeneous equation. Given that the right-hand side is (x^2 sin(log{x})), we can try a particular solution of the form:

" "

y_p  x^2A cos(log{x})   B sin(log{x}),

" "

where (A) and (B) are functions of (x).

" "

Step 2.1: Differentiation

" "

We need to find the first and second derivatives of (y_p).

" "

Step 2.2: First Derivative

" "

The first derivative of (y_p) is:

" "

y'_p  2x A cos(log{x})   B sin(log{x}) - x^2 left(-A frac{1}{x} sin(log{x})   B frac{1}{x} cos(log{x}) right)

" "

This can be simplified to:

" "

y'_p  2x A cos(log{x})   B sin(log{x})   x A sin(log{x}) - x B cos(log{x})

" "

Note that the second derivative (y''_p) involves differentiating (y'_p) again. This is a somewhat complex step, but it is crucial for the next step.

" "

Step 2.3: Substitution and Solving for (A) and (B)

" "

Substituting (y_p), (y'_p), and (y''_p) back into the original differential equation will allow you to solve for (A) and (B).

" "

The complete solution (y) will be:

" "

y  y_h   y_p  x^2 C_1 cos(log{x})   C_2 sin(log{x})   y_p,

" "

where (y_p) is the particular solution found.

" "

By following these detailed steps, you can systematically solve the given second-order linear differential equation. The key is to ensure each step is precise and thorough.