Series Solution Take-Home Number 5
With and Without Initial Conditions
Below are examples with type = series and unspecified type.
| > | ode:=2*diff(y(x),x,x)+x*diff(y(x),x)-4*y(x)=x; | 
| > | Order:=12; | 
| > | dsolve({ode},y(x),type=series); | 
| > | dsolve({ode,y(0)=1,D(y)(0)=-1/3},y(x),type=series); | 
| > | dsolve({ode,y(0)=1,D(y)(0)=-1/3},y(x)); | 
| > | rhs(%); | 
| > | poly1:=convert(%,polynom); | 
| > | with(plots): | 
Warning, the name changecoords has been redefined
| > | SeriesSoln1:=plot(poly1,x=0..7,color=blue): | 
| > | display(SeriesSoln1); | 
Notice what a difference a little change in one of the initial conditions makes (although apparently not in the graph of the solution in this case).
| > | dsolve({ode,y(0)=1,D(y)(0)=-1/2},y(x),type=series); | 
| > | rhs(%); | 
| > | poly2:=convert(%,polynom); | 
| > | SeriesSoln2:=plot(poly2,x=0..7,color=red): | 
| > | display(SeriesSoln1,SeriesSoln2); | 
| > | dsolve({ode,y(0)=1,D(y)(0)=-1/2},y(x)); | 
| > | 
| > |