Series Solutions - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

ODE Steps for Series Solutions

 

Overview

Examples

Overview

• 

This help page gives a few examples of using the command ODESteps to solve ordinary differential equations by means of series expansions.

• 

See Student[ODEs][ODESteps] for a general description of the command ODESteps and its calling sequence.

Examples

withStudent:-ODEs:

ode1x2diffyx,x,x+xdiffyx,x+5xyx=0

ode1x2ⅆ2ⅆx2yx+xⅆⅆxyx+5xyx=0

(1)

ODEStepsode1

Let's solvex2ⅆ2ⅆx2yx+xⅆⅆxyx+5xyx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxIsolate 2nd derivativeⅆ2ⅆx2yx=5yxxⅆⅆxyxxGroup terms withyxon the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearⅆ2ⅆx2yx+ⅆⅆxyxx+5yxx=0Check to see ifx0=0is a regular singular pointDefine functionsP2x=1x,P3x=5xxP2xis analytic atx=0xP2xx=0|xP2xx=0=1x2P3xis analytic atx=0x2P3xx=0|x2P3xx=0=0x=0is a regular singular pointCheck to see ifx0=0is a regular singular pointx0=0Multiply by denominatorsⅆ2ⅆx2yxx+5yx+ⅆⅆxyx=0Assume series solution foryxyx=k=0akxk+rRewrite ODE with series expansionsConvertⅆⅆxyxto series expansionⅆⅆxyx=k=0akk+rxk+r1Shift index usingk->k+1ⅆⅆxyx=k=−1ak+1k+1+rxk+rConvertxⅆ2ⅆx2yxto series expansionxⅆ2ⅆx2yx=k=0akk+rk+r1xk+r1Shift index usingk->k+1xⅆ2ⅆx2yx=k=−1ak+1k+1+rk+rxk+rRewrite ODE with series expansionsa0r2x1+r+k=0ak+1k+1+r2+5akxk+r=0a0cannot be 0 by assumption, giving the indicial equationr2=0Values of r that satisfy the indicial equationr=0Each term in the series must be 0, giving the recursion relationak+1k+12+5ak=0Recursion relation that defines series solution to ODEak+1=5akk+12Recursion relation forr=0ak+1=5akk+12Solution forr=0yx=k=0akxk,ak+1=5akk+12

(2)

ode2diffyx,x,x+xdiffyx,x+yx=0

ode2ⅆ2ⅆx2yx+xⅆⅆxyx+yx=0

(3)

ODEStepsode2

Let's solveⅆ2ⅆx2yx+xⅆⅆxyx+yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxAssume series solution foryxyx=k=0akxkRewrite DE with series expansionsConvertxⅆⅆxyxto series expansionxⅆⅆxyx=k=0akkxkConvertⅆ2ⅆx2yxto series expansionⅆ2ⅆx2yx=k=2akkk1xk2Shift index usingk->k+2ⅆ2ⅆx2yx=k=0ak+2k+2k+1xkRewrite DE with series expansionsk=0ak+2k+2k+1+akk+1xk=0Each term in the series must be 0, giving the recursion relationk+1ak+2k+2+ak=0Recursion relation that defines the series solution to the ODEyx=k=0akxk,ak+2=akk+2

(4)

ode3x2diffyx,x,x+x2diffyx,x+x36yx=0

ode3x2ⅆ2ⅆx2yx+x2ⅆⅆxyx+x36yx=0

(5)

ODEStepsode3

Let's solvex2ⅆ2ⅆx2yx+x2ⅆⅆxyx+x36yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxIsolate 2nd derivativeⅆ2ⅆx2yx=x36yxx2ⅆⅆxyxGroup terms withyxon the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearⅆ2ⅆx2yx+ⅆⅆxyx+x36yxx2=0Check to see ifx0=0is a regular singular pointDefine functionsP2x=1,P3x=x36x2xP2xis analytic atx=0xP2xx=0|xP2xx=0=0x2P3xis analytic atx=0x2P3xx=0|x2P3xx=0=−6x=0is a regular singular pointCheck to see ifx0=0is a regular singular pointx0=0Multiply by denominatorsx2ⅆ2ⅆx2yx+x2ⅆⅆxyx+x36yx=0Assume series solution foryxyx=k=0akxk+rRewrite ODE with series expansionsConvertxmyxto series expansion form=0..3xmyx=k=0akxk+r+mShift index usingk->kmxmyx=k=makmxk+rConvertx2ⅆⅆxyxto series expansionx2ⅆⅆxyx=k=0akk+rxk+r+1Shift index usingk->k1x2ⅆⅆxyx=k=1ak1k1+rxk+rConvertx2ⅆ2ⅆx2yxto series expansionx2ⅆ2ⅆx2yx=k=0akk+rk1+rxk+rRewrite ODE with series expansionsa02+r3+rxr+a13+r2+r+a0rx1+r+a24+r1+r+a11+rx2+r+k=3akk+r+2k+r3+ak1k1+r+ak3xk+r=0a0cannot be 0 by assumption, giving the indicial equation2+r3+r=0Values of r that satisfy the indicial equationr−2,3The coefficients of each power ofxmust be 0a13+r2+r+a0r=0,a24+r1+r+a11+r=0Solve for the dependent coefficient(s)a1=a0rr2+r6,a2=a0r1+rr4+4r37r222r+24Each term in the series must be 0, giving the recursion relationakk+r+2k+r3+ak1k+ak1r+ak3ak1=0Shift index usingk->k+3ak+3k+5+rk+r+ak+2k+3+ak+2r+akak+2=0Recursion relation that defines series solution to ODEak+3=kak+2+ak+2r+ak+2ak+2k+5+rk+rRecursion relation forr=−2ak+3=kak+2+akk+3k2Series not valid forr=−2, division by0in the recursion relation atk=2ak+3=kak+2+akk+3k2Recursion relation forr=3ak+3=kak+2+ak+5ak+2k+8k+3Solution forr=3yx=k=0akxk+3,ak+3=kak+2+ak+5ak+2k+8k+3,a1=a02,a2=a07

