4.42 problem 42

Internal problem ID [14200]

Book: INTRODUCTORY DIFFERENTIAL EQUATIONS. Martha L. Abell, James P. Braselton. Fourth edition 2014. ElScAe. 2014
Section: Chapter 2. First Order Equations. Exercises 2.2, page 39
Problem number: 42.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {y^{\prime }=\cos \left (t \right )} \] With initial conditions \begin {align*} \left [y \left (\frac {\pi }{2}\right ) = -1\right ] \end {align*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 8

dsolve([diff(y(t),t)=cos(t),y(1/2*Pi) = -1],y(t), singsol=all)
 

\[ y \left (t \right ) = \sin \left (t \right )-2 \]

Solution by Mathematica

Time used: 0.01 (sec). Leaf size: 9

DSolve[{y'[t]==Cos[t],{y[Pi/2]==-1}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \sin (t)-2 \]