82.12.29 problem Ex. 32

Internal problem ID [18715]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter II. Equations of the first order and of the first degree. Examples on chapter II at page 29
Problem number : Ex. 32
Date solved : Thursday, March 13, 2025 at 12:40:51 PM
CAS classification : [_separable]

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

Maple. Time used: 0.001 (sec). Leaf size: 17
ode:=y(x)-x*diff(y(x),x) = b*(1+x^2*diff(y(x),x)); 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = \frac {c_{1} x +b}{b x +1} \]
Mathematica. Time used: 0.039 (sec). Leaf size: 24
ode=y[x]-x*D[y[x],x]==b*(1+x^2*D[y[x],x]); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {b+c_1 x}{b x+1} \\ y(x)\to b \\ \end{align*}
Sympy. Time used: 0.343 (sec). Leaf size: 12
from sympy import * 
x = symbols("x") 
b = symbols("b") 
y = Function("y") 
ode = Eq(-b*(x**2*Derivative(y(x), x) + 1) - x*Derivative(y(x), x) + y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} x}{x + \frac {1}{b}} + b \]