15.5.13 problem 13

Internal problem ID [2949]
Book : Differential Equations by Alfred L. Nelson, Karl W. Folley, Max Coral. 3rd ed. DC heath. Boston. 1964
Section : Exercise 9, page 38
Problem number : 13
Date solved : Sunday, March 30, 2025 at 01:00:59 AM
CAS classification : [_rational]

\begin{align*} \left (x^{2}+y^{2}+x \right ) y^{\prime }&=y \end{align*}

Maple. Time used: 0.024 (sec). Leaf size: 36
ode:=(x^2+y(x)^2+x)*diff(y(x),x) = y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ \frac {{\mathrm e}^{-2 i y} \left (i x +y\right )+2 c_1 \left (i y+x \right )}{2 i y+2 x} = 0 \]
Mathematica. Time used: 0.117 (sec). Leaf size: 18
ode=(x^2+y[x]^2+x)*D[y[x],x]==y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ \text {Solve}\left [y(x)-\arctan \left (\frac {x}{y(x)}\right )=c_1,y(x)\right ] \]
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq((x**2 + x + y(x)**2)*Derivative(y(x), x) - y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : The given ODE Derivative(y(x), x) - y(x)/(x**2 + x + y(x)**2) cannot be solved by the factorable group method