Using Vieta's formulas, the sum of the roots is (alpha + beta) = -p and the product is (alpha * beta) = q. We apply the sum of cubes formula to get alpha^3 + beta^3 = (alpha + beta)^3 - 3(alpha + beta)(alpha * beta), which substitutes to (-p)^3 - 3(-p)(q) = -p^3 + 3pq. Next, we evaluate alpha^4 + alpha^2 * beta^2 + beta^4 by rewriting it as (alpha^2 + beta^2)^2 - alpha^2 * beta^2, where (alpha^2 + beta^2) equals (alpha + beta)^2 - 2(alpha * beta) = p^2 - 2q. Substituting these into the squared expression gives (p^2 - 2q)^2 - q^2 = p^4 - 4p^2*q + 3q^2, which factors perfectly into (p^2 - q)(p^2 - 3q).