I was reading about variance from Head First Statistics :

And then -

Q. I find the reasoning a little absurd. Wouldn't just taking the absolute distance suffice if cancelling out of the terms was the reason ? Why do squares to make it positive and complicate the calculations further (In terms of computations on a computer, square would be costlier than subtraction, right?) ?
Actually the real "absolute distance" is the standard deviation (i.e $\sqrt{\text{Var}(X)}$) ! I'll make the exemple in the case where the expected value is $0$. The reason is that $$\sqrt{x_1^2+...+x_n^2}\leq |x_1|+...+|x_n|$$ therefore $\sqrt{x_1^2+...+x_n^2}$ gives a better approximation than $|x_1|+...+|x_n|$.