Let $z$ be a complex number such that $$ z + \frac{1}{z} = \cos x $$ Then what is the value of the expression $$ z^n + \frac{1}{z^n} $$ where $n$ is an integer?
Please help me. I have tried somehow using the trigonometric way of defining complex numbers but still didn't manage to get anywhere.
Hint:
Let $$z = \cos x + i \sin x$$ and $$\dfrac {1}{z} = \cos x - i \sin x$$
Then by DeMoivre's theorem $$z^n = (\cos x + i \sin x)^n = \cos nx + i \sin nx$$ $$\dfrac {1}{z^n} = (\cos x - i \sin x)^n = \cos nx - i \sin nx$$
What do you need to get $z^n + \dfrac {1}{z^n}?$