73.15.52 problem 22.11 (k)

Internal problem ID [15483]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 22. Method of undetermined coefficients. Additional exercises page 412
Problem number : 22.11 (k)
Date solved : Tuesday, January 28, 2025 at 07:58:56 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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

Solution by Maple

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

dsolve(diff(y(x),x$2)-4*diff(y(x),x)+20*y(x)=exp(2*x)*sin(4*x),y(x), singsol=all)
 
\[ y = -\frac {\left (\left (x -8 c_{1} \right ) \cos \left (4 x \right )-8 c_{2} \sin \left (4 x \right )\right ) {\mathrm e}^{2 x}}{8} \]

Solution by Mathematica

Time used: 0.095 (sec). Leaf size: 70

DSolve[D[y[x],{x,2}]-4*D[y[x],x]+20*y[x]==Exp[2*x]*Sin[4*x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to e^{2 x} \left (\sin (4 x) \int _1^x\frac {1}{8} \sin (8 K[1])dK[1]+\cos (4 x) \int _1^x-\frac {1}{4} \sin ^2(4 K[2])dK[2]+c_2 \cos (4 x)+c_1 \sin (4 x)\right ) \]