but you wrote: <A>^2 - 2<A><A> + <A^2>
it is supposed to be: <A>^2 - 2<A>A + A^2
If you have a look at the figure you have posted, you will see that you are supposed to take the expectation value of that second line you just gave (<A>^2 - 2<A>A + A^2). Taking the expectation value of that line gives you the first line you just gave (<A>^2 - 2<A><A> + <A^2>).