Internal problem ID [12326]
Book: APPLIED DIFFERENTIAL EQUATIONS The Primary Course by Vladimir A.
Dobrushkin. CRC Press 2015
Section: Chapter 5.6 Laplace transform. Nonhomogeneous equations. Problems page
368
Problem number: Problem 3(d).
ODE order: 2.
ODE degree: 1.
CAS Maple gives this as type [[_2nd_order, _linear, _nonhomogeneous]]
\[ \boxed {y^{\prime \prime }+2 y^{\prime }+y=\operatorname {Heaviside}\left (t \right )-\operatorname {Heaviside}\left (t -1\right )} \] With initial conditions \begin {align*} [y \left (0\right ) = 1, y^{\prime }\left (0\right ) = -1] \end {align*}
✓ Solution by Maple
Time used: 4.985 (sec). Leaf size: 31
dsolve([diff(y(t),t$2)+2*diff(y(t),t)+y(t)=Heaviside(t)-Heaviside(t-1),y(0) = 1, D(y)(0) = -1],y(t), singsol=all)
\[ y \left (t \right ) = t \operatorname {Heaviside}\left (t -1\right ) {\mathrm e}^{-t +1}-t \,{\mathrm e}^{-t}+1-\operatorname {Heaviside}\left (t -1\right ) \]
✓ Solution by Mathematica
Time used: 0.072 (sec). Leaf size: 43
DSolve[{y''[t]+2*y'[t]+y[t]==UnitStep[t]-UnitStep[t-1],{y[0]==1,y'[0]==-1}},y[t],t,IncludeSingularSolutions -> True]
\[ y(t)\to \begin {array}{cc} \{ & \begin {array}{cc} e^{-t} & t<0 \\ 1-e^{-t} t & 0\leq t\leq 1 \\ (-1+e) e^{-t} t & \text {True} \\ \end {array} \\ \end {array} \]