User Rating 0.0
Total Usage 0 times
Examples:
Enter two polynomials and press Calculate to see the box method grid.
Is this tool helpful?

Your feedback helps us improve.

About

Polynomial multiplication errors compound through every subsequent step of an algebraic derivation. A sign mistake in one partial product propagates into incorrect roots, wrong graph intersections, and failed proofs. The box method (also called the area model or grid method) decomposes the multiplication P(x) × Q(x) into a matrix of monomial products, making every partial product visible and auditable. This calculator parses two polynomials of arbitrary degree, constructs the full distribution grid, and collects like terms by degree to produce the expanded product. It assumes coefficients in R and non-negative integer exponents.

Manual box-method work on paper becomes unwieldy past degree 3 × 3 grids. Misaligning columns or forgetting a cell is the most common source of error. This tool generates every cell programmatically, highlights like-term groups by color, and displays the simplified result. Note: this tool does not factor or simplify beyond collecting like terms. Coefficients are rounded to 6 decimal places to avoid floating-point display artifacts.

box method area model polynomial multiplication algebra FOIL distributive property polynomial calculator

Formulas

The box method computes the product of two polynomials by distributing every term of the first polynomial across every term of the second. Given two polynomials:

P(x) = mi=0 ai xi
Q(x) = nj=0 bj xj

Each cell in the box at row i, column j contains the partial product:

Ci,j = (ai bj) xi + j

The final product is obtained by collecting like terms across all cells. For each target degree k in the result:

ck = i + j = k ai bj

Where ai = coefficient of xi in P, bj = coefficient of xj in Q, m = degree of P, n = degree of Q, and the result degree = m + n. The total number of cells is (m + 1) × (n + 1).

Reference Data

Multiplication TypePolynomial 1Polynomial 2Grid SizeResult DegreeTotal Cells
Monomial × Monomial3x5x21 × 131
Monomial × Binomial2xx + 31 × 222
Binomial × Binomial (FOIL)x + 2x + 32 × 224
Binomial × Trinomialx 1x2 + x + 12 × 336
Trinomial × Trinomialx2 + 2x + 1x2 x + 33 × 349
Difference of Squaresa + ba b2 × 224
Perfect Square Trinomialx + 5x + 52 × 224
Quartic Productx2 + 1x2 12 × 244
Cubic × Linearx3 + 2x2 x + 4x 24 × 248
Quintic Productx3 + x + 1x2 23 × 256
Large Gridx4 + x3 + x2 + x + 1x3 15 × 2710
Constant × Polynomial7x2 3x + 21 × 323

Frequently Asked Questions

FOIL (First, Outer, Inner, Last) only works for exactly two binomials, producing 4 partial products. The box method generalizes to any polynomial sizes. A trinomial times a quadrinomial produces a 3×4 grid with 12 cells. FOIL is a special case of the box method where the grid is 2×2.
The polynomial x³ + 1 actually has implicit zero coefficients: 1x³ + 0x² + 0x + 1. This calculator parses only the terms you provide and correctly handles gaps. The box grid will show only the non-trivially-present terms as headers (x³ and 1), keeping the grid compact. All partial products and like-term collection remain correct.
Yes. Coefficients can be any real number including negatives and decimals. Input -3.5x² + 0.25x - 7 is valid. The box cells will display signed products, and the color-coding of like terms helps track how positive and negative partial products combine during collection.
Cells that produce the same power of x are like terms and must be added together. In the box grid, these cells lie along anti-diagonals (top-right to bottom-left). The calculator assigns matching colors to cells with the same resulting degree, so you can visually verify which partial products combine into each coefficient of the final answer.
The tool accepts polynomials up to degree 20 with up to 21 terms each, producing a maximum grid of 21×21 = 441 cells. Beyond degree 10×10, the grid becomes difficult to display on mobile screens. The computation itself is trivial for modern browsers at any reasonable polynomial size.
The box method is a systematic visual application of the distributive property a(b + c) = ab + ac. Each row of the box distributes one term of the first polynomial across all terms of the second. The grid ensures no product is missed. Summing along anti-diagonals then collects like terms, which is equivalent to the Cauchy product of the coefficient sequences.