7.4 problem 21

Internal problem ID [5697]

Book: ADVANCED ENGINEERING MATHEMATICS. ERWIN KREYSZIG, HERBERT KREYSZIG, EDWARD J. NORMINTON. 10th edition. John Wiley USA. 2011
Section: Chapter 6. Laplace Transforms. Problem set 6.3, page 224
Problem number: 21.
ODE order: 2.
ODE degree: 1.

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

\[ \boxed {y^{\prime \prime }+9 y=\left \{\begin {array}{cc} 8 \sin \left (t \right ) & 0<t <\pi \\ 0 & \pi <t \end {array}\right .} \] With initial conditions \begin {align*} [y \left (0\right ) = 0, y^{\prime }\left (0\right ) = 4] \end {align*}

Solution by Maple

Time used: 0.141 (sec). Leaf size: 35

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

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

Solution by Mathematica

Time used: 0.044 (sec). Leaf size: 30

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

\[ y(t)\to \begin {array}{cc} \{ & \begin {array}{cc} \frac {4}{3} \sin (3 t) & t>\pi \lor t\leq 0 \\ \sin (t)+\sin (3 t) & \text {True} \\ \end {array} \\ \end {array} \]