75.3.10 problem 10

Internal problem ID [19914]
Book : A short course on differential equations. By Donald Francis Campbell. Maxmillan company. London. 1907
Section : Chapter III. Ordinary differential equations of the first order and first degree. Exercises at page 33
Problem number : 10
Date solved : Thursday, October 02, 2025 at 05:01:01 PM
CAS classification : [_separable]

\begin{align*} \left (-x^{2}+1\right ) y^{\prime }-y x&=a x y^{2} \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 22
ode:=(-x^2+1)*diff(y(x),x)-x*y(x) = a*x*y(x)^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {1}{\sqrt {x -1}\, \sqrt {x +1}\, c_1 -a} \]
Mathematica. Time used: 3.578 (sec). Leaf size: 45
ode=(1-x^2)*D[y[x],x]-x*y[x]==a*x*y[x]^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to -\frac {e^{c_1}}{-\sqrt {x^2-1}+a e^{c_1}}\\ y(x)&\to 0\\ y(x)&\to -\frac {1}{a} \end{align*}
Sympy. Time used: 0.999 (sec). Leaf size: 44
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(-a*x*y(x)**2 - x*y(x) + (1 - x**2)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = \frac {- C_{1} + \sqrt {C_{1} \left (x^{2} - 1\right )}}{a \left (C_{1} - x^{2} + 1\right )}, \ y{\left (x \right )} = \frac {C_{1} + \sqrt {C_{1} \left (x^{2} - 1\right )}}{a \left (- C_{1} + x^{2} - 1\right )}\right ] \]