We consider the following minimization problem (P): $$ \min _{\substack{x \geq 0 \\ \sum_i x_i \leq 1}} \frac{1}{2} \lVert x-a \rVert^2 . $$
On the other hand, we also consider the problem We now remove the positivity hypothesis and consider, for any $a \in \mathbb{R}^n$, the following problem: $\left(\mathrm{P}^{\prime}\right)$ $$ \min _{ \lVert x \rVert_1 \leq 1} \frac{1}{2} \lVert x-a \rVert^2 $$
I need to prove that Problem $\left(\mathrm{P}^{\prime}\right)$ can be reduced to Problem $(\mathrm{P})$ and show how the solutions to both problems are related.
My attempt I try to write $x_i = x_i^+ - x_i^-$ where $x_i^+ = \max \lbrace x_i;0 \rbrace$ and $x_i^- = \max\lbrace -x_i;0 \rbrace$ but I don't know how to split the objective function.
Hint 1:
Hint 2:
Answer to Hint 1:
Answer to Hint 2: