Question
Question: How do you use power series to solve the differential equation \(y' = xy\)?...
How do you use power series to solve the differential equation y′=xy?
Solution
In the above question, the concept is based on the concept of differentiating an equation using power series. The main approach towards solving this is to find a power series solution for the differential equation around point x0.
Complete step by step solution:
In mathematics, a power series is an infinite series of the form
n=0∑∞an(x−c)n=a0+a1(x−c)1+a2(x−c)2+...
where an is the coefficient of the nth term, c is a constant term and x is the variable.
Generally, it can be written as
Let
y=n=1∑∞cnxn
So now by derivating the above term we get,
y′=n=1∑∞ncnxn−1
Now, the given differential equation is
y′=xy
By substituting the power series we get,
n=1∑∞ncnxn−1=xn=0∑∞ncnxn
By extracting the first term from the summation on the left,
By shifting the indices of the summation on the left by 2
c1+n=0∑∞(n+2)cn+2xn+1=n=0∑∞cnxn+1
By making the coefficients match,
c1=0 and (n+2)cn+2=cn⇒cn+2=n+2cn
Now let us focus on the odd terms
The general term of the above odd series can be written as c2n+1=0
Now let us look at the even terms.
c2=2c0 c4=2c2=4×2c0=22×3!c0
The general term of the above even series can be written as
c2n=2n×n!c0 Therefore, by substituting we get,
y=n=0∑∞2n×n!c0x2n=c0n=0∑∞n!(2x2)n=c0e2x2
Now replacing x by 2x2in ex we get,
n=0∑∞n!xn
Note: An important thing to note is that the general terms c2n+1=0 and c2n=2n×n!c0 is figured out in such a way that we need to check the pattern of the series of the odd terms and the even terms.Since in the odd terms were giving value as 0 and for even the power with base 2 is same that is why we get the above general terms.