28.1.110 problem 133

Internal problem ID [4416]
Book : Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section : Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page 78
Problem number : 133
Date solved : Sunday, March 30, 2025 at 03:18:12 AM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

Maple. Time used: 0.031 (sec). Leaf size: 27
ode:=x*diff(y(x),x) = y(x)+(x^2-y(x)^2)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ -\arctan \left (\frac {y}{\sqrt {x^{2}-y^{2}}}\right )+\ln \left (x \right )-c_1 = 0 \]
Mathematica. Time used: 0.277 (sec). Leaf size: 18
ode=x*D[y[x],x]==y[x]+Sqrt[x^2-y[x]^2]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -x \cosh (i \log (x)+c_1) \]
Sympy. Time used: 0.964 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - sqrt(x**2 - y(x)**2) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = - x \sin {\left (C_{1} - \log {\left (x \right )} \right )} \]