Without using your book, derive expressions for \(\hat{\beta}_0\) and \(\hat{\beta}_1\) by solving for them in the normal equations:
\[ \sum_{i=1}^n y_i = n\hat{\beta}_0 + \hat{\beta}_1 \sum_{i=1}^n x_i \\ \sum_{i=1}^n x_i y_i = \hat{\beta}_0 \sum_{i=1}^n x_i + \hat{\beta}_1 \sum_{i=1}^n x_i^2 \]
note: \(\frac{1}{n}\sum_{i=1}^n x_i\) can be rewritten \(\bar{x}\).