i am working on the same problem, and i am stuck on one particular part, when i take the derivative and set it equal to zero i end up with a cubic polynomial, like
(r/a)^3 - 6(r/a)^2 + 8r/a - 4 =0
not sure it this is correct, and if it is then do i need to use a graphing program...