Polynomial Expansion Calculator: How It Works
The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.
This calculator expands a polynomial expression like (x + 2)(x − 3) or (2x + 1)^3 into its standard form a_n x^n + … + a_1 x + a_0. You enter the expression using ^ for powers and * for multiplication, and the calculator returns the fully expanded, simplified polynomial with like terms combined. It also shows the degree and the coefficients of each term.
Formula
The expansion of a product of sums uses the distributive law: for any terms a, b, c, d,
(a + b)(c + d) = ac + ad + bc + bd.
For a power like (x + 2)^3, the binomial theorem gives:
(x + 2)^3 = x^3 + 3·x^2·2 + 3·x·2^2 + 2^3 = x^3 + 6x^2 + 12x + 8.
In general, (a + b)^n = Σ_{k=0}^{n} C(n,k) a^{n−k} b^k, where C(n,k) is the binomial coefficient. The calculator applies these rules symbolically, combining like terms and sorting by descending exponent.
Worked Example
Using the default expression (x+2)*(x-3):
- Apply distribution: x·x + x·(−3) + 2·x + 2·(−3).
- Compute each product: x^2 − 3x + 2x − 6.
- Combine like terms: x^2 + (−3+2)x − 6 = x^2 − x − 6.
The calculator returns x^2 − x − 6 with degree 2. The first output is the expanded polynomial itself; the degree output is a helper value, shown as 2.
How to Use the Calculator
Type or paste your polynomial expression into the input field. Use standard algebraic notation:
- Use * for multiplication: 2*x, not 2x.
- Use ^ for exponents: x^2, (x+1)^3.
- Use parentheses to group factors: (x+1)*(x-2).
- Use + and – for addition and subtraction.
The calculator handles sums, differences, products, and powers of polynomials. It does not handle division by a polynomial, trigonometric functions, or variables other than x. If you enter an expression with multiple variables, it treats them as constants or errors, so stick to one variable.
Why Expand a Polynomial?
Expanded form is useful for many tasks:
- Finding the roots of a quadratic or cubic by factoring.
- Sketching a graph: the leading coefficient and degree tell you end behavior.
- Integrating or differentiating term by term.
- Comparing coefficients when solving equations.
- Simplifying expressions before plugging in numbers.
For example, to find the vertex of y = (x+2)(x−3), you first expand to y = x^2 − x − 6, then use the formula x = −b/(2a) = 1/2.
Common Mistakes and How to Avoid Them
- Forgetting to multiply every term: (x+2)(x−3) is not x^2 − 6. You must do all four products.
- Sign errors: (x−3) means +(−3), so the middle term is −3x, not +3x.
- Misapplying exponents: (x+2)^2 is not x^2 + 4. It is x^2 + 4x + 4.
- Using implicit multiplication: Some calculators accept 2x, but this one requires 2*x. Without the asterisk, it may misinterpret the input.
- Rounding too early: If you expand manually and round coefficients prematurely, you lose accuracy. The calculator keeps exact rational coefficients.
Limitations of the Calculator
This tool is designed for polynomials in one variable (x). It will not handle:
- Rational expressions like (x+1)/(x−2).
- Radicals or fractional exponents.
- Trigonometric, exponential, or logarithmic functions.
- Multiple variables (y, z, etc.).
For those, you would need a computer algebra system (CAS) like Mathematica, Maple, or a CAS-enabled calculator. This tool is meant for quick, everyday polynomial expansion.
How to Verify Your Result
You can check an expansion by plugging in a few values of x. For example, if you expand (x+2)(x−3) to x^2 − x − 6, test x=0: both give −6; x=1: both give −6; x=5: both give 14. If the values match for several x, the expansion is likely correct.
Another check: the degree of the product equals the sum of the degrees of the factors. For (x+2)(x−3), degree 1 + degree 1 = degree 2, which matches.
Frequently Asked Questions
Can the calculator expand expressions with more than two factors?
Yes, as long as you use parentheses and multiplication signs. For example, (x+1)*(x−2)*(x+3) will expand to x^3 + 2x^2 − 5x − 6. The calculator repeatedly applies distribution.
What does “degree” mean?
The degree of a polynomial is the highest exponent of the variable. For x^3 + 2x^2 − 5x − 6, the degree is 3. The calculator shows this as the second output.
Can I use variables other than x?
No, the calculator only recognizes x as the variable. If you enter t or y, it will treat them as constants or produce an error. For other variables, use a different tool.
Why do I need to use * for multiplication?
Many calculators allow implicit multiplication (2x), but this one requires explicit * to avoid ambiguity. For example, 2x could be interpreted as 2*x or as a variable named “2x”. Using * removes that confusion.
Does the calculator simplify like terms automatically?
Yes. After expanding, it combines all terms with the same exponent. For instance, (x+1)*(x+1) gives x^2 + 2x + 1, not x^2 + x + x + 1.
What if my expression has a negative exponent?
That would not be a polynomial. Polynomials have non-negative integer exponents. The calculator may not handle negative exponents correctly, so avoid them.
Related
Formula used
in expr | Polynomial expression | - | (x+2)*(x-3) | 0 out expanded | Expanded polynomial | - | expr | 0 out degree | Degree | - | 0 | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.