78.16.13 problem 13

Internal problem ID [18392]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 3. Second order linear equations. Section 23. Operator Methods for Finding Particular Solutions. Problems at page 169
Problem number : 13
Date solved : Tuesday, January 28, 2025 at 11:49:18 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+y&=x^{4} \end{align*}

Solution by Maple

Time used: 0.003 (sec). Leaf size: 22

dsolve(diff(y(x),x$2)+y(x)=x^4,y(x), singsol=all)
 
\[ y = \sin \left (x \right ) c_{2} +\cos \left (x \right ) c_{1} +x^{4}-12 x^{2}+24 \]

Solution by Mathematica

Time used: 0.012 (sec). Leaf size: 25

DSolve[D[y[x],{x,2}]+y[x]==x^4,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to x^4-12 x^2+c_1 \cos (x)+c_2 \sin (x)+24 \]