I want to determine the Gaussian quadrature formula in $[-1,1]$ with $2$ nodes and the weight function $w(x) = 1-x^2$.
I know you can calculate the weights with the formula $$a_{i} = \int_{-1}^1 w(x) \prod \limits_{j=i,j \neq i }^{n}\ \frac{x-x_{j}}{x_{i}-x{j}}dx$$
but I can't seem to find a formula for the nodes? Furthermore if $\displaystyle \int_{-1}^1f(x)dx = \sum_{i=1}^nw_{i}f(x_{i})$ then what is $n$? Is it $n=3$ because of $1-x^2$ ?