Huaizhong R. answered 06/04/25
Ph.D. Extensive knowledge/Experience in Math Learning/Teaching
The ultimate reason that d and d2 achieve the maximum or minimum simultaneously is because the function f(x)=x2 is increasing when x is non-negative. If max(d) = d(x0), this is equivalent to d(x0) ≥ d(x) for any x in the domain of d(x) (here x is not necessarily a scalar). But then d2(x0) ≥ d2(x) for any x as well. In other words, max(d2)=d2(x0).