Polynomial Calculator: Add, Multiply, Divide and Factor
Dividing (x³ − 6x² + 11x − 6) by (x − 1) gives: Quotient x² − 5x + 6, remainder 0. The remainder is 0, so x − 1 is a factor and x = 1 is a root; the full factorization is (x − 1)(x − 2)(x − 3). Type any polynomial in x with whole-number, decimal or fraction coefficients and pick an operation: the working appears below, in exact fractions.
Updated By ponderloop editorial · How we checkRuns in your browser: nothing you enter is uploadedHow this tool works
Quotient x² − 5x + 6, remainder 0
(x − 1) divides (x³ − 6x² + 11x − 6) exactly.
- Quotient
- x² − 5x + 6
- Remainder
- 0
- Degree of the quotient
- 2
- Divides evenly
- Yes
The working
| Step | Quotient term | Multiply by the divisor | Left after subtracting |
|---|---|---|---|
| 1 | x² | x³ − x² | −5x² + 11x − 6 |
| 2 | −5x | −5x² + 5x | 6x − 6 |
| 3 | 6 | 6x − 6 | 0 |
- Divide A by B. Each step divides the leading term of what is left by the leading term of B (x).
- Step 1: x³ ÷ x = x². Multiply: x² × (x − 1) = x³ − x². Subtract: (x³ − 6x² + 11x − 6) − (x³ − x²) = −5x² + 11x − 6.
- Step 2: −5x² ÷ x = −5x. Multiply: −5x × (x − 1) = −5x² + 5x. Subtract: (−5x² + 11x − 6) − (−5x² + 5x) = 6x − 6.
- Step 3: 6x ÷ x = 6. Multiply: 6 × (x − 1) = 6x − 6. Subtract: (6x − 6) − (6x − 6) = 0.
- What is left is 0, so B divides A exactly.
- Check: (x − 1) × (x² − 5x + 6) + (0) = x³ − 6x² + 11x − 6, which is A.
Worked examples
| Operation | Input | Result |
|---|---|---|
| Add | (3x² − 2x + 1) + (x − 4) | 3x² − x − 3 |
| Subtract | (3x² − 2x + 1) − (x − 4) | 3x² − 3x + 5 |
| Multiply | (2x + 3) × (x² − x + 4) | 2x³ + x² + 5x + 12 |
| Divide | (2x³ + 3x² − x + 5) ÷ (x + 2) | Quotient 2x² − x + 1, remainder 3 |
| Evaluate at x = 1/2 | 2x³ − 3x + 1 | −1/4 |
| Derivative | 3x⁴ − 2x² + 5x − 7 | 12x³ − 4x + 5 |
| Roots | 2x³ − 3x² − 3x + 2 | Real roots: x = −1, x = 1/2, x = 2 |
| Roots with an irrational pair | x² − 2 | Real roots: x ≈ −1.414214, x ≈ 1.414214 |
| Factor | 6x² + x − 2 | (3x + 2)(2x − 1) |
Polynomial identities
| Identity | General form | Example product | Expanded | Factored again |
|---|---|---|---|---|
| Difference of squares | a² − b² = (a − b)(a + b) | (x+5)(x−5) | x² − 25 | (x + 5)(x − 5) |
| Square of a sum | (a + b)² = a² + 2ab + b² | (x+3)(x+3) | x² + 6x + 9 | (x + 3)² |
| Square of a difference | (a − b)² = a² − 2ab + b² | (x−4)(x−4) | x² − 8x + 16 | (x − 4)² |
| Sum of cubes | a³ + b³ = (a + b)(a² − ab + b²) | (x+3)(x²−3x+9) | x³ + 27 | (x + 3)(x² − 3x + 9) |
| Difference of cubes | a³ − b³ = (a − b)(a² + ab + b²) | (x−2)(x²+2x+4) | x³ − 8 | (x − 2)(x² + 2x + 4) |
| Cube of a sum | (a + b)³ = a³ + 3a²b + 3ab² + b³ | (x+1)³ | x³ + 3x² + 3x + 1 | (x + 1)³ |
| Product of two binomials | (x + p)(x + q) = x² + (p + q)x + pq | (x+2)(x+7) | x² + 9x + 14 | (x + 7)(x + 2) |
| Sum of squares | a² + b² has no real factors | x²+9 | x² + 9 | x² + 9 |
How to use the Polynomial Calculator
- Choose the operation. Pick add, subtract, multiply, divide, evaluate, derivative, roots or factor.
- Type the polynomial. Write polynomial A in x, for example 3x^2 - 2x + 1/2. Add B for the four arithmetic operations, or the value of x for evaluation.
- Read the result and the working. For the example, the headline reads “Quotient x² − 5x + 6, remainder 0” and the steps and the table show each stage of the long division.
Frequently asked questions
- How do I type a polynomial?
- Use x as the variable, ^ or ** for powers and / for fractions: 3x^2 - 2x + 1/2 is read as 3x² − 2x + 1/2. Spaces are optional, 2x means 2 times x, and brackets work, so 2(x+1)(x-3) is read as 2x² − 4x − 6. Superscripts such as x² also work.
- How does polynomial long division work?
- Divide the leading term of what is left by the leading term of the divisor, write that as the next quotient term, multiply it back by the divisor and subtract. Repeat until what is left has a lower degree than the divisor. For (2x³ + 3x² − x + 5) ÷ (x + 2) the result is quotient 2x² − x + 1, remainder 3.
- What does the remainder tell me?
- By the remainder theorem, dividing by x − c leaves the value of the polynomial at c. Dividing 2x³ + 3x² − x + 5 by x + 2 leaves 3, and evaluating it at x = −2 gives 3. A remainder of 0 means x − c is a factor and c is a root.
- How are the roots found?
- Rational roots are found exactly with the Rational Root Theorem: a rational root p/q has p dividing the constant term and q dividing the leading coefficient, and each candidate is tested in exact arithmetic. For 2x³ − 3x² − 3x + 2 the result is real roots: x = −1, x = 1/2, x = 2. What is left has no rational root, so its real roots are approximations, always marked ≈: x² − 2 gives real roots: x ≈ −1.414214, x ≈ 1.414214, and x³ − 2 gives real roots: x ≈ 1.259921.
- Why is a factor left as it is, and is it really irreducible?
- Factoring here uses the common factor, the rational roots and repeated-factor splitting. A quadratic or cubic with no rational root is irreducible over the rationals, so it is shown as it is. A part of degree 4 or more with no rational root can still split into quadratics: x⁴ + 4 has no rational root, and the tool shows x⁴ + 4 and marks it “may split further”.
- What are the limits?
- Inputs can have degree up to 40, exponents up to 60 and up to 400 characters. Results can be a little larger: x^40 times x is x⁴¹. The numeric search for real roots runs when the part left after the rational roots has degree 6 or less; above that only the rational roots are listed. Very large coefficients skip the rational root search and say so.
- Can I use decimals and fractions?
- Yes. Decimals are converted to exact fractions: 0.5x^2 + 0.25x is read as (1/2)x² + (1/4)x. Nothing is rounded during the working, so a coefficient like 1/3 stays 1/3.
- Is the derivative a full derivative calculator?
- No. It applies the power rule term by term to a polynomial: 3x⁴ − 2x² + 5x − 7 becomes 12x³ − 4x + 5. It does not handle products of functions, quotients, trigonometric functions or the chain rule.
- Is anything I type sent to a server?
- No. Polynomials are worked out by your browser alone: the text you type is never sent anywhere or saved.
How it works
Coefficients are exact fractions of two whole numbers, so sums, products, long division and evaluation never round. Rational roots come from the Rational Root Theorem applied to the integer form of the polynomial. Repeated factors are separated exactly with Yun’s square-free decomposition. Real roots of the part that has no rational root are located between the turning points (the real roots of its derivative) and refined by bisection in double precision, shown to six decimal places and always marked ≈. For x³ − 6x² + 11x − 6 the factorization is (x − 1)(x − 2)(x − 3) with x = 1, x = 2, x = 3.
Sources
More free tools
- Quadratic Equation SolverSolve ax² + bx + c = 0 step by step: discriminant, exact and decimal roots (real or complex), vertex, factored form, completing the square and a graph.
- System of Equations CalculatorSolve 2 or 3 linear equations exactly: row-reduction steps, determinant, Cramer’s rule and a graph. Finds one, no or infinitely many solutions.
- Factor CalculatorList every factor of a number with its factor pairs, count and sum, and whether it is prime, perfect or abundant. Plus common factors of 2 or 3 numbers.
- Derivative Calculator With StepsDifferentiate any function of x with the rule named at every step: product, quotient, chain, trig and more. Gives f′, f″ and the slope at a point.
- Scientific Notation ConverterConvert any number to scientific, E and engineering notation or back to standard form, round to significant figures, and count the sig figs you typed.
- Prime Factorization CalculatorCheck if a number is prime and get its prime factors, factor tree, divisors, divisor count and sum, Euler’s totient, and the next and previous prime.
More: Algebra and number theoryAll math & numbersAll toolsHome & DIY calculators