Multiplying Polynomials Calculator - FOIL and Convolution
Use this multiplying polynomials calculator to expand the product of two single-variable polynomials. Type the coefficients of P(x) and Q(x) and read the standard-form result, highest degree, and non-zero term count.
Multiplying Polynomials Calculator
Results
What Is a Multiplying Polynomials Calculator?
A multiplying polynomials calculator is a single tool that takes two single-variable polynomials, P(x) and Q(x), and returns their expanded product (P * Q)(x) in standard form. Type the coefficients of P(x) and Q(x) from the highest power of x down to the constant term, and the result panel shows the standard-form product, its highest degree, the count of non-zero terms, and the list of partial products that combine to give each result term.
- • Homework and textbook check: Verify the product of two polynomials without redoing the FOIL step or the general convolution by hand.
- • Expand a binomial times a trinomial: Compute the product (ax + b)(cx^2 + dx + e) where FOIL no longer applies.
- • Square a polynomial: Use the same calculator to compute P(x)^2, which is P(x) multiplied by itself.
- • Prepare inputs for follow-up tools: Generate the standard-form product polynomial that will be the dividend for the related polynomial tools.
Multiplying polynomials is the algebra operation that turns a factored expression into an expanded one. The product inherits the same variable and the highest degree becomes the sum of the two inputs' highest degrees.
When the same two polynomials need to be added or subtracted instead, our Add Subtract Polynomials Calculator pairs the coefficients and writes the result in standard form.
How the Multiplying Polynomials Calculator Works
The calculator builds the convolution of the two coefficient sequences, then writes the surviving terms in standard form. Every term in P(x) is multiplied by every term in Q(x), and the exponents of x are added.
- P(x): The first polynomial, with coefficients a3, a2, a1, a0 for x^3 down to the constant term.
- Q(x): The second polynomial, with coefficients b3, b2, b1, b0 for the same powers of x.
- a_i, b_j: The coefficient of x^i in P(x) and the coefficient of x^j in Q(x) respectively. Zero when the polynomial has no term of that power.
- c_k: The coefficient of x^k in the product, equal to the sum of a_i * b_j over all i + j = k. This is the discrete convolution of the two coefficient sequences at offset k.
The convolution runs over every power of x from 0 up to 6 and collects all a_i * b_j partial products whose exponents add to that power. Zero partial products are dropped before display, so the partial products list is shorter than 16 whenever a coefficient is zero.
Multiply P(x) = 2x + 1 and Q(x) = x^2 - 3x + 4 using the FOIL-style expansion
a1 = 2, a0 = 1, b2 = 1, b1 = -3, b0 = 4
2 * x^3 = 2x^3, 2 * (-3) * x^2 = -6x^2, 2 * 4 * x = 8x, 1 * x^2 = x^2, 1 * (-3) * x = -3x, 1 * 4 = 4; combine like terms to get 2x^3 + (-6 + 1) x^2 + (8 - 3) x + 4 = 2x^3 - 5x^2 + 5x + 4
Product polynomial: 2x^3 - 5x^2 + 5x + 4. Highest degree: 3. Non-zero terms: 4.
The x^2 partial products -6x^2 and +x^2 sum to -5x^2, and the x partial products 8x and -3x sum to 5x, so the result has 4 non-zero terms even though the expansion started with 6 partial products.
According to OpenStax, multiplying polynomials is built up from monomial times monomial, to binomial times binomial with FOIL, to the general case where every term of one factor multiplies every term of the other before like terms combine.
If both inputs are binomials, our Multiplying Binomials Calculator shows the four FOIL partial products and the final quadratic on a more compact panel.
Key Concepts Behind Multiplying Polynomials
Four small ideas make the calculator's work predictable and explain why the result can have more or fewer terms than the number of partial products.
Distributive property over addition
Each term in the first polynomial multiplies each term in the second. The result is a sum of these a_i * b_j * x^(i+j) partial products, and the distributive property means the order of the two factors does not change the product.
FOIL is the binomial special case
When each factor is a binomial, the four partial products are named with the FOIL mnemonic: First (a * c), Outer (a * d), Inner (b * c), and Last (b * d). The general calculator reduces to FOIL whenever a1, a0, b1, and b0 are the only non-zero coefficients.
Convolution of coefficient sequences
The coefficient c_k of x^k in the product equals the sum of a_i * b_j over all i + j = k. This is the discrete convolution of the two coefficient sequences.
Like terms cancel or combine
Two partial products that share the same power of x are like terms, and their coefficients add together. When that sum is exactly zero, the term drops out of the result.
These four ideas are the entire rule set. The rest of the calculator is just enumerating the partial products, summing the coefficients that share a power of x, and presenting the surviving terms in the conventional order.
Once the product is in standard form, the dividend for our Polynomial Division Calculator is the result polynomial.
How to Use This Multiplying Polynomials Calculator
Type the two polynomials as coefficients from the highest power down to the constant term, and read the product polynomial, highest degree, non-zero term count, and partial products list on the right.
- 1 Enter the coefficients of P(x): Type x^3, x^2, x, and the constant term in the four P(x) fields. Use 0 for any missing term.
- 2 Enter the coefficients of Q(x): Type x^3, x^2, x, and the constant term in the four Q(x) fields.
- 3 Read the product polynomial: Look at the highlighted Product Polynomial row for the standard-form product.
- 4 Check the highest degree and term count: Use the Result Highest Degree and Non-Zero Terms rows to confirm the structure.
- 5 Inspect the partial products: Use the Partial Products row to see every a_i * b_j * x^(i+j) term, so you can verify the convolution.
- 6 Adjust and re-read: Change any coefficient and the product, highest degree, term count, and partial products list update together.
Example: a student is asked to multiply (2x + 1)(x^2 - 3x + 4). They type 2 in P(x) x, 1 in P(x) constant, 1 in Q(x) x^2, -3 in Q(x) x, and 4 in Q(x) constant. They read 2x^3 - 5x^2 + 5x + 4 in the Product Polynomial row, with a Highest Degree of 3 and 4 non-zero terms. The Partial Products row shows 2x^3 - 6x^2 + 8x + x^2 - 3x + 4, which is the list of a_i * b_j * x^(i+j) terms that combine into the standard-form result.
Once the product polynomial is in standard form, our Polynomial Graphing Calculator plots it on the same axes as P(x) and Q(x).
Benefits of Using This Multiplying Polynomials Calculator
The bookkeeping is the kind of arithmetic that breaks in long homework sets or multi-step modeling problems, especially when the inputs have more than two terms.
- • One pass for all partial products: Type the four coefficients of P(x) and the four of Q(x) once, and the calculator enumerates every a_i * b_j * x^(i+j) term at the same time.
- • Standard form without sign mistakes: The result string is built from the highest non-zero power down to the constant term with a plus or minus between every term, and zero terms are dropped automatically.
- • Highest degree and term count visible together: The result panel reports the highest degree and the non-zero term count next to the polynomial string.
- • Works with decimals and negatives: Coefficient inputs such as 0.5, -1.25, and -3 are kept as exact values, then formatted with trailing zeros trimmed.
- • FOIL and convolution in one place: The same calculator reduces to FOIL when both inputs are binomials.
The biggest practical benefit is that the partial products list is rendered explicitly. A student can show the work by reading the partial products row, while a tutor can scan the convolution to see which a_i * b_j terms combined to give each result coefficient.
If the product polynomial ends up as a quadratic with three non-zero terms, our Factoring Trinomials Calculator factors the trinomial so the product can be written back in factored form.
Factors That Affect the Result and Its Limits
The convolution is fixed, but the value of the coefficients and which coefficients are zero change the result.
Highest degree of the inputs
The result's highest degree is the sum of the two inputs' highest degrees, because a_max * b_max * x^(i_max+j_max) is the only top-degree partial product. The top degree drops when one input's leading coefficient is zero — that input is of a lower degree, or is the zero polynomial itself.
Number of non-zero partial products
The product polynomial can have at most 7 non-zero terms (the convolution of two degree-3 inputs runs over degrees 0 through 6), and usually fewer when several partial products cancel or one input has only one or two non-zero coefficients.
Cancellation of like terms
When the sum of the partial products at a given power of x is exactly zero, the term drops out of the result. The non-zero term count can drop by 1, 2, or more when several powers cancel at the same time.
- • The calculator accepts two polynomials in one variable, x. Polynomials in two or more variables such as x^2 + xy + y^2 are not supported.
- • The input panel handles polynomials up to degree 3 in each of P(x) and Q(x), so the product is at most degree 6. Higher-degree inputs have to be split.
For most algebra work the limitation is a non-issue, because the common textbook case is a single-variable polynomial of degree 2 or 3. When the result is a quadratic, the factoring trinomials calculator picks up the next step.
According to Wolfram MathWorld, the product of two polynomials in one indeterminate is itself a polynomial whose coefficient of x^k equals the convolution of the two coefficient sequences at offset k.
According to Paul's Online Math Notes, multiplying two polynomials uses the distributive property so that every term in the first polynomial is multiplied by every term in the second, then like terms are collected.
When the result of the multiplication is a degree 2 polynomial with three non-zero terms, our Quadratic Formula Calculator solves the equation form of that quadratic and returns its real roots.
Frequently Asked Questions
Q: How do you multiply two polynomials?
A: Multiply two polynomials by taking every term in the first polynomial and multiplying it by every term in the second, adding the exponents of x each time. Then collect like terms by adding the numerical coefficients of every term that shares a power of x, and write the result from the highest non-zero power down to the constant term.
Q: What is the FOIL method for multiplying polynomials?
A: FOIL is a mnemonic for the four partial products when both factors are binomials: First (a * c), Outer (a * d), Inner (b * c), and Last (b * d). The result is the quadratic a*c*x^2 + (a*d + b*c)*x + b*d. For polynomials with more than two terms each, the same idea extends to every a_i times every b_j.
Q: How do you multiply a polynomial by a binomial?
A: Distribute each term of the binomial across the polynomial, multiplying the binomial's first term by every term of the polynomial and then multiplying the binomial's second term by every term of the polynomial. Add the two results together, collect like terms, and write the standard-form polynomial.
Q: Why is the highest degree of a product the sum of the highest degrees?
A: Every term in the product is a_i * b_j * x^(i+j), so the largest possible exponent is i_max + j_max, which is the sum of the two inputs' highest degrees. No smaller exponent can be produced, so the result's highest degree is at most that sum and equals it whenever the product a_max * b_max is not zero.
Q: Does the order matter when multiplying two polynomials?
A: No. Polynomial multiplication is commutative, so P(x) * Q(x) and Q(x) * P(x) give the same product polynomial. The partial product list may be written in a different order, but the standard-form result and the highest degree are identical.
Q: Can a polynomial product have fewer terms than the partial product count?
A: Yes. When two partial products that share the same power of x sum to zero, that term is dropped from the result, so the result can have fewer non-zero terms than the number of partial products. The non-zero term count in the result panel is the easiest way to see this happen at a glance.