7.11.25 problem 25

Internal problem ID [346]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 2. Linear Equations of Higher Order. Section 2.5 (Nonhomogeneous equations and undetermined coefficients). Problems at page 161
Problem number : 25
Date solved : Monday, January 27, 2025 at 02:46:07 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 36

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

Solution by Mathematica

Time used: 0.086 (sec). Leaf size: 42

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