89.16.22 problem 22

Internal problem ID [24672]
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. Exercises at page 140
Problem number : 22
Date solved : Thursday, October 02, 2025 at 10:46:55 PM
CAS classification : [[_high_order, _with_linear_symmetries]]

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