(Vieta's formulas)Let $x_1$ and $x_2$ be the roots of $ax^2+bx+c=0$ ($a\ne0$). Then\[x_1+x_2=-\frac ba, x_1x_2=\frac ca.\]Let $x_1$, $x_2$, $x_3$ be the roots of $ax^3+bx^2+cx+d=0$ ($a\ne0$). Then\[x_1+x_2+x_3=-\frac ba, x_1x_2+x_2x_3+x_3x_1=\frac ca, x_1x_2x_3=-\frac da.\]In general, if $x_1,\dots,x_n$ are the roots of $a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0=0$ ($a_n\ne0$), then\[x_1+x_2+\cdots+x_n=-\frac{a_{n-1}}{a_n}, \sum_{i<j}x_ix_j=\frac{a_{n-2}}{a_n},\]\[\dots, x_1x_2\cdots x_n=(-1)^n\frac{a_0}{a_n}.\]
← Back to Exercise 938