Set y1=x+30 and y2=x^2, plugged those into the distance formula assuming x=a<span>, </span><span> d=rad(<span>(y2−y1<span>)^2) </span></span></span><span>d(x)=x^2−x−30
</span>All you have to do is to maximize the given quadratic function. I hope that this is the answer that you were looking for and it has helped you.