69.1.127 problem 186

Internal problem ID [14201]
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 : Wednesday, March 05, 2025 at 10:39:45 PM
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.006 (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.139 (sec). Leaf size: 26
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]
 
\[ \text {Solve}\left [\int _1^{\frac {y(x)}{x}}\cos (K[1])dK[1]=-\log (x)+c_1,y(x)\right ] \]
Sympy. Time used: 0.876 (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 ] \]