Cubic case. Consider ax3+bx2+cx+d=0. By the Fundamental Theorem of Algebra it has exactly three roots α,β,γ (with multiplicity), so
ax3+bx2+cx+d=a(x−α)(x−β)(x−γ)=ax3−a(α+β+γ)x2+a(αβ+βγ+γα)x−aαβγ.
Comparing coefficients (valid since a=0):
α+β+γ=−ab,αβ+βγ+γα=ac,αβγ=−ad.
For a monic cubic (a=1) this reads especially cleanly:
coeff. of x2=−(α+β+γ),coeff. of x=αβ+βγ+γα,constant term=−αβγ.
General degree n>3. The same pattern continues for a monic degree-n equation with roots α1,…,αn: writing ∑α1 for the sum of all the roots, ∑α1α2 for the sum of all pairwise products, ∑α1α2α3 for the sum of all products taken three at a time, and so on (these are the elementary symmetric sums),
coeff. of xn−1=−∑α1,coeff. of xn−2=∑α1α2,coeff. of xn−3=−∑α1α2α3, …,constant term=(−1)n∑α1α2⋯αn.
For 4 roots α,β,γ,δ the notation simplifies to ∑α=α+β+γ+δ, ∑αβ=αβ+αγ+αδ+βγ+βδ+γδ (all (24)=6 pairs), ∑αβγ (all (34)=4 triples), and ∑αβγδ=αβγδ (the single product of all four).
Repeated roots still count fully. If the roots of a cubic are 1,2,2 (i.e. 2 has multiplicity 2), then ∑α=1+2+2=5 and ∑αβ=(1)(2)+(1)(2)+(2)(2)=8 — each occurrence of the repeated root is used separately in every sum, exactly as if the roots were three different numbers. …