Solve[D[(n n + 2 n x + x x - m m)/(4 n x^3), x] == 0, x]