I have the following question from a linear algebra textbook:
Let $V = CPL \left\{0,1,2,3 \right\}$, where this denotes the continuous piecewise linear functions on $[0,3]$, ie. the set of continuous functions on $[0,3]$ that are linear in each interval $I_i = [x_i, x_{i+1}]$, where $x_0 = 0, x_1=1, x_2=2$ and $x_3=3$. Show that $\left\{1,t,|t-1|,|t-2| \right\}$ is a basis for $V$.
Showing linear independence is easy enough, but I'm stuck on how to show these vectors span $V$. Since it isn't easy (for me at least) to represent any piecewise linear function on this domain in a single expression, this is where I'm having trouble. I also tried considering each vector restricted to the interval $I_i$, e.g. in the interval $[1,2]$ the vectors will be $\left\{ 1,t, t-1, 2-t\right\}$ but this doesn't appear to shed any light on the situation where we have a general piecewise linear function on $[0,3]$. If anyone can provide a general outline of how this proof is supposed to look, I should be able to fill in the details. Thanks very much.