Multiplying Polynomials Calculator

Enter two polynomials using their coefficients (from constant term to highest degree). Instantly get the product in standard form, the complete coefficient array, and a detailed breakdown of the multiplication using the distributive property.

Lowest degree (constant) first. Use integers or decimals.
Example: 1,1 represents 1 + x.
? (x+1)(x+2) : A=1,1 ; B=1,2
? (x-3)(x+3) : A=1,-3 ; B=1,3
? (2x+1)(x²+3x-2) : A=2,1 ; B=1,3,-2
? 5 · (2x² - 1) : A=5 ; B=2,0,-1
⚡ (x²-4)(x²+2) : A=1,0,-4 ; B=1,0,2
Privacy first: All calculations are performed locally in your browser. No data is sent to any server.

What is Polynomial Multiplication?

Multiplying polynomials is a fundamental algebraic operation that combines two or more polynomials into a single polynomial. It relies on the distributive property (also known as the FOIL method for binomials). The product is obtained by multiplying each term of the first polynomial by every term of the second, then combining like terms (same exponent). Polynomial multiplication appears everywhere: from simple area calculations to advanced physics and engineering models.

(a₀ + a₁x + a₂x² + …)(b₀ + b₁x + b₂x² + …) = Σₖ ( Σᵢⱼ with i+j=k aᵢ·bⱼ ) xᵏ

(convolution of coefficient sequences)

Historical Insight

The rules for multiplying polynomials were known in ancient Babylonian and Greek mathematics, but the symbolic notation we use today was developed in the 16th and 17th centuries by mathematicians like François Viète and René Descartes. The distributive property was formally stated by Peacock and others in the 19th century. Modern algebra views polynomial multiplication as a convolution – an operation that also appears in signal processing, probability, and number theory.

Why Use an Interactive Polynomial Multiplier?

  • Visualize Distribution: See how each term from the first polynomial multiplies every term of the second, reinforcing the distributive law.
  • Error‑Free Algebra: Quickly verify homework or test answers without manual mistakes.
  • Step‑by‑Step Learning: The detailed steps help students understand the process of combining like terms.
  • Real‑world Applications: Use in physics (kinematic equations), economics (revenue functions), and computer graphics (polynomial curves).

Mathematical Foundation: Convolution of Coefficients

Given two polynomials represented by coefficient arrays A = [a₀, a₁, …, am] and B = [b₀, b₁, …, bn] (where index = degree), their product C has degree m+n and coefficients:

ck = Σ ai·bj for all i+j = k, 0 ≤ i ≤ m, 0 ≤ j ≤ n.

This is exactly the discrete convolution operation. For example, multiplying (1 + 2x + x²) by (1 + x) yields coefficients: c₀ = 1·1 = 1, c₁ = 1·1 + 2·1 = 3, c₂ = 2·1 + 1·1 = 3, c₃ = 1·1 = 1, resulting in 1 + 3x + 3x² + x³. Our calculator automates this convolution while displaying each intermediate product.

Step‑by‑Step Calculation (FOIL for binomials, general distribution for larger)

  1. Parse comma‑separated coefficients into arrays (constant term first).
  2. Interpret each array as a polynomial in variable x (e.g., [1,2,1] → 1 + 2x + x²).
  3. Perform convolution: nested loops multiply each term of A with each term of B, recording the exponent (i+j) and coefficient product.
  4. Collect like terms (same exponent) by summing coefficients.
  5. Format the result as a human‑readable polynomial (descending order) and show the coefficient list.

Examples for Different Cases

All examples below are verified with this calculator – click the buttons to test.

Polynomial A (coeffs)Polynomial B (coeffs)Product (standard form)Degree
[1,1] (x+1)[1,2] (x+2)x² + 3x + 22
[1,-3] (x-3)[1,3] (x+3)x² - 92
[2,1] (2x+1)[1,3,-2] (x²+3x-2)2x³ + 7x² - x - 23
[5] (constant 5)[2,0,-1] (2x²-1)10x² - 52
[1,0,-4] (x²-4)[1,0,2] (x²+2)x⁴ - 2x² - 84
Case Study: Revenue Modeling

A company models its revenue R as a product of price p and quantity sold q. If price is given by p(x) = 100 - 2x (linear demand) and quantity q(x) = 50 + 3x (seasonal factor), then revenue R(x) = p(x)·q(x) = (100 - 2x)(50 + 3x) = 5000 + 300x - 100x - 6x² = 5000 + 200x - 6x². Our calculator quickly expands such expressions, helping analysts identify turning points and optimize pricing.

Connection to Other Math Concepts

Polynomial multiplication is closely related to:

  • Binomial theorem – special case for (a+b)ⁿ.
  • Generating functions – in combinatorics, sequences are multiplied via convolution.
  • Polynomial long division – the inverse operation.
  • Discrete Fourier transform – used for fast polynomial multiplication (FFT).

JavaScript Implementation (Convolution)

function multiplyPoly(coeffA, coeffB) {
    let result = new Array(coeffA.length + coeffB.length - 1).fill(0);
    for (let i = 0; i < coeffA.length; i++) {
        for (let j = 0; j < coeffB.length; j++) {
            result[i + j] += coeffA[i] * coeffB[j];
        }
    }
    // Trim trailing zeros (optional)
    while (result.length > 1 && Math.abs(result[result.length-1]) < 1e-12) result.pop();
    return result;
}
                    

Common Misconceptions

  • “FOIL works for all polynomials” – FOIL is only for binomials; for larger polynomials you must distribute each term.
  • “Multiplying increases degree by exactly 1” – Actually degree(product) = degree(A) + degree(B).
  • “Coefficients are always integers” – They can be any real number; our calculator supports decimals.
  • “You multiply exponents” – Exponents add, not multiply.

Applications Across Fields

  • Physics: Equations of motion (polynomials in time).
  • Economics: Cost, revenue, profit functions.
  • Engineering: Transfer functions in control theory.
  • Statistics: Moment generating functions.

Rooted in classical algebra – This tool is built on the fundamental laws of arithmetic and polynomial arithmetic as taught in algebra courses worldwide. The implementation follows the convolution algorithm widely used in computer algebra systems. Content reviewed by the GetZenQuery mathematics team, last updated March 2025. References: “College Algebra” by James Stewart, “Concrete Mathematics” by Graham, Knuth, Patashnik.

Frequently Asked Questions

Use a zero for the missing degree. For example, x² - 4 should be entered as 1,0,-4 (constant -4, then 0x, then 1x²).

This calculator multiplies exactly two polynomials. For three or more, you can multiply sequentially: first two, then result with the third, etc.

The calculator treats the variable as 'x' for display, but the algebra is identical regardless of variable name. You can mentally substitute.

Calculations use double‑precision floating point, so results are accurate to about 15 decimal digits. For exact arithmetic with fractions, we recommend checking with integer coefficients.

Yes, below the result you will see a step‑by‑step breakdown listing each term product before combining like terms.

Visit authoritative resources like Khan Academy, Wolfram MathWorld, or any standard algebra textbook.
References: MathWorld Polynomial Multiplication; Wikipedia: Polynomial arithmetic; “Algebra and Trigonometry” by OpenStax.