17.4 problem 6

Internal problem ID [11527]

Book: A First Course in Differential Equations by J. David Logan. Third Edition. Springer-Verlag, NY. 2015.
Section: Chapter 3, Laplace transform. Section 3.4 Impulsive sources. Exercises page 173
Problem number: 6.
ODE order: 2.
ODE degree: 1.

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

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

Solution by Maple

Time used: 5.703 (sec). Leaf size: 29

dsolve([diff(x(t),t$2)+4*x(t)=Dirac(t-2)-Dirac(t-5),x(0) = 0, D(x)(0) = 0],x(t), singsol=all)
 

\[ x \left (t \right ) = -\frac {\operatorname {Heaviside}\left (t -5\right ) \sin \left (2 t -10\right )}{2}+\frac {\operatorname {Heaviside}\left (t -2\right ) \sin \left (2 t -4\right )}{2} \]

Solution by Mathematica

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

DSolve[{x''[t]+4*x[t]==DiracDelta[t-2]-DiracDelta[t-5],{x[0]==0,x'[0]==0}},x[t],t,IncludeSingularSolutions -> True]
 

\[ x(t)\to \frac {1}{2} (\theta (t-5) \sin (10-2 t)-\theta (t-2) \sin (4-2 t)) \]