2.4.34 Problem 31

Maple
Mathematica
Sympy

Internal problem ID [8922]
Book : Own collection of miscellaneous problems
Section : section 4.0
Problem number : 31
Date solved : Friday, April 25, 2025 at 05:24:40 PM
CAS classification : [[_Emden, _Fowler]]

Solve

x2y+y=0

Using series expansion around x=0

The type of the expansion point is first determined. This is done on the homogeneous part of the ODE.

x2y+y=0

The following is summary of singularities for the above ode. Writing the ode as

y+p(x)y+q(x)y=0

Where

p(x)=0q(x)=1x2
Table 2.86: Table p(x),q(x) singularites.
p(x)=0
singularity type
q(x)=1x2
singularity type
x=0 “regular”

Combining everything together gives the following summary of singularities for the ode as

Regular singular points : [0,]

Irregular singular points : []

Since x=0 is regular singular point, then Frobenius power series is used. The ode is normalized to be

x2y+y=0

Let the solution be represented as Frobenius power series of the form

y=n=0anxn+r

Then

y=n=0(n+r)anxn+r1y=n=0(n+r)(n+r1)anxn+r2

Substituting the above back into the ode gives

(1)x2(n=0(n+r)(n+r1)anxn+r2)+(n=0anxn+r)=0

Which simplifies to

(2A)(n=0xn+ran(n+r)(n+r1))+(n=0anxn+r)=0

The next step is to make all powers of x be n+r in each summation term. Going over each summation term above with power of x in it which is not already xn+r and adjusting the power and the corresponding index gives Substituting all the above in Eq (2A) gives the following equation where now all powers of x are the same and equal to n+r.

(2B)(n=0xn+ran(n+r)(n+r1))+(n=0anxn+r)=0

The indicial equation is obtained from n=0. From Eq (2B) this gives

xn+ran(n+r)(n+r1)+anxn+r=0

When n=0 the above becomes

xra0r(1+r)+a0xr=0

Or

(xrr(1+r)+xr)a0=0

Since a00 then the above simplifies to

(r2r+1)xr=0

Since the above is true for all x then the indicial equation becomes

r2r+1=0

Solving for r gives the roots of the indicial equation as

r1=12+i32r2=12i32

Since a00 then the indicial equation becomes

(r2r+1)xr=0

Solving for r gives the roots of the indicial equation as [12+i32,12i32].

Since the roots are complex conjugates, then two linearly independent solutions can be constructed using

y1(x)=xr1(n=0anxn)y2(x)=xr2(n=0bnxn)

Or

y1(x)=n=0anxn+12+i32y2(x)=n=0bnxn+12i32

y1(x) is found first. Eq (2B) derived above is now used to find all an coefficients. The case n=0 is skipped since it was used to find the roots of the indicial equation. a0 is arbitrary and taken as a0=1. For 0n the recursive equation is

(3)an(n+r)(n+r1)+an=0

Solving for an from recursive equation (4) gives

(4)an=0

Which for the root r=12+i32 becomes

(5)an=0

At this point, it is a good idea to keep track of an in a table both before substituting r=12+i32 and after as more terms are found using the above recursive equation.

n an,r an
a0 1 1

For n=1, using the above recursive equation gives

a1=0

And the table now becomes

n an,r an
a0 1 1
a1 0 0

For n=2, using the above recursive equation gives

a2=0

And the table now becomes

n an,r an
a0 1 1
a1 0 0
a2 0 0

For n=3, using the above recursive equation gives

a3=0

And the table now becomes

n an,r an
a0 1 1
a1 0 0
a2 0 0
a3 0 0

For n=4, using the above recursive equation gives

a4=0

And the table now becomes

n an,r an
a0 1 1
a1 0 0
a2 0 0
a3 0 0
a4 0 0

For n=5, using the above recursive equation gives

a5=0

And the table now becomes

n an,r an
a0 1 1
a1 0 0
a2 0 0
a3 0 0
a4 0 0
a5 0 0

Using the above table, then the solution y1(x) is

y1(x)=x12+i32(a0+a1x+a2x2+a3x3+a4x4+a5x5+a6x6)=x12+i32(1+O(x6))

The second solution y2(x) is found by taking the complex conjugate of y1(x) which gives

y2(x)=x12i32(1+O(x6))

Therefore the homogeneous solution is

yh(x)=c1y1(x)+c2y2(x)=c1x12+i32(1+O(x6))+c2x12i32(1+O(x6))

Hence the final solution is

y=yh=c1x12+i32(1+O(x6))+c2x12i32(1+O(x6))
Maple. Time used: 0.026 (sec). Leaf size: 32
Order:=6; 
ode:=x^2*diff(diff(y(x),x),x)+y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
y=x(c1xi32+c2xi32)+O(x6)

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
checking if the LODE has constant coefficients 
checking if the LODE is of Euler type 
<- LODE of Euler type successful
 

Maple step by step

Let’s solvex2(ddxddxy(x))+y(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=y(x)x2Group terms withy(x)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddxddxy(x)+y(x)x2=0Multiply by denominators of the ODEx2(ddxddxy(x))+y(x)=0Make a change of variablest=ln(x)Substitute the change of variables back into the ODECalculate the1stderivative ofywith respect tox, using the chain ruleddxy(x)=(ddty(t))(ddxt(x))Compute derivativeddxy(x)=ddty(t)xCalculate the2ndderivative ofywith respect tox, using the chain ruleddxddxy(x)=(ddtddty(t))(ddxt(x))2+(ddxddxt(x))(ddty(t))Compute derivativeddxddxy(x)=ddtddty(t)x2ddty(t)x2Substitute the change of variables back into the ODEx2(ddtddty(t)x2ddty(t)x2)+y(t)=0Simplifyddtddty(t)ddty(t)+y(t)=0Characteristic polynomial of ODEr2r+1=0Use quadratic formula to solve forrr=1±(3)2Roots of the characteristic polynomialr=(12I32,12+I32)1st solution of the ODEy1(t)=et2cos(3t2)2nd solution of the ODEy2(t)=et2sin(3t2)General solution of the ODEy(t)=C1y1(t)+C2y2(t)Substitute in solutionsy(t)=C1et2cos(3t2)+C2et2sin(3t2)Change variables back usingt=ln(x)y(x)=C1xcos(3ln(x)2)+C2xsin(3ln(x)2)Simplifyy(x)=x(C1cos(3ln(x)2)+C2sin(3ln(x)2))
Mathematica. Time used: 0.005 (sec). Leaf size: 26
ode=x^2*D[y[x],{x,2}] +y[x] == 0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
y(x)c1x(1)2/3+c2x13
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
ValueError : Expected Expr or iterable but got None