Expand Polynomial

Expand polynomial products and powers.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Type a product or a power of brackets and get the expanded polynomial, highest power first. (x+1)^3 expands to x^3 + 3*x^2 + 3*x + 1.

How to use

1
Step 1
Type the expression, for example (x+1)^3 or (x+2)*(x-3).
2
Step 2
Press Calculate.
3
Step 3
Read the expanded polynomial and copy it.

How it works

Expanding multiplies every term in one bracket by every term in the next, then adds up like terms. For (x + 2)(x − 3): x·x = x², x·(−3) = −3x, 2·x = 2x and 2·(−3) = −6, which combine to x² − x − 6. A power such as (x + 1)³ is the same bracket multiplied three times, which gives the binomial coefficients 1, 3, 3, 1.

(a + b)(c + d) = ac + ad + bc + bd      (x + a)ⁿ = Σ C(n, k) · xⁿ⁻ᵏ · aᵏ

Worked example

A cube of a binomial

Input
(x+1)^3
Output
x^3 + 3*x^2 + 3*x + 1
Walkthrough
(x + 1)² = x² + 2x + 1. Multiplying by (x + 1) again gives x³ + 2x² + x + x² + 2x + 1, and combining like terms gives x³ + 3x² + 3x + 1.

Limitations

  • Results are written with * for multiplication and ^ for powers, for example 3*x^2.
  • Expressions in one variable (x) are returned in standard form from the highest power down. With two variables, such as (x+y)^2, you get an equivalent expansion (2 * x * y + x ^ 2 + y ^ 2) that is not sorted by degree.
  • It expands and collects terms only; it does not factor or cancel fractions. Use the factor or rational-expression tools for that.

Questions

What is (x+1)^3 expanded?
x^3 + 3*x^2 + 3*x + 1.
What is (x+2)(x-3) expanded?
x^2 - x - 6.
What is (2x-1)^2 expanded?
4*x^2 - 4*x + 1.
What is (x-1)(x+1)(x+2) expanded?
x^3 + 2*x^2 - x - 2.
How do I check an expansion?
Substitute a number for x on both sides. For (x+1)^3 at x = 2, both 27 and 8 + 12 + 6 + 1 = 27 agree.

Features

  • Brackets and powers
  • Collects like terms
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Rectangle area as product of dimensions

    Khan Academy

    Foundational area thinking across math tools.

    Watch on YouTube
  • Vectors | Essence of linear algebra

    3Blue1Brown

    Visual vectors when algebra tools move toward matrices.

    Watch on YouTube