Let $X_1,...$ be a sequence of independent and identically distributed random variables with mean $0$ and variance $\sigma^2$. Let $S_n=\sum^n_{i=1}X_i$ and show that $\{Z_n,n\geq1\}$ is a martingale when $$Z_n=S_n^2-n\sigma^2$$
I know I need to show that $E(Z_{n+1}|\mathcal{F}_n)=Z_n$ to prove that $Z_n$ is a martingale. I know that if $Z_n=\sum^n_{i=1}X_i$, then $\{Z_n\}$ is a martingale. We show this by the following calculations: \begin{align} E(Z_{n+1}|\mathcal{F}_n)&=E(Z_n+X_{n+1}|\mathcal{F}_n)\\ &=E(Z_n|\mathcal{F}_n)+E(X_{n+1}|\mathcal{F}_n)\\ &=Z_n+E(X_{n+1})\\ &=Z_n+0=Z_n \end{align} I can see that this problem is analogous to that problem, but I am not sure how to go about it. Could I get some pointers? Thank you.