We are given the inner products defined as $\langle f, g\rangle _1 = \sum w_jf(x_j)g(x_j)$ and $\langle f, g \rangle _2 = \int_a^b w(x)f(x)g(x)dx$
Why is the inner product $\langle 1,x^k \rangle \neq 0$ for all $k \geq 2$ for the given inner products?
My attempt at a solution was using the fact that $\langle f, g + h \rangle = \langle f, g\rangle + \langle f, h\rangle$ so that $\langle 1, x^k \rangle = \langle 1, x^{k+0} \rangle$... but then I don't really know where to go from there. What am I missing?
Edit: $w(x)$ is a weighting function and $w$ is a set of weights. All weights are positive.