22.11 problem 31.7 (d)

Internal problem ID [13582]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 31. Delta Functions. Additional Exercises. page 572
Problem number: 31.7 (d).
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }+16 y=\delta \left (t -2\right )} \] With initial conditions \begin {align*} [y \left (0\right ) = 0, y^{\prime }\left (0\right ) = 0] \end {align*}

Solution by Maple

Time used: 0.062 (sec). Leaf size: 16

dsolve([diff(y(t),t$2)+16*y(t)=Dirac(t-2),y(0) = 0, D(y)(0) = 0],y(t), singsol=all)
 

\[ y \left (t \right ) = \frac {\operatorname {Heaviside}\left (t -2\right ) \sin \left (-8+4 t \right )}{4} \]

Solution by Mathematica

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

DSolve[{y''[t]+16*y[t]==DiracDelta[t-2],{y[0]==0,y'[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to -\frac {1}{4} \theta (t-2) \sin (8-4 t) \]