2.4.58 Problem 55

Maple
Mathematica
Sympy

Internal problem ID [8946]
Book : Own collection of miscellaneous problems
Section : section 4.0
Problem number : 55
Date solved : Friday, April 25, 2025 at 05:25:30 PM
CAS classification : [[_2nd_order, _exact, _linear, _homogeneous]]

Solve

2x2y+3xyy=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+3xyy=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)=32xq(x)=12x2
Table 2.109: Table p(x),q(x) singularites.
p(x)=32x
singularity type
x=0 “regular”
q(x)=12x2
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+3xyy=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)+3x(n=0(n+r)anxn+r1)(n=0anxn+r)=0

Which simplifies to

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

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

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

When n=0 the above becomes

2xra0r(1+r)+3xra0ra0xr=0

Or

(2xrr(1+r)+3xrrxr)a0=0

Since a00 then the above simplifies to

(2r2+r1)xr=0

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

2r2+r1=0

Solving for r gives the roots of the indicial equation as

r1=12r2=1

Since a00 then the indicial equation becomes

(2r2+r1)xr=0

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

Since r1r2=32 is not an integer, then we can construct two linearly independent solutions

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

Or

y1(x)=n=0anxn+12y2(x)=n=0bnxn1

We start by finding y1(x). 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)+3an(n+r)an=0

Solving for an from recursive equation (4) gives

(4)an=0

Which for the root r=12 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 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)=x(a0+a1x+a2x2+a3x3+a4x4+a5x5+a6x6)=x(1+O(x6))

Now the second solution y2(x) is found. Eq (2B) derived above is now used to find all bn coefficients. The case n=0 is skipped since it was used to find the roots of the indicial equation. b0 is arbitrary and taken as b0=1. For 0n the recursive equation is

(3)2bn(n+r)(n+r1)+3bn(n+r)bn=0

Solving for bn from recursive equation (4) gives

(4)bn=0

Which for the root r=1 becomes

(5)bn=0

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

n bn,r bn
b0 1 1

For n=1, using the above recursive equation gives

b1=0

And the table now becomes

n bn,r bn
b0 1 1
b1 0 0

For n=2, using the above recursive equation gives

b2=0

And the table now becomes

n bn,r bn
b0 1 1
b1 0 0
b2 0 0

For n=3, using the above recursive equation gives

b3=0

And the table now becomes

n bn,r bn
b0 1 1
b1 0 0
b2 0 0
b3 0 0

For n=4, using the above recursive equation gives

b4=0

And the table now becomes

n bn,r bn
b0 1 1
b1 0 0
b2 0 0
b3 0 0
b4 0 0

For n=5, using the above recursive equation gives

b5=0

And the table now becomes

n bn,r bn
b0 1 1
b1 0 0
b2 0 0
b3 0 0
b4 0 0
b5 0 0

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

y2(x)=x(b0+b1x+b2x2+b3x3+b4x4+b5x5+b6x6)=1+O(x6)x

Therefore the homogeneous solution is

yh(x)=c1y1(x)+c2y2(x)=c1x(1+O(x6))+c2(1+O(x6))x

Hence the final solution is

y=yh=c1x(1+O(x6))+c2(1+O(x6))x
Maple. Time used: 0.032 (sec). Leaf size: 20
Order:=6; 
ode:=2*x^2*diff(diff(y(x),x),x)+3*x*diff(y(x),x)-y(x) = 0; 
dsolve(ode,y(x),type='series',x=0);
 
y=x3/2c2+c1x+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))+3x(ddxy(x))y(x)=0Highest derivative means the order of the ODE is2ddxddxy(x)Isolate 2nd derivativeddxddxy(x)=y(x)2x23(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)+3(ddxy(x))2xy(x)2x2=0Multiply by denominators of the ODE2x2(ddxddxy(x))+3x(ddxy(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 ODE2x2(ddtddty(t)x2ddty(t)x2)+3ddty(t)y(t)=0Simplify2ddtddty(t)+ddty(t)y(t)=0Isolate 2nd derivativeddtddty(t)=ddty(t)2+y(t)2Group terms withy(t)on the lhs of the ODE and the rest on the rhs of the ODE; ODE is linearddtddty(t)+ddty(t)2y(t)2=0Characteristic polynomial of ODEr2+12r12=0Factor the characteristic polynomial(r+1)(2r1)2=0Roots of the characteristic polynomialr=(1,12)1st solution of the ODEy1(t)=et2nd solution of the ODEy2(t)=et2General solution of the ODEy(t)=C1y1(t)+C2y2(t)Substitute in solutionsy(t)=C1et+C2et2Change variables back usingt=ln(x)y(x)=C1x+C2xSimplifyy(x)=C1x+C2x
Mathematica. Time used: 0.004 (sec). Leaf size: 18
ode=2*x^2*D[y[x],{x,2}]+3*x*D[y[x],x]-y[x]==0; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
y(x)c1x+c2x
Sympy. Time used: 0.746 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x**2*Derivative(y(x), (x, 2)) + 3*x*Derivative(y(x), x) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
y(x)=C2x+C1x+O(x6)