2.2.33 problem 32
Internal
problem
ID
[8263]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
2.0
Problem
number
:
32
Date
solved
:
Sunday, November 10, 2024 at 03:30:25 AM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Solve
\begin{align*} y^{\prime \prime }-x y-x^{3}&=0 \end{align*}
Solved as second order Airy ode
Time used: 0.632 (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^{3} \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 ) x^{3}}{\frac {-1-i \sqrt {3}}{2 \pi }}\,dx
\]
Which simplifies to
\[
u_1 = - \int -\frac {2 \operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) x^{3} \pi }{1+i \sqrt {3}}d x
\]
Hence
\[
u_1 = -\left (\int _{0}^{x}-\frac {2 \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3} \pi }{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 ) x^{3}}{\frac {-1-i \sqrt {3}}{2 \pi }}\,dx
\]
Which
simplifies to
\[
u_2 = \int -\frac {2 \operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) x^{3} \pi }{1+i \sqrt {3}}d x
\]
Hence
\[
u_2 = \int _{0}^{x}-\frac {2 \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3} \pi }{1+i \sqrt {3}}d \alpha
\]
Therefore the particular solution, from equation (1) is
\[
y_p(x) = -\left (\int _{0}^{x}-\frac {2 \operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3} \pi }{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 {2 \operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3} \pi }{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}\operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}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}\operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}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}\operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )\right )}{1+i \sqrt {3}} \\
\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 )+\frac {2 \pi \left (\operatorname {AiryAi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\operatorname {AiryBi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )-\operatorname {AiryBi}\left (-\frac {x \left (1+i \sqrt {3}\right )}{2}\right ) \left (\int _{0}^{x}\operatorname {AiryAi}\left (-\frac {\alpha \left (1+i \sqrt {3}\right )}{2}\right ) \alpha ^{3}d \alpha \right )\right )}{1+i \sqrt {3}} \\
\end{align*}
Maple step by step solution
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`
Maple dsolve solution
Solving time : 0.015
(sec)
Leaf size : 87
dsolve(diff(diff(y(x),x),x)-x*y(x)-x^3 = 0,
y(x),singsol=all)
\[
y = \frac {5 x^{4} \pi \left (3^{{1}/{3}} \operatorname {AiryBi}\left (x \right )-\operatorname {AiryAi}\left (x \right ) 3^{{5}/{6}}\right ) \operatorname {hypergeom}\left (\left [\frac {4}{3}\right ], \left [\frac {2}{3}, \frac {7}{3}\right ], \frac {x^{3}}{9}\right )-6 \Gamma \left (\frac {2}{3}\right ) \left (x^{5} \operatorname {hypergeom}\left (\left [\frac {5}{3}\right ], \left [\frac {4}{3}, \frac {8}{3}\right ], \frac {x^{3}}{9}\right ) \left (3^{{2}/{3}} \operatorname {AiryAi}\left (x \right )+3^{{1}/{6}} \operatorname {AiryBi}\left (x \right )\right ) \Gamma \left (\frac {2}{3}\right )-10 \operatorname {AiryBi}\left (x \right ) c_{1} -10 \operatorname {AiryAi}\left (x \right ) c_{2} \right )}{60 \Gamma \left (\frac {2}{3}\right )}
\]
Mathematica DSolve solution
Solving time : 0.095
(sec)
Leaf size : 137
DSolve[{D[y[x],{x,2}]-x*y[x]-x^3==0,{}},
y[x],x,IncludeSingularSolutions->True]
\[
y(x)\to -\frac {\pi x^5 \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 )}{9\ 3^{5/6} \operatorname {Gamma}\left (\frac {4}{3}\right ) \operatorname {Gamma}\left (\frac {8}{3}\right )}+\frac {\pi x^4 \operatorname {Gamma}\left (\frac {4}{3}\right ) \left (\operatorname {AiryBi}(x)-\sqrt {3} \operatorname {AiryAi}(x)\right ) \, _1F_2\left (\frac {4}{3};\frac {2}{3},\frac {7}{3};\frac {x^3}{9}\right )}{3\ 3^{2/3} \operatorname {Gamma}\left (\frac {2}{3}\right ) \operatorname {Gamma}\left (\frac {7}{3}\right )}+c_1 \operatorname {AiryAi}(x)+c_2 \operatorname {AiryBi}(x)
\]