78.4.10 problem 11

Internal problem ID [18054]
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 : 11
Date solved : Thursday, March 13, 2025 at 11:26:24 AM
CAS classification : [_exact, _rational, _Riccati]

\begin{align*} 1&=\frac {y}{1-x^{2} y^{2}}+\frac {x y^{\prime }}{1-x^{2} y^{2}} \end{align*}

Maple. Time used: 0.006 (sec). Leaf size: 24
ode:=1 = y(x)/(1-x^2*y(x)^2)+x/(1-x^2*y(x)^2)*diff(y(x),x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {c_1 +{\mathrm e}^{2 x}}{x \left ({\mathrm e}^{2 x}-c_1 \right )} \]
Mathematica. Time used: 0.156 (sec). Leaf size: 18
ode=1==y[x]/(1-x^2*y[x]^2)+ (x/(1-x^2*y[x]^2))*D[y[x],x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {\tanh (x+i c_1)}{x} \]
Sympy. Time used: 0.316 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*Derivative(y(x), x)/(-x**2*y(x)**2 + 1) + 1 - y(x)/(-x**2*y(x)**2 + 1),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {- C_{1} - e^{2 x}}{x \left (C_{1} - e^{2 x}\right )} \]