This is LaTeX code:

[latex]
\mathbb{E}[(X - a)^2] = \mathbb{E}[X^2 - 2 a X + a^2] = \mathbb{E}[X^2] - 2 a \mathbb{E}[X] + a^2
[/latex]