65.7.9 problem 14.1 (ix)

Internal problem ID [13773]
Book : AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section : Chapter 14, Inhomogeneous second order linear equations. Exercises page 140
Problem number : 14.1 (ix)
Date solved : Tuesday, January 28, 2025 at 06:02:42 AM
CAS classification : [[_2nd_order, _linear, _nonhomogeneous]]

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

Solution by Maple

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

dsolve(diff(x(t),t$2)+2*diff(x(t),t)+10*x(t)=exp(-t)*cos(3*t),x(t), singsol=all)
 
\[ x \left (t \right ) = \frac {\left (\left (6 c_{1} +\frac {1}{3}\right ) \cos \left (3 t \right )+\sin \left (3 t \right ) \left (t +6 c_{2} \right )\right ) {\mathrm e}^{-t}}{6} \]

Solution by Mathematica

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

DSolve[D[x[t],{t,2}]+2*D[x[t],t]+10*x[t]==Exp[-t]*Cos[3*t],x[t],t,IncludeSingularSolutions -> True]
 
\[ x(t)\to e^{-t} \left (\sin (3 t) \int _1^t\frac {1}{3} \cos ^2(3 K[1])dK[1]+\cos (3 t) \int _1^t-\frac {1}{6} \sin (6 K[2])dK[2]+c_2 \cos (3 t)+c_1 \sin (3 t)\right ) \]