83.46.1 problem Ex 1 page 68

Internal problem ID [19495]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Book Solved Excercises. Chapter V. Singular solutions
Problem number : Ex 1 page 68
Date solved : Monday, March 31, 2025 at 07:26:03 PM
CAS classification : [_rational, [_1st_order, `_with_symmetry_[F(x),G(x)*y+H(x)]`]]

\begin{align*} {y^{\prime }}^{2} \left (-x^{2}+1\right )&=1-y^{2} \end{align*}

Maple. Time used: 47.922 (sec). Leaf size: 3071
ode:=diff(y(x),x)^2*(-x^2+1) = 1-y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} \text {Solution too large to show}\end{align*}

Mathematica. Time used: 0.25 (sec). Leaf size: 98
ode=D[y[x],x]^2*(1-x^2)==1-y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {1}{2} e^{-c_1} \left (\left (1+e^{2 c_1}\right ) x-\left (-1+e^{2 c_1}\right ) \sqrt {x^2-1}\right ) \\ y(x)\to \frac {1}{2} e^{-c_1} \left (\left (-1+e^{2 c_1}\right ) \sqrt {x^2-1}+\left (1+e^{2 c_1}\right ) x\right ) \\ y(x)\to -1 \\ y(x)\to 1 \\ \end{align*}
Sympy. Time used: 23.922 (sec). Leaf size: 112
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((1 - x**2)*Derivative(y(x), x)**2 + y(x)**2 - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ - \begin {cases} 0 & \text {for}\: y{\left (x \right )} > -1 \wedge y{\left (x \right )} < 1 \end {cases} + \log {\left (\sqrt {y^{2}{\left (x \right )} - 1} + y{\left (x \right )} \right )} + \frac {\int \sqrt {\frac {y^{2}{\left (x \right )} - 1}{x^{2} - 1}}\, dx}{\sqrt {\left (y{\left (x \right )} - 1\right ) \left (y{\left (x \right )} + 1\right )}} = C_{1}, \ - \begin {cases} 0 & \text {for}\: y{\left (x \right )} > -1 \wedge y{\left (x \right )} < 1 \end {cases} + \log {\left (\sqrt {y^{2}{\left (x \right )} - 1} + y{\left (x \right )} \right )} - \frac {\int \sqrt {\frac {y^{2}{\left (x \right )} - 1}{x^{2} - 1}}\, dx}{\sqrt {\left (y{\left (x \right )} - 1\right ) \left (y{\left (x \right )} + 1\right )}} = C_{1}\right ] \]