Find $|X(\omega)|$ where $$ X(\omega)=\frac{1}{1-ae^{i\omega}} $$
Multiplication of the conjugate of the denominator on its numerator and denominator yields $$ X(\omega)=\frac{1-a\cos(\omega)-i\sin(\omega)}{1-2a\cos(\omega)+\omega^2} $$ which should give $$ |X(\omega)|=\sqrt{\frac{1-2a\cos(\omega)+a^2}{1-2a\cos(\omega)+\omega^2}} $$ However, the final answer on the book is $$ |X(\omega)|=\sqrt{\frac{1}{1-2a\cos(\omega)+\omega^2}} $$ Is the answer on the book wrong?