Reviewed by CalcMulti Editorial Team·Last updated: ·← Algebra Hub
A polynomial is an algebraic expression with one or more terms of the form axⁿ where n is a non-negative integer. This calculator performs addition, subtraction, and multiplication of two polynomials up to degree 4, collecting like terms and presenting the result in standard form (highest degree first).
Polynomial arithmetic is a core algebra skill used in factoring, calculus (integration by parts, partial fractions), and computer science (polynomial hashing, error-correcting codes).
Adding and subtracting polynomials: combine like terms — terms with the same variable and exponent. For example, (3x² + 2x − 5) + (x² − 4x + 1) = 4x² − 2x − 4. Subtraction distributes the negative sign to every term in the second polynomial: (3x² + 2x − 5) − (x² − 4x + 1) = 3x² + 2x − 5 − x² + 4x − 1 = 2x² + 6x − 6.
Multiplying polynomials: use the distributive property — multiply every term in the first polynomial by every term in the second, then collect like terms. For (2x + 3)(x² − x + 4): distribute 2x to get 2x³ − 2x² + 8x, and distribute 3 to get 3x² − 3x + 12. Add: 2x³ + x² + 5x + 12. The degree of the product equals the sum of the degrees: degree(A) + degree(B). The FOIL method is a shortcut for multiplying two binomials specifically.
Key polynomial identities you should recognize instantly: (a + b)² = a² + 2ab + b² (perfect square), (a − b)² = a² − 2ab + b² (perfect square), (a + b)(a − b) = a² − b² (difference of squares), (a + b)³ = a³ + 3a²b + 3ab² + b³ (cube of a binomial). Recognizing these patterns allows you to expand or factor in one step instead of distributing term by term.
P(x) = aₙxⁿ + aₙ₋₁xⁿ⁻¹ + … + a₁x + a₀
P(x)
Q(x)
| Operation | Rule | Example | Result |
|---|---|---|---|
| Addition | Combine like terms | (3x²+2x−5)+(x²−4x+3) | 4x²−2x−2 |
| Subtraction | Distribute negative, combine | (3x²+2x−5)−(x²−4x+3) | 2x²+6x−8 |
| FOIL (binomials) | (a+b)(c+d)=ac+ad+bc+bd | (x+3)(x−2) | x²+x−6 |
| Distribute (trinomial) | Each term × each term | (x+1)(x²+x+1) | x³+2x²+2x+1 |
| Square of binomial | (a+b)²=a²+2ab+b² | (x+4)² | x²+8x+16 |
| Difference of squares | (a+b)(a−b)=a²−b² | (x+5)(x−5) | x²−25 |
| Degree | Name | Standard Form | Example |
|---|---|---|---|
| 0 | Constant | a | 7 |
| 1 | Linear | ax + b | 3x − 2 |
| 2 | Quadratic | ax² + bx + c | x² − 5x + 6 |
| 3 | Cubic | ax³ + bx² + cx + d | 2x³ − x + 4 |
| 4 | Quartic | ax⁴ + bx³ + cx² + dx + e | x⁴ − 3x² + 1 |
| 5 | Quintic | ax⁵ + … | x⁵ − x³ + 2x |
Factor polynomials into binomials
Completing the SquareVertex form from quadratic trinomials
Quadratic Formula CalculatorFind roots of degree-2 polynomials
Simplify Expressions CalculatorCombine like terms, FOIL, and distribute
Factoring Polynomials GuideGCF, trinomials, difference of squares
FOIL Method CalculatorExpand binomial products step by step
Rational Expressions CalculatorSimplify rational expressions by factoring numerator/denominator
Algebra HubAll algebra calculators and guides
This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.