50.8.4 problem 1(d)

Internal problem ID [7920]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Problems for Review and Discovery. Page 53
Problem number : 1(d)
Date solved : Wednesday, March 05, 2025 at 05:17:35 AM
CAS classification : [_separable]

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

Maple. Time used: 0.005 (sec). Leaf size: 9
ode:=sec(x)*diff(y(x),x) = sec(y(x)); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \arcsin \left (\sin \left (x \right )+c_{1} \right ) \]
Mathematica. Time used: 0.422 (sec). Leaf size: 11
ode=Sec[x]*D[y[x],x]==Sec[y[x]]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \arcsin (\sin (x)+c_1) \]
Sympy. Time used: 0.391 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-1/cos(y(x)) + Derivative(y(x), x)/cos(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = \pi - \operatorname {asin}{\left (C_{1} + \sin {\left (x \right )} \right )}, \ y{\left (x \right )} = \operatorname {asin}{\left (C_{1} + \sin {\left (x \right )} \right )}\right ] \]