$$E(m, b) = \sum{(y_i^2 + m^2x_i^2 + b^2 -
2mx_iy_i - 2by_i + 2bmx_i)}$$