8.2 problem 15.3

Internal problem ID [11723]

Book: AN INTRODUCTION TO ORDINARY DIFFERENTIAL EQUATIONS by JAMES C. ROBINSON. Cambridge University Press 2004
Section: Chapter 15, Resonance. Exercises page 148
Problem number: 15.3.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {x^{\prime \prime }+\omega ^{2} x=\cos \left (\omega t \right )} \] With initial conditions \begin {align*} [x \left (0\right ) = 0, x^{\prime }\left (0\right ) = 0] \end {align*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 14

dsolve([diff(x(t),t$2)+omega^2*x(t)=cos(omega*t),x(0) = 0, D(x)(0) = 0],x(t), singsol=all)
 

\[ x \left (t \right ) = \frac {\sin \left (t \omega \right ) t}{2 \omega } \]

Solution by Mathematica

Time used: 0.099 (sec). Leaf size: 17

DSolve[{x''[t]+w^2*x[t]==Cos[w*t],{x[0]==0,x'[0]==0}},x[t],t,IncludeSingularSolutions -> True]
 

\[ x(t)\to \frac {t \sin (t w)}{2 w} \]