Internal problem ID [3256]
Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 4. Linear Differential Equations. Page 183
Problem number: 15.
ODE order: 2.
ODE degree: 1.
CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]
\[ \boxed {y^{\prime \prime }-2 y^{\prime }+2 y=\left (x +{\mathrm e}^{x}\right ) \sin \left (x \right )} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 36
dsolve(diff(y(x),x$2)-2*diff(y(x),x)+2*y(x)=(x+exp(x))*sin(x),y(x), singsol=all)
\[ y \left (x \right ) = \frac {\left (\left (-25 x +50 c_{1} \right ) {\mathrm e}^{x}+20 x +28\right ) \cos \left (x \right )}{50}+\frac {\left (5 c_{2} {\mathrm e}^{x}+x +\frac {2}{5}\right ) \sin \left (x \right )}{5} \]
✓ Solution by Mathematica
Time used: 0.333 (sec). Leaf size: 48
DSolve[y''[x]-2*y'[x]+2*y[x]==(x+Exp[x])*Sin[x],y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \frac {1}{50} \left (\left (-5 \left (5 e^x-4\right ) x+50 c_2 e^x+28\right ) \cos (x)+2 \left (5 x+25 c_1 e^x+2\right ) \sin (x)\right ) \]