80.2.1 problem 4 (a)

Internal problem ID [18469]
Book : Elementary Differential Equations. By Thornton C. Fry. D Van Nostrand. NY. First Edition (1929)
Section : Chapter IV. Methods of solution: First order equations. section 24. Problems at page 62
Problem number : 4 (a)
Date solved : Monday, March 31, 2025 at 05:30:18 PM
CAS classification : [_separable]

\begin{align*} \sin \left (x \right ) \cos \left (y\right )^{2}+\cos \left (x \right )^{2} y^{\prime }&=0 \end{align*}

Maple. Time used: 0.005 (sec). Leaf size: 11
ode:=sin(x)*cos(y(x))^2+cos(x)^2*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\arctan \left (\sec \left (x \right )+c_1 \right ) \]
Mathematica. Time used: 1.507 (sec). Leaf size: 31
ode=Sin[x]*Cos[y[x]]^2+ Cos[x]^2*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \arctan (-\sec (x)+c_1) \\ y(x)\to -\frac {\pi }{2} \\ y(x)\to \frac {\pi }{2} \\ \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(sin(x)*cos(y(x))**2 + cos(x)**2*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out