← All lessons

Polynomial Operations and Factoring

Adding, multiplying, and factoring polynomials

In this lesson

  • Add and subtract polynomials without sign mistakes.
  • Multiply polynomials and use the special products \( (a + b)^2 \), \( (a - b)^2 \), and \( (a + b)(a - b) \).
  • Take out the greatest common factor and use the difference of squares and perfect square patterns.
  • Factor trinomials \( x^2 + bx + c \) and \( ax^2 + bx + c \).
  • Factor by grouping and factor completely.

1. Adding and subtracting

Rule

Like terms

Like terms have the same variable to the same power: \( 3x^2 \) and \( -x^2 \) are like terms, \( 3x^2 \) and \( 3x \) are not. To add or subtract like terms, add or subtract their coefficients.
A minus sign in front of brackets changes the sign of every term inside: \( -(x^2 - 4x - 7) = -x^2 + 4x + 7 \).

Example

Simplify \( (4x^2 + 3x - 5) - (2x^2 - 6x + 1) \).

Open the brackets: \( 4x^2 + 3x - 5 - 2x^2 + 6x - 1 \).

Combine like terms: \( 4x^2 - 2x^2 = 2x^2 \), \( 3x + 6x = 9x \), \( -5 - 1 = -6 \). The result is \( 2x^2 + 9x - 6 \).

Practice

Problem 1

Which of the following is equivalent to \( (3x^2 - 5x + 2) - (x^2 - 4x - 7) \)?
A) \( 2x^2 - 9x - 5 \)
B) \( 2x^2 - x + 9 \)
C) \( 2x^2 - x - 5 \)
D) \( 4x^2 - 9x - 5 \)

B) \( 2x^2 - x + 9 \).
The minus sign in front of the second brackets changes the sign of every term inside:
\( 3x^2 - 5x + 2 - x^2 + 4x + 7 \).
Combine like terms: \( 3x^2 - x^2 = 2x^2 \), \( -5x + 4x = -x \), \( 2 + 7 = 9 \).
The result is \( 2x^2 - x + 9 \). Choice B.

2. Multiplying

Rule

Multiplying polynomials

Multiply each term of the first polynomial by each term of the second, then combine like terms.

Rule

Special products

\( (a + b)^2 = a^2 + 2ab + b^2 \)
\( (a - b)^2 = a^2 - 2ab + b^2 \)
\( (a + b)(a - b) = a^2 - b^2 \)
Watch the middle term: \( (x + 3)^2 \) is \( x^2 + 6x + 9 \), not \( x^2 + 9 \).

Examples

\( (3x - 2)(x + 4) \) is \( 3x^2 + 12x - 2x - 8 \), that is, \( 3x^2 + 10x - 8 \).

\( (2x - 5)^2 = 4x^2 - 20x + 25 \): here \( a = 2x \), \( b = 5 \), and \( 2ab = 20x \).

Only one coefficient. To find the \( x \)-term of \( (x + 2)(x^2 - 3x + 5) \), you need only the products that give \( x \): \( 2 \cdot (-3x) = -6x \) and \( x \cdot 5 = 5x \). The \( x \)-term is \( -x \).

Practice

Problem 2

When \( (2x - 3)(x^2 + 4x - 1) \) is written in the form \( ax^3 + bx^2 + cx + d \), where \( a \), \( b \), \( c \), and \( d \) are constants, what is the value of \( b \)?

\( 5 \).
You do not need to expand the whole product. An \( x^2 \) term comes only from two products:
\( 2x \cdot 4x = 8x^2 \) and \( -3 \cdot x^2 = -3x^2 \).
So \( b = 8 - 3 = 5 \).

3. Common factor and patterns

Rule

Greatest common factor

The greatest common factor (GCF) is the largest number and the highest power of each variable that divide every term. For example, \( 12x^3 + 8x^2 = 4x^2(3x + 2) \).

Rule

Patterns

Difference of squares: \( a^2 - b^2 = (a - b)(a + b) \).
Perfect squares: \( a^2 + 2ab + b^2 = (a + b)^2 \) and \( a^2 - 2ab + b^2 = (a - b)^2 \).
A sum of squares, such as \( x^2 + 4 \), cannot be factored.

Examples

\( 9x^2 - 16 \) is \( (3x)^2 - 4^2 \), that is, \( (3x - 4)(3x + 4) \).

\( x^2 - 10x + 25 = (x - 5)^2 \), because \( 25 = 5^2 \) and \( 10x = 2 \cdot x \cdot 5 \).

Practice

Problem 3

Which of the following is equivalent to \( 6x^3 - 9x^2 \) and has the greatest common factor factored out?
A) \( 3x^2(2x - 3) \)
B) \( 3x(2x^2 - 3x) \)
C) \( 3x^2(2x - 9) \)
D) \( x^2(6x - 3) \)

A) \( 3x^2(2x - 3) \).
The greatest common factor of \( 6 \) and \( 9 \) is \( 3 \), and of \( x^3 \) and \( x^2 \) it is \( x^2 \). So the GCF is \( 3x^2 \):
\( 6x^3 - 9x^2 \) is \( 3x^2 \cdot 2x - 3x^2 \cdot 3 \), that is, \( 3x^2(2x - 3) \). Choice A.
Choice B is also equivalent, but \( 3x \) is not the greatest common factor: \( 2x^2 - 3x \) still has a factor \( x \).

