12.14 problem 14

Internal problem ID [271]

Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 5.6, Forced Oscillations and Resonance. Page 362
Problem number: 14.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {x^{\prime \prime }+8 x^{\prime }+25 x=200 \cos \left (t \right )+520 \sin \left (t \right )} \] With initial conditions \begin {align*} [x \left (0\right ) = -30, x^{\prime }\left (0\right ) = -10] \end {align*}

Solution by Maple

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

dsolve([diff(x(t),t$2)+8*diff(x(t),t)+25*x(t)=200*cos(t)+520*sin(t),x(0) = -30, D(x)(0) = -10],x(t), singsol=all)
 

\[ x \left (t \right ) = \left (-31 \cos \left (3 t \right )-52 \sin \left (3 t \right )\right ) {\mathrm e}^{-4 t}+22 \sin \left (t \right )+\cos \left (t \right ) \]

Solution by Mathematica

Time used: 0.025 (sec). Leaf size: 34

DSolve[{x''[t]+8*x'[t]+25*x[t]==200*Cos[t]+520*Sin[t],{x[0]==-30,x'[0]==-10}},x[t],t,IncludeSingularSolutions -> True]
 

\[ x(t)\to 22 \sin (t)-52 e^{-4 t} \sin (3 t)+\cos (t)-31 e^{-4 t} \cos (3 t) \]