58.11.13 problem 13

Internal problem ID [14744]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 4, Section 4.3. The method of undetermined coefficients. Exercises page 151
Problem number : 13
Date solved : Thursday, October 02, 2025 at 09:50:42 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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