I've been doing exercises on understanding the structures of given complex sets, but I'm stuck on this one.
Find $$\min\{|z-a|^2+|z-b|^2 \mid z\in \mathbb{C}\},$$ where $a,b\in \mathbb{C}.$
What's the correct way to tackle this kind of exercises? I've tried changing it to polar form and expanding the complex number ($z=x+iy$) but I get expressions way more complicated and I think I'm not going the right way.
Would it be correct to do $f(z)=|z-a|^2+|z-b|^2$ and differentiate this function? That is, $f'(z)=-2a-2b+4z$.
Thanks for the time.
The function $|z|$ is not differentiable wrt $z$.
You could think about it geometrically. Suppose you plug a $z$ into the expression $|z-a|^2+|z-b|^2$, what is this expression? It is $d_a^2+d_b^2$, where $d_a$ is the distance from $a$ to $z$ and $d_b$ is similarly interpreted. It should be easy to see that to minimise $d_a^2+d_b^2$, $z$ must be on the line segment joining $a$ and $b$. Can you take it from here?