E[(Y - f(X))]^2
of course, and as later in the derivation, should read
E[(Y - f(X))^2]
I'll have to advise my typist to do better in the future!!!