Therefore, the system nodes and weights we seek satisfy
\begin{align}
w_1 + \cdots + w_n &= {2 \over \color{var(--emphColor)}{0} + 1} \\
w_1 x_1^\color{var(--emphColor)}{1} + \cdots + w_n x_n^\color{var(--emphColor)}{1} &= \,\,\,\,\, \color{var(--emphColor)}{0}\\
w_1 x_1^\color{var(--emphColor)}{2} + \cdots + w_n x_n^\color{var(--emphColor)}{2} &= {2 \over \color{var(--emphColor)}{2} + 1} \\
w_1 x_{1}^\color{var(--emphColor)}{3} + \cdots + w_n x_n^\color{var(--emphColor)}{3} &= \,\,\,\,\, \color{var(--emphColor)}{0} \\
&\,\,\vdots
\end{align}
There's one row for each power $\color{var(--emphColor)}{k} = 0, 1, \ldots, 2n-1$.
Legendre polynomials
It turns out that the nodes we seek are roots of the
Legendre polynomials,
defined by the recursive relation
\begin{equation*}
p_{n+1}(x) = \frac{2n+1}{n+1}xp_n(x) - \frac{n}{n+1}p_{n-1}(x),
\end{equation*}
with $p_0(x) = 1$, $p_1(x) = x$.
Legendre polynomials
The Legendre polynomial $p_n$ is even when $n$ is even,
and it is odd when $n$ is odd.
Just like the Chebyshev polynomials!
All the roots of $p_n$ lie in the interval $[-1, 1]$, so
we may always assume the placement of the nodes is symmetric
about $x = 0$.
We may also assume symmetry in the weights!
($2$-point Gauss quadrature) In this case, symmetry implies
$$x_2 = -x_1, \text{ and } w_1 = w_2.$$
The first equation in the DOP system gives
$$w_1 + w_2 = 2,$$
so $w_1 = w_2 = 1$.
The third equation then gives
\begin{equation*}
2x_1^2 = w_1 x_1^2 + w_2x_2^2 = \frac{2}{3}
\end{equation*}
($2$-point Gauss quadrature) So the $2$-point Gaussian quadrature
approximation suggests
$$\int_\color{var(--emphColor)}{-1}^\color{var(--emphColor)}{1} f(x) dx
\approx f\bigg({-1 \over \sqrt{3}}\bigg) + f\bigg({1 \over \sqrt{3}}\bigg).$$
Congratulations! You reached the end of this lecture.