3xy′′+(1−x)y′−y=0
Since the differential equation has non-constant coefficients, we cannot assume that a solution is in the form y=eαx. Instead, we use the fact that the second order linear differential equation must have a unique solution. We can express this unique solution as a power series
y=n=0∑∞anxn
If we can determine the an for all n, then we know the solution. Fortunately, we can easily take derivatives:
Notice that 0 is a singular point of this differential equation. We will not be able to find a solution in the form ∑anyn, since the solution will not be differentiable at zero. Alternatively, we find a solution in the form
y=n=0∑∞an(x−1)n
This is the power series centered about x=1, which is not a singular point. Now take derivatives
y′=n=1∑∞nan(x−1)n−1y′′=n=2∑∞n(n−1)an(x−1)n−23xn=2∑∞n(n−1)an(x−1)n−2+(1−x)n=1∑∞nan(x−1)n−1−n=0∑∞an(x−1)n=0
We would like to combine like terms, but there are two problems. The first is the powers of x do not match and the second is that the summations begin in differently. We will first deal with the powers of x. We shift the index of the first, second and last summation by letting
3(x−1+1)n=2∑∞n(n−1)an(x−1)n−2−(x−1)n=1∑∞nan(x−1)n−1−n=0∑∞an(x−1)n3(x−1)n=2∑∞n(n−1)an(x−1)n−2+3n=2∑∞n(n−1)an(x−1)n−2−(x−1)n=1∑∞nan(x−1)n−1−n=0∑∞an(x−1)n3n=2∑∞n(n−1)an(x−1)n−1+3n=2∑∞n(n−1)an(x−1)n−2−n=1∑∞nan(x−1)n−n=0∑∞an(x−1)n=0=0=03n=1∑∞n(n+1)an+1(x−1)n+3n=0∑∞(n+2)(n+1)an+2(x−1)n−n=1∑∞nan(x−1)n−n=0∑∞an(x−1)n=0
Some summation begins at 1 while the first and second begin at 0. We deal with this by pulling out the 1th term.
3n=1∑∞n(n+1)an+1(x−1)n+3∗2a2+3n=1∑∞(n+2)(n+1)an+2(x−1)n−n=1∑∞nan(x−1)n−a0−n=1∑∞an(x−1)n=06a2−a0+n=1∑∞[3n(n+1)an+1+3(n+2)(n+1)an+2−nan−an](x−1)n=0a2=61a0an+2=3(n+2)an−3nan+1
We need two pair linearly independent solutions, so assume
Assume a0=1, a1=0, then a2=61, a3=−181
y1=1+61x2−181x3+⋯
Assume a0=1, a1=1, then a2=61, a3=181
y2=1+x+61x2+181x3+⋯
General solution is
y=C1y1+C2y2