63.1.127 problem 186

Internal problem ID [15567]
Book : DIFFERENTIAL and INTEGRAL CALCULUS. VOL I. by N. PISKUNOV. MIR PUBLISHERS, Moscow 1969.
Section : Chapter 8. Differential equations. Exercises page 595
Problem number : 186
Date solved : Thursday, October 02, 2025 at 10:20:03 AM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

\begin{align*} x \cos \left (\frac {y}{x}\right ) y^{\prime }&=y \cos \left (\frac {y}{x}\right )-x \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 12
ode:=x*cos(y(x)/x)*diff(y(x),x) = y(x)*cos(y(x)/x)-x; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -\arcsin \left (\ln \left (x \right )+c_1 \right ) x \]
Mathematica. Time used: 0.22 (sec). Leaf size: 15
ode=x*Cos[ y[x]/x]*D[y[x],x]==y[x]*Cos[ y[x]/x] - x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to x \arcsin (-\log (x)+c_1) \end{align*}
Sympy. Time used: 0.581 (sec). Leaf size: 22
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*cos(y(x)/x)*Derivative(y(x), x) + x - y(x)*cos(y(x)/x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = x \left (\pi - \operatorname {asin}{\left (C_{1} - \log {\left (x \right )} \right )}\right ), \ y{\left (x \right )} = x \operatorname {asin}{\left (C_{1} - \log {\left (x \right )} \right )}\right ] \]