2.2.34 Problem 33

Solved as second order Airy ode
Maple
Mathematica
Sympy

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

Solved as second order Airy ode

Time used: 0.111 (sec)

Solve

yxyx6x3+42=0

This is Airy ODE. It has the general form

ay+by+cxy=F(x)

Where in this case

a=1b=0c=1F=x6+x342

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 is now found using the method of undetermined coefficients. Looking at the RHS of the ode, which is

x6+x3+1

Shows that the corresponding undetermined set of the basis functions (UC_set) for the trial solution is

[{1,x,x2,x3,x4,x5,x6}]

While the set of the basis functions for the homogeneous solution found earlier is

{AiryAi(x(1)1/3),AiryBi(x(1)1/3)}

Since there is no duplication between the basis function in the UC_set and the basis functions of the homogeneous solution, the trial solution is a linear combination of all the basis in the UC_set.

yp=A7x6+A6x5+A5x4+A4x3+A3x2+A2x+A1

The unknowns {A1,A2,A3,A4,A5,A6,A7} are found by substituting the above trial solution yp into the ODE and comparing coefficients. Substituting the trial solution into the ODE and simplifying gives

30x4A7+20x3A6+12x2A5+6xA4+2A3x(A7x6+A6x5+A5x4+A4x3+A3x2+A2x+A1)x6x3+42=0

Solving for the unknowns by comparing coefficients results in

[A1=0,A2=0,A3=21,A4=0,A5=0,A6=1,A7=0]

Substituting the above back in the above trial solution yp, gives the particular solution

yp=x521x2

Therefore the general solution is

y=yh+yp=(c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3))+(x521x2)=c1AiryAi(x(1)1/3)+c2AiryBi(x(1)1/3)x521x2

Will add steps showing solving for IC soon.

Summary of solutions found

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

Maple. Time used: 0.004 (sec). Leaf size: 23
ode:=diff(diff(y(x),x),x)-x*y(x)-x^6-x^3+42 = 0; 
dsolve(ode,y(x), singsol=all);
 
y=AiryAi(x)c2+AiryBi(x)c1x521x2

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: 1.049 (sec). Leaf size: 367
ode=D[y[x],{x,2}]-x*y[x]-x^6-x^3+42==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
y(x)12633π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)(3AiryAi(x)AiryBi(x))1F2(73;23,103;x39)Gamma(103)+36πx5Gamma(23)Gamma(53)(3AiryAi(x)+3AiryBi(x))1F2(53;43,83;x39)Gamma(83)+333πx4Gamma(43)2(3AiryAi(x)AiryBi(x))1F2(43;23,73;x39)Gamma(73)4236π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.069 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**6 - x**3 - x*y(x) + Derivative(y(x), (x, 2)) + 42,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
y(x)=C1Ai(x)+C2Bi(x)