2.27 problem 26
Internal
problem
ID
[7811]
Book
:
Own
collection
of
miscellaneous
problems
Section
:
section
2.0
Problem
number
:
26
Date
solved
:
Monday, October 21, 2024 at 04:21:35 PM
CAS
classification
:
[[_2nd_order, _linear, _nonhomogeneous]]
Solve
\begin{align*} y^{\prime \prime }-y^{\prime }-x y-x^{4}+3&=0 \end{align*}
2.27.1 Solved as second order Airy ode
Time used: 0.065 (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 &= -1\\ c &= -1\\ F &= x^{4}-3 \end{align*}
Therefore the solution to the homogeneous Airy ODE becomes
\[
y = c_1 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryAi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right )+c_2 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryBi}\left (\left (-x -\frac {1}{4}\right ) \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^{4}+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}\}] \]
While the set of the basis functions for the homogeneous solution found earlier is
\[ \left \{{\mathrm e}^{\frac {x}{2}} \operatorname {AiryAi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right ), {\mathrm e}^{\frac {x}{2}} \operatorname {AiryBi}\left (\left (-x -\frac {1}{4}\right ) \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_{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}\}\) 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
\[
12 x^{2} A_{5}+6 x A_{4}+2 A_{3}-4 x^{3} A_{5}-3 x^{2} A_{4}-2 x A_{3}-A_{2}-x \left (A_{5} x^{4}+A_{4} x^{3}+A_{3} x^{2}+A_{2} x +A_{1}\right )-x^{4}+3 = 0
\]
Solving for the unknowns by comparing coefficients results
in
\[ [A_{1} = -6, A_{2} = 3, A_{3} = 0, A_{4} = -1, A_{5} = 0] \]
Substituting the above back in the above trial solution \(y_p\), gives the particular
solution
\[
y_p = -x^{3}+3 x -6
\]
Therefore the general solution is
\begin{align*}
y &= y_h + y_p \\
&= \left (c_1 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryAi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right )+c_2 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryBi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right )\right ) + \left (-x^{3}+3 x -6\right ) \\
&= c_1 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryAi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right )+c_2 \,{\mathrm e}^{\frac {x}{2}} \operatorname {AiryBi}\left (\left (-x -\frac {1}{4}\right ) \left (-1\right )^{{1}/{3}}\right )-x^{3}+3 x -6 \\
\end{align*}
Will add steps showing solving for IC
soon.
2.27.2 Maple step by step solution
2.27.3 Maple trace
Methods for second order ODEs:
2.27.4 Maple dsolve solution
Solving time : 0.004
(sec)
Leaf size : 34
dsolve(diff(diff(y(x),x),x)-diff(y(x),x)-x*y(x)-x^4+3 = 0,
y(x),singsol=all)
\[
y = {\mathrm e}^{\frac {x}{2}} \operatorname {AiryAi}\left (x +\frac {1}{4}\right ) c_2 +{\mathrm e}^{\frac {x}{2}} \operatorname {AiryBi}\left (x +\frac {1}{4}\right ) c_1 -x^{3}+3 x -6
\]
2.27.5 Mathematica DSolve solution
Solving time : 3.797
(sec)
Leaf size : 107
DSolve[{D[y[x],{x,2}]-D[y[x],x]-x*y[x]-x^4+3==0,{}},
y[x],x,IncludeSingularSolutions->True]
\[
y(x)\to e^{x/2} \left (\operatorname {AiryAi}\left (x+\frac {1}{4}\right ) \int _1^x-e^{-\frac {K[1]}{2}} \pi \operatorname {AiryBi}\left (K[1]+\frac {1}{4}\right ) \left (K[1]^4-3\right )dK[1]+\operatorname {AiryBi}\left (x+\frac {1}{4}\right ) \int _1^xe^{-\frac {K[2]}{2}} \pi \operatorname {AiryAi}\left (K[2]+\frac {1}{4}\right ) \left (K[2]^4-3\right )dK[2]+c_1 \operatorname {AiryAi}\left (x+\frac {1}{4}\right )+c_2 \operatorname {AiryBi}\left (x+\frac {1}{4}\right )\right )
\]