Square of a Binomial Calculator

Square a binomial expression instantly. Enter a and b, choose + or -, and get the expanded form using the perfect square trinomial formulas.

Deriving the Perfect Square Formulas

The formula (a+b)² = a² + 2ab + b² comes directly from multiplying (a+b) by itself. Using the distributive property (or FOIL for binomials), you get a·a + a·b + b·a + b·b. Combine like terms: a² + ab + ba + b² = a² + 2ab + b².

For the difference, (a-b)² means (a-b)(a-b). Distribute to get a·a + a·(-b) + (-b)·a + (-b)·(-b) = a² - ab - ab + b² = a² - 2ab + b². The middle term becomes negative because both ab terms are negative, and their sum is -2ab.

These formulas are special cases of the Binomial Theorem for n=2. Instead of memorizing separate multiplication steps every time, you apply the pattern directly. This shortcut is particularly valuable in algebra when simplifying expressions or solving quadratic equations by completing the square.

Recognizing and Factoring Perfect Squares

A trinomial is a perfect square if the first and last terms are perfect squares and the middle term equals twice the product of their square roots. For x² + 10x + 25, check: x² is (x)², 25 is 5², and 10x = 2·x·5. All conditions hold, so x² + 10x + 25 = (x+5)².

Watch for sign patterns. If the middle term is negative but the last term is positive, you have a difference squared. For example, 4y² - 12y + 9 factors as (2y - 3)² because 4y² = (2y)², 9 = 3², and -12y = -2·2y·3. The negative middle term signals subtraction inside the binomial.

Perfect square recognition speeds up factoring and solving. When completing the square to solve quadratics, you deliberately create a perfect square trinomial by adding a carefully chosen constant. Recognizing the pattern lets you reverse the process instantly, jumping straight from the expanded form to the binomial.

Applications in Algebra and Geometry

Perfect square formulas show up throughout algebra. Completing the square converts ax² + bx + c into a(x - h)² + k, revealing the vertex of a parabola. This technique also derives the quadratic formula and solves quadratic equations when factoring isn't obvious. Every time you complete the square, you're creating a perfect square trinomial.

In geometry, the formulas connect to area. The square (a+b)² represents the area of a square with side length a+b. Draw it as a square divided into four regions: a square of side a (area a²), a square of side b (area b²), and two rectangles of dimensions a×b (total area 2ab). Visually, you see a² + 2ab + b².

Difference of squares (a²-b²) factors as (a+b)(a-b), but the square of a difference (a-b)² is different. Confusing these patterns causes errors. The square of a binomial always produces a trinomial with three terms, while the difference of squares has only two terms and factors into a product. Keeping these straight is crucial for manipulating algebraic expressions correctly.

Frequently Asked Questions

What is the formula for the square of a binomial?

The square of a sum is (a+b)² = a² + 2ab + b². The square of a difference is (a-b)² = a² - 2ab + b². Notice the middle term changes sign.

Why is the middle term 2ab?

When you expand (a+b)² as (a+b)(a+b) using FOIL, you get a² + ab + ab + b². The two ab terms combine to give 2ab.

What is a perfect square trinomial?

A perfect square trinomial results from squaring a binomial. It has the form a² ± 2ab + b². You can recognize it by checking if the first and last terms are perfect squares and the middle term is twice their product.

How do you factor a perfect square trinomial?

Identify a and b from the first and last terms (a² and b²). Check that the middle term is 2ab. If so, factor as (a+b)² or (a-b)² depending on the sign of the middle term.

Can you use this formula with variables?

Yes. The formula works for any expressions. For (x+3)², use a=x and b=3 to get x² + 6x + 9. For (2y-5)², use a=2y and b=5 to get 4y² - 20y + 25.