standard error of estimate=

square root of sum of squares of difference of y and y hat divided by n-2

how does this become--------->

square root of sum of y square minus a times sum of y minus b times sum of xy and divided by 2

The text book doesn't show progress and just stated they are equivalent.

Would you please show me how to get there?

Thank you everybody in advance,

Judi