16.40 problem 42

Internal problem ID [12880]

Book: DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section: Chapter 4. Forcing and Resonance. Section 4.1 page 399
Problem number: 42.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }+4 y=6+t^{2}+{\mathrm e}^{t}} \] With initial conditions \begin {align*} [y \left (0\right ) = 0, y^{\prime }\left (0\right ) = 0] \end {align*}

Solution by Maple

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

dsolve([diff(y(t),t$2)+4*y(t)=6+t^2+exp(t),y(0) = 0, D(y)(0) = 0],y(t), singsol=all)
 

\[ y \left (t \right ) = -\frac {\sin \left (2 t \right )}{10}-\frac {63 \cos \left (2 t \right )}{40}+\frac {11}{8}+\frac {t^{2}}{4}+\frac {{\mathrm e}^{t}}{5} \]

Solution by Mathematica

Time used: 0.352 (sec). Leaf size: 33

DSolve[{y''[t]+4*y[t]==6+t^2+Exp[t],{y[0]==0,y'[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {1}{40} \left (10 t^2+8 e^t-4 \sin (2 t)-63 \cos (2 t)+55\right ) \]