72.5.10 problem 3 and 15(ii)

Internal problem ID [14617]
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(ii)
Date solved : Thursday, March 13, 2025 at 04:09:15 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (-1\right )&=1 \end{align*}

Maple. Time used: 1.640 (sec). Leaf size: 79
ode:=diff(y(t),t) = cos(y(t)); 
ic:=y(-1) = 1; 
dsolve([ode,ic],y(t), singsol=all);
 
\[ y = \arctan \left (\frac {\sin \left (1\right ) {\mathrm e}^{2 t +2}+{\mathrm e}^{2 t +2}+\sin \left (1\right )-1}{\sin \left (1\right ) {\mathrm e}^{2 t +2}+{\mathrm e}^{2 t +2}-\sin \left (1\right )+1}, \frac {2 \,{\mathrm e}^{t +1} \cos \left (1\right )}{\sin \left (1\right ) {\mathrm e}^{2 t +2}+{\mathrm e}^{2 t +2}-\sin \left (1\right )+1}\right ) \]
Mathematica. Time used: 0.01 (sec). Leaf size: 13
ode=D[y[t],t]==Cos[ y[t]]; 
ic={y[-1]==1}; 
DSolve[{ode,ic},y[t],t,IncludeSingularSolutions->True]
 
\[ y(t)\to \arcsin \left (\coth \left (t+1+\coth ^{-1}(\sin (1))\right )\right ) \]
Sympy
from sympy import * 
t = symbols("t") 
y = Function("y") 
ode = Eq(-cos(y(t)) + Derivative(y(t), t),0) 
ics = {y(-1): 1} 
dsolve(ode,func=y(t),ics=ics)
 
Timed Out