I'm trying to solve an exercise in a general way and I can't find if my answer is correct.
Given this frequency response:
$$H(z) = 4 + 2\sqrt2 z^{-1} + z^{-2}$$
I need to find a frequency response that has maximum-phase response $H_{1}(z)$ such that $\lvert H(z)\rvert = \lvert H_{1}(z)\rvert$.
First of all, I write:
$$H(z) = \frac{4z^2+2\sqrt2 z + 1}{z^2}$$
So I see that I have zeros in:
\begin{align} z_{01} &= \frac{\sqrt2}{4}+j\frac{\sqrt2}{4}\\ z_{02} &= \frac{\sqrt2}{4}-j\frac{\sqrt2}{4} \end{align}
And poles in:
$$z_x = 0 \text{ (double)}$$
Now, I know that for a maximum phase system I need that all the poles and zeros have to be outside the unit circle, but from Oppenheim-Schafer I also know that I have to add a scalar factor for the minimum-phase case, so I suppose I also have to add that scalar factor now.
So I say that this: $$H_1(z) = k \left(z- \frac{1}{z_{01}}\right) \left(z- \frac{1}{z_{02}}\right)$$ (I used that I have both poles in $z=\infty$, is that right?) has to be the one that makes $\lvert H(z)\rvert = \lvert H_{1}(z)\rvert$.
But I can't find the value of $k$ (scalar factor), because when I write $z=e^{j\omega}$ and use the magnitude definition (magnitude = square root of the squared real part plus the squared imaginary part) I find that $k=1$ and $k=-1$.