Square and Cube Factoring Calculator

← Back to Engineering Library

Factor a two-term polynomial

Choose a pattern and enter whole-number coefficients from 1 to 999. The two bases are ax and b, so a = 2 and b = 3 represent the bases 2x and 3. The result keeps the two factors from the selected identity.

Factored expression

4x² − 9 = (2x − 3)(2x + 3)

A = 2x and B = 3. The squared coefficients are 2² = 4 and 3² = 9.

Three factoring identities

A and B stand for the two bases. The identities follow from distributing the factors and canceling the mixed terms. The coefficients here are dimensionless.

A2 − B2 = (A − B)(A + B). Multiply the difference of the bases by their sum. With A = 2x and B = 3, 4x2 − 9 = (2x − 3)(2x + 3).

A3 − B3 = (A − B)(A2 + AB + B2). Multiply the difference by the sum of the two squares and their cross product. For the same bases, 8x3 − 27 = (2x − 3)(4x2 + 6x + 9).

A3 + B3 = (A + B)(A2 − AB + B2). For the sum, subtract the cross product inside the quadratic factor. For example, 8x3 + 27 = (2x + 3)(4x2 − 6x + 9).

From a change in side length to a change in area

A square panel grows from 98 mm to 102 mm on each side. Its area increases by (102 − 98)(102 + 98) = 4 × 200 = 800 mm². The first factor gives the change in side length. The second gives the combined side lengths. This is the difference-of-squares identity with physical lengths substituted for the bases.

Choosing the pattern

Look at both the exponent and the sign between the terms. These examples keep the same bases, 3x and 2, so you can see exactly which terms change.

Factoring three polynomials with bases 3x and 2
Pattern Polynomial Factored form
Square difference 9x² − 4 (3x − 2)(3x + 2)
Cube difference 27x³ − 8 (3x − 2)(9x² + 6x + 4)
Cube sum 27x³ + 8 (3x + 2)(9x² − 6x + 4)

Download the Square and cube factoring table (PDF)

Questions about factoring

For 25x² − 49, do I enter 25 and 49?

Enter the bases’ coefficients, 5 and 7. The calculator squares them to form 25x² − 49 and returns (5x − 7)(5x + 7).

Why does the square pattern have no x term when expanded?

In (5x − 7)(5x + 7), the cross products are +35x and −35x. Their sum is zero, leaving the two squared terms.

Can I use the same factors for a sum of squares?

Multiplying conjugates always subtracts the second square. A sum such as x² + 9 has no real linear factors. Over complex numbers it factors as (x − 3i)(x + 3i).

Why does the middle sign reverse for a sum of cubes?

In (A + B)(A² − AB + B²), the negative cross term cancels the mixed terms from multiplying by A and B. The surviving terms are A³ and B³.

What if the two coefficients share a factor?

The output preserves the identity factors. You can still collect common constants. For example, (6x − 4)(6x + 4) becomes 4(3x − 2)(3x + 2).

How can I check the cube result?

Set x = 2 in 8x³ + 27. The expanded expression gives 91. The factors give (4 + 3)(16 − 12 + 9) = 7 × 13 = 91. Distribution checks the equality for every x.

Reference: OpenStax, Elementary Algebra 2e, Factor Special Products.

Related Engineering Calculators

Share This Article
Tags: