Given a set $L$ of size $n$ of lines in $\mathbb{R}^d$, find a point $x \in \mathbb{R}^d$ that minimizes: $$\sum\limits_{l\in L}\min\limits_{y\in l} {\lvert \lvert x-y \rvert\rvert}^2$$
I wrote a 1.5-page solution for this (given below in an overleaf link), by finding the point closest to $x$ on each line as a function of $x$, plugging the result in the above and deriving w.r.t $x$ and setting to equal to 0. However, I'm tasked with writing a solution "in one line, at most three". Is there a fundamentally different way to approach this problem that yields a "shorter" proof?
for reference's sake, link to my solution: https://www.overleaf.com/read/vtmfmstwrcpd