Solution:
Case I. If min(x1,xn)=x1, we know that xk≥min(xk,xk+1) for all k∈{1,2,3,…,n−1}. So x1+x2+…+xn−1≥∑k=1n−1min(xk,xk+1)=min(x1,xn)=x1, hence ∑k=2n−1xk≥0.
Case II. If min(x1,xn)=xn, we know that xk≥min(xk−1,xk) for all k∈{2,3,4,…,n}. So x2+x3+…+xn≥∑k=1n−1min(xk,xk+1)=min(x1,xn)=xn, hence ∑k=2n−1xk≥0.
Since min(a,b)=21(a+b−∣a−b∣), after substitutions, we will have:
k=1∑n−121(xk+xk+1−∣xk−xk+1∣)2(x2+x3+…+xn−1)+∣x1−xn∣=21(x1+xn−∣x1−xn∣)⇔…=∣x1−x2∣+∣x2−x3∣+…+∣xn−1−xn∣
As ∣x1−x2∣+∣x2−x3∣+…+∣xn−1−xn∣≥∣x1−x2+x2−x3+…+xn−1−xn∣=∣x1−xn∣, we obtain the desired result.