89.18.24 problem 24

Internal problem ID [24724]
Book : A short course in Differential Equations. Earl D. Rainville. Second edition. 1958. Macmillan Publisher, NY. CAT 58-5010
Section : Chapter 9. Nonhomogeneous Equations: Undetermined coefficients. Oral Exercises at page 146
Problem number : 24
Date solved : Thursday, October 02, 2025 at 10:47:28 PM
CAS classification : [[_3rd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime \prime }-y&=x^{2}+8 \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 41
ode:=diff(diff(diff(y(x),x),x),x)-y(x) = x^2+8; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -x^{2}-8+c_1 \,{\mathrm e}^{x}+c_2 \,{\mathrm e}^{-\frac {x}{2}} \cos \left (\frac {\sqrt {3}\, x}{2}\right )+c_3 \,{\mathrm e}^{-\frac {x}{2}} \sin \left (\frac {\sqrt {3}\, x}{2}\right ) \]
Mathematica. Time used: 0.002 (sec). Leaf size: 60
ode=D[y[x],{x,3}]-y[x]==x^2+8; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -x^2+c_1 e^x+c_2 e^{-x/2} \cos \left (\frac {\sqrt {3} x}{2}\right )+c_3 e^{-x/2} \sin \left (\frac {\sqrt {3} x}{2}\right )-8 \end{align*}
Sympy. Time used: 0.093 (sec). Leaf size: 41
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**2 - y(x) + Derivative(y(x), (x, 3)) - 8,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{3} e^{x} - x^{2} + \left (C_{1} \sin {\left (\frac {\sqrt {3} x}{2} \right )} + C_{2} \cos {\left (\frac {\sqrt {3} x}{2} \right )}\right ) e^{- \frac {x}{2}} - 8 \]