4.7.44 \(x (a x+1) y'(x)+a-y(x)=0\)

ODE
\[ x (a x+1) y'(x)+a-y(x)=0 \] ODE Classification

[_separable]

Book solution method
Linear ODE

Mathematica
cpu = 0.167299 (sec), leaf count = 19

\[\left \{\left \{y(x)\to \frac {a+c_1 x}{a x+1}\right \}\right \}\]

Maple
cpu = 0.016 (sec), leaf count = 20

\[\left [y \left (x \right ) = \frac {\left (\frac {a}{x}+\textit {\_C1} \right ) x}{a x +1}\right ]\] Mathematica raw input

DSolve[a - y[x] + x*(1 + a*x)*y'[x] == 0,y[x],x]

Mathematica raw output

{{y[x] -> (a + x*C[1])/(1 + a*x)}}

Maple raw input

dsolve(x*(a*x+1)*diff(y(x),x)+a-y(x) = 0, y(x))

Maple raw output

[y(x) = (a/x+_C1)/(a*x+1)*x]