How can you find for what values of the $\theta$ and $\phi$ angles the following modulus will assume its greatest possible value?
$$\mid -2ia\sin(\theta) - 2ib\sin(\phi) + 2c(1-\cos(\theta)) +2d(1-\cos(\phi))\mid$$
$i$ is complex, $a$, $b$, $c$, and $d$ are free parameters. I want to find for what $\theta$ and $\phi$ this expression maximizes because I want to find the values the parameters can take to keep the modulus at less than $1$.
Any help is much appreciated.
Up to scaling, it's equivalent to find the maximal distance between the ellipses:
$$ \left \{ \begin{array}{rcl} \displaystyle \frac{(x-c)^2}{c^2}+\frac{y^2}{a^2} &=& 1 \\ \displaystyle \frac{(x+d)^2}{d^2}+\frac{y^2}{b^2} &=& 1 \end{array} \right.$$
Considering their tangents with common slope $m$:
$$ \left \{ \begin{array}{rcl} y &= &m(x-c) \pm \sqrt{c^2 m^2+a^2} \\ y &= &m(x+d) \mp \sqrt{d^2 m^2+b^2} \end{array} \right.$$
The distance between the two tangents is:
$$p_{\pm}=\left| \frac{\pm \sqrt{c^2 m^2+a^2}-cm \pm \sqrt{d^2 m^2+b^2}-dm} {\sqrt{1+m^2}} \right|$$
We can maximize $p_{\pm}$ graphically or numerically when $a,b,c,d$ are specified.