10.10 problem 1(j)

Internal problem ID [5558]

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: 1(j).
ODE order: 2.
ODE degree: 1.

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

Solve \begin {gather*} \boxed {y^{\prime \prime }-2 y^{\prime }+2 y-{\mathrm e}^{x} \sin \relax (x )=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 29

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

\[ y \relax (x ) = {\mathrm e}^{x} \sin \relax (x ) c_{2}+{\mathrm e}^{x} \cos \relax (x ) c_{1}+\frac {{\mathrm e}^{x} \left (-x \cos \relax (x )+\sin \relax (x )\right )}{2} \]

Solution by Mathematica

Time used: 0.024 (sec). Leaf size: 28

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

\begin{align*} y(x)\to -\frac {1}{2} e^x ((x-2 c_2) \cos (x)-2 c_1 \sin (x)) \\ \end{align*}