I encounter the following question
Suppose that $n$ is even and the $n$ values of $x_i$ can be selected anywhere in the interval from $a$ to $b$. Show that $var(\beta_1)$ is a minimum if $n/2$ values of $x_i$ are equal to $a$ and $n/2$ values are equal to $b$, where $\beta_1$ is from the simple linear regression $y=\beta_0 + \beta_1 x + \epsilon$.
Knowing that $var(\beta_1) = \frac{\sigma^2}{\sum(x_i - \bar{x})}$. Then need to show that $SXX=\sum(x_i - \bar{x})$ is maximized on the boundaries.
Take derivative w.r.t $x_i$, got $\partial SXX/ \partial x_i = x_i -\bar{x}$, i.e. decreasing when $x_i < \bar{x}$ and increasing when $x_i > \bar{x}$. Not so sure how to proceed?