4. Factoring trinomials

Rule

\( x^2 + bx + c \)

Find two numbers \( m \) and \( n \) with \( mn = c \) and \( m + n = b \). Then \( x^2 + bx + c = (x + m)(x + n) \).
If \( c > 0 \), both numbers have the sign of \( b \). If \( c < 0 \), the numbers have different signs.

Example

\( x^2 + 2x - 15 \): two numbers with product \( -15 \) and sum \( 2 \) are \( 5 \) and \( -3 \). So \( x^2 + 2x - 15 = (x + 5)(x - 3) \).

Rule

\( ax^2 + bx + c \), \( a \ne 1 \)

Find two numbers with product \( ac \) and sum \( b \). Split the middle term into these two parts, then factor by grouping. Check the answer by expanding.

Example

\( 3x^2 + 10x - 8 \): \( ac = 3 \cdot (-8) = -24 \). Two numbers with product \( -24 \) and sum \( 10 \) are \( 12 \) and \( -2 \).

\( 3x^2 + 12x - 2x - 8 \) becomes \( 3x(x + 4) - 2(x + 4) \), that is, \( (3x - 2)(x + 4) \).

This is the product from section 2, so the answer checks out.

Practice

Problem 4

Which of the following is equivalent to \( 2x^2 + 7x + 3 \)?
A) \( (2x + 3)(x + 1) \)
B) \( (2x + 1)(x + 3) \)
C) \( (2x - 1)(x - 3) \)
D) \( (2x + 3)(x + 3) \)

B) \( (2x + 1)(x + 3) \).
Here \( a = 2 \), so multiply: \( ac = 2 \cdot 3 = 6 \). Two numbers with product \( 6 \) and sum \( 7 \) are \( 6 \) and \( 1 \).
Split the middle term and group:
\( 2x^2 + 6x + x + 3 \) equals \( 2x(x + 3) + (x + 3) \).
So the expression is \( (2x + 1)(x + 3) \). Choice B.

5. Grouping and factoring completely

Rule

Grouping

With four terms, group them in pairs and take the common factor out of each pair. If the brackets match, take out the common bracket.

Rule

Factor completely

First take out the GCF, then use a pattern, then check whether any factor can be factored again.

Examples

\( x^3 - 3x^2 - 4x + 12 \) becomes \( x^2(x - 3) - 4(x - 3) \), that is, \( (x - 3)(x^2 - 4) \). The factor \( x^2 - 4 \) is a difference of squares, so the answer is \( (x - 3)(x - 2)(x + 2) \).

\( 2x^3 - 18x \) is \( 2x(x^2 - 9) \), that is, \( 2x(x - 3)(x + 3) \).

Practice

Problem 5

Which of the following is equivalent to \( x^3 + 2x^2 - 9x - 18 \)?
A) \( (x + 2)(x - 3)(x + 3) \)
B) \( (x + 2)(x^2 + 9) \)
C) \( (x - 2)(x - 3)(x + 3) \)
D) \( (x + 2)(x - 3)^2 \)

A) \( (x + 2)(x - 3)(x + 3) \).
Group the terms in pairs:
\( (x^3 + 2x^2) - (9x + 18) \) equals \( x^2(x + 2) - 9(x + 2) \).
Take out the common bracket: \( (x + 2)(x^2 - 9) \).
Factor the difference of squares: \( (x + 2)(x - 3)(x + 3) \). Choice A.

On Your Own

1

Which of the following is equivalent to \( x^2 - 49 \)?
A) \( (x - 7)^2 \)
B) \( (x - 7)(x + 7) \)
C) \( (x + 7)^2 \)
D) \( (x - 49)(x + 1) \)

B) \( (x - 7)(x + 7) \)
2

Which of the following is equivalent to \( x^2 - x - 20 \)?
A) \( (x + 5)(x - 4) \)
B) \( (x - 10)(x + 2) \)
C) \( (x - 20)(x + 1) \)
D) \( (x - 5)(x + 4) \)

D) \( (x - 5)(x + 4) \)
3

Which of the following is equivalent to \( 4x^2 - 25y^2 \)?
A) \( (2x - 5y)^2 \)
B) \( (2x + 5y)^2 \)
C) \( (2x - 5y)(2x + 5y) \)
D) \( (4x - 25y)(x + y) \)

C) \( (2x - 5y)(2x + 5y) \)
4

Which of the following is \( x^4 - 16 \) factored completely?
A) \( (x^2 + 4)(x + 2)(x - 2) \)
B) \( (x^2 + 4)(x^2 - 4) \)
C) \( (x + 2)^2(x - 2)^2 \)
D) \( (x^2 + 4)(x - 2)^2 \)

A) \( (x^2 + 4)(x + 2)(x - 2) \)
5

Which of the following is equivalent to \( (2x + 3)(x - 4) - (x - 1)^2 \)?
A) \( x^2 - 7x - 11 \)
B) \( 3x^2 - 7x - 11 \)
C) \( x^2 - 3x - 11 \)
D) \( x^2 - 3x - 13 \)

D) \( x^2 - 3x - 13 \)