I took the derivative of the original function and then set it to zero and got
$$r= -2r0/((dv/dr0)-2)$$
Honestly, I'm pretty lost and need some help getting started. Thank you.
OK, I think I see your problem, but I'll ask you these questions before I proceed: (1) What function are you differentiating? (2) With respect to which variable are you differentiating it?