A polynomial calculator adds, subtracts and multiplies polynomials. Type an expression in x, with parentheses, and the calculator expands it, collects the like terms and gives the simplified polynomial in descending powers, with its degree, its leading coefficient and its derivative. It does what the FOIL method and the box method do, for any number of factors. It uses the rules for adding and multiplying polynomials that Wikipedia's page on polynomials describes, and it works in your browser. It covers the add and subtract polynomials calculation, FOIL, the box method and the generic rectangle.
How to use the polynomial calculator
- Type an expression in x, for example (x + 2)(x + 3) or (2x^2 + 3x − 5) − (x^2 − 4x + 1).
- Optionally enter a value of x to get the value of the polynomial there.
- Press Expand.
- Read the expanded form, the degree, the leading coefficient and the derivative.
Adding and subtracting polynomials
The Wikipedia page on polynomials says that polynomials are added by adding the like terms, which are the terms with the same power of x, using the commutative and associative laws, and that subtraction works in the same way. To subtract, you change the sign of every term of the second polynomial. For example, 2x squared plus 3x minus 5, minus x squared minus 4x plus 1, gives x squared plus 7x minus 6. In the calculator, you type the two polynomials in parentheses with a plus or minus sign between them.
Multiplying polynomials
To multiply, the page says that each term of one polynomial is multiplied by every term of the other one, and then the like terms are combined. Its example is x minus 1 times x minus 2, which is x squared minus 3x plus 2. The calculator does this for any number of factors and for powers of a polynomial, so you can type (x + 1)^3 and get x cubed plus 3x squared plus 3x plus 1.
The FOIL method
FOIL is a way to remember how to multiply two binomials: first, outer, inner, last. For x plus 2 times x plus 3, the first terms give x squared, the outer terms give 3x, the inner terms give 2x and the last terms give 6, so the result is x squared plus 5x plus 6. The Wikipedia page does not use the name FOIL, but it is a special case of the rule of multiplying each term by each term, with two terms in each factor. The calculator gives the same answer and works also with longer polynomials, where FOIL does not apply.
The box method and the generic rectangle
The box method, which is also called the generic rectangle or the area model, is a picture of the same rule. You draw a table with the terms of one polynomial across the top and the terms of the other down the side, fill each cell with the product of its row and column, and add the cells that have the same power. It helps students who find it hard to keep track of many terms. The calculator gives the final sum, which is the result of the table.
Degree, leading coefficient and derivative
The degree is the highest power of x with a non-zero coefficient, and the leading coefficient is the coefficient of that term. The degree of a product is the sum of the degrees of the factors. The calculator also gives the derivative, term by term, using the rule that the derivative of a times x to the n is a times n times x to the n minus 1. If you give a value of x, you also get the value of the polynomial at that point.
Typing expressions
You can write 2x for 2 times x, and x^2 or x² for x squared. Factors written side by side, such as (x + 1)(x − 1), are multiplied. A minus sign in front of a parenthesis changes the sign of everything inside it. Spaces are ignored. If the calculator cannot read the expression, it says so. It accepts decimal coefficients, and powers up to 30.
Worked examples
To expand x minus 1, cubed, type (x − 1)^3 and you get x cubed minus 3x squared plus 3x minus 1. To subtract, type (3x^2 + 2x − 7) − (x^2 − 5x + 4), and you get 2x squared plus 7x minus 11. To expand the product of three factors, type (x + 1)(x + 2)(x + 3), and you get x cubed plus 6x squared plus 11x plus 6. The derivative of the last polynomial is 3x squared plus 12x plus 11, and the polynomial itself has the value 24 at x equal to 1.
Special products
Some products come up so often that they have names. The square of a sum, x plus a squared, is x squared plus 2ax plus a squared. The difference of squares, x plus a times x minus a, is x squared minus a squared, and the cube of a sum has the coefficients 1, 3, 3 and 1. The calculator confirms them, and typing a few such expressions is a good way to learn the patterns.
Common mistakes
- Forgetting to change the signs when subtracting. The minus applies to every term.
- Combining unlike terms. Only terms with the same power can be added.
- Missing a product in an expansion. Every term must meet every term.
- Writing a second variable. Only x is supported.
What next
Use this often? Add Add Subtract to your Home screen.
Frequently asked questions
What is a polynomial calculator?
A tool that expands, simplifies, adds, subtracts and multiplies polynomials in x, and gives the degree, leading coefficient and derivative.
How do you add polynomials?
Add the like terms, which have the same power of x. (2x² + 3x − 5) + (x² − 4x + 1) = 3x² − x − 4.
What is FOIL?
A way to multiply two binomials: first, outer, inner, last. (x + 2)(x + 3) = x² + 3x + 2x + 6 = x² + 5x + 6.
What is the box method?
An area model: a table of the products of each term of one polynomial with each term of the other, with the like terms added at the end.
Can it handle more than two factors?
Yes. Type as many factors as you like, and powers such as (x + 1)^3.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.