7.11.47 problem 49

Internal problem ID [368]
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 : 49
Date solved : Monday, January 27, 2025 at 02:47:06 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-4 y^{\prime }+4 y&=2 \,{\mathrm e}^{2 x} \end{align*}

Solution by Maple

Time used: 0.004 (sec). Leaf size: 17

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

Solution by Mathematica

Time used: 0.021 (sec). Leaf size: 21

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