Question: How do you write the coefficients of a polynomial in terms of its roots?

Answer: The coefficients are plus or minus the elementary symmetric polynomials in the roots.

Here's what this means. If a1, . . . , an are variables, and i = 1, . . . n, the ith elementary symmetric polynomial si(a1, . . . , an) is the sum of all the monomials in a1, . . . , an such that (1) every monomial has degree i, (2) no variable aj occurs to a power greater than 1.

For example, here are the elementary symmetric polynomials in the variables a1, a2, a3, a4:

s1(a1, a2, a3, a4) = a1 + a2 + a3 + a4

s2(a1, a2, a3, a4) = a1a2 + a1a3 + a1a4 + a2a3 + a2a4 + a3a4

s3(a1, a, a3, a4) = a2a3a4 + a1a3a4 + a1a2a4 + a1a2a3

s4(a1, a, a3, a4) = a1a2a3a4

Now if f(x) has roots r1, . . . , rn, we have

f(x) = c0 + c1x1 + . . . + cn-1xn-1 + xn = (x - r1) . . . (x - rn),

and for i = 0, . . . n-1, the roots determine the coefficient ci by

ci = (-1)n-i sn-i (r1, . . . , rn) .