2.4.20 Problem 20

Maple
Mathematica
Sympy

Internal problem ID [8908]
Book : Own collection of miscellaneous problems
Section : section 4.0
Problem number : 20
Date solved : Friday, April 25, 2025 at 05:22:58 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

Solve

2x2y+2xyxy=1

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+2xyxy=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)=1xq(x)=12x
Table 2.76: Table p(x),q(x) singularites.
p(x)=1x
singularity type
x=0 “regular”
q(x)=12x
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+2xyxy=1

Since this is an inhomogeneous, then let the solution be

y=yh+yp

Where yh is the solution to the homogeneous ode 2x2y+2xyxy=0, and yp is a particular solution to the inhomogeneous ode.which is found using the balance equation generated from indicial equation

First, we solve for yh 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)+2x(n=0(n+r)anxn+r1)x(n=0anxn+r)=0

Which simplifies to

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

n=0(x1+n+ran)=n=1(an1xn+r)

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=02xn+ran(n+r))+n=1(an1xn+r)=0

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

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

When n=0 the above becomes

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

Or

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

Since a00 then the above simplifies to

2xrr2=0

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

2r2=0

Solving for r gives the roots of the indicial equation as

r1=0r2=0

The corresponding balance equation is found by replacing r by m and a by c to avoid confusing terms between particular solution and the homogeneous solution. Hence the balance equation is

(2xmm(1+m)+2xmm)c0=1

This equation will used later to find the particular solution.

Since a00 then the indicial equation becomes

2xrr2=0

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

Since the root of the indicial equation is repeated, then we can construct two linearly independent solutions. The first solution has the form

(1A)y1(x)=n=0anxn+r

Now the second solution y2 is found using

(1B)y2(x)=y1(x)ln(x)+(n=1bnxn+r)

Then the general solution will be

y=c1y1(x)+c2y2(x)

In Eq (1B) the sum starts from 1 and not zero. In Eq (1A), a0 is never zero, and is arbitrary and is typically taken as a0=1, and {c1,c2} are two arbitray constants of integration which can be found from initial conditions. We start by finding the first solution 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 1n the recursive equation is

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

Solving for an from recursive equation (4) gives

(4)an=an12n2+4nr+2r2

Which for the root r=0 becomes

(5)an=an12n2

At this point, it is a good idea to keep track of an in a table both before substituting r=0 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=12(r+1)2

Which for the root r=0 becomes

a1=12

And the table now becomes

n an,r an
a0 1 1
a1 12(r+1)2 12

For n=2, using the above recursive equation gives

a2=14(r+1)2(r+2)2

Which for the root r=0 becomes

a2=116

And the table now becomes

n an,r an
a0 1 1
a1 12(r+1)2 12
a2 14(r+1)2(r+2)2 116

For n=3, using the above recursive equation gives

a3=18(r+1)2(r+2)2(r+3)2

Which for the root r=0 becomes

a3=1288

And the table now becomes

n an,r an
a0 1 1
a1 12(r+1)2 12
a2 14(r+1)2(r+2)2 116
a3 18(r+1)2(r+2)2(r+3)2 1288

For n=4, using the above recursive equation gives

a4=116(r+1)2(r+2)2(r+3)2(r+4)2

Which for the root r=0 becomes

a4=19216

And the table now becomes

n an,r an
a0 1 1
a1 12(r+1)2 12
a2 14(r+1)2(r+2)2 116
a3 18(r+1)2(r+2)2(r+3)2 1288
a4 116(r+1)2(r+2)2(r+3)2(r+4)2 19216

For n=5, using the above recursive equation gives

a5=132(r+1)2(r+2)2(r+3)2(r+4)2(r+5)2

Which for the root r=0 becomes

a5=1460800

And the table now becomes

n an,r an
a0 1 1
a1 12(r+1)2 12
a2 14(r+1)2(r+2)2 116
a3 18(r+1)2(r+2)2(r+3)2 1288
a4 116(r+1)2(r+2)2(r+3)2(r+4)2 19216
a5 132(r+1)2(r+2)2(r+3)2(r+4)2(r+5)2 1460800

Using the above table, then the first solution y1(x) becomes

y1(x)=a0+a1x+a2x2+a3x3+a4x4+a5x5+a6x6=1+x2+x216+x3288+x49216+x5460800+O(x6)

Now the second solution is found. The second solution is given by

y2(x)=y1(x)ln(x)+(n=1bnxn+r)

Where bn is found using

bn=ddran,r

And the above is then evaluated at r=0. The above table for an,r is used for this purpose. Computing the derivatives gives the following table

n bn,r an bn,r=ddran,r bn(r=0)
b0 1 1 N/A since bn starts from 1 N/A
b1 12(r+1)2 12 1(r+1)3 1
b2 14(r+1)2(r+2)2 116 2r32(r+1)3(r+2)3 316
b3 18(r+1)2(r+2)2(r+3)2 1288 3r212r114(r+1)3(r+2)3(r+3)3 11864
b4 116(r+1)2(r+2)2(r+3)2(r+4)2 19216 2r315r235r254(r+1)3(r+2)3(r+3)3(r+4)3 2555296
b5 132(r+1)2(r+2)2(r+3)2(r+4)2(r+5)2 1460800 5r460r3255r2450r27416(r+1)3(r+2)3(r+3)3(r+4)3(r+5)3 13713824000

The above table gives all values of bn needed. Hence the second solution is

y2(x)=y1(x)ln(x)+b0+b1x+b2x2+b3x3+b4x4+b5x5+b6x6=(1+x2+x216+x3288+x49216+x5460800+O(x6))ln(x)x3x21611x386425x455296137x513824000+O(x6)

Therefore the homogeneous solution is

yh(x)=c1y1(x)+c2y2(x)=c1(1+x2+x216+x3288+x49216+x5460800+O(x6))+c2((1+x2+x216+x3288+x49216+x5460800+O(x6))ln(x)x3x21611x386425x455296137x513824000+O(x6))

The particular solution is found by solving for c,m the balance equation

(2xmm(1+m)+2xmm)c0=F

Where F(x) is the RHS of the ode. If F(x) has more than one term, then this is done for each term one at a time and then all the particular solutions are added. The function F(x) will be converted to series if needed. in order to solve for cn,m for each term, the same recursive relation used to find yh(x) is used to find cn,m which is used to find the particular solution n=0cnxn+m by replacing an by cn and r by m.

The following are the values of an found in terms of the indicial root r.

a1=a02(r+1)2
a2=a04(r+1)2(r+2)2
a3=a08(r+1)2(r+2)2(r+3)2
a4=a016(r+1)2(r+2)2(r+3)2(r+4)2
a5=a032(r+1)2(r+2)2(r+3)2(r+4)2(r+5)2

Unable to solve the balance equation (2xmm(1+m)+2xmm)c0 for c0 and x. No particular solution exists.

Failed to convert RHS 1 to series in order to find particular solution. Unable to solve. Terminating Unable to find the particular solution or no solution exists.

Maple
Order:=6; 
ode:=2*x^2*diff(diff(y(x),x),x)+2*x*diff(y(x),x)-x*y(x) = 1; 
dsolve(ode,y(x),type='series',x=0);
 
No solution found

Maple trace

Methods for second order ODEs: 
--- Trying classification methods --- 
trying a quadrature 
trying high order exact linear fully integrable 
trying differential order: 2; linear nonhomogeneous with symmetry [0,1] 
trying a double symmetry of the form [xi=0, eta=F(x)] 
-> Try solving first the homogeneous part of the ODE 
   checking if the LODE has constant coefficients 
   checking if the LODE is of Euler type 
   trying a symmetry of the form [xi=0, eta=F(x)] 
   checking if the LODE is missing y 
   -> Trying a Liouvillian solution using Kovacics algorithm 
   <- No Liouvillian solutions exists 
   -> Trying a solution in terms of special functions: 
      -> Bessel 
      <- Bessel successful 
   <- special function solution successful 
<- solving first the homogeneous part of the ODE successful
 

Mathematica. Time used: 0.144 (sec). Leaf size: 360
ode=2*x^2*D[y[x],{x,2}]+2*x*D[y[x],x]-x*y[x]==1; 
ic={}; 
AsymptoticDSolveValue[{ode,ic},y[x],{x,0,5}]
 
y(x)c2(x5460800+x49216+x3288+x216+x2+1)+c1(x5(log(x)46080010713824000)+x4(log(x)92161955296)+x3(log(x)2881108)+x2(log(x)1618)+x(log(x)212)+log(x)+1)+(137x61990656000+x54608000+x473728+x31728+x264+x4+log(x)2)(x5(log(x)46080010713824000)+x4(log(x)92161955296)+x3(log(x)2881108)+x2(log(x)1618)+x(log(x)212)+log(x)+1)+(x5460800+x49216+x3288+x216+x2+1)(137x6(6log(x)+5)11943936000+x5(11330log(x))138240000+x4(4112log(x))884736+x3(3log(x))1728+1128x2(52log(x))+14x(2log(x))14log(x)(log(x)+2))
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(2*x**2*Derivative(y(x), (x, 2)) - x*y(x) + 2*x*Derivative(y(x), x) - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics,hint="2nd_power_series_regular",x0=0,n=6)
 
ValueError : ODE 2*x**2*Derivative(y(x), (x, 2)) - x*y(x) + 2*x*Derivative(y(x), x) - 1 does not match hint 2nd_power_series_regular