For convenience of calculation, both sides of (1) are divided by a2, and let’s call the coefficients of the other two terms a1 and a0, respectively. Then
x2dx2d2y+a1xdxdy+a0y=0
By observing the differential equation, it becomes 0 by differentiating twice and multiplying by the second term, differentiating once and multiplying by the first term, and adding the original function. Thus, the solution can be stated as follows.
y=xr
Substituting into the differential equation results in
Since xr=0, it is r2−(a1−1)r+a0=0. This is a simple quadratic equation whose solutions are
r=2−(a1−1)±(a1−1)2−4a0
Let’s call the two solutions r1 and r2, respectively. Depending on the condition of the two roots, the solution to the differential equation changes.
Case 1. r1 and r2 are distinct real numbers
The two solutions are y1=xr1 and y2=xr2. By checking the Wronskian,
W[y1,y2]=(r2−r1)xr1+r2−1
Since r1=r2, it is proven that when x>0, it must be W[x1,r2]=0. Thus, the two solutions form a fundamental set of solutions, so the general solution is
y=c1xr1+c2xr2,x>0
■
Case 2. r1 and r2 are the same real numbers
In this case, since y1 and y2, a second solution must be found. The first solution is described as y1=xr1, and let’s say the differential operator L is as follows.
L[y]=x2y′′+xy′+y
Then
L[xr]=[r2−(a1−1)r+a0]xr=0
In this case, since the quadratic equation for r has a repeated root, it can be expressed in a perfect square form as follows.
L[xr]=(r−r1)2xr=0
Differentiating 0 gives 0, so differentiating the left side by r gives
∂r∂L[xr]=0
And since the order of differentiation for x and r can be swapped without issue,
∂r∂L[xr]=L[∂r∂xr]=L[xrlnx]=0
Thus, y2=xr1lnx is the second solution. Calculating the Wronskian gives W[xr1,x1lnx]=x2r1−1=0, so the two solutions form a fundamental set. Therefore, the general solution is
y=c1xr1+c2xr1lnx,x>0
■
Case 3. r1 and r2 are distinct complex numbers
Let’s call them r1=λ+iμ and r2=λ−iμ. Then the two solutions are
y1=xλ+iμ,y2=xλ−iμ
Therefore, the fundamental solution is
y=c1xλ+iμ+c2xλ−iμ
However, in the case of complex functions, it’s usual to express them in trigonometric functions. By Euler’s formula, the following equation holds: