Polynomials & Factoring

Special Products of Binomials

Special products are binomial products with a fixed pattern, so you can write the answer directly instead of multiplying term by term. The three core patterns are:

(a+b)2=a2+2ab+b2,(a−b)2=a2−2ab+b2,(a+b)(a−b)=a2−b2(a+b)^2=a^2+2ab+b^2,\quad (a-b)^2=a^2-2ab+b^2,\quad (a+b)(a-b)=a^2-b^2

Try it with your numbers

Show every step

Every pattern is ordinary multiplying polynomials with the arithmetic already done. Once you recognize the shape, you can skip the FOIL method and expand in one line. The same patterns also run backward, which is the foundation of most factoring.

What are special products in algebra?

A binomial is a polynomial with exactly two terms, such as x+5x+5 or 3y−23y-2. Most products of two binomials give four terms that must be tidied up. Special products are the cases where the tidying is guaranteed: terms merge or cancel in the same way every time, so the result has fewer terms than you would expect.

The letters aa and bb are placeholders. They can be numbers, variables, fractions, or whole expressions such as x2x^2 or 12y\frac{1}{2}y. That flexibility is what makes the patterns powerful: one formula covers (x+3)2(x+3)^2, (4m−7n)2(4m-7n)^2 and (x3+15)2\left(x^3+\frac{1}{5}\right)^2.

Pattern Expansion Terms
(a+b)2(a+b)^2 a2+2ab+b2a^2+2ab+b^2 3
(a−b)2(a-b)^2 a2−2ab+b2a^2-2ab+b^2 3
(a+b)(a−b)(a+b)(a-b) a2−b2a^2-b^2 2
(a+b)3(a+b)^3 a3+3a2b+3ab2+b3a^3+3a^2b+3ab^2+b^3 4
(a−b)3(a-b)^3 a3−3a2b+3ab2−b3a^3-3a^2b+3ab^2-b^3 4

The last column doubles as a quick sanity check later: a square should give three terms, conjugates two, a cube four.

Where do the special product formulas come from?

Area model of a square with side a+b split into a², b² and two ab rectangles
With a=3 and b=2, the big square has area 25, and a²+b² covers only 13 of it; the two ab strips fill the other 12.

All of them rest on one fact: multiplication is commutative, so ab=baab=ba. Multiply (a+b)(a+b)(a+b)(a+b) out and the cross products are abab and baba. They are equal, so they combine into 2ab2ab. That is the entire reason the middle term is 2ab2ab and not abab.

(a+b)(a+b)=a2+ab+ba+b2=a2+2ab+b2(a+b)(a+b)=a^2+ab+ba+b^2=a^2+2ab+b^2

You can see this on a diagram. Draw a square with side a+ba+b and cut it at distance aa from a corner in both directions. The pieces are an a×aa\times a square, a b×bb\times b square, and two a×ba\times b rectangles. Add the areas and the formula appears.

The square of a difference needs no new work. Replace bb with −b-b: (a+(−b))2=a2+2a(−b)+(−b)2=a2−2ab+b2(a+(-b))^2=a^2+2a(-b)+(-b)^2=a^2-2ab+b^2. The middle term flips sign, but b2b^2 stays positive because a negative squared is positive. For conjugates, the cross products are −ab-ab and +ab+ab, which cancel, leaving a2−b2a^2-b^2.

Quick check

In the square model of (x+5)2(x+5)^2, what is the combined area of the two rectangles?

How do you square a binomial without FOIL?

Use a three-part routine: square the first term, double the product of the two terms, square the last term. The middle term takes the sign that sits inside the parentheses. The last term is always positive, since it is a square.

Example 1. Expand (3x−5y)2(3x-5y)^2.

(3x−5y)2=(3x)2−2(3x)(5y)+(5y)2(3x-5y)^2=(3x)^2-2(3x)(5y)+(5y)^2

=9x2−30xy+25y2=9x^2-30xy+25y^2

Squaring 3x3x gives 9x29x^2, not 3x23x^2: the exponent hits the coefficient as well as the variable. This is the most common slip with coefficients, so write the parentheses every time.

The tempting shortcut that fails

(a+b)2(a+b)^2 is not a2+b2a^2+b^2. Test a=b=1a=b=1: the left side is 44, the right side is 22. The missing piece is always 2ab2ab.

The answer to a square is a perfect square trinomial. You can spot one by its structure: the first and last terms are perfect squares, and the middle term equals twice the product of their square roots. In 9x2−30xy+25y29x^2-30xy+25y^2, the roots are 3x3x and 5y5y, and 2(3x)(5y)=30xy2(3x)(5y)=30xy matches.

Special products with negatives, fractions and exponents

Put each term in parentheses before applying the formula, and the same routine handles everything. For a fraction, square the numerator and the denominator separately.

Example 2. Expand (x2+4)2\left(\frac{x}{2}+4\right)^2.

(x2)2+2⋅x2⋅4+42=x24+4x+16\left(\frac{x}{2}\right)^2+2\cdot\frac{x}{2}\cdot 4+4^2=\frac{x^2}{4}+4x+16

