2.2.40 Problem 39

Solved as second order Bessel ode
Maple
Mathematica
Sympy

Internal problem ID [8843]
Book : Own collection of miscellaneous problems
Section : section 2.0
Problem number : 39
Date solved : Friday, April 25, 2025 at 05:13:33 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

Solved as second order Bessel ode

Time used: 0.544 (sec)

Solve

yx3yx3=0

Writing the ode as

(1)x2yx5y=x5

Let the solution be

y=yh+yp

Where yh is the solution to the homogeneous ODE and yp is a particular solution to the non-homogeneous ODE. Bessel ode has the form

(2)x2y+yx+(n2+x2)y=0

The generalized form of Bessel ode is given by Bowman (1958) as the following

(3)x2y+(12α)xy+(β2γ2x2γn2γ2+α2)y=0

With the standard solution

(4)y=xα(c1BesselJ(n,βxγ)+c2BesselY(n,βxγ))

Comparing (3) to (1) and solving for α,β,n,γ gives

α=12β=2i5n=15γ=52

Substituting all the above into (4) gives the solution as

y=c1xBesselJ(15,2ix5/25)+c2xBesselY(15,2ix5/25)

Therefore the homogeneous solution yh is

yh=c1xBesselJ(15,2ix5/25)+c2xBesselY(15,2ix5/25)

The particular solution yp can be found using either the method of undetermined coefficients, or the method of variation of parameters. The method of variation of parameters will be used as it is more general and can be used when the coefficients of the ODE depend on x as well. Let

(1)yp(x)=u1y1+u2y2

Where u1,u2 to be determined, and y1,y2 are the two basis solutions (the two linearly independent solutions of the homogeneous ODE) found earlier when solving the homogeneous ODE as

y1=xBesselJ(15,2ix5/25)y2=xBesselY(15,2ix5/25)

In the Variation of parameters u1,u2 are found using

(2)u1=y2f(x)aW(x)(3)u2=y1f(x)aW(x)

Where W(x) is the Wronskian and a is the coefficient in front of y in the given ODE. The Wronskian is given by W=|y1y2y1y2|. Hence

W=|xBesselJ(15,2ix5/25)xBesselY(15,2ix5/25)ddx(xBesselJ(15,2ix5/25))ddx(xBesselY(15,2ix5/25))|

Which gives

W=|xBesselJ(15,2ix5/25)xBesselY(15,2ix5/25)BesselJ(15,2ix5/25)2x+ix2(BesselJ(65,2ix5/25)iBesselJ(15,2ix5/25)2x5/2)BesselY(15,2ix5/25)2x+ix2(BesselY(65,2ix5/25)iBesselY(15,2ix5/25)2x5/2)|

Therefore

W=(xBesselJ(15,2ix5/25))(BesselY(15,2ix5/25)2x+ix2(BesselY(65,2ix5/25)iBesselY(15,2ix5/25)2x5/2))(xBesselY(15,2ix5/25))(BesselJ(15,2ix5/25)2x+ix2(BesselJ(65,2ix5/25)iBesselJ(15,2ix5/25)2x5/2))

Which simplifies to

W=ix5/2(BesselJ(15,2ix5/25)BesselY(65,2ix5/25)BesselY(15,2ix5/25)BesselJ(65,2ix5/25))

Which simplifies to

W=5π

Therefore Eq. (2) becomes

u1=x11/2BesselY(15,2ix5/25)5x2πdx

Which simplifies to

u1=x7/2BesselY(15,2ix5/25)π5dx

Hence

u1=0xα7/2BesselY(15,2iα5/25)π5dα

And Eq. (3) becomes

u2=x11/2BesselJ(15,2ix5/25)5x2πdx

Which simplifies to

u2=x7/2BesselJ(15,2ix5/25)π5dx

Hence

u2=0xα7/2BesselJ(15,2iα5/25)π5dα

Therefore the particular solution, from equation (1) is

yp(x)=0xα7/2BesselY(15,2iα5/25)π5dαxBesselJ(15,2ix5/25)+xBesselY(15,2ix5/25)0xα7/2BesselJ(15,2iα5/25)π5dα

Which simplifies to

yp(x)=πx(BesselJ(15,2ix5/25)0xα7/2BesselY(15,2iα5/25)dα+BesselY(15,2ix5/25)0xα7/2BesselJ(15,2iα5/25)dα)5

Therefore the general solution is

y=yh+yp=(c1xBesselJ(15,2ix5/25)+c2xBesselY(15,2ix5/25))+(πx(BesselJ(15,2ix5/25)0xα7/2BesselY(15,2iα5/25)dα+BesselY(15,2ix5/25)0xα7/2BesselJ(15,2iα5/25)dα)5)

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1xBesselJ(15,2ix5/25)+c2xBesselY(15,2ix5/25)+πx(BesselJ(15,2ix5/25)0xα7/2BesselY(15,2iα5/25)dα+BesselY(15,2ix5/25)0xα7/2BesselJ(15,2iα5/25)dα)5

Maple. Time used: 0.005 (sec). Leaf size: 30
ode:=diff(diff(y(x),x),x)-x^3*y(x)-x^3 = 0; 
dsolve(ode,y(x), singsol=all);
 
y=xBesselI(15,2x5/25)c2+xBesselK(15,2x5/25)c11

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.239 (sec). Leaf size: 217
ode=D[y[x],{x,2}]-x^3*y[x]-x^3==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)15Gamma(45)(54/5x5Gamma(65)Hypergeometric0F1Regularized(95,x525)BesselI(15,2x5/25)+5 52/5(x5/2)2/5BesselI(15,2x5/25)53/5(x5/2)6/5Gamma(15)BesselI(45,2x5/25)BesselI(15,2x5/25))25x5/25Root[25#15+1&,5]+c1xGamma(45)BesselI(15,2x5/25)55+155c2xGamma(65)BesselI(15,2x5/25)
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**3*y(x) - x**3 + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : solve: Cannot solve -x**3*y(x) - x**3 + Derivative(y(x), (x, 2))