Allday Education

Square of a Binomial

Squaring a binomial means multiplying it by itself: (x+5)2(x + 5)^{2} is (x+5)(x+5)(x + 5)(x + 5). You could FOIL it every time, but the result always follows the same pattern — (a+b)2=a2+2ab+b2(a + b)^{2} = a^{2} + 2ab + b^{2} — so it is worth learning the shortcut.

The single most important fact here: (x+5)2(x + 5)^{2} is not x2+25x^{2} + 25. The exponent does not distribute over addition. There is always a middle term, 2ab2ab, and forgetting it is the most common algebra mistake in this entire unit.

The two patterns

For a sum: (a+b)2=a2+2ab+b2(a + b)^{2} = a^{2} + 2ab + b^{2}. For a difference: (ab)2=a22ab+b2(a - b)^{2} = a^{2} - 2ab + b^{2}. In both cases you get the first term squared, plus or minus twice the product of the two terms, plus the last term squared.

Note the last term is positive in both patterns — squaring b-b gives +b2+b^{2}. Only the middle term picks up the minus sign.

Where the middle term comes from

FOIL (a+b)(a+b)(a + b)(a + b): First gives a2a^{2}, Outer gives abab, Inner gives baba, Last gives b2b^{2}. The Outer and Inner products are equal, and together they make 2ab2ab. That is why the middle term is always twice the product of the two terms — the pattern is just FOIL with the middle pair pre-combined.

So for (x+5)2(x + 5)^{2}: first term squared is x2x^{2}, twice the product is 2x5=10x2 \cdot x \cdot 5 = 10x, last term squared is 2525. Answer: x2+10x+25x^{2} + 10x + 25.

When the first term has a coefficient

The pattern still works when aa is more than a bare variable — you just have to square all of it. For (2x+6)2(2x + 6)^{2}, take a=2xa = 2x and b=6b = 6: a2=4x2a^{2} = 4x^{2}, 2ab=22x6=24x2ab = 2 \cdot 2x \cdot 6 = 24x, and b2=36b^{2} = 36. The answer is 4x2+24x+364x^{2} + 24x + 36.

Squaring 2x2x means squaring the 22 as well: (2x)2=4x2(2x)^{2} = 4x^{2}, not 2x22x^{2}. That coefficient is the second-most-common slip after the missing middle term.

Worked examples

Example 1: a sum

Expand (x+4)2(x + 4)^{2}.

Square the first termx2x^{2}
Twice the product of the terms2x4=8x2 \cdot x \cdot 4 = 8x
Square the last term42=164^{2} = 16

Answer: x2+8x+16x^{2} + 8x + 16

Example 2: a difference

Expand (x5)2(x - 5)^{2}.

Square the first termx2x^{2}
Twice the product, with the minus sign2x5=10x-2 \cdot x \cdot 5 = -10x
Square the last term — it comes out positive(5)2=25(-5)^{2} = 25

Answer: x210x+25x^{2} - 10x + 25

Example 3: a coefficient on the variable

Expand (2x+6)2(2x + 6)^{2}.

Square the whole first term(2x)2=4x2(2x)^{2} = 4x^{2}
Twice the product of the terms22x6=24x2 \cdot 2x \cdot 6 = 24x
Square the last term62=366^{2} = 36

Answer: 4x2+24x+364x^{2} + 24x + 36

Try one yourself

Common questions

Why isn't (x+5)2(x + 5)^{2} equal to x2+25x^{2} + 25?

Because squaring means multiplying the whole binomial by itself, and FOIL produces two middle products that do not vanish. Test it with numbers: (1+5)2=36(1 + 5)^{2} = 36, but 12+52=261^{2} + 5^{2} = 26. The missing 1010 is exactly the middle term 2152 \cdot 1 \cdot 5.

Is the last term negative when I square a difference?

No. In (ab)2=a22ab+b2(a - b)^{2} = a^{2} - 2ab + b^{2}, only the middle term is negative. The last term is (b)(b)=b2(-b)(-b) = b^{2}, which is positive.

Do I have to memorize the pattern, or can I just FOIL?

FOIL always works and gives the same answer. Learn the pattern anyway: it is faster, and recognizing a2+2ab+b2a^{2} + 2ab + b^{2} on sight is exactly the skill you need later when factoring perfect-square trinomials.

How is this different from (a+b)(ab)(a + b)(a - b)?

That product is a difference of squares: the middle terms cancel instead of doubling, leaving a2b2a^{2} - b^{2} with no middle term. Squaring a binomial doubles the middle terms; multiplying conjugates cancels them.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1