A leading negative looks scarier than it is. In (−x+6)2(-x+6)^2, take a=−xa=-x and b=6b=6: the result is x2−12x+36x^2-12x+36. A faster view: (−x+6)2=(6−x)2=(x−6)2(-x+6)^2=(6-x)^2=(x-6)^2, because squaring erases an overall sign. Both routes give the same answer, so pick whichever looks cleaner.

With exponents, apply the power rule to each term: (x2+3y3)2=x4+6x2y3+9y6(x^2+3y^3)^2=x^4+6x^2y^3+9y^6. The middle term is 2⋅x2⋅3y3=6x2y32\cdot x^2\cdot 3y^3=6x^2y^3, and (3y3)2=9y6(3y^3)^2=9y^6 because the exponents multiply (3⋅2=63\cdot2=6).

Try this: Expand (23x−3)2\left(\frac{2}{3}x-3\right)^2. Before finishing, predict the middle coefficient using 2⋅23⋅32\cdot\frac{2}{3}\cdot 3, then see if your final expansion agrees.

Sum and difference pattern: multiplying conjugates

Two binomials with the same terms but opposite middle signs are called conjugates. Their product is the first term squared minus the second term squared, with no middle term at all.

Example 3. Multiply (4x+3y)(4x−3y)(4x+3y)(4x-3y).

(4x)2−(3y)2=16x2−9y2(4x)^2-(3y)^2=16x^2-9y^2

Conjugates hide easily when the terms are reordered. In (5−2x)(2x+5)(5-2x)(2x+5), rewrite the second factor as 5+2x5+2x and the pair becomes (5−2x)(5+2x)=25−4x2(5-2x)(5+2x)=25-4x^2. The same care applies to (x+3)(3−x)(x+3)(3-x): the square that comes first is 33, so the answer is 9−x29-x^2, not x2−9x^2-9. Plugging in x=0x=0 gives 99 on the left, which settles it.

This pattern is also a mental math engine. Because 51×49=(50+1)(50−1)51\times49=(50+1)(50-1), the product is 2500−1=24992500-1=2499. Squares near a round number work the same way: 982=(100−2)2=10000−400+4=960498^2=(100-2)^2=10000-400+4=9604. With radicals, (3+5)(3−5)=9−5=4(3+\sqrt{5})(3-\sqrt{5})=9-5=4, which is exactly why multiplying by a conjugate removes a square root from a denominator. Read in reverse, a2−b2=(a+b)(a−b)a^2-b^2=(a+b)(a-b) is the rule for factoring the difference of two squares.

Quick check

Use a special product to compute 63×5763\times 57.

How do you cube a binomial?

Multiply the square by one more factor. Starting from (a+b)2(a+b)^2:

(a+b)3=(a+b)(a2+2ab+b2)=a3+3a2b+3ab2+b3(a+b)^3=(a+b)(a^2+2ab+b^2)=a^3+3a^2b+3ab^2+b^3

The coefficients 1,3,3,11,3,3,1 are row three of Pascal’s triangle, and for higher powers the binomial theorem extends the same idea. The powers of aa fall from 3 to 0 while the powers of bb rise from 0 to 3, and each term has total degree 3. For (a−b)3(a-b)^3, the signs alternate: plus, minus, plus, minus.

Example 4. Expand (2x−3)3(2x-3)^3 using a=2xa=2x and b=3b=3.

  • a3=(2x)3=8x3a^3=(2x)^3=8x^3
  • 3a2b=3(4x2)(3)=36x23a^2b=3(4x^2)(3)=36x^2
  • 3ab2=3(2x)(9)=54x3ab^2=3(2x)(9)=54x
  • b3=27b^3=27

Alternate the signs starting with plus: 8x3−36x2+54x−278x^3-36x^2+54x-27. A quick check at x=1x=1: the original is (2−3)3=−1(2-3)^3=-1, and the expansion gives 8−36+54−27=−18-36+54-27=-1. They agree.

Cube of a binomial vs sum of cubes: what is the difference?

These look related and are constantly confused. (a+b)3(a+b)^3 is a binomial raised to a power, and it expands to four terms. The sum of cubes a3+b3a^3+b^3 has only two terms, and it comes from a different product: a binomial times a trinomial.

(a+b)(a2−ab+b2)=a3−a2b+ab2+a2b−ab2+b3=a3+b3(a+b)(a^2-ab+b^2)=a^3-a^2b+ab^2+a^2b-ab^2+b^3=a^3+b^3

Same ingredients, different shape

For (a−b)(a2+ab+b2)=a3−b3(a-b)(a^2+ab+b^2)=a^3-b^3, the trinomial's middle sign is the opposite of the binomial's, and its last sign is always plus.

As a worked case, (x+2)(x2−2x+4)=x3+8(x+2)(x^2-2x+4)=x^3+8, since 23=82^3=8. Notice that the trinomial x2−2x+4x^2-2x+4 does not factor further and is not a perfect square, because its middle term is 2x2x rather than 4x4x. Running these identities backward is the subject of factoring sum and difference of cubes.

What if the binomials do not match a special product?

