85.49.6 problem 1 (f)

Internal problem ID [22807]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter 4. Linear differential equations. A Exercises at page 194
Problem number : 1 (f)
Date solved : Thursday, October 02, 2025 at 09:14:47 PM
CAS classification : [[_3rd_order, _missing_y]]

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