14.20 problem 3(d)

Internal problem ID [6390]

Book: Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section: Chapter 2. Problems for Review and Discovery. Drill excercises. Page 105
Problem number: 3(d).
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

\[ \boxed {y^{\prime \prime }+2 y^{\prime }-y=\sin \left (x \right ) {\mathrm e}^{x} x} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 49

dsolve(diff(y(x),x$2)+2*diff(y(x),x)-y(x)=x*exp(x)*sin(x),y(x), singsol=all)
 

\[ y \left (x \right ) = {\mathrm e}^{\left (\sqrt {2}-1\right ) x} c_{2} +{\mathrm e}^{-\left (1+\sqrt {2}\right ) x} c_{1} +\frac {{\mathrm e}^{x} \left (17 \sin \left (x \right ) x -68 \cos \left (x \right ) x +44 \sin \left (x \right )+62 \cos \left (x \right )\right )}{289} \]

Solution by Mathematica

Time used: 0.04 (sec). Leaf size: 59

DSolve[y''[x]+2*y'[x]-y[x]==x*Exp[x]*Sin[x],y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to c_1 e^{-\left (\left (1+\sqrt {2}\right ) x\right )}+c_2 e^{\left (\sqrt {2}-1\right ) x}+\frac {1}{289} e^x ((17 x+44) \sin (x)+(62-68 x) \cos (x)) \]