On page 72 of Introductory Statistics, A Conceptual Approach Using R (Routledge, 2012), the authors first compute the variance of a sample of size $n$ using:
$$\sigma^2=\dfrac{\sum_{i=1}^n(Y_i-\mu)^2}{n}$$
Then, because they do not know the mean $\mu$ of the population, they replace it with the sample mean $\overline{Y}$:
$$\hat{\sigma}^2=\dfrac{\sum_{i=1}^n(Y_i-\overline{Y})^2}{n}$$
Next they say they use "expectation algebra" to show that:
$$E(\hat{\sigma}^2)=\sigma^2-\frac{\sigma^2}{n}$$
I've tried a number of things. For example, I tried:
$$\begin{align*} E(\hat{\sigma}^2) &=E\left[\frac{\sum(Y-\overline{Y})^2}{n}\right]\\ &=\frac1n E\left[\sum Y^2-2\overline{Y}\sum Y+\sum\overline{Y}^2\right]\\ &=\frac1n E\left[\sum Y^2-n\overline{Y}^2\right]\\ &=\frac1nE\left[\sum Y^2\right]-\overline{Y}^2 \end{align*}$$
But I have been unable to make this equal to $\sigma^2-\sigma^2/n$. Any suggestions would be helpful, allowing me to continue my reading.