29.5.25 problem 142

Internal problem ID [4742]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 5
Problem number : 142
Date solved : Tuesday, March 04, 2025 at 07:13:31 PM
CAS classification : [_quadrature]

\begin{align*} x y^{\prime }&=\sqrt {a^{2}-x^{2}} \end{align*}

Maple. Time used: 0.003 (sec). Leaf size: 51
ode:=x*diff(y(x),x) = (a^2-x^2)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = -a \,\operatorname {csgn}\left (a \right ) \ln \left (\frac {a \left (\operatorname {csgn}\left (a \right ) \sqrt {a^{2}-x^{2}}+a \right )}{x}\right )-a \,\operatorname {csgn}\left (a \right ) \ln \left (2\right )+\sqrt {a^{2}-x^{2}}+c_{1} \]
Mathematica. Time used: 0.031 (sec). Leaf size: 42
ode=x D[y[x],x]==Sqrt[a^2-x^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -a \text {arctanh}\left (\frac {\sqrt {a^2-x^2}}{a}\right )+\sqrt {a^2-x^2}+c_1 \]
Sympy. Time used: 1.470 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sqrt(a**2 - x**2),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + \int \frac {\sqrt {- \left (- a + x\right ) \left (a + x\right )}}{x}\, dx \]