32.6.28 problem Exercise 12.28, page 103

Internal problem ID [5893]
Book : Ordinary Differential Equations, By Tenenbaum and Pollard. Dover, NY 1963
Section : Chapter 2. Special types of differential equations of the first kind. Lesson 12, Miscellaneous Methods
Problem number : Exercise 12.28, page 103
Date solved : Sunday, March 30, 2025 at 10:24:10 AM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

\begin{align*} x y^{\prime }-x \sin \left (\frac {y}{x}\right )-y&=0 \end{align*}

Maple. Time used: 0.013 (sec). Leaf size: 44
ode:=x*diff(y(x),x)-x*sin(y(x)/x)-y(x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \arctan \left (\frac {2 x c_1}{c_1^{2} x^{2}+1}, \frac {-c_1^{2} x^{2}+1}{c_1^{2} x^{2}+1}\right ) x \]
Mathematica. Time used: 0.329 (sec). Leaf size: 52
ode=x*D[y[x],x]-x*Sin[y[x]/x]-y[x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -x \arccos (-\tanh (\log (x)+c_1)) \\ y(x)\to x \arccos (-\tanh (\log (x)+c_1)) \\ y(x)\to 0 \\ y(x)\to -\pi x \\ y(x)\to \pi x \\ \end{align*}
Sympy. Time used: 1.141 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*sin(y(x)/x) + x*Derivative(y(x), x) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = 2 x \operatorname {atan}{\left (C_{1} x \right )} \]