72.5.11 problem 3 and 15(iii)

Internal problem ID [14626]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 1. First-Order Differential Equations. Exercises section 1.6 page 89
Problem number : 3 and 15(iii)
Date solved : Monday, March 31, 2025 at 12:44:38 PM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=\cos \left (y\right ) \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=-\frac {\pi }{2} \end{align*}

Maple. Time used: 0.009 (sec). Leaf size: 7
ode:=diff(y(t),t) = cos(y(t)); 
ic:=y(0) = -1/2*Pi; 
dsolve([ode,ic],y(t), singsol=all);
 
\[ y = -\frac {\pi }{2} \]
Mathematica. Time used: 0.001 (sec). Leaf size: 10
ode=D[y[t],t]==Cos[ y[t]]; 
ic={y[0]==-Pi/2}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to -\frac {\pi }{2} \]
Sympy
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(-cos(y(t)) + Derivative(y(t), t),0) 
ics = {y(0): -pi/2} 
dsolve(ode,func=y(t),ics=ics)
 
Timed Out