4.6 problem 6

Internal problem ID [850]

Book: Elementary differential equations and boundary value problems, 11th ed., Boyce, DiPrima, Meade
Section: Chapter 6.4, The Laplace Transform. Differential equations with discontinuous forcing functions. page 268
Problem number: 6.
ODE order: 2.
ODE degree: 1.

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

Solve \begin {gather*} \boxed {y^{\prime \prime }+y^{\prime }+\frac {5 y}{4}-\left (\left \{\begin {array}{cc} \sin \relax (t ) & 0\le t <\pi \\ 0 & \mathit {otherwise} \end {array}\right .\right )=0} \end {gather*} With initial conditions \begin {align*} [y \relax (0) = 0, y^{\prime }\relax (0) = 0] \end {align*}

Solution by Maple

Time used: 0.329 (sec). Leaf size: 59

dsolve([diff(y(t),t$2)+diff(y(t),t)+5/4*y(t)=piecewise(0<=t and t<Pi,sin(t),true,0),y(0) = 0, D(y)(0) = 0],y(t), singsol=all)
 

\[ y \relax (t ) = \frac {4 \left (\left \{\begin {array}{cc} 0 & t <0 \\ \left (\sin \relax (t )+4 \cos \relax (t )\right ) {\mathrm e}^{-\frac {t}{2}}-4 \cos \relax (t )+\sin \relax (t ) & t <\pi \\ \left (\sin \relax (t )+4 \cos \relax (t )\right ) \left ({\mathrm e}^{-\frac {t}{2}}-{\mathrm e}^{-\frac {t}{2}+\frac {\pi }{2}}\right ) & \pi \le t \end {array}\right .\right )}{17} \]

Solution by Mathematica

Time used: 0.05 (sec). Leaf size: 72

DSolve[{y''[t]+y'[t]+5/4*y[t]==Piecewise[{{Sin[t],0<=t<Pi},{0,True}}],{y[0]==0,y'[0]==0}},y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to {cc} \{ & {cc} 0 & t\leq 0 \\ \frac {4}{17} \left (-4 \cos (t)+\sin (t)+e^{-t/2} (4 \cos (t)+\sin (t))\right ) & 0<t\leq \pi \\ -\frac {4}{17} e^{-t/2} \left (-1+e^{\pi /2}\right ) (4 \cos (t)+\sin (t)) & \text {True} \\ \\ \\ \\ \\ \end{align*}