✓ Maple : cpu = 0.1 (sec), leaf count = 45
This is Riccati first order non-linear ODE with
Comparing to (1) results in
Hence
This is second order ODE with constant coefficient. Solution is
Therefore
And therefore the solution is
Dividing by
Verification
eq:=diff(y(x),x)-(A*y(x)-a)*(B*y(x)-b) = 0; sol:=(a*B*_C1*exp(-a*B*x)+A*b*exp(-A*b*x))/(A*B*(_C1*exp(-a*B*x)+exp(-A*b*x))); odetest(y(x)=sol,eq); 0