Question
Question: How do you use a power series to solve the differential equation \({{y}^{''}}=y\)?...
How do you use a power series to solve the differential equation y′′=y?
Solution
In this problem we need to calculate the solution of the differential equation by using the power series. In this power series we will assume the solution as y=n=0∑∞cnxn where cn is to be determined. Now we will calculate all the values that we have in the given equation from the value of y. That means we will calculate the values like y′, y′′ and so on by derivating the value of y with respect to x. After calculating all the values, we will substitute them in the given equation and simplify the equation to the value of cn. From the value of cn we can write the solution of the differential equation.
Complete step by step answer:
The differential equation is y′′=y.
Let us assume the solution of the given differential equation from the power series
y=n=0∑∞cnxn
In the given equation we have the values y, y′′. To calculate the value of y′′ we need to derive the value of y with respect to x two times.
Differentiating the y value with respect to x, then we will get
⇒y′=n=1∑∞ncnxn−1
Again, differentiating the above value with respect to x, then we will have
⇒y′′=n=2∑∞n(n−1)cnxn−2
We have the given equation y′′=y. Substituting the values, we have in the given equation, then we will get
⇒y′′=y⇒n=2∑∞n(n−1)cnxn−2=n=0∑∞cnxn
Shifting the indices on the summation on the left side by 2, then we will get
⇒n=0∑∞(n+2)(n+1)cn+2xn=n=0∑∞cnxn
Equating the both the values in the above equation, then we have
⇒(n+2)(n+1)cn+2=cn⇒cn+2=(n+2)(n+1)cn
Let us observe the first few even numbers according to the above condition by substituting n=0,2,...,2n, then we will get
⇒c2=2.11c0=2!1c0
⇒c4=4.31c2=4.31.2!1c0=4!1c0
.
.
.
⇒c2n=(2n)!1c0
Now observe the few first odd terms based on above condition by substituting n=1,3,...,2n+1 then we will get
⇒c3=3.21c1=3!1c1
⇒c5=5.41c3=5.41.3!1c1=5!1c1
.
.
.
⇒c2n+1=(2n+1)!1c1
Now substituting these values in the solution which is y=n=0∑∞cnxn, then we will get
⇒y=n=0∑∞cnxn
Separating even terms and odd terms in the summation, then we will get
⇒y=n=0∑∞c2nx2n+n=0∑∞c2n+1x2n+1
Substituting the calculated values in the above equation, then we will get
⇒y=c0n=0∑∞(2n)!x2n+c1n=0∑∞(2n+1)!x2n+1
Hence the solution of the given differential equation y′′=y is y=c0n=0∑∞(2n)!x2n+c1n=0∑∞(2n+1)!x2n+1 where c0, c1 are the constants.
Note: We can also use the hyperbolic formulas that we have in the solution. Substituting the formulas coshx=n=0∑∞(2n)!x2n, sinhx=n=0∑∞(2n+1)!x2n+1 in the solution then we will get
y=c0coshx+c1sinhx.
The above solution is easy to remember and simple to use in further problems.