12.11 problem Problem 30

Internal problem ID [2325]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 8, Linear differential equations of order n. Section 8.10, Chapter review. page 575
Problem number: Problem 30.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {y^{\prime \prime }+y x -\sin \relax (x )=0} \end {gather*}

Solution by Maple

Time used: 0.059 (sec). Leaf size: 49

dsolve(diff(y(x),x$2)+x*y(x)=sin(x),y(x), singsol=all)
 

\[ y \relax (x ) = \AiryAi \left (-x \right ) c_{2}+\AiryBi \left (-x \right ) c_{1}+\pi \left (\left (\int \AiryBi \left (-x \right ) \sin \relax (x )d x \right ) \AiryAi \left (-x \right )-\left (\int \AiryAi \left (-x \right ) \sin \relax (x )d x \right ) \AiryBi \left (-x \right )\right ) \]

Solution by Mathematica

Time used: 61.456 (sec). Leaf size: 99

DSolve[y''[x]+x*y[x]==Sin[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \text {Ai}\left (\sqrt [3]{-1} x\right ) \int _1^x(-1)^{2/3} \pi \text {Bi}\left (\sqrt [3]{-1} K[1]\right ) \sin (K[1])dK[1]+\text {Bi}\left (\sqrt [3]{-1} x\right ) \int _1^x-(-1)^{2/3} \pi \text {Ai}\left (\sqrt [3]{-1} K[2]\right ) \sin (K[2])dK[2]+c_1 \text {Ai}\left (\sqrt [3]{-1} x\right )+c_2 \text {Bi}\left (\sqrt [3]{-1} x\right ) \\ \end{align*}