2.2.34 Problem 33
Internal
problem
ID
[8838]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
2.0
Problem
number
:
33
Date
solved
:
Sunday, March 30, 2025 at 01:41:28 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Solved as second order Airy ode
Time used: 0.098 (sec)
Solve
\begin{align*} y^{\prime \prime }-x y-x^{6}-x^{3}+42&=0 \end{align*}
This is Airy ODE. It has the general form
\[ a y^{\prime \prime } + b y^{\prime } + c x y = F(x) \]
Where in this case
\begin{align*} a &= 1\\ b &= 0\\ c &= -1\\ F &= x^{6}+x^{3}-42 \end{align*}
Therefore the solution to the homogeneous Airy ODE becomes
\[
y = c_1 \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )+c_2 \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )
\]
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
\[ x^{6}+x^{3}+1 \]
Shows that the corresponding undetermined set of the basis functions (UC_set)
for the trial solution is
\[ [\{1, x, x^{2}, x^{3}, x^{4}, x^{5}, x^{6}\}] \]
While the set of the basis functions for the homogeneous solution found earlier is
\[ \left \{\operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ), \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right \} \]
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.
\[
y_p = A_{7} x^{6}+A_{6} x^{5}+A_{5} x^{4}+A_{4} x^{3}+A_{3} x^{2}+A_{2} x +A_{1}
\]
The unknowns \(\{A_{1}, A_{2}, A_{3}, A_{4}, A_{5}, A_{6}, A_{7}\}\) are found by substituting the
above trial solution \(y_p\) into the ODE and comparing coefficients. Substituting the trial solution into the ODE and simplifying gives
\[
30 x^{4} A_{7}+20 x^{3} A_{6}+12 x^{2} A_{5}+6 x A_{4}+2 A_{3}-x \left (A_{7} x^{6}+A_{6} x^{5}+A_{5} x^{4}+A_{4} x^{3}+A_{3} x^{2}+A_{2} x +A_{1}\right )-x^{6}-x^{3}+42 = 0
\]
Solving for the unknowns by comparing coefficients results in
\[ [A_{1} = 0, A_{2} = 0, A_{3} = -21, A_{4} = 0, A_{5} = 0, A_{6} = -1, A_{7} = 0] \]
Substituting the above back in the above trial solution \(y_p\), gives the particular solution
\[
y_p = -x^{5}-21 x^{2}
\]
Therefore the general solution is
\begin{align*}
y &= y_h + y_p \\
&= \left (c_1 \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )+c_2 \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right ) + \left (-x^{5}-21 x^{2}\right ) \\
&= c_1 \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )+c_2 \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )-x^{5}-21 x^{2} \\
\end{align*}
Will add steps showing solving for IC
soon.
Summary of solutions found
\begin{align*}
y &= c_1 \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )+c_2 \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )-x^{5}-21 x^{2} \\
\end{align*}
✓ 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 = \operatorname {AiryAi}\left (x \right ) c_2 +\operatorname {AiryBi}\left (x \right ) c_1 -x^{5}-21 x^{2}
\]
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)\to -\frac {-126 \sqrt [3]{3} \pi x \operatorname {Gamma}\left (\frac {1}{3}\right ) \left (\sqrt {3} \operatorname {AiryAi}(x)-\operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {1}{3};\frac {2}{3},\frac {4}{3};\frac {x^3}{9}\right )+\frac {\sqrt [6]{3} \pi x^8 \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {Gamma}\left (\frac {8}{3}\right ) \left (3 \operatorname {AiryAi}(x)+\sqrt {3} \operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {8}{3};\frac {4}{3},\frac {11}{3};\frac {x^3}{9}\right )}{\operatorname {Gamma}\left (\frac {11}{3}\right )}+\frac {3 \sqrt [3]{3} \pi x^7 \operatorname {Gamma}\left (\frac {4}{3}\right ) \operatorname {Gamma}\left (\frac {7}{3}\right ) \left (\sqrt {3} \operatorname {AiryAi}(x)-\operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {7}{3};\frac {2}{3},\frac {10}{3};\frac {x^3}{9}\right )}{\operatorname {Gamma}\left (\frac {10}{3}\right )}+\frac {\sqrt [6]{3} \pi x^5 \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {Gamma}\left (\frac {5}{3}\right ) \left (3 \operatorname {AiryAi}(x)+\sqrt {3} \operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {5}{3};\frac {4}{3},\frac {8}{3};\frac {x^3}{9}\right )}{\operatorname {Gamma}\left (\frac {8}{3}\right )}+\frac {3 \sqrt [3]{3} \pi x^4 \operatorname {Gamma}\left (\frac {4}{3}\right )^2 \left (\sqrt {3} \operatorname {AiryAi}(x)-\operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {4}{3};\frac {2}{3},\frac {7}{3};\frac {x^3}{9}\right )}{\operatorname {Gamma}\left (\frac {7}{3}\right )}-\frac {42 \sqrt [6]{3} \pi x^2 \operatorname {Gamma}\left (\frac {2}{3}\right )^2 \left (3 \operatorname {AiryAi}(x)+\sqrt {3} \operatorname {AiryBi}(x)\right ) \, _1F_2\left (\frac {2}{3};\frac {4}{3},\frac {5}{3};\frac {x^3}{9}\right )}{\operatorname {Gamma}\left (\frac {5}{3}\right )}-27 \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {Gamma}\left (\frac {4}{3}\right ) (c_1 \operatorname {AiryAi}(x)+c_2 \operatorname {AiryBi}(x))}{27 \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {Gamma}\left (\frac {4}{3}\right )}
\]
✓ 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{\left (x \right )} = C_{1} Ai\left (x\right ) + C_{2} Bi\left (x\right )
\]