Internal problem ID [6314]
Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven
Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 2. Second-Order Linear Equations. Section 2.2. THE METHOD OF
UNDETERMINED COEFFICIENTS. Page 67
Problem number: 3(b).
ODE order: 2.
ODE degree: 1.
CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]
\[ \boxed {y^{\prime \prime }+9 y=2 \sin \left (3 x \right )+4 \sin \left (x \right )-26 \,{\mathrm e}^{-2 x}+27 x^{3}} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 50
dsolve(diff(y(x),x$2)+9*y(x)=2*sin(3*x)+4*sin(x)-26*exp(-2*x)+27*x^3,y(x), singsol=all)
\[ y \left (x \right ) = \sin \left (3 x \right ) c_{2} +\cos \left (3 x \right ) c_{1} -\frac {4 x \cos \left (x \right )^{3}}{3}+3 x^{3}+2 \sin \left (x \right ) \cos \left (x \right )^{2}+\cos \left (x \right ) x -2 x -2 \,{\mathrm e}^{-2 x} \]
✓ Solution by Mathematica
Time used: 2.215 (sec). Leaf size: 55
DSolve[y''[x]+9*y[x]==2*Sin[3*x]+4*Sin[x]-26*Exp[-2*x]+27*x^3,y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to 3 x^3-2 x-2 e^{-2 x}+\frac {\sin (x)}{2}+\frac {1}{18} \sin (3 x)+\left (-\frac {x}{3}+c_1\right ) \cos (3 x)+c_2 \sin (3 x) \]