Suppose that the random variable X has the cumulative density function F(x). Show that the expected value of the random variable $(X-c)^2$ is minimum if c equals the expected value of X.
I know that the cumulative distribution function ("c.d.f.") of a continuous random variable X is defined as:
\begin{equation} F(x) = \int_{-\infty}^{x} f(t) dt \end{equation}
for $-\infty < x < \infty$.