This is actually from an optimization problem about maximizing distances.
With the distance formula, I have seen that instead of people using d = square root of [ (X2 - X1)^2 + (Y2 - Y1)^2], they do this:
d^2 = (X2 - X1)^2 + (Y2 - Y1)^2
^ So they square both sides, and then they say that let S = d^2, meaning let this be the distance. Why is this the same as the first?
It's not the same function, but maximizing and minimizing it is the same process. The reason they do it is because it's easier to take derivatives of polynomials than things with square roots, and the reason it is justified is because for
you know that
, so if something is the biggest, and you square all the stuff you have, it is still the biggest. Similarly for the smallest.