find the dual basis of $\mathbb R_{\leq2}[x]$ given a basis $B=(x^2-1,x^2-x,x^2+x)$
I know what a dual basis means, however I seem to miss something. here's my attempt:
I need to find a basis $B^\ast=(\phi_1,\phi_2,\phi_3)\, $ such that $\phi_1(x^2-1)=1 \text{ and 0 else}$ and same goes for $\phi_2 \text{ and } \phi_3$
so I wrote $\phi_i(a+bx+c^2) = x_1a+x_2b+x_3c\,$ and applied it to the coordinate vectors of $B$ and I got the following matrix:
$$ \begin{pmatrix} -1 & 0 & 1 \\ 0 & -1 & 1 \\ 0 & 1 & 1 \\ \end{pmatrix} $$
and found it's inverse :
$$ \begin{pmatrix} -1 & 1/2 & 1/2 \\ 0 & -1/2 & 1/2 \\ 0 & 1/2 & 1/2 \\ \end{pmatrix} $$
So I concluded that each column of this matrix is the coefficients of $\phi_i$ but then what I actually get is a transformation that doesn't return a scalar but a polynomial. What am I doing wrong?
I'm not just interested in a solution, I guess I have a bad understanding of what's a dual basis , so a clarification would be nice, especially when it comes to polynomial spaces. Thanks ahead.