(6)

ode4diffyx,x,x+diffyx,x+x2yx=0

ode4ⅆ2ⅆx2yx+ⅆⅆxyx+x2yx=0

(7)

ODEStepsode4

Let's solveⅆ2ⅆx2yx+ⅆⅆxyx+x2yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxAssume series solution foryxyx=k=0akxkRewrite ODE with series expansionsConvertx2yxto series expansionx2yx=k=0akxk+2Shift index usingk->k2x2yx=k=2ak2xkConvertⅆⅆxyxto series expansionⅆⅆxyx=k=1akkxk1Shift index usingk->k+1ⅆⅆxyx=k=0ak+1k+1xkConvertⅆ2ⅆx2yxto series expansionⅆ2ⅆx2yx=k=2akkk1xk2Shift index usingk->k+2ⅆ2ⅆx2yx=k=0ak+2k+2k+1xkRewrite ODE with series expansions2a2+a1+6a3+2a2x+k=2ak+2k+2k+1+ak+1k+1+ak2xk=0The coefficients of each power ofxmust be 02a2+a1=0,6a3+2a2=0Solve for the dependent coefficient(s)a2=a12,a3=a16Each term in the series must be 0, giving the recursion relationk2+3k+2ak+2+ak+1k+ak2+ak+1=0Shift index usingk->k+2k+22+3k+8ak+4+ak+3k+2+ak+ak+3=0Recursion relation that defines the series solution to the ODEyx=k=0akxk,ak+4=kak+3+ak+3ak+3k2+7k+12,a2=a12,a3=a16

(8)

ode5diffx2+1diffyx,x,x+12yx=0

ode52xⅆⅆxyx+x2+1ⅆ2ⅆx2yx+12yx=0

(9)

ODEStepsode5

Let's solve2xⅆⅆxyx+x2+1ⅆ2ⅆx2yx+12yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxIsolate 2nd derivativeⅆ2ⅆx2yx=12yxx212xⅆⅆxyxx21Group terms withyxon the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearⅆ2ⅆx2yx+2xⅆⅆxyxx2112yxx21=0Check to see ifx0is a regular singular pointDefine functionsP2x=2xx21,P3x=12x21x+1P2xis analytic atx=−1x+1P2xx=−1|x+1P2xx=−1=1x+12P3xis analytic atx=−1x+12P3xx=−1|x+12P3xx=−1=0x=−1is a regular singular pointCheck to see ifx0is a regular singular pointx0=−1Multiply by denominatorsⅆ2ⅆx2yxx21+2xⅆⅆxyx12yx=0Change variables usingx=u1so that the regular singular point is atu=0u22uⅆ2ⅆu2yu+2u2ⅆⅆuyu12yu=0Assume series solution foryuyu=k=0akuk+rRewrite ODE with series expansionsConvertumⅆⅆuyuto series expansion form=0..1umⅆⅆuyu=k=0akk+ruk+r1+mShift index usingk->k+1mumⅆⅆuyu=k=1+mak+1mk+1m+ruk+rConvertumⅆ2ⅆu2yuto series expansion form=1..2umⅆ2ⅆu2yu=k=0akk+rk+r1uk+r2+mShift index usingk->k+2mumⅆ2ⅆu2yu=k=2+mak+2mk+2m+rk+1m+ruk+rRewrite ODE with series expansions2a0r2u1+r+k=02ak+1k+1+r2+akk+r+4k+r3uk+r=0a0cannot be 0 by assumption, giving the indicial equation2r2=0Values of r that satisfy the indicial equationr=0Each term in the series must be 0, giving the recursion relation2ak+1k+12+akk+4k3=0Recursion relation that defines series solution to ODEak+1=akk+4k32k+12Recursion relation forr=0; series terminates atk=3ak+1=akk+4k32k+12Apply recursion relation fork=0a1=6a0Apply recursion relation fork=1a2=5a14Express in terms ofa0a2=15a02Apply recursion relation fork=2a3=a23Express in terms ofa0a3=5a02Terminating series solution of the ODE forr=0. Use reduction of order to find the second linearly independent solutionyu=a016u+152u252u3Revert the change of variablesu=x+1yx=a032x52x3

