14.6 problem Problem 32

Internal problem ID [2363]

Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition, 2015
Section: Chapter 10, The Laplace Transform and Some Elementary Applications. Exercises for 10.7. page 704
Problem number: Problem 32.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, class A]]

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

Solution by Maple

Time used: 0.156 (sec). Leaf size: 57

dsolve([diff(y(t),t)-3*y(t)=piecewise(0<=t and t<Pi/2,sin(t),t>=Pi/2,1),y(0) = 2],y(t), singsol=all)
 

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

Solution by Mathematica

Time used: 0.113 (sec). Leaf size: 65

DSolve[{y'[t]-3*y[t]==Piecewise[{{Sin[t],0<=t<Pi/2},{1,t >= Pi/2}}],{y[0]==2}},y[t],t,IncludeSingularSolutions -> True]
 

\begin{align*} y(t)\to {cc} \{ & {cc} 2 e^{3 t} & t\leq 0 \\ \frac {1}{30} \left (-10+e^{3 t} \left (63+e^{-3 \pi /2}\right )\right ) & 2 t>\pi \\ \frac {1}{10} \left (-\cos (t)+21 e^{3 t}-3 \sin (t)\right ) & \text {True} \\ \\ \\ \\ \\ \end{align*}