Polynomials & Factoring

Adding Polynomials (and Subtracting Them) Step by Step

Adding polynomials means adding the coefficients of like terms and leaving every other term alone: axn+bxn=(a+b)xnax^n + bx^n = (a + b)x^n. Like terms have exactly the same letters raised to exactly the same powers.

axn+bxn=(a+b)xnax^n + bx^n = (a + b)x^n

That rule fits on one line, yet sums still go wrong in three predictable places: invisible coefficients, terms that only look alike, and subtraction. This page covers the horizontal and vertical layouts, subtraction, what happens to the degree, and a ten-second test that tells you whether your answer is right before you hand it in.

What does adding polynomials really do?

One idea sits under the whole topic: the distributive property read backwards. Since a⋅x2+b⋅x2=(a+b)⋅x2a \cdot x^2 + b \cdot x^2 = (a + b) \cdot x^2, you can pull the shared x2x^2 out and add what is left over. That is why 3x2+5x2=8x23x^2 + 5x^2 = 8x^2. The x2x^2 behaves like a unit, the way “apples” does in “3 apples plus 5 apples”.

A polynomial is just a sum of terms, so adding two of them gives a longer sum. Parentheses around a polynomial you are adding do nothing, because addition can be regrouped freely. The only real work is sorting terms into piles of the same kind. Factoring runs the same law in the other direction: factoring out the GCF pulls a shared piece out of every term, while combining like terms collapses terms that share a piece.

Watch for hidden coefficients. A bare xx has coefficient 11, and −x2-x^2 has coefficient −1-1. So x+4x=5xx + 4x = 5x, not 4x4x, and 2x2−x2=x22x^2 - x^2 = x^2. The sign in front of a term belongs to that term, so in 5x−3x5x - 3x you are adding 55 and −3-3.

Quick check

Which of these is a like term of 5x2y5x^2y: 5xy25xy^2, −x2y-x^2y, or 5x25x^2?

Why can’t unlike terms be combined?

Test it. Suppose x2+xx^2 + x could collapse into a single term. At x=3x = 3 the sum is 1212, at x=1x = 1 it is 22, and at x=2x = 2 it is 66. No single term cxncx^n produces 22, 66 and 1212 at those inputs. The pieces x2x^2 and xx grow at different rates, so no one-term expression can stand in for both. The most that can be said is x2+xx^2 + x, and that is a finished answer.

The mistake that costs the most points is “adding the exponents” to get x2+x=x3x^2 + x = x^3. Exponents never add in a sum. They add only when terms are multiplied. Constants count as terms too: 55 is 5x05x^0, so it never merges with an xx term.

Pair Like terms? Why
3x23x^2 and −x2-x^2 Yes Same letter, same exponent
2xy2xy and 5yx5yx Yes Order of letters does not matter
3x23x^2 and 3x3x No Different exponents
4x2y4x^2y and 4xy24xy^2 No Exponents sit on different letters
77 and 7x7x No One has no letter

How do you add polynomials horizontally?

Horizontal addition works best when each polynomial has only a few terms. Drop the parentheses, then gather like terms and add their coefficients. Take (4x2−3x+7)+(2x2+x−9)(4x^2 - 3x + 7) + (2x^2 + x - 9).

(4x2−3x+7)+(2x2+x−9)=4x2−3x+7+2x2+x−9(4x^2 - 3x + 7) + (2x^2 + x - 9) = 4x^2 - 3x + 7 + 2x^2 + x - 9

=(4x2+2x2)+(−3x+x)+(7−9)= (4x^2 + 2x^2) + (-3x + x) + (7 - 9)

=6x2−2x−2= 6x^2 - 2x - 2

Here is the routine that keeps errors out:

  1. Circle each term together with the sign on its left, so −3x-3x travels as one piece.
  2. Mark each family with a different underline: one for x2x^2, one for xx, one for constants.
  3. Add the coefficients inside each family, treating a missing number as 11.
  4. Write the answer in standard form, highest power first.

The same collecting step appears at the end of a FOIL expansion. Multiplying (x+2)(x+3)(x + 2)(x + 3) gives x2+3x+2x+6x^2 + 3x + 2x + 6, and the two middle terms combine to 5x5x. If you can add polynomials cleanly, the last step of every expansion becomes automatic.

How do you add polynomials vertically with missing terms?

Vertical addition puts each power in its own column, so nothing gets overlooked. It shines when you add three or more polynomials or when the terms are long. The catch is gaps. If one polynomial skips a power, insert a zero placeholder so the columns stay lined up.

Add (5x3+2x−8)+(x3−4x2+6x+3)(5x^3 + 2x - 8) + (x^3 - 4x^2 + 6x + 3). The first polynomial has no x2x^2 term, so write 0x20x^2.