(10)

ode6xdiffyx,x,x+1xdiffyx,x+4yx=0

ode6ⅆ2ⅆx2yxx+1xⅆⅆxyx+4yx=0

(11)

ODEStepsode6

Let's solveⅆ2ⅆx2yxx+1xⅆⅆxyx+4yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxIsolate 2nd derivativeⅆ2ⅆx2yx=4yxx+1+xⅆⅆxyxxGroup terms withyxon the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearⅆ2ⅆx2yx1+xⅆⅆxyxx+4yxx=0Check to see ifx0=0is a regular singular pointDefine functionsP2x=1+xx,P3x=4xxP2xis analytic atx=0xP2xx=0|xP2xx=0=1x2P3xis analytic atx=0x2P3xx=0|x2P3xx=0=0x=0is a regular singular pointCheck to see ifx0=0is a regular singular pointx0=0Multiply by denominatorsⅆ2ⅆx2yxx+1xⅆⅆxyx+4yx=0Assume series solution foryxyx=k=0akxk+rRewrite ODE with series expansionsConvertxmⅆⅆxyxto series expansion form=0..1xmⅆⅆxyx=k=0akk+rxk+r1+mShift index usingk->k+1mxmⅆⅆxyx=k=1+mak+1mk+1m+rxk+rConvertxⅆ2ⅆx2yxto series expansionxⅆ2ⅆx2yx=k=0akk+rk+r1xk+r1Shift index usingk->k+1xⅆ2ⅆx2yx=k=−1ak+1k+1+rk+rxk+rRewrite ODE with series expansionsa0r2x1+r+k=0ak+1k+1+r2akk+r4xk+r=0a0cannot be 0 by assumption, giving the indicial equationr2=0Values of r that satisfy the indicial equationr=0Each term in the series must be 0, giving the recursion relationak+1k+12akk4=0Recursion relation that defines series solution to ODEak+1=akk4k+12Recursion relation forr=0; series terminates atk=4ak+1=akk4k+12Apply recursion relation fork=0a1=4a0Apply recursion relation fork=1a2=3a14Express in terms ofa0a2=3a0Apply recursion relation fork=2a3=2a29Express in terms ofa0a3=2a03Apply recursion relation fork=3a4=a316Express in terms ofa0a4=a024Terminating series solution of the ODE forr=0. Use reduction of order to find the second linearly independent solutionyx=a014x+3x223x3+124x4

(12)

ode7xdiffyx,x,x+1xdiffyx,x+6yx=0

ode7ⅆ2ⅆx2yxx+1xⅆⅆxyx+6yx=0

(13)

ODEStepsode7

Let's solveⅆ2ⅆx2yxx+1xⅆⅆxyx+6yx=0Highest derivative means the order of the ODE is2ⅆ2ⅆx2yxIsolate 2nd derivativeⅆ2ⅆx2yx=6yxx+1+xⅆⅆxyxxGroup terms withyxon the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearⅆ2ⅆx2yx1+xⅆⅆxyxx+6yxx=0Check to see ifx0=0is a regular singular pointDefine functionsP2x=1+xx,P3x=6xxP2xis analytic atx=0xP2xx=0|xP2xx=0=1x2P3xis analytic atx=0x2P3xx=0|x2P3xx=0=0x=0is a regular singular pointCheck to see ifx0=0is a regular singular pointx0=0Multiply by denominatorsⅆ2ⅆx2yxx+1xⅆⅆxyx+6yx=0Assume series solution foryxyx=k=0akxk+rRewrite ODE with series expansionsConvertxmⅆⅆxyxto series expansion form=0..1xmⅆⅆxyx=k=0akk+rxk+r1+mShift index usingk->k+1mxmⅆⅆxyx=k=1+mak+1mk+1m+rxk+rConvertxⅆ2ⅆx2yxto series expansionxⅆ2ⅆx2yx=k=0akk+rk+r1xk+r1Shift index usingk->k+1xⅆ2ⅆx2yx=k=−1ak+1k+1+rk+rxk+rRewrite ODE with series expansionsa0r2x1+r+k=0ak+1k+1+r2akk+r6xk+r=0a0cannot be 0 by assumption, giving the indicial equationr2=0Values of r that satisfy the indicial equationr=0Each term in the series must be 0, giving the recursion relationak+1k+12akk6=0Recursion relation that defines series solution to ODEak+1=akk6k+12Recursion relation forr=0; series terminates atk=6ak+1=akk6k+12Recursion relation that defines the terminating series solution of the ODE forr=0yx=k=05akxk,ak+1=akk6k+12

(14)

See Also

diff

Int

Student

Student[ODEs]

Student[ODEs][ODESteps]

 


Download Help Document