78.15.12 problem 12

Internal problem ID [18297]
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 22. Higher Order Linear Equations. Coupled Harmonic Oscillators. Problems at page 160
Problem number : 12
Date solved : Monday, March 31, 2025 at 05:25:04 PM
CAS classification : [[_high_order, _missing_x]]

\begin{align*} y^{\prime \prime \prime \prime }+2 y^{\prime \prime \prime }-2 y^{\prime \prime }-6 y^{\prime }+5 y&=0 \end{align*}

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