MapleSeriesTHno4.mws

Series Solution Take-Home Number 4

With initial conditions

Truncated series solutions are graphed in blue (Order = 8), red (Order = 12), green (Order = 16), and black (Order = 32) .

>    ode:=x*diff(y(x),x,x)-y(x)=0;

ode := x*diff(y(x),`$`(x,2))-y(x) = 0

>    Order:=8;

Order := 8

>    dsolve({ode,y(2)=0,D(y)(2)=3},y(x),type=series);

y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7+O((x-2)^8),x=-(-2),8)

>    rhs(%);

series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7+O((x-2)^8),x=-(-2),8)

>    poly1:=convert(%,polynom);

poly1 := 3*x-6+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7

>    with(plots):

>    SeriesSoln1:=plot(poly1,x=2..7,color=blue):

>    display(SeriesSoln1);

[Maple Plot]

>    Order:=12;

Order := 12

>    dsolve({ode,y(2)=0,D(y)(2)=3},y(x),type=series);

y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11+O((x-2)^12),x=-(-2),12)
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11+O((x-2)^12),x=-(-2),12)

>    rhs(%);

series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11+O((x-2)^12),x=-(-2),12)
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11+O((x-2)^12),x=-(-2),12)

>    poly2:=convert(%,polynom);

poly2 := 3*x-6+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11

>    SeriesSoln2:=plot(poly2,x=2..7,color=red):

>    display(SeriesSoln1,SeriesSoln2);

[Maple Plot]

>    Order:=16;

Order := 16

>    dsolve({ode,y(2)=0,D(y)(2)=3},y(x),type=series);

y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...

>    rhs(%);

series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...

>    poly3:=convert(%,polynom);

poly3 := 3*x-6+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
poly3 := 3*x-6+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...

>    SeriesSoln3:=plot(poly3,x=2..7,color=green):

>    display(SeriesSoln1,SeriesSoln2,SeriesSoln3);

[Maple Plot]

>    soln1:=plot(poly1,x=2..7,y=0..100,color=blue):

>    soln2:=plot(poly2,x=2..7,y=0..100,color=red):

>    soln3:=plot(poly3,x=2..7,y=0..100,color=green):

>    display(soln1,soln2,soln3);

[Maple Plot]

>    Order:=32;

Order := 32

>    dsolve({ode,y(2)=0,D(y)(2)=3},y(x),type=series);

y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...
y(x) = series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/166...

>    rhs(%);

series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...
series(3*(x-2)+1/4*(x-2)^3-1/16*(x-2)^4+1/40*(x-2)^5-3/320*(x-2)^6+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/1660538880...

>    poly4:=convert(%,polynom);

poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...
poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...
poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...
poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...
poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...
poly4 := -6+3*x+7/1920*(x-2)^7-13/8960*(x-2)^8+163/276480*(x-2)^9-59/241920*(x-2)^10+43621/425779200*(x-2)^11-2971/68124672*(x-2)^12+311837/16605388800*(x-2)^13-241127/29520691200*(x-2)^14+199977709/55...

>    with(plots):

>    SeriesSoln4:=plot(poly4,x=2..7,color=black):

>    display(SeriesSoln4);

[Maple Plot]

>    soln4:=plot(poly4,x=2..7,y=0..100,color=black):

>    display(soln1,soln2,soln3,soln4);

[Maple Plot]

>