40.9.12 problem 22

Internal problem ID [6722]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 14. Linear equations with constant coefficients. Supplemetary problems. Page 92
Problem number : 22
Date solved : Monday, January 27, 2025 at 02:24:55 PM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }-3 y^{\prime }+2 y&=\sin \left ({\mathrm e}^{-x}\right ) \end{align*}

Solution by Maple

Time used: 0.018 (sec). Leaf size: 22

dsolve(diff(y(x),x$2)-3*diff(y(x),x)+2*y(x)=sin(exp(-x)),y(x), singsol=all)
 
\[ y = \left ({\mathrm e}^{x} c_1 -{\mathrm e}^{x} \sin \left ({\mathrm e}^{-x}\right )+c_2 \right ) {\mathrm e}^{x} \]

Solution by Mathematica

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

DSolve[D[y[x],{x,2}]-3*D[y[x],x]+2*y[x]==Sin[Exp[-x]],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to e^x \left (-e^x \sin \left (e^{-x}\right )+c_2 e^x+c_1\right ) \]