Let $\mathcal{P}_2$ denote the vector space of of all second-degree polynomials from $[a,b]$ to $\mathbb{R}$. Define the inner product on $\mathcal{P}_2$ to be:
$$\left< p,q \right> = \int_{-1}^{1} p(x)q(x) dx $$
How can I find a unique, explicit polynomial $q(x) \in \mathcal{P}_2$ such that for every $p \in \mathcal{P}_2$, we have:
$$p(1) = \int_{-1}^{1} p(x)q(x) dx $$
I started by defining $p(x) = a + bx + cx^2$ and $q(x) = \alpha + \beta x + \delta x^2$. Then I calculated $p(1)$, which equals to $a+b+c$. From this we get:
$$ a+b+c = \int_{-1}^{1} (a + bx + cx^2)(\alpha + \beta x + \delta x^2) dx $$
However, after this, no matter what I try, I cannot get explicit values for $\alpha, \beta$, and $\delta$. I tried plugging it into WolframAlpha, but each value depends on another value and the values keep changing from one case to another. Moreover, we cannot simply fix values for the constants because the above statement must hold for every polynomial $p \in \mathcal{P}_2$.