80.5.5 problem 7

Internal problem ID [18492]
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 32. Problems at page 89
Problem number : 7
Date solved : Monday, March 31, 2025 at 05:37:32 PM
CAS classification : [_quadrature]

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

Maple. Time used: 0.031 (sec). Leaf size: 33
ode:=(x^2-1)*diff(y(x),x)^2 = 1; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \ln \left (x +\sqrt {x^{2}-1}\right )+c_1 \\ y &= -\ln \left (x +\sqrt {x^{2}-1}\right )+c_1 \\ \end{align*}
Mathematica. Time used: 0.004 (sec). Leaf size: 41
ode=(x^2-1)*D[y[x],x]^2==1; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\log \left (\sqrt {x^2-1}+x\right )+c_1 \\ y(x)\to \log \left (\sqrt {x^2-1}+x\right )+c_1 \\ \end{align*}
Sympy. Time used: 1.145 (sec). Leaf size: 41
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x**2 - 1)*Derivative(y(x), x)**2 - 1,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = C_{1} - \begin {cases} \log {\left (x + \sqrt {x^{2} - 1} \right )} & \text {for}\: x > -1 \wedge x < 1 \end {cases}, \ y{\left (x \right )} = C_{1} + \begin {cases} \log {\left (x + \sqrt {x^{2} - 1} \right )} & \text {for}\: x > -1 \wedge x < 1 \end {cases}\right ] \]