50.5.3 problem 1(c)

Internal problem ID [7873]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Section 1.7. Homogeneous Equations. Page 28
Problem number : 1(c)
Date solved : Sunday, March 30, 2025 at 12:34:32 PM
CAS classification : [[_homogeneous, `class A`], _dAlembert]

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

Maple. Time used: 0.011 (sec). Leaf size: 12
ode:=x^2*diff(y(x),x) = 3*(x^2+y(x)^2)*arctan(y(x)/x)+x*y(x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \tan \left (c_1 \,x^{3}\right ) x \]
Mathematica. Time used: 5.323 (sec). Leaf size: 30
ode=x^2*D[y[x],x]==3*(x^2+y[x]^2)*ArcTan[x,y[x]]+x*y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to x \tan \left (x^3 (\cosh (3 c_1)-\sinh (3 c_1))\right ) \\ y(x)\to 0 \\ \end{align*}
Sympy. Time used: 1.102 (sec). Leaf size: 10
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), x) - x*y(x) - (3*x**2 + 3*y(x)**2)*atan(y(x)/x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x \tan {\left (C_{1} x^{3} \right )} \]