85.1.9 problem 5 (b)

Internal problem ID [22414]
Book : Applied Differential Equations. By Murray R. Spiegel. 3rd edition. 1980. Pearson. ISBN 978-0130400970
Section : Chapter 1. Differential equations in general. A Exercises at page 12
Problem number : 5 (b)
Date solved : Thursday, October 02, 2025 at 08:38:39 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-3 y^{\prime }-10 y&=6 \,{\mathrm e}^{x} \end{align*}
Maple. Time used: 0.002 (sec). Leaf size: 21
ode:=diff(diff(y(x),x),x)-3*diff(y(x),x)-10*y(x) = 6*exp(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = {\mathrm e}^{5 x} c_2 +{\mathrm e}^{-2 x} c_1 -\frac {{\mathrm e}^{x}}{2} \]
Mathematica. Time used: 0.009 (sec). Leaf size: 29
ode=D[y[x],{x,2}]-3*D[y[x],x]-10*y[x]==6*Exp[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -\frac {e^x}{2}+c_1 e^{-2 x}+c_2 e^{5 x} \end{align*}
Sympy. Time used: 0.104 (sec). Leaf size: 20
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-10*y(x) - 6*exp(x) - 3*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{- 2 x} + C_{2} e^{5 x} - \frac {e^{x}}{2} \]