Adding and subtracting polynomials

To add or to subtract polynomials is equivalent to adding or subtracting the similar monomials (of the polynomial) two by two .

It will be easier to understand with an example .

Example

If we want to add p(x)=x2x+1 and q(x)=3x2+x2 we put the similar monomials into two by two groups and we do the operation.

Let's see it in the following table:

  p(x) q(x) p(x)+q(x)
degree 0 +1 2 1
degree 1 x +x 0
degree 2 x2 3x2 4x2

Now we join the monomials that result from the sum, so the result will be p(x)+q(x)=4x21

In this example, the polynomials were ordered, but it would be possible that they were not. Also, they might not have been finished polynomials, which would mean that the box that corresponds to the coefficient one should have been filled in with a zero.

Then, in general, the steps that we would follow to add or to subtract polynomials are:

  • Put the polynomials in order, if they are not.
  • Add or subtract the similar monomials two by two.
  • Put into groups the resultant monomials to generate the adding or subtracting polynomial.

The degree of the adding or subtracting polynomial is the maximum of the degree of the polynomials involved in the operation. That is: degree(p(x)±q(x))=max{degree(p(x)),degree(q(x))}

Let's see some other examples:

Example

Calculate p(x)q(x), where p(x)=x4x3+x2 and q(x)=2+x2+5x

  1. We put them in order: p(x)=4x3+x2x q(x)=x2+5x2

  2. We use the table to subtract the monomials two by two:
  p(x) q(x) p(x)q(x)
degree 0 0 2 2
degree 1 x +5x 6x
degree 2 x2 x2 0
degree 3 4x3 0 4x3
  1. And, then, the final result:

p(x)q(x)=4x36x+2

And the rule is satisfied:

degree(4x36x+2)=max{degree(x4x3+x2),degree(2+x2+5x)}=3

Example

Calculate p(x)+q(x), where p(x)=x4x3+x22 and q(x)=4x2+6x10

  1. Both polynomials are already ordered.

  2. We use the table to add the monomials two to two:
  p(x) q(x) p(x)+q(x)
degree 0 2 10 12
degree 1 0 6x 6x
degree 2 x2 4x2 5x2
degree 3 x3 0 x3
degree 4 x4 0 x4
  1. And the final result is:

p(x)+q(x)=x4+x3+5x2+6x12

And the rule is, also, satisfied:

degree(x4+x3+5x2+6x12)= =max{degree(x4x3+x22),degree(4x2+6x10)}=4