Let $A$ be a discrete random variable with expected value $a$ and variance $b^2$
$$a:=\Bbb E(A)~~\,\\b^2:=\Bbb{Var}(A)$$
The function F is defined as $$F(x):=\Bbb E[(A-x)^2]$$ Show that $$b^2=(1/2)\cdot \Bbb E(F(A))$$
Hint: Express the function $F(x)$ through $a$, $b^2$ and $A$.
I tried a few things but nothing really worked. Thanks in advance!
We have the constants $a$ and $b$ defined as: $a:=\Bbb E(A)$ and $b^2:=\Bbb {Var}(A)$. It will be useful to note that this means: $\Bbb E(A^2)=b^2+a^2$, by the definition of variance.
$F(x)$, being defined as $\Bbb E((A-x)^2)$, is a function of free variable $x$, with no free occurrence of random variable $A$, since the linear operation (expectation) binds that random variable.
$$\begin{align}F(x)&=\Bbb E(A^2-2Ax+x^2)\\&=\text{a function of free variable $x$, and constants $a,b$}\end{align}$$
$F(A)$ is that function with all free occurrences of $x$ replaced by $A$. This replacement must occur after the evaluation of the expectation to avoid collision with the bound occurrence. In short:$$\begin{align}F(A) &= \text{a function of random variable $A$, and constants $a,b$}\end{align}$$
The random variable $A$ occurs free in this function, so we take its expectation as we normally do.
$$\begin{align}\Bbb E(F(A))&=\\&~~\vdots\\&=2b^2\end{align}$$
And so it is done.