Subtracting polynomials with multiple variables