4.2.6 problem 6

Internal problem ID [1134]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.2. Page 48
Problem number : 6
Date solved : Tuesday, September 30, 2025 at 04:23:24 AM
CAS classification : [_separable]

\begin{align*} x y^{\prime }&=\sqrt {1-y^{2}} \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 9
ode:=x*diff(y(x),x) = (1-y(x)^2)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \sin \left (\ln \left (x \right )+c_1 \right ) \]
Mathematica. Time used: 0.105 (sec). Leaf size: 29
ode=x*D[y[x],x] == (1-y[x]^2)^(1/2); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to \sin (\log (x)+c_1)\\ y(x)&\to -1\\ y(x)&\to 1\\ y(x)&\to \text {Interval}[\{-1,1\}] \end{align*}
Sympy. Time used: 0.146 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sqrt(1 - y(x)**2),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \sin {\left (C_{1} + \log {\left (x \right )} \right )} \]