I was reading this post A basis for the dual space of $V$ where given a basis $\mathcal{B} =\{\alpha_{1},\alpha_{2},\dots,\alpha_{n}\}$ for a vector space $V$, and $\mathcal{F} = \{f_{1}, f_{2},\dots, f_{n}\}$ defined by $f_{i}:= \langle v, \alpha_{i}\rangle$. Then $\mathcal{F}$ is a basis for $V^{*}$.
This piqued my curiosity. Instead of finding the set of linear maps $f_{i}(\alpha_{j}) = \delta_{i,j}$, can we just define an inner product and use that to construct a basis instead? If so, what is the impact of the choice of inner product? Given the basis constructed the usual way a dual basis is calculated for a finite dimensional space, can we figure out what the corresponding inner product is that would create it?
As an experiment, I took $\mathcal{B} = \{1, 1-x, x-x^{2}\}$ as a basis of $\mathbb{P}_{2}$ and tried to find a basis for the dual space by taking an arbitrary $p(x)\in \mathbb{P}_{2}$ and defining $$\langle p(x),q(x)\rangle := \int_{-1}^{1} p(x)q(x)dx$$
to be my inner product, but this doesn't seem to produce anything that looks correct because I would have thought that $f_{1}(1-x) = \langle 1-x, 1\rangle$ should equal $0$.
I have a suspicion that I am misunderstanding something in a very big way because the proof by Noah Stein in the above link doesn't seem to depend on a specific inner product.