2.30 problem 29

2.30.1 Solved as second order Airy ode
2.30.2 Maple step by step solution
2.30.3 Maple trace
2.30.4 Maple dsolve solution
2.30.5 Mathematica DSolve solution

Internal problem ID [7814]
Book : Own collection of miscellaneous problems
Section : section 2.0
Problem number : 29
Date solved : Monday, October 21, 2024 at 04:21:41 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

Solve

\begin{align*} y^{\prime \prime }-x y-x^{6}+64&=0 \end{align*}

2.30.1 Solved as second order Airy ode

Time used: 0.637 (sec)

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}-64 \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 \(y_p\) 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

\begin{equation} \tag{1} y_p(x) = u_1 y_1 + u_2 y_2 \end{equation}

Where \(u_1,u_2\) to be determined, and \(y_1,y_2\) are the two basis solutions (the two linearly independent solutions of the homogeneous ODE) found earlier when solving the homogeneous ODE as

\begin{align*} y_1 &= \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \\ y_2 &= \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \\ \end{align*}

In the Variation of parameters \(u_1,u_2\) are found using

\begin{align*} \tag{2} u_1 &= -\int \frac {y_2 f(x)}{a W(x)} \\ \tag{3} u_2 &= \int \frac {y_1 f(x)}{a W(x)} \\ \end{align*}

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= \begin {vmatrix} y_1 & y_{2} \\ y_{1}^{\prime } & y_{2}^{\prime } \end {vmatrix} \). Hence

\[ W = \begin {vmatrix} \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ) & \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \\ \frac {d}{dx}\left (\operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right ) & \frac {d}{dx}\left (\operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right ) \end {vmatrix} \]

Which gives

\[ W = \begin {vmatrix} \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ) & \operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \\ -\left (-1\right )^{{1}/{3}} \operatorname {AiryAi}\left (1, -x \left (-1\right )^{{1}/{3}}\right ) & -\left (-1\right )^{{1}/{3}} \operatorname {AiryBi}\left (1, -x \left (-1\right )^{{1}/{3}}\right ) \end {vmatrix} \]

Therefore

\[ W = \left (\operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right )\left (-\left (-1\right )^{{1}/{3}} \operatorname {AiryBi}\left (1, -x \left (-1\right )^{{1}/{3}}\right )\right ) - \left (\operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right )\right )\left (-\left (-1\right )^{{1}/{3}} \operatorname {AiryAi}\left (1, -x \left (-1\right )^{{1}/{3}}\right )\right ) \]

Which simplifies to

\[ W = -\operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \left (-1\right )^{{1}/{3}} \operatorname {AiryBi}\left (1, -x \left (-1\right )^{{1}/{3}}\right )+\operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \left (-1\right )^{{1}/{3}} \operatorname {AiryAi}\left (1, -x \left (-1\right )^{{1}/{3}}\right ) \]

Which simplifies to

\[ W = \frac {-1-i \sqrt {3}}{2 \pi } \]

Therefore Eq. (2) becomes

\[ u_1 = -\int \frac {\operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \left (x^{6}-64\right )}{\frac {-1-i \sqrt {3}}{2 \pi }}\,dx \]

Which simplifies to

\[ u_1 = - \int \frac {\left (-2 x^{6}+128\right ) \pi \operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d x \]

Hence

\[ u_1 = -\left (\int _{0}^{x}\frac {\left (-2 \alpha ^{6}+128\right ) \pi \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d \alpha \right ) \]

And Eq. (3) becomes

\[ u_2 = \int \frac {\operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \left (x^{6}-64\right )}{\frac {-1-i \sqrt {3}}{2 \pi }}\,dx \]

Which simplifies to

\[ u_2 = \int \frac {\left (-2 x^{6}+128\right ) \pi \operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d x \]

Hence

\[ u_2 = \int _{0}^{x}\frac {\left (-2 \alpha ^{6}+128\right ) \pi \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d \alpha \]

Therefore the particular solution, from equation (1) is

\[ y_p(x) = -\left (\int _{0}^{x}\frac {\left (-2 \alpha ^{6}+128\right ) \pi \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d \alpha \right ) \operatorname {AiryAi}\left (-x \left (-1\right )^{{1}/{3}}\right )+\operatorname {AiryBi}\left (-x \left (-1\right )^{{1}/{3}}\right ) \left (\int _{0}^{x}\frac {\left (-2 \alpha ^{6}+128\right ) \pi \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )}{1+i \sqrt {3}}d \alpha \right ) \]

Which simplifies to

\[ y_p(x) = \frac {2 \pi \left (\operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )\right )}{1+i \sqrt {3}} \]

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 (\frac {2 \pi \left (\operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )\right )}{1+i \sqrt {3}}\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 )+\frac {2 \pi \left (\operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\left (\alpha ^{6}-64\right ) \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right )d \alpha \right )\right )}{1+i \sqrt {3}} \\ \end{align*}

Will add steps showing solving for IC soon.

2.30.2 Maple step by step solution

2.30.3 Maple trace
Methods for second order ODEs:
 
2.30.4 Maple dsolve solution

Solving time : 0.008 (sec)
Leaf size : 149

dsolve(diff(diff(y(x),x),x)-x*y(x)-x^6+64 = 0, 
       y(x),singsol=all)
 
\[ y = \frac {16 x^{7} \pi \left (\operatorname {AiryBi}\left (x \right ) 3^{{1}/{3}}-3^{{5}/{6}} \operatorname {AiryAi}\left (x \right )\right ) \operatorname {hypergeom}\left (\left [\frac {7}{3}\right ], \left [\frac {2}{3}, \frac {10}{3}\right ], \frac {x^{3}}{9}\right )-21 x^{8} \Gamma \left (\frac {2}{3}\right )^{2} \left (3^{{1}/{6}} \operatorname {AiryBi}\left (x \right )+3^{{2}/{3}} \operatorname {AiryAi}\left (x \right )\right ) \operatorname {hypergeom}\left (\left [\frac {8}{3}\right ], \left [\frac {4}{3}, \frac {11}{3}\right ], \frac {x^{3}}{9}\right )-7168 x \pi \left (\operatorname {AiryBi}\left (x \right ) 3^{{1}/{3}}-3^{{5}/{6}} \operatorname {AiryAi}\left (x \right )\right ) \operatorname {hypergeom}\left (\left [\frac {1}{3}\right ], \left [\frac {2}{3}, \frac {4}{3}\right ], \frac {x^{3}}{9}\right )+5376 \Gamma \left (\frac {2}{3}\right ) \left (x^{2} \Gamma \left (\frac {2}{3}\right ) \left (3^{{1}/{6}} \operatorname {AiryBi}\left (x \right )+3^{{2}/{3}} \operatorname {AiryAi}\left (x \right )\right ) \operatorname {hypergeom}\left (\left [\frac {2}{3}\right ], \left [\frac {4}{3}, \frac {5}{3}\right ], \frac {x^{3}}{9}\right )+\frac {\operatorname {AiryBi}\left (x \right ) c_1}{16}+\frac {\operatorname {AiryAi}\left (x \right ) c_2}{16}\right )}{336 \Gamma \left (\frac {2}{3}\right )} \]
2.30.5 Mathematica DSolve solution

Solving time : 0.47 (sec)
Leaf size : 256

DSolve[{D[y[x],{x,2}]-x*y[x]-x^6+64==0,{}}, 
       y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {192 \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 (\operatorname {AiryBi}(x)-\sqrt {3} \operatorname {AiryAi}(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 {64 \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 )} \]