12.2 problem 22

Internal problem ID [708]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Chapter 3, Second order linear equations, 3.7 Forced Vibrations. page 217
Problem number: 22.
ODE order: 2.
ODE degree: 1.

CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]

Solve \begin {gather*} \boxed {u^{\prime \prime }+\frac {u^{\prime }}{8}+4 u-3 \cos \left (2 t \right )=0} \end {gather*} With initial conditions \begin {align*} [u \relax (0) = 2, u^{\prime }\relax (0) = 0] \end {align*}

Solution by Maple

Time used: 0.016 (sec). Leaf size: 39

dsolve([diff(u(t),t$2)+125/1000*diff(u(t),t)+4*u(t) = 3*cos(2*t),u(0) = 2, D(u)(0) = 0],u(t), singsol=all)
 

\[ u \relax (t ) = \frac {\left (-382 \sqrt {1023}\, \sin \left (\frac {\sqrt {1023}\, t}{16}\right )+2046 \cos \left (\frac {\sqrt {1023}\, t}{16}\right )\right ) {\mathrm e}^{-\frac {t}{16}}}{1023}+12 \sin \left (2 t \right ) \]

Solution by Mathematica

Time used: 0.008 (sec). Leaf size: 39

DSolve[{u''[t]+125/1000*u'[t]+4*u[t] ==3*Cos[2*t],{u[0]==0,u'[0]==0}},u[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} u(t)\to 12 \sin (2 t)-128 \sqrt {\frac {3}{341}} e^{-t/16} \sin \left (\frac {\sqrt {1023} t}{16}\right ) \\ \end{align*}