Many pairs of binomials follow no special pattern, and forcing one produces wrong answers. (x+3)(x+5)(x+3)(x+5) looks almost like a square, but the factors are different, so the squaring formula does not apply. Use the general rule for binomials that share a leading xx:

(x+a)(x+b)=x2+(a+b)x+ab(x+a)(x+b)=x^2+(a+b)x+ab

For (x+3)(x−5)(x+3)(x-5), the sum is 3+(−5)=−23+(-5)=-2 and the product is −15-15, so the result is x2−2x−15x^2-2x-15. This is the pattern you reverse when factoring trinomials. If the leading coefficients differ, as in (2x+1)(3x+1)(2x+1)(3x+1), go back to FOIL.

Squares also extend past two terms. For a trinomial, square each term and add twice every pairwise product: (a+b+c)2=a2+b2+c2+2ab+2ac+2bc(a+b+c)^2=a^2+b^2+c^2+2ab+2ac+2bc. For example, (x+y+2)2=x2+y2+4+2xy+4x+4y(x+y+2)^2=x^2+y^2+4+2xy+4x+4y. Treating x+yx+y as one block and applying the binomial square gives the same result.

How can you check a special product answer?

Four quick tests catch nearly every error:

  1. Count the terms: three for a square, two for conjugates, four for a cube.
  2. Check the ends: the first term of the answer must be a2a^2 (or a3a^3), and the last must be b2b^2 (or ±b3\pm b^3).
  3. Check the degree: the answer’s degree is the sum of the factors’ degrees, so a square of a linear binomial must be degree 2.
  4. Substitute a number into both sides and compare.

The number test is stronger than it seems. Take a claimed expansion (x−3)2=x2−9(x-3)^2=x^2-9. At x=2x=2, the left side is 11 and the right side is −5-5, so it is wrong. A true expansion of a quadratic is confirmed once it matches at three different values, because two quadratics that agree at three points are identical. Avoid x=0x=0 and x=1x=1 as your only tests, since they can make wrong terms vanish or look right.

Quick check

A student writes (x+4)2=x2+16(x+4)^2=x^2+16. What do the student's answer and the true expansion give at x=1x=1?

Where are special products used in real problems?

Area problems use them directly. A square garden has side xx feet and a 2-foot path runs around all four sides. The outer square has side x+4x+4, so its area is (x+4)2=x2+8x+16(x+4)^2=x^2+8x+16. Subtract the garden’s x2x^2 and the path covers 8x+168x+16 square feet. At x=10x=10, the outer square is 142=19614^2=196 and 100+80+16=196100+80+16=196.

Finance uses the square of a sum too. Two years of 5% growth multiplies a balance by (1+0.05)2=1+0.1+0.0025=1.1025(1+0.05)^2=1+0.1+0.0025=1.1025, so the extra 0.00250.0025 is the interest earned on interest, the b2b^2 term.

Inside algebra, the patterns appear everywhere else: completing the square, simplifying radicals, and nearly every factoring problem. Spotting x2+10x+25x^2+10x+25 as (x+5)2(x+5)^2 in a second saves minutes of trial and error, and factoring practice problems are the natural place to build that speed.

Practice problems

0 of 5 solved

  1. Expand (x+6)2(x+6)^2.

  2. Multiply (5x−2)(5x+2)(5x-2)(5x+2).

  3. Expand (3x−4y)2(3x-4y)^2.

  4. Expand (2x+1)3(2x+1)^3.

  5. Simplify (2x−3)2−(2x+3)(2x−3)(2x-3)^2-(2x+3)(2x-3).

Common questions

What are the special products in algebra?

They are the binomial products that follow a fixed pattern: the square of a sum, the square of a difference, the product of a sum and a difference (conjugates), and the cube of a sum or difference. Each can be written down without multiplying term by term.

What is the difference between (a+b)2(a+b)^2 and a2+b2a^2+b^2?

They differ by 2ab2ab. Squaring a binomial produces three terms, a2+2ab+b2a^2+2ab+b^2, because the two cross products are equal and add up. Test a=b=1a=b=1: (1+1)2=4(1+1)^2=4, but 12+12=21^2+1^2=2.

Why does (a+b)(a−b)(a+b)(a-b) have no middle term?

The cross products are −ab-ab and +ab+ab, which are opposites, so they cancel. Only a2−b2a^2-b^2 remains, which is why the result is called a difference of squares.

Is (a+b)3(a+b)^3 the same as a3+b3a^3+b^3?

No. (a+b)3=a3+3a2b+3ab2+b3(a+b)^3=a^3+3a^2b+3ab^2+b^3 has four terms. The sum of cubes a3+b3a^3+b^3 has two terms and factors as (a+b)(a2−ab+b2)(a+b)(a^2-ab+b^2).

Can special products be used with fractions and negative numbers?

Yes. The letters aa and bb can stand for any numbers or expressions, including fractions, negatives and terms with exponents. Wrap each substituted term in parentheses before squaring so signs and coefficients are handled correctly.

How do you know which special product formula to use?

Look at the shape. Two identical binomials (or a binomial with an exponent of 2) call for a square. Two binomials with the same terms but opposite signs call for the difference of squares. An exponent of 3 calls for the cube formula.

Up next