So the sum of the residuals for a linear regression=0, which makes sense thinking about it, but how would I go about proving this???

That is r(i)=y(i)-ý(i) (the second y is y hat) and the sum of all of these = 0.

Any help would be greatly appreciated!