20.8.4 problem Problem 4

Internal problem ID [3737]
Book : Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section : Chapter 8, Linear differential equations of order n. Section 8.4, Complex-Valued Trial Solutions. page 529
Problem number : Problem 4
Date solved : Monday, January 27, 2025 at 07:57:04 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

\begin{align*} y^{\prime \prime }+4 y^{\prime }+4 y&=169 \sin \left (3 x \right ) \end{align*}

Solution by Maple

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

dsolve(diff(y(x),x$2)+4*diff(y(x),x)+4*y(x)=169*sin(3*x),y(x), singsol=all)
 
\[ y \left (x \right ) = \left (c_{1} x +c_{2} \right ) {\mathrm e}^{-2 x}-12 \cos \left (3 x \right )-5 \sin \left (3 x \right ) \]

Solution by Mathematica

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

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