2.4.59 Problem 56

Maple
Mathematica
Sympy

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

Solve

2x2y+5xy+4y=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.

2x2y+5xy+4y=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)=52xq(x)=2x2
Table 2.110: Table p(x),q(x) singularites.
p(x)=52x
singularity type
x=0 “regular”
q(x)=2x2
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

2x2y+5xy+4y=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)2x2(n=0(n+r)(n+r1)anxn+r2)+5x(n=0(n+r)anxn+r1)+4(n=0anxn+r)=0

Which simplifies to

(2A)(n=02xn+ran(n+r)(n+r1))+(n=05xn+ran(n+r))+(n=04anxn+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=02xn+ran(n+r)(n+r1))+(n=05xn+ran(n+r))+(n=04anxn+r)=0

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

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

When n=0 the above becomes

2xra0r(1+r)+5xra0r+4a0xr=0

Or

(2xrr(1+r)+5xrr+4xr)a0=0

Since a00 then the above simplifies to

(2r2+3r+4)xr=0

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

2r2+3r+4=0

Solving for r gives the roots of the indicial equation as

r1=34+i234r2=34i234

Since a00 then the indicial equation becomes

(2r2+3r+4)xr=0

Solving for r gives the roots of the indicial equation as [34+i234,34i234].

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=0anxn34+i234y2(x)=n=0bnxn34i234

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)2an(n+r)(n+r1)+5an(n+r)+4an=0

Solving for an from recursive equation (4) gives

(4)an=0

Which for the root r=34+i234 becomes

(5)an=0

At this point, it is a good idea to keep track of an in a table both before substituting r=34+i234 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)=x34+i234(a0+a1x+a2x2+a3x3+a4x4+a5x5+a6x6)=x34+i234(1+O(x6))

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

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

Therefore the homogeneous solution is

yh(x)=c1y1(x)+c2y2(x)=c1x34+i234(1+O(x6))+c2x34i234(1+O(x6))

Hence the final solution is

y=yh=c1x34+i234(1+O(x6))+c2x34i234(1+O(x6))
Maple. Time used: 0.031 (sec). Leaf size: 32
Order:=6; 
ode:=2*x^2*diff(diff(y(x),x),x)+5*x*diff(y(x),x)+4*y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
y=xi234c1+xi234c2x3/4+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 solve2x2(ddxddxy(x))+5x(ddxy(x))+4y(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=2y(x)x25(ddxy(x))2xGroup terms withy(x)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddxddxy(x)+5(ddxy(x))2x+2y(x)x2=0Multiply by denominators of the ODE2x2(ddxddxy(x))+5x(ddxy(x))+4y(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 ODE2x2(ddtddty(t)x2ddty(t)x2)+5ddty(t)+4y(t)=0Simplify2ddtddty(t)+3ddty(t)+4y(t)=0Isolate 2nd derivativeddtddty(t)=3ddty(t)22y(t)Group terms withy(t)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddtddty(t)+3ddty(t)2+2y(t)=0Characteristic polynomial of ODEr2+32r+2=0Use quadratic formula to solve forrr=(32)±(234)2Roots of the characteristic polynomialr=(34I234,34+I234)1st solution of the ODEy1(t)=e3t4cos(23t4)2nd solution of the ODEy2(t)=e3t4sin(23t4)General solution of the ODEy(t)=C1y1(t)+C2y2(t)Substitute in solutionsy(t)=C1e3t4cos(23t4)+C2e3t4sin(23t4)Change variables back usingt=ln(x)y(x)=C1cos(23ln(x)4)x3/4+C2sin(23ln(x)4)x3/4Simplifyy(x)=C1cos(23ln(x)4)x3/4+C2sin(23ln(x)4)x3/4
Mathematica. Time used: 0.005 (sec). Leaf size: 44
ode=2*x^2*D[y[x],{x,2}]+5*x*D[y[x],x]+4*y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
y(x)c1x14(3+i23)+c2x14(3i23)
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x**2*Derivative(y(x), (x, 2)) + 5*x*Derivative(y(x), x) + 4*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