Let $S=\{1,2t,-2+4t^2,-12t+8t^3\}$ be a set of polynomials in $P_3$. Show that these polynomials make up a basis for $P_3$ and determine the coordinates for $p=7-12t-8t^2+12t^3$ in this basis.
The first part of the problem was easy, showing that they make up a basis by showing that the polynomials are linearly independant and since $\dim(P_3)=\dim(S)=4,$ they can span $P_3$.
But how do I determine the coordinates for $p=7-12t-8t^2+12t^3$ in this basis?
HINT
As a general method
$$M=\begin{bmatrix}1&0&-2&0\\0&2&0&-12\\0&0&4&0\\0&0&0&8 \end{bmatrix}$$