Let X be a random variable and let c be a constant.
Show that E(X-c)^2 is a minimum when c = E[X]
This is a quadratic function of c, and let it be f(c) = ...
This solution uses the quadratic function of c and shows when E(X-c)^2 is a minimum. All calculations and formulas are shown in a structured manner.