5x3+0x2+2x−8+  x3−4x2+6x+36x3−4x2+8x−5\begin{array}{rrrr} 5x^3 & +0x^2 & +2x & -8 \\ +\;x^3 & -4x^2 & +6x & +3 \\ \hline 6x^3 & -4x^2 & +8x & -5 \end{array}

Read it column by column: 5+1=65 + 1 = 6, 0−4=−40 - 4 = -4, 2+6=82 + 6 = 8, and −8+3=−5-8 + 3 = -5. The sum is 6x3−4x2+8x−56x^3 - 4x^2 + 8x - 5.

Both layouts give the same answer because both rely on the same rule. Choose horizontal for short sums and vertical when you want a visible audit trail. In either case, rewrite each polynomial in standard form first, since a scrambled order is the most common reason a column ends up holding two different powers.

Which terms are like terms when there are two variables?

With two or more letters, check each letter’s exponent separately. In (3x2y+4xy2−5)+(x2y−6xy2+2xy)(3x^2y + 4xy^2 - 5) + (x^2y - 6xy^2 + 2xy), the terms 3x2y3x^2y and x2yx^2y match, and 4xy24xy^2 and −6xy2-6xy^2 match. The lone 2xy2xy and −5-5 have no partner.

(3x2y+x2y)+(4xy2−6xy2)+2xy−5=4x2y−2xy2+2xy−5(3x^2y + x^2y) + (4xy^2 - 6xy^2) + 2xy - 5 = 4x^2y - 2xy^2 + 2xy - 5

Notice that x2yx^2y and xy2xy^2 both have total degree 33 and use the same letters, but they are not like terms. Total degree is not the test. The exponent on each individual letter is.

Same letters, different exponents

x2yx^2y and xy2xy^2 look like twins but never combine. When (x+y)2(x + y)^2 is expanded, the two middle products are xyxy and yxyx, which are like terms and merge into 2xy2xy.

That expansion is one of the special products of binomials, and the 2xy2xy in it comes from exactly this kind of collecting.

How do you subtract polynomials without sign errors?

Wrong versus right subtraction of polynomials showing all three signs flipping in the second bracket
In (6x² − 5x + 3) − (2x² − 4x − 8), all three terms of the second bracket change sign, giving 4x² − x + 11.

Subtraction is addition of the opposite: A−B=A+(−1)⋅BA - B = A + (-1)\cdot B. The minus sign multiplies every term inside the second set of parentheses, so every sign in it flips. Students lose the most points by flipping only the first term.

Subtract (6x2−5x+3)−(2x2−4x−8)(6x^2 - 5x + 3) - (2x^2 - 4x - 8).

(6x2−5x+3)−(2x2−4x−8)=6x2−5x+3−2x2+4x+8(6x^2 - 5x + 3) - (2x^2 - 4x - 8) = 6x^2 - 5x + 3 - 2x^2 + 4x + 8

=(6x2−2x2)+(−5x+4x)+(3+8)=4x2−x+11= (6x^2 - 2x^2) + (-5x + 4x) + (3 + 8) = 4x^2 - x + 11

Look at the last term of the second polynomial. Subtracting −8-8 becomes +8+8, which is where most slips happen. Always write the flipped line out in full before you collect anything, even if it feels slow.

A number in front of a bracket distributes the same way. In 3(2x2−x+1)−2(x2−4x−5)3(2x^2 - x + 1) - 2(x^2 - 4x - 5), multiply first (that is the simplest case of multiplying polynomials), keeping the sign with the multiplier, then collect. The −2-2 times −5-5 gives +10+10.

This habit pays off later. In polynomial long division, every step subtracts a product from the current remainder, and a dropped sign there ruins the whole quotient.

Quick check

Subtract: (5x−3)−(2x−7)(5x - 3) - (2x - 7)

Can the degree of a sum drop below both polynomials?

Yes, and it is a good test of understanding. The degree of a sum is at most the larger of the two degrees. It is exactly that larger degree unless the leading terms cancel.

(3x3+2x−1)+(−3x3+x2+4)=x2+2x+3(3x^3 + 2x - 1) + (-3x^3 + x^2 + 4) = x^2 + 2x + 3

Both inputs have degree 33, but the sum has degree 22, because 3x33x^3 and −3x3-3x^3 cancel. If everything cancels, as in (x2+1)+(−x2−1)(x^2 + 1) + (-x^2 - 1), you get the zero polynomial, which has no defined degree. Knowing the degree of a polynomial lets you predict the shape of your answer before you compute it.

Sums and products behave differently

For a sum, the degree is at most max⁡(deg⁡A,deg⁡B)\max(\deg A, \deg B). For a product, the degrees add, so (x2+1)(x3+2)(x^2 + 1)(x^3 + 2) has degree 55.

The sum of two polynomials is always another polynomial, so polynomials are closed under addition, just as whole numbers are. That closure is why you can keep adding, subtracting and rearranging without ever leaving the family.

How can you check a polynomial sum in ten seconds?

