## Sign confusion in partial differentiation of a summation.

Hello all, thanks for taking the time to read this.

So, I am looking over a document about least squares fitting, and right in the beginning is a summation function: This function is partially differentiated w/respect to b to get:Which is fine. However, here’s where I am confused: the simplified function appears as:
Shouldn’t the last term be positive, as in:
or am I missing something?