Let $s: \mathbb{R} \to \mathbb{R}$ be a natural spline function of degree one (that is it is piecewise a polynomial of degree at most 1) and let $x_0 \leq x_1 \leq ...\leq x_n$. Show that $s$ can be uniquely represented as $$ s(x)=a + \sum_{j=0}^{n} c_j |x-x_j|$$ for some $a$ and $(c_j)_{j=0}^n$ which satisfy $\sum_{j=0}^{n} c_j = 0.$
my attempt:
I've tried to use the definition of the natural spline function which yielded that for $(-\infty,x_0)$ the function $s$ must be a constant (obviously, then $s(x)\equiv a$ ) and from continuity of $s$ in $x_0$ we have that $a=c_0x_1 +d$ so for $(-\infty,x_1)$ we have $s(x)=a + c_0(x-x_0)$ for $x\in[x_0,x_1]$ and $s(x)=a$ otherwise.
Could you please help me to finish this argument or give other, more simple if there is one?