Is the distance between two points $(x,y)$, $(a,b)$ convex? $f(x,y) = \sqrt{(x-a)^2 + (y-b)^2} + \sqrt{(x-c)^2 + (y-d)^2}$ Where $(a,b)$ & $(c,d)$ are fixed points and we want to pick $(x,y)$ that minimizes the total distance. Thanks!
2026-03-28 00:48:01.1774658881
Is the $L^2$ norm of vectors convex?
8.1k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
First, prove that $g(x,y) = \sqrt{x^2+y^2}$ is convex.
Norms are convex because of triangle inequality, since $\lambda \in [0,1]$,
$$\left\|\lambda \begin{bmatrix}x_1\\y_1\end{bmatrix}+ (1-\lambda)\begin{bmatrix}x_2\\y_2 \end{bmatrix}\right\|\le \lambda\left\| \begin{bmatrix}x_1\\y_1\end{bmatrix}\right\|+ (1-\lambda)\left\| \begin{bmatrix}x_2\\y_2 \end{bmatrix}\right\| $$
and note that $g(x-a, y-b)$ is convex, it is just a translation.
Finally, we just have to use the fact that sum of convex functions are convex.