72.4.7 problem 8

Internal problem ID [19416]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 2. First order equations. Section 8 (Exact Equations). Problems at page 72
Problem number : 8
Date solved : Thursday, October 02, 2025 at 04:24:25 PM
CAS classification : [_separable]

\begin{align*} -\frac {\sin \left (\frac {x}{y}\right )}{y}+\frac {x \sin \left (\frac {x}{y}\right ) y^{\prime }}{y^{2}}&=0 \end{align*}
Maple. Time used: 0.006 (sec). Leaf size: 13
ode:=-1/y(x)*sin(x/y(x))+x/y(x)^2*sin(x/y(x))*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {x}{\pi -c_1} \]
Mathematica. Time used: 0.019 (sec). Leaf size: 19
ode=(-1/y[x]*Sin[x/y[x]])+(x/y[x]^2*Sin[x/y[x]])*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to c_1 x\\ y(x)&\to \text {ComplexInfinity}\\ y(x)&\to \text {ComplexInfinity} \end{align*}
Sympy. Time used: 0.106 (sec). Leaf size: 5
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*sin(x/y(x))*Derivative(y(x), x)/y(x)**2 - sin(x/y(x))/y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} x \]