Imagine that:
$\vec{v}$ $\in$ {non-negative vector in $R^N$, such that $||\vec{v}||_1 = 1$ and $v_0 = v_N = 0$}.
We define a function on that space:
$f(\vec{v}) = \sum_{i=1}^{N}(v_i - v_{i-1})^2$
Question: What form should $\vec{v}$ take to minimize $f(\vec{v})$?
Any help would be greatly appreciated!
Remarks
- $v_i$ stands for $i^{th}$ element of vector $\vec{v}$
- By non-negative I mean that $\{\forall i: v_i \geq 0\}$