This is LaTeX code:

[latex]
E[{\left(X-EX \right)}^{2}]=E[{X}^{2}]-{(EX)}^{2}=\int_{-\infty}^{+\infty}{\left(x-EX \right)}^{2}f(x)dx
[/latex]