Since p and q are the roots of the quadratic equation x^2 + px + q = 0, the sum of the roots is p + q = -p, which simplifies to q = -2p. The product of the roots is p * q = q. If q is not zero, dividing both sides by q gives p = 1, which then yields q = -2.