Is there anyway I can pull x out of this summation to solve for it?
$$ 0 = \frac{-2}{N} \sum_i^N a_i(b_i - (xa_i))$$
EDIT: Thanks for all the quick comments guys.
I am confused by a certain step everyone seems to be taking.
$$ -\sum_i^N xa_i^2 = -x\sum_i^N a_i^2 $$
Can someone explain or link me to somewhere that explains how this is true.