S(\alpha) = \left( \sum_i^n x_i^2 \right) \alpha^2 + 2\left( \sum_i^n (x_i\beta - x_i y_i ) \right) \alpha + n\beta^2 - 2\beta\sum_i^n y_i + \sum_i^n y_i^2