proof of Vieta’s formulaProof:We can write P(x) asP(x)=an(x-r1)(x-r2)…(x-rn)=an(xn-S1xn-1+S2xn-2-…+(-1)nSn).Since we also have thatP(x)=anxn+an-1xn-1+…a1x+a0,setting the coefficients equal yieldsan(-1)iSi=an-iwhich is what the theorem stated.