Solveeit Logo

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{{y}^{''}}=y?

Explanation

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=0cnxny=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}} where cn{{c}_{n}} is to be determined. Now we will calculate all the values that we have in the given equation from the value of yy. That means we will calculate the values like y{{y}^{'}}, y{{y}^{''}} and so on by derivating the value of yy with respect to xx. After calculating all the values, we will substitute them in the given equation and simplify the equation to the value of cn{{c}_{n}}. From the value of cn{{c}_{n}} we can write the solution of the differential equation.

Complete step by step answer:
The differential equation is y=y{{y}^{''}}=y.
Let us assume the solution of the given differential equation from the power series
y=n=0cnxny=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}}
In the given equation we have the values yy, y{{y}^{''}}. To calculate the value of y{{y}^{''}} we need to derive the value of yy with respect to xx two times.
Differentiating the yy value with respect to xx, then we will get
y=n=1ncnxn1\Rightarrow {{y}^{'}}=\sum\limits_{n=1}^{\infty }{n{{c}_{n}}{{x}^{n-1}}}
Again, differentiating the above value with respect to xx, then we will have
y=n=2n(n1)cnxn2\Rightarrow {{y}^{''}}=\sum\limits_{n=2}^{\infty }{n\left( n-1 \right){{c}_{n}}{{x}^{n-2}}}
We have the given equation y=y{{y}^{''}}=y. Substituting the values, we have in the given equation, then we will get
y=y n=2n(n1)cnxn2=n=0cnxn \begin{aligned} & \Rightarrow {{y}^{''}}=y \\\ & \Rightarrow \sum\limits_{n=2}^{\infty }{n\left( n-1 \right){{c}_{n}}{{x}^{n-2}}}=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}} \\\ \end{aligned}
Shifting the indices on the summation on the left side by 22, then we will get
n=0(n+2)(n+1)cn+2xn=n=0cnxn\Rightarrow \sum\limits_{n=0}^{\infty }{\left( n+2 \right)\left( n+1 \right){{c}_{n+2}}{{x}^{n}}}=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}}
Equating the both the values in the above equation, then we have
(n+2)(n+1)cn+2=cn cn+2=cn(n+2)(n+1) \begin{aligned} & \Rightarrow \left( n+2 \right)\left( n+1 \right){{c}_{n+2}}={{c}_{n}} \\\ & \Rightarrow {{c}_{n+2}}=\dfrac{{{c}_{n}}}{\left( n+2 \right)\left( n+1 \right)} \\\ \end{aligned}
Let us observe the first few even numbers according to the above condition by substituting n=0,2,...,2nn=0,2,...,2n, then we will get
c2=12.1c0=12!c0\Rightarrow {{c}_{2}}=\dfrac{1}{2.1}{{c}_{0}}=\dfrac{1}{2!}{{c}_{0}}
c4=14.3c2=14.3.12!c0=14!c0\Rightarrow {{c}_{4}}=\dfrac{1}{4.3}{{c}_{2}}=\dfrac{1}{4.3}.\dfrac{1}{2!}{{c}_{0}}=\dfrac{1}{4!}{{c}_{0}}
.
.
.
c2n=1(2n)!c0\Rightarrow {{c}_{2n}}=\dfrac{1}{\left( 2n \right)!}{{c}_{0}}
Now observe the few first odd terms based on above condition by substituting n=1,3,...,2n+1n=1,3,...,2n+1 then we will get
c3=13.2c1=13!c1\Rightarrow {{c}_{3}}=\dfrac{1}{3.2}{{c}_{1}}=\dfrac{1}{3!}{{c}_{1}}
c5=15.4c3=15.4.13!c1=15!c1\Rightarrow {{c}_{5}}=\dfrac{1}{5.4}{{c}_{3}}=\dfrac{1}{5.4}.\dfrac{1}{3!}{{c}_{1}}=\dfrac{1}{5!}{{c}_{1}}
.
.
.
c2n+1=1(2n+1)!c1\Rightarrow {{c}_{2n+1}}=\dfrac{1}{\left( 2n+1 \right)!}{{c}_{1}}
Now substituting these values in the solution which is y=n=0cnxny=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}}, then we will get
y=n=0cnxn\Rightarrow y=\sum\limits_{n=0}^{\infty }{{{c}_{n}}{{x}^{n}}}
Separating even terms and odd terms in the summation, then we will get
y=n=0c2nx2n+n=0c2n+1x2n+1\Rightarrow y=\sum\limits_{n=0}^{\infty }{{{c}_{2n}}{{x}^{2n}}}+\sum\limits_{n=0}^{\infty }{{{c}_{2n+1}}{{x}^{2n+1}}}
Substituting the calculated values in the above equation, then we will get
y=c0n=0x2n(2n)!+c1n=0x2n+1(2n+1)!\Rightarrow y={{c}_{0}}\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n}}}{\left( 2n \right)!}}+{{c}_{1}}\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n+1}}}{\left( 2n+1 \right)!}}
Hence the solution of the given differential equation y=y{{y}^{''}}=y is y=c0n=0x2n(2n)!+c1n=0x2n+1(2n+1)!y={{c}_{0}}\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n}}}{\left( 2n \right)!}}+{{c}_{1}}\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n+1}}}{\left( 2n+1 \right)!}} where c0{{c}_{0}}, c1{{c}_{1}} are the constants.

Note: We can also use the hyperbolic formulas that we have in the solution. Substituting the formulas coshx=n=0x2n(2n)!\cosh x=\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n}}}{\left( 2n \right)!}}, sinhx=n=0x2n+1(2n+1)!\sinh x=\sum\limits_{n=0}^{\infty }{\dfrac{{{x}^{2n+1}}}{\left( 2n+1 \right)!}} in the solution then we will get
y=c0coshx+c1sinhxy={{c}_{0}}\cosh x+{{c}_{1}}\sinh x.
The above solution is easy to remember and simple to use in further problems.