[Math] Finding maximum value of absolute value of a complex number given a condition.

complex numbers

On a recent test, I could not solve the following problem:
If
$$\left | z^2 + 2zcos\alpha \right | \leq 1 $$
then find the maximum value of absolute value of z.
Alpha is not a fixed parameter. Alpha is real and alpha ranges over all possible values.
I've never really solved any problem close to this.
Answer should not be in terms of parameter alpha but rather a number, so how do i go about this?
I tried substituting $z= a+ib$ and then finding the abs. value by definition but then it looks like a quartic complex equation under root sign.
Please help.

Best Answer

Using the triangle inequality $$|z^2|-|2z\cos(\alpha)|\leq |z^2+2z\cos(\alpha)|\leq 1$$ but $$|z^2|-|2z|\leq |z^2|-|2z\cos(\alpha)|$$ therefore $$|z^2|-|2z|=|z|^2-2|z|\leq 1\Rightarrow (|z|-1)^2\leq2\Rightarrow ||z|-1|\leq\sqrt{2}$$ In other words $$0 \leq |z|\leq \sqrt{2}+1$$ Notice that this inequality is sharp because it is attained for $\alpha=\pi$ and $z=\sqrt{2}+1$.