# Derive PSD of an MA(1) process

Suppose there is a moving average process of order 1 that also includes a zeroth term thus:

$$$$Y_t=\theta\left(B\right)X_t = \left(\theta_0+\theta_1B\right)X_t$$$$

where $$X_t$$ is white noise (normally distributed). Now I know that the PSD can be determined from:

$$$$f\left(\omega\right) = \sigma_w^2\left|\theta\left(\mathrm{e}^{-2\pi\mathrm{i}\omega}\right)\right|^2 = \sigma_w^2\left|\theta_0+\theta_1\mathrm{e}^{-2\pi\mathrm{i}\omega}\right|^2$$$$

I know the standard result is:

$$$$\sigma_w^2\left(\theta_0^2+\theta_1^2+2\theta_0\theta_1 \cos \left(2\pi\omega\right)\right)$$$$

But when I multiply out the terms I cannot see how to simplify:

$$$$\theta_0^2+\theta_0\theta_1\cos\left(-2\pi\omega\right) +\mathrm{i}\theta_0\theta_1\sin\left(-2\pi\omega\right)+$$$$ $$$$\theta_0\theta_1\cos\left(-2\pi\omega\right) +\theta_1^2\cos^2\left(-2\pi\omega\right) + \mathrm{i}\theta_1^2\cos\left(-2\pi\omega\right)\sin\left(-2\pi\omega\right)+$$$$ $$$$\mathrm{i}\theta_0\theta_1\sin\left(-2\pi\omega\right)+\mathrm{i}\theta_1^2\cos\left(-2\pi\omega\right)\sin\left(-2\pi\omega\right)-\theta_1^2\sin^2\left(-2\pi\omega\right)$$$$

I can see how to obtain:

$$$$\theta_0^2+\theta_1^2\left(\cos^2\left(2\pi\omega\right)+\sin^2\left(2\pi\omega\right)\right)$$$$

but I can't simplify the rest. I need to do this for more complicated processes, so any guidance on how to deal with he extra terms would be much appreciated.

Keep in mind, if you have $$\lvert A(\omega)\rvert^{2}$$, this can be written as $$A(\omega)A^{*}(\omega)$$. So, doing this for $$f(\omega)$$, we can write

$$$$f(\omega) = \sigma_{\omega}^{2}\lvert\theta_{0}+\theta_{1}e^{-2\pi i\omega}\rvert^{2} = \sigma_{\omega}^{2}(\theta_{0}+\theta_{1}e^{-2\pi i\omega})(\theta_{0}+\theta_{1}e^{2\pi i\omega})$$$$

Expanding this out, we get

$$$$\sigma_{\omega}^{2}[\theta_{0}^{2} + \theta_{1}^{2} + \theta_{0}\theta_{1}e^{-2\pi i\omega} + \theta_{0}\theta_{1}e^{2\pi i\omega}] = \sigma_{\omega}^{2}[\theta_{0}^{2} + \theta_{1}^{2} + \theta_{0}\theta_{1}(e^{2\pi i\omega} + e^{-2\pi i\omega})]$$$$

Using Euler's formula for a cosine, we get

$$$$f(\omega) = \sigma_{\omega}^{2}[\theta_{0}^{2} + \theta_{1}^{2} + 2\theta_{0}\theta_{1}cos(2\pi\omega)]$$$$

Let me know if you need anything further!