Simplify expressions and factor polynomials — step by step, the way it's done at school

Expression

Insert into the formula:
Try:
📚 Theory: how to simplify expressions and factor polynomials

To simplify an expression, expand the brackets and collect like terms — terms with the same letter part (3x² and −x² are like terms, 3x² and 3x are not). A bracket is expanded with the distributive law a(b + c) = ab + ac; a product of brackets — by multiplying every term of the first bracket by every term of the second. A minus sign in front of a bracket changes the sign of every term inside.

Special products save work: (a + b)² = a² + 2ab + b², (a − b)² = a² − 2ab + b², (a − b)(a + b) = a² − b², (a + b)³ = a³ + 3a²b + 3ab² + b³, a³ + b³ = (a + b)(a² − ab + b²), a³ − b³ = (a − b)(a² + ab + b²). Read from right to left, the same identities factor polynomials.

(a + b)² = a² + 2ab + b² a b a b a² ab ab b² (a + b)² = a² + 2ab + b²
A square with side a + b is made of the square a², the square b² and two rectangles ab — that is why (a + b)² ≠ a² + b²
a² − b² = (a − b)(a + b) a² − b² b² → (a − b)(a + b)
Cut the small square b² out of the corner of a² and move the strip: you get a rectangle with sides a + b and a − b. That is the difference of squares

To factor means to write a polynomial as a product. The order from the textbook: 1) take out the common factor (the GCF of the coefficients and the letters common to every term, each to its lowest power); 2) apply a special product; 3) grouping — split the terms into groups with a common bracket; 4) the quadratic trinomial ax² + bx + c. Keep going until no factor can be factored further.

(x + 2)(x + 3) = x² + 5x + 6 x² 3x 2x 6 x² + 5x + 6 = (x + 2)(x + 3) 2·3 = 6; 2 + 3 = 5
The trinomial x² + 5x + 6 is the area of a rectangle with sides x + 2 and x + 3: the numbers 2 and 3 multiply to 6 and add up to 5

A quadratic trinomial is factored differently in different countries, and the page writes it the way it is done for the page language. In Russia and other CIS countries, France, Germany, Spain, Italy, Poland and Brazil, you find the roots with the discriminant: ax² + bx + c = a(x − x₁)(x − x₂). In English-speaking countries, India, Turkey, Indonesia and the Arab countries, you split the middle term: find two numbers whose product is ac and whose sum is b, then group. In China, Japan and Malaysia, you use the cross method: a = a₁a₂, c = c₁c₂, a₁c₂ + a₂c₁ = b.

An algebraic fraction can be simplified when its numerator and denominator have a common factor: factor both first, then cancel the common factor. Adding and subtracting go through a common denominator; multiplying — numerator by numerator, denominator by denominator; dividing — multiply by the reciprocal. A denominator can never be zero, so the page lists the allowed values of the letters: after cancelling, the answer equals the original fraction only for them.

How to check yourself: expand the answer — you should get the original expression back; or substitute a number for the letter in both the original expression and the answer — the values must match. The page runs this check on every answer and never shows an answer that fails it.

Common mistakes

  • (a + b)² ≠ a² + b²: the middle term 2ab is missing. Correct: (a + b)² = a² + 2ab + b².
  • A minus in front of a bracket changes the sign of every term: −(x − 3) = −x + 3, not −x − 3.
  • Only factors can be cancelled: (x + 2)/2 ≠ x + 1 and (x² + 4)/(x + 2) ≠ x + 2.
  • Not factored completely: in x(x² − 4) the bracket still factors — x(x − 2)(x + 2).
  • A lost factor: 2x² − 8 = 2(x − 2)(x + 2), not (x − 2)(x + 2).
  • A sum of squares a² + b² does not factor with real coefficients, unlike a difference of squares.
  • After cancelling, the restrictions stay: (x² − 4)/(x − 2) = x + 2 only for x ≠ 2.

Free input: (x+3)^2-(x-2)(x+2), x2-5x+6 (x2 means x²), (x^2-9)/(x+3); to divide fractions, type a/b : c/d. Any Latin letters can be used.

Frequently asked questions

Is it free to use?

Yes, this calculator is free and needs no sign-up. Everything is calculated right in your browser, not on a server.