$P(x)=a_nx^n+a_{n-1}x^{n-1}+a_1x+a_0=a_n(x-x_1)(x-x_2)\cdot \cdot (x-x_n)$
To show the product of roots:
Need to calculate $P(0)$
$P(0)=a_n0^n+a_{n-1}0^{n-1}+a_10+a_0=a_0$ $P(0)=a_n(0-x_1)(0-x_2)\cdot \cdot (0-x_n)=a_n(-x_1)(-x_2)\cdot \cdot (-x_n)=a_n(-1)x_1(-1)x_2\cdot \cdot (-1)x_n=a_n(-1)^nx_1x_2\cdot \cdot x_n$
$P(0)=a_n(-1)^nx_1x_2\cdot \cdot x_n=a_0$
$x_1x_2\cdot \cdot x_n=\frac{a_0(-1)^n}{a_n}$
To show Sum of roots: Need to focus the coefficient of $x^{n-1}$
$(x-x_1)(x-x_2)=x^2-(x_1+x_2)x+x_1x_2$
$(x-x_1)(x-x_2)(x-x_3)=(x^2-(x_1+x_2)x+x_1x_2)(x-x_3)=x^3-(x_1+x_2)x^2-x_3x^2 \cdot \cdot=x^3-(x_1+x_2+x_3)x^2 \cdot \cdot$
$(x-x_1)(x-x_2)(x-x_3)(x-x_4)=(x^3-(x_1+x_2+x_3)x^2 \cdot \cdot)(x-x_4)=x^4-(x_1+x_2+x_3)x^3-x_4x^3 \cdot \cdot=x^4-(x_1+x_2+x_3+x_4)x^3 \cdot \cdot\cdot \cdot$
$a_n(x-x_1)(x-x_2)\cdot \cdot (x-x_n)=a_n(x^n-(x_1+x_2+x_3+x_4+\cdot \cdot+x_n)x^{n-1} \cdot \cdot \cdot \cdot )=a_nx^n-a_n(x_1+x_2+x_3+x_4+\cdot \cdot+x_n)x^{n-1} \cdot \cdot \cdot \cdot=a_nx^n+a_{n-1}x^{n-1}+a_1x+a_0$
If we equal the coefficient of $x^{n-1}$ the result is: $-a_n(x_1+x_2+x_3+x_4+\cdot \cdot+x_n)=a_{n-1}$
$x_1+x_2+x_3+x_4+\cdot \cdot+x_n=\frac{-a_{n-1}}{a_n}$