Suppose $y_t = \beta x_t + u_t$, where $t = 1, 2, ..., n$. We know, in this case, the OLS estimator is $\hat{\beta} = ∑x_t y_t /∑x_t^2$.
Now suppose one more observation $x_{n+1}$ is added. At the same time, a dummy variable is also added into the model, where $d_t = 0$ when $t = 1, 2, \ldots, n$ and $d_t = 1$ when $t = n + 1$. In other words, the new regression is $$y_t = \beta_1 x_t + \beta_2 d_t + e_t,$$ where $t = 1, 2, ..., n + 1$. Find the OLS estimator of $\beta_1$.
I have tried writing out functions using summations of $x_1$, $x_2$ and $y$ but nothing looks right. Any help would be appreciated.