Table showing a wrong polynomial sum passing the x = 1 check but failing at x = 2
Moving a coefficient keeps the total at 2 for x = 1, but x = 2 exposes the error (16 instead of 18).

A sum of polynomials is an identity: it must hold for every value of xx. So pick a value, plug it into the original problem, plug it into your answer, and compare. Use Example 1, (4x2−3x+7)+(2x2+x−9)=6x2−2x−2(4x^2 - 3x + 7) + (2x^2 + x - 9) = 6x^2 - 2x - 2.

At x=1x = 1, the first polynomial gives 4−3+7=84 - 3 + 7 = 8 and the second gives 2+1−9=−62 + 1 - 9 = -6. Their sum is 22. The answer gives 6−2−2=26 - 2 - 2 = 2, which matches. At x=2x = 2, the first gives 1717, the second gives 11, the sum is 1818, and the answer gives 24−4−2=1824 - 4 - 2 = 18. Both tests pass.

Why two values? One test can pass by luck. If an error moves a coefficient from one term to another, the sum of coefficients (which is what x=1x = 1 tests) stays the same. A second input such as x=2x = 2 or x=−1x = -1 catches that. A polynomial of degree nn is pinned down completely by n+1n + 1 values, so three agreeing tests prove a quadratic answer correct.

The same trick works for checking a factorization: plug in a number before and after. It is a quick way to verify results from factoring trinomials without redoing the work.

Try this: Add (2x2+5x−3)+(x2−2x+6)(2x^2 + 5x - 3) + (x^2 - 2x + 6), then test your answer at x=1x = 1 and x=2x = 2. The test values that must match are 99 and 2121.

Where does adding polynomials show up outside homework?

Geometry is the simplest case. A triangle with sides 2x+32x + 3, x2+1x^2 + 1 and 3x−23x - 2 has perimeter x2+5x+2x^2 + 5x + 2, found by adding the three sides and collecting like terms. If xx is a length, the answer tells you the perimeter for any xx at once.

Business models use subtraction. If revenue is R=−2x2+90xR = -2x^2 + 90x and cost is C=10x+400C = 10x + 400 for xx units, profit is R−C=−2x2+80x−400R - C = -2x^2 + 80x - 400. A single polynomial now describes profit at every production level, and the coefficients show how each cost component contributes.

Lines are polynomials of degree one, so adding them adds slopes and intercepts separately. Adding y=2x+1y = 2x + 1 and y=3x−4y = 3x - 4 gives y=5x−3y = 5x - 3. Converting from point-slope form to slope-intercept form uses the same collecting skill on a larger scale.

Software treats polynomials as lists of coefficients, and adding two polynomials is just adding two lists position by position, with zeros filling the gaps. That is the vertical method in code, and it is why the zero placeholder matters.

Quick check

Revenue is R=50x−x2R = 50x - x^2 and cost is C=8x+120C = 8x + 120. Write the profit R−CR - C as a single polynomial.

Practice problems

0 of 5 solved

  1. Add: (3x+5)+(2x−9)(3x + 5) + (2x - 9)

  2. Add: (x2−6x+4)+(3x2+6x−1)(x^2 - 6x + 4) + (3x^2 + 6x - 1)

  3. Subtract: (4x3−x+2)−(x3+2x2−x−5)(4x^3 - x + 2) - (x^3 + 2x^2 - x - 5)

  4. Add: (2a2b−3ab+5)+(a2b+7ab2−4ab)(2a^2b - 3ab + 5) + (a^2b + 7ab^2 - 4ab)

  5. Simplify: 3(2x2−x+1)−2(x2−4x−5)3(2x^2 - x + 1) - 2(x^2 - 4x - 5)

Common questions

What is the rule for adding polynomials?

Add the coefficients of like terms and keep the variable part unchanged. Like terms have identical letters with identical exponents. Terms with no partner are copied into the answer as they are.

Do you change signs when adding polynomials?

No. A plus sign between two polynomials lets you drop the parentheses and leave every sign as it is. Signs only flip when you subtract, because the minus sign applies to every term in the second polynomial.

Can you add polynomials with different degrees?

Yes. Only like terms combine, so the higher powers simply carry through. For example, (x3+2)+(x2+1)=x3+x2+3(x^3 + 2) + (x^2 + 1) = x^3 + x^2 + 3.

How do you add three or more polynomials?

Use the same method: collect every like term from all of them at once. The vertical layout is handy here because each column holds one power. Add each column and read off the answer.

Is the sum of two polynomials always a polynomial?

Yes. Adding polynomials only produces more terms with whole-number exponents and constant coefficients, so the result is another polynomial. It may even be the zero polynomial if everything cancels.

What is the difference between adding and multiplying polynomials?

Adding combines like terms and never raises the degree. Multiplying pairs every term with every term and adds the exponents, so the degree of a product is the sum of the degrees.

Up next