Differentiate that to find that the turning point (which must be a minimum) occurs when . You can factorise that as . The second factor is a quadratic in , and the only positive root is . Therefore the minimum occurs when . If you now substitute the value for into the formula for , taking a=1/4, and finally take the square root to get d, then you will have the length of the shortest chord.