Determine the frequency response $H(e^{j\omega})$ of a system characterized by $h(n) = (0.9)^n u(n)$
using the definition $$H(e^{j\omega})=\sum_{-\infty}^\infty h(n) e^{-j\omega n}$$ $H(e^{j\omega})=\sum_0^\infty (0.9)^n e^{-j\omega n}$ = $\sum_0^\infty (0.9 e^{-j\omega})^n$ = $$\frac{1}{1-0.9e^{-j\omega}}$$
I understand the above but my question comes when the book tries to get the magnitude of $H(e^{j\omega})$.
$$|H(e^{j\omega})| = \sqrt \frac{1}{(1-0.9 \cos\omega)^2+(0.9 \sin\omega)^2}$$
I know that the use of Euler's formula and the complex conjugate is involved. However, I need to see the math.