83.45.5 problem Ex 5 page 53

Internal problem ID [19469]
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 IV. Equations of the first order but not of the first degree
Problem number : Ex 5 page 53
Date solved : Thursday, March 13, 2025 at 02:32:20 PM
CAS classification : [_quadrature]

\begin{align*} y-\frac {1}{\sqrt {1+{y^{\prime }}^{2}}}&=b \end{align*}

Maple. Time used: 0.178 (sec). Leaf size: 51
ode:=y(x)-1/(1+diff(y(x),x)^2)^(1/2) = b; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y \left (x \right ) &= 1+b \\ y \left (x \right ) &= b -\sqrt {-\left (x -c_{1} +1\right ) \left (x -c_{1} -1\right )} \\ y \left (x \right ) &= b +\sqrt {-\left (x -c_{1} +1\right ) \left (x -c_{1} -1\right )} \\ \end{align*}
Mathematica. Time used: 0.431 (sec). Leaf size: 124
ode=y[x]-1/Sqrt[1+D[y[x],x]^2]==b; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to b-\sqrt {-x^2-2 c_1 x+1-c_1{}^2} \\ y(x)\to b+\sqrt {-x^2-2 c_1 x+1-c_1{}^2} \\ y(x)\to b-\sqrt {-x^2+2 c_1 x+1-c_1{}^2} \\ y(x)\to b+\sqrt {-x^2+2 c_1 x+1-c_1{}^2} \\ y(x)\to b+1 \\ \end{align*}
Sympy. Time used: 25.678 (sec). Leaf size: 68
from sympy import * 
x = symbols("x") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-b + y(x) - 1/sqrt(Derivative(y(x), x)**2 + 1),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ \int \limits ^{y{\left (x \right )}} \frac {1}{\sqrt {- \frac {\left (- y + b - 1\right ) \left (- y + b + 1\right )}{y^{2} - 2 y b + b^{2}}}}\, dy = C_{1} - x, \ \int \limits ^{y{\left (x \right )}} \frac {1}{\sqrt {- \frac {\left (- y + b - 1\right ) \left (- y + b + 1\right )}{y^{2} - 2 y b + b^{2}}}}\, dy = C_{1} + x\right ] \]