Square of a Binomial Calculator
Expand a squared binomial, inspect each coefficient, and solve the resulting equation for an unknown variable or a selected output value.
Inputs
Choose a partly numeric binomial or a quadratic function built from ax + b.
The sign changes the middle term, not either squared term.
The other symbol remains the unknown variable in the expansion.
Required real number. Use a period for decimals; grouping commas are optional.
Set the squared expression equal to this value to find real roots.
Required real coefficient a in the term ax.
The sign controls the sign of the x coefficient after expansion.
Required real value b. The selected sign is applied separately.
Set y to this real value and solve the quadratic for x.
Live results
36 – 12b + b²
(6 – b)² = 6² – 2 × 6 × b + b²
1
– 12
36
b = 1 or 11
Not used in this mode
Not used in this mode
Expanded (6 – b)² and found two real solutions for b.
Coefficient breakdown
| Expanded component | Coefficient or value | How it is formed |
|---|---|---|
| Constant term | 36 | 6² |
| b term | – 12 | – 2 × 6 |
| b² term | 1 | 1 × b² |
How to use the square of a binomial calculator
What this calculator does
This calculator expands the square of a two-term algebraic expression and, when requested, solves the resulting equation over the real numbers. In Simple binomial expansion mode, one of the symbols a or b is replaced by a number while the other remains unknown. In Expansion of (ax + b)² mode, the calculator produces a quadratic function in x, reports its coefficients and intercepts, and can solve for the x-values associated with a selected y-value. It applies exact algebraic identities; it does not estimate a trend, choose a best model, or infer missing measurements.
When to use it
Use the tool to check homework involving perfect square trinomials, verify a FOIL multiplication, convert a squared linear expression into standard quadratic form, or find the real roots of a squared expression set equal to a target. It is also useful when checking whether a trinomial's middle coefficient has the correct sign and magnitude.
How to calculate
- The calculator opens with a complete demonstration: (6 – b)² = 25. The expansion, roots, breakdown table, and a validated Excel workbook are immediately available.
- Select Calculation type. For a partly numeric identity, keep Simple binomial expansion. For a function such as (17x + 210)², choose Expansion of (ax + b)².
- Replace the sample values. Results update automatically; no Calculate button is needed. Read Expanded form, the coefficient cards, Solution summary, and, in linear mode, the intercept cards.
- Select Download Excel to export the current validated inputs and outputs. Select Reset to clear the demonstration and all numeric entries. Reset may disable Excel export until a complete valid state is entered again.
Input guide
Calculation type is required and accepts one of the two listed modes. Binomial sign selects (a + b)² or (a – b)²; it changes only the sign of the middle term. Known term identifies whether a or b receives the numeric Known value. Known value is a required real number, for example 6. Enter ordinary decimals with a period, optionally using correctly placed thousands separators; decimal commas and scientific notation are rejected to prevent ambiguous interpretation.
Solve for the unknown variable is optional. When selected, Expression value becomes required and sets the squared binomial equal to a real target, such as 25. Negative targets produce no real roots because a real square cannot be negative. In linear mode, Coefficient of x is the required real value a, Linear binomial sign applies plus or minus before the constant, and Constant term is the required real value b. For example, 17, plus, and 210 represent (17x + 210)². Solve for a given y is optional; when selected, Target y is required. A zero x coefficient creates a constant function, so an x-intercept or isolated x-solution may not exist.
Output guide
The header pills show Mode, the active Identity, and whether Export is ready. Expanded form is the exact trinomial identity after multiplication, while the substitution line shows the operation used. Squared coefficient is the coefficient on the squared unknown term or x². Middle coefficient equals twice the product of the two original coefficients, including the selected sign. Constant term is the square of the numeric constant. Solution summary lists two, one repeated, no real, or infinitely many real solutions as the active equation requires. x-intercept is the repeated zero of (ax ± b)² when a is nonzero, and y-intercept is the function value at x = 0. The live status sentence confirms which operation was completed. The Coefficient breakdown table repeats each component, its numeric coefficient or value, and the multiplication rule that creates it; the note below confirms that the table and workbook use the same model.
Worked example
The startup example uses a subtraction binomial with a = 6 and target 25. Applying the square pattern gives (6 – b)² = 6² – 2 × 6 × b + b² = 36 – 12b + b². Solving (6 – b)² = 25 gives 6 – b = 5 or 6 – b = – 5, so the displayed real solutions are b = 1 or 11. The same values appear in the first-open result panel, breakdown table, and workbook checkpoints.
Learn more
OpenStax explains the binomial squares pattern and perfect square trinomials. For the broader identity, see Wolfram MathWorld's binomial theorem reference. When using linear mode, OpenStax's discussion of quadratic functions, roots, and intercepts provides useful context.
Why the middle term matters
The most common squaring error is to write a² + b² and omit the two cross-products. Multiplying (a + b)(a + b) creates ab twice, so the combined middle term is 2ab. With subtraction, the two cross-products are both negative, producing – 2ab. The outer squares remain nonnegative as algebraic squares, even though their coefficients or substituted values may originate from negative inputs.
(a – b)² = a² – 2ab + b²
(ax ± b)² = a²x² ± 2abx + b²
Interpreting edge cases
If the target is zero, both square-root branches meet at one repeated solution. If a target is negative, there are no real solutions, although complex-number solutions exist outside this calculator's scope. In linear mode, a = 0 removes x from the expression. The function then stays at b² for every x: the target equation has every real x as a solution when the target equals b², and none otherwise. Large values are accepted only while all derived coefficients remain finite, preventing nonnumeric results from entering the page or workbook.