Homogeneous linear equations of order 2 with non constant coefficients

We will show a method for solving more general ODEs of 2n order, and now we will allow non constant coefficients. The price that we have to pay is that we have to know one solution.

The method that we will give is called method of reduction of the order and will give us the second solution to an ODE if we already know one.

Let's suppose that we have an ODE:a2(x)y+a1(x)y+a0(x)y=0and a solution y1(x) of this ODE.

Example

The ODE(x32x2)y(x3+2x26x)y+(3x26)y=0from which we know a solution: y1(x)=x3.

Then we look for the second solution of the form y2(x)=y1(x)u(x) Then: y=uy1y=y1u+y1uy=y1u+2y1u+yu Let's designate this as a solution: a2(x)y+a1(x)y+a0(x)y==a2(x)(yy+2y1+y1u)+a1(x)(yu+y1u)==u(a2y1)+u(2a2y1+a1y1)+u(a2y1+a1y1+a0y1) Bearing in mind that y1(x) is a solution, the last term is zero. Therefore: u(a2y1)+u(2a2y1+a1y1)=0 This is a ficticious second order ODE, since the term without derivation does not appear.

Namely, if we introduce the change w(x)=u(x), we have the following homogeneous linear ODE of order 1: w(a2y1)+w(2a2y1+a1y1)=0

Example

In our example, replacing the corresponding values of the coefficients, we have: w(x3(x32x2))+w(2(x32x2)3x2(x3+2x36x)x3)=0w(x62x5)+w(6x512x4x62x5+6x4)=0w(x62x5)+w(x6+4x56x4)=0w(x2)+w(x2+4x6)=0 We solve this ODE and obtain w(x). Looking for the primitive function of w(x), we obtain u(x).

Finally, we see that y2(x)=y1(x)u(x) is the second solution, which is linearly independent of the first one.

Finally, in our example, we obtain: w(x)=ex(x2)x3 We compute the primitive function, u(x)=ex(x2)x3 dx=exx2 So the general solution is: y(x)=c1x3+c2xex