TITLE: How do you find the maximum value of $|z^2 - 2iz+1|$ given that $|z|=3$, using triangle inequality?
QUESTION [8 upvotes]: Problem:
How do you find the maximum value of $|z^2 - 2iz+1|$ given that $|z|=3$, using triangle inequality?
My attempt:
$$|z^2 - 2iz+1|\le|z|^2+2|i||z|+1$$
$$\implies |z^2 - 2iz+1|\le16$$
However, this does not provide a strict upper bound on the inequality, where the equality holds. 
I also tried writing it as:
$$|(z-i)^2 + 2| <= |(z-i)|^2 + 2$$
This last equation does suggest that the maximum value occurs at $-3i$, however, provides an even higher upper bound of $18$.
Wolfram Alpha gives the answer as $14$, and it occurs as $-3i$. I know that the equality only holds when all the complex numbers are collinear, but that has not helped me with this question.

REPLY [4 votes]: After playing with the triangle inequality for a while, we may realize that we are not going to arrive at the maximum without absurd ingenuity, so we consider other methods:

Calculus I: stationary points:  Substitute $z = 3 \mathrm{e}^{\mathrm{i}\theta}$, find real and imaginary parts and construct the modulus as the sum of the squares of those parts, giving (simplified) $$\sqrt{2} \left( \sqrt{59 + 9 \cos(2 \theta) - 48 \sin(\theta)} \right) \text{.}$$  Differentiate this with respect to $\theta$, giving $$ -\frac{3\sqrt{2} \left( 8 \cos(\theta) + 3 \sin(2\theta) \right)}{\sqrt{59 + 9 \cos(2 \theta) - 48 \sin(\theta)}} \text{.}$$  Set this equal to zero and solve for $\theta$, giving $\pm \pi/2$ as locations of stationary points.  Evaluating the substituted polynomial at these two angles gives $-2$ and $-14$, so the maximum modulus of the polynomial on the circle of radius $3$ is $14$.
Lagrange Multipliers:  Construct $|z^2 + 2\mathrm{i} z + 1|
 - \lambda(|z| - 3)$ then take derivatives with respect to $z$ and
$\lambda$, set those simultaneously equal to zero and solve.  You get
that $z = \pm 3\mathrm{i}$.  Plugging in again, we find the maximum
modulus is 14.
Geometry:  This polynomial is $(z-(\mathrm{i}+\mathrm{i}\sqrt{2}))(z-(\mathrm{i}-\mathrm{i}\sqrt{2}))$.  Taking the modulus, we realize the level sets are collections of points whose product of distances from two given point (the roots just found) are fixed.  These level sets are Cassini ovals.  By symmetry, then, the maximum will be on the imaginary axis and it is no great challenge to realize it will be the one of $3\mathrm{i}$ and $-3\mathrm{i}$ that is farthest from the midpoint of the roots (which is $\mathrm{i}$).  Plugging $-3i$ back into the polynomial, we get that the maximum modulus is $14$, again.