User Rating 0.0
Total Usage 1 times
)2
Is this tool helpful?

Your feedback helps us improve.

About

Expanding the square of a difference is a fundamental skill in algebra, governed by the formula (a b)2 = a2 2ab + b2. Errors frequently occur in the middle term (forgetting the factor of 2) or the sign of the final term (which must always be positive). This tool allows users to input complex terms involving coefficients and exponents. It performs the symbolic substitution and simplification, ensuring that terms like (3x)2 are correctly expanded to 9x2 rather than 3x2.

algebra expansion math calculator polynomials

Formulas

The calculator breaks down the expression into three distinct components:

{
First: (A)2Middle: 2ABLast: +(B)2

If terms contain coefficients c and variables v, the squaring operation follows (cv)2 = c2v2.

Reference Data

Term ATerm BExpansion (a b)2
x1x2 2x + 1
2x34x2 12x + 9
x2yx4 2x2y + y2
5a2b25a2 20ab + 4b2
1x1 2x + x2
x0.5x2 x + 0.25
3m4n29m2 24mn2 + 16n4
10z100 20z + z2

Frequently Asked Questions

Yes. If you input "1/2x" or "0.5x", the tool will square the number (becoming 1/4 or 0.25) while handling the variable separately.
The last term comes from squaring negative B (-B * -B). The product of two negative numbers is always positive, regardless of the values involved.
Yes. Inputs like "3xy" or "4ab" are treated as single terms. The coefficient is squared, and all variables retain their squared status in the result.