I've just been working through the questions in Discrete-Time Signal Processing (Oppenheim and Schafer) and I came across this (Q33):
Consider an LTI system defined by the difference equation $$y[n] = -2x[n]+4x[n-1]-2x[n-2]$$ ...
(b) Determine the frequency response of this system. Express your answer in the form $$H(e^{j\omega})=A(e^{j\omega})e^{-j{\omega}n_0},$$ where $A(e^{j\omega})$ is a real function of $\omega$. Explicitly specify $A(e^{j\omega})$ and the delay $n_d$ of this system.
Now, both the impulse response and frequency response are quite simple to find. I found $$h[n]=-2\delta[n]+4\delta[n-1]-2\delta[n-2]$$ and $$H(e^{j\omega})=-2+4e^{-j\omega}-2e^{-2j\omega}.$$ However, I can't seem to get the frequency response into the overall form defined in the question. I initially thought to try to get it into exponential form by calculating the magnitude and phase, but I feel as though that is not the intended method since those are dealt with separately in part (c). I also put the frequency response in rectangular form: $$H(e^{j\omega})=(-2+4\cos{\omega}-2\cos{2\omega})+j(2\sin{2\omega}-4\sin{\omega}),$$but I don't see this helping when I need to convert back into exponential form. Trigonometric identities seem to just overcomplicate the expression.
Is there some sort of theorem I can use that will help sum up the constant and complex exponentials?