Box Method Calculator
Multiply polynomials using the box (area) method. Visualize each partial product in a grid and combine like terms for the final result.
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.
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:
Each cell in the box at row i, column j contains the partial product:
The final product is obtained by collecting like terms across all cells. For each target degree k in the result:
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 Type | Polynomial 1 | Polynomial 2 | Grid Size | Result Degree | Total Cells |
|---|---|---|---|---|---|
| Monomial × Monomial | 3x | 5x2 | 1 × 1 | 3 | 1 |
| Monomial × Binomial | 2x | x + 3 | 1 × 2 | 2 | 2 |
| Binomial × Binomial (FOIL) | x + 2 | x + 3 | 2 × 2 | 2 | 4 |
| Binomial × Trinomial | x − 1 | x2 + x + 1 | 2 × 3 | 3 | 6 |
| Trinomial × Trinomial | x2 + 2x + 1 | x2 − x + 3 | 3 × 3 | 4 | 9 |
| Difference of Squares | a + b | a − b | 2 × 2 | 2 | 4 |
| Perfect Square Trinomial | x + 5 | x + 5 | 2 × 2 | 2 | 4 |
| Quartic Product | x2 + 1 | x2 − 1 | 2 × 2 | 4 | 4 |
| Cubic × Linear | x3 + 2x2 − x + 4 | x − 2 | 4 × 2 | 4 | 8 |
| Quintic Product | x3 + x + 1 | x2 − 2 | 3 × 2 | 5 | 6 |
| Large Grid | x4 + x3 + x2 + x + 1 | x3 − 1 | 5 × 2 | 7 | 10 |
| Constant × Polynomial | 7 | x2 − 3x + 2 | 1 × 3 | 2 | 3 |