39.1.2 problem Problem 11.2

Internal problem ID [6507]
Book : Schaums Outline Differential Equations, 4th edition. Bronson and Costa. McGraw Hill 2014
Section : Chapter 11. THE METHOD OF UNDETERMINED COEFFICIENTS. page 95
Problem number : Problem 11.2
Date solved : Monday, January 27, 2025 at 02:09:32 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-y^{\prime }-2 y&={\mathrm e}^{3 x} \end{align*}

Solution by Maple

Time used: 0.004 (sec). Leaf size: 23

dsolve(diff(y(x),x$2)-diff(y(x),x)-2*y(x)=exp(3*x),y(x), singsol=all)
 
\[ y = c_2 \,{\mathrm e}^{-x}+{\mathrm e}^{2 x} c_1 +\frac {{\mathrm e}^{3 x}}{4} \]

Solution by Mathematica

Time used: 0.023 (sec). Leaf size: 31

DSolve[D[y[x],{x,2}]-D[y[x],x]-2*y[x]==Exp[3*x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {e^{3 x}}{4}+c_1 e^{-x}+c_2 e^{2 x} \]