derivative ar^2(r_0 - r) where a is constant and r_0 is constant