Internal problem ID [2175]
Book: Differential equations and linear algebra, Stephen W. Goode and Scott A Annin. Fourth edition,
2015
Section: Chapter 1, First-Order Differential Equations. Section 1.8, Change of Variables. page
79
Problem number: Problem 29(a).
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [[_homogeneous, class A], _rational, [_Abel, 2nd type, class A]]
Solve \begin {gather*} \boxed {y^{\prime }-\frac {x +a y}{a x -y}=0} \end {gather*}
✓ Solution by Maple
Time used: 0.21 (sec). Leaf size: 25
dsolve(diff(y(x),x)=(x+a*y(x))/(a*x-y(x)),y(x), singsol=all)
\[ y \relax (x ) = \tan \left (\RootOf \left (-2 \textit {\_Z} a +\ln \left (\frac {x^{2}}{\cos \left (\textit {\_Z} \right )^{2}}\right )+2 c_{1}\right )\right ) x \]
✓ Solution by Mathematica
Time used: 0.039 (sec). Leaf size: 34
DSolve[y'[x]==(x+a*y[x])/(a*x-y[x]),y[x],x,IncludeSingularSolutions -> True]
\[ \text {Solve}\left [a \text {ArcTan}\left (\frac {y(x)}{x}\right )-\frac {1}{2} \log \left (\frac {y(x)^2}{x^2}+1\right )=\log (x)+c_1,y(x)\right ] \]