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 tobto 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?

Thanks for your help!