2.2.30 Problem 29

Solved as second order Airy ode
Maple
Mathematica
Sympy

Internal problem ID [8834]
Book : Own collection of miscellaneous problems
Section : section 2.0
Problem number : 29
Date solved : Sunday, March 30, 2025 at 01:41:13 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

Solved as second order Airy ode

Time used: 0.476 (sec)

Solve

yxyx6+64=0

This is Airy ODE. It has the general form

ay+by+cxy=F(x)

Where in this case

a=1b=0c=1F=x664

Therefore the solution to the homogeneous Airy ODE becomes

y=c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3)

Since this is inhomogeneous Airy ODE, then we need to find the particular solution. 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=AiryAi(x(1)1/3)y2=AiryBi(x(1)1/3)

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=|AiryAi(x(1)1/3)AiryBi(x(1)1/3)ddx(AiryAi(x(1)1/3))ddx(AiryBi(x(1)1/3))|

Which gives

W=|AiryAi(x(1)1/3)AiryBi(x(1)1/3)(1)1/3AiryAi(1,x(1)1/3)(1)1/3AiryBi(1,x(1)1/3)|

Therefore

W=(AiryAi(x(1)1/3))((1)1/3AiryBi(1,x(1)1/3))(AiryBi(x(1)1/3))((1)1/3AiryAi(1,x(1)1/3))

Which simplifies to

W=AiryAi(x(1)1/3)(1)1/3AiryBi(1,x(1)1/3)+AiryBi(x(1)1/3)(1)1/3AiryAi(1,x(1)1/3)

Which simplifies to

W=1i32π

Therefore Eq. (2) becomes

u1=AiryBi(x(1)1/3)(x664)1i32πdx

Which simplifies to

u1=(2x6+128)πAiryBi(x(1+i3)2)1+i3dx

Hence

u1=0x(2α6+128)πAiryBi(α(1+i3)2)1+i3dα

And Eq. (3) becomes

u2=AiryAi(x(1)1/3)(x664)1i32πdx

Which simplifies to

u2=(2x6+128)πAiryAi(x(1+i3)2)1+i3dx

Hence

u2=0x(2α6+128)πAiryAi(α(1+i3)2)1+i3dα

Therefore the particular solution, from equation (1) is

yp(x)=0x(2α6+128)πAiryBi(α(1+i3)2)1+i3dαAiryAi(x(1)1/3)+AiryBi(x(1)1/3)0x(2α6+128)πAiryAi(α(1+i3)2)1+i3dα

Which simplifies to

yp(x)=2π(0x(α664)AiryBi(α(1+i3)2)dαAiryAi(x(1+i3)2)AiryBi(x(1+i3)2)0x(α664)AiryAi(α(1+i3)2)dα)1+i3

Therefore the general solution is

y=yh+yp=(c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3))+(2π(0x(α664)AiryBi(α(1+i3)2)dαAiryAi(x(1+i3)2)AiryBi(x(1+i3)2)0x(α664)AiryAi(α(1+i3)2)dα)1+i3)=c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3)+2π(0x(α664)AiryBi(α(1+i3)2)dαAiryAi(x(1+i3)2)AiryBi(x(1+i3)2)0x(α664)AiryAi(α(1+i3)2)dα)1+i3

Will add steps showing solving for IC soon.

Summary of solutions found

y=c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3)+2π(0x(α664)AiryBi(α(1+i3)2)dαAiryAi(x(1+i3)2)AiryBi(x(1+i3)2)0x(α664)AiryAi(α(1+i3)2)dα)1+i3

Maple. Time used: 0.008 (sec). Leaf size: 149
ode:=diff(diff(y(x),x),x)-x*y(x)-x^6+64 = 0; 
dsolve(ode,y(x), singsol=all);
 
y=16x7π(AiryBi(x)31/335/6AiryAi(x))hypergeom([73],[23,103],x39)21x8Γ(23)2(31/6AiryBi(x)+32/3AiryAi(x))hypergeom([83],[43,113],x39)7168xπ(AiryBi(x)31/335/6AiryAi(x))hypergeom([13],[23,43],x39)+5376(x2Γ(23)(31/6AiryBi(x)+32/3AiryAi(x))hypergeom([23],[43,53],x39)+AiryBi(x)c116+AiryAi(x)c216)Γ(23)336Γ(23)

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.447 (sec). Leaf size: 256
ode=D[y[x],{x,2}]-x*y[x]-x^6+64==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)19233πxGamma(13)(3AiryAi(x)AiryBi(x))1F2(13;23,43;x39)36πx8Gamma(23)Gamma(83)(3AiryAi(x)+3AiryBi(x))1F2(83;43,113;x39)Gamma(113)+333πx7Gamma(43)Gamma(73)(AiryBi(x)3AiryAi(x))1F2(73;23,103;x39)Gamma(103)+6436πx2Gamma(23)2(3AiryAi(x)+3AiryBi(x))1F2(23;43,53;x39)Gamma(53)+27Gamma(23)Gamma(43)(c1AiryAi(x)+c2AiryBi(x))27Gamma(23)Gamma(43)
Sympy. Time used: 0.068 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**6 - x*y(x) + Derivative(y(x), (x, 2)) + 64,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1Ai(x)+C2Bi(x)