This browser is too old to run Achievable.

Update it, or open this page in a current version of Chrome, Safari, Firefox or Edge. On an iPhone or iPad, update iOS: every browser there runs on the version of Safari that comes with it.

Achievable logoAchievable logo
ASVAB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Resources
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Word Knowledge
2. Mathematics Knowledge
2.1 Foundational math
2.2 Pre-algebra
2.3 Algebra I
2.4 Geometry basics
2.5 Algebra II
2.5.1 FOIL and multiplying polynomials
2.5.2 Systems of equations
2.5.3 Functions, complex numbers, and consecutive integers
2.5.4 Mean, median, mode, range, and factorials
2.6 Advanced geometry
2.7 Math strategies
3. Paragraph Comprehension
4. Arithmetic Reasoning
5. General Science
6. Mechanical Comprehension
7. Electronics Information
8. Shop Information
9. Auto Information
10. Assembling Objects
Wrapping up
Achievable logoAchievable logo
2.5.1 FOIL and multiplying polynomials
Achievable ASVAB
2. Mathematics Knowledge
2.5. Algebra II

FOIL and multiplying polynomials

7 min read
Font
Discuss
Share
Feedback

FOIL-ing or each by each

When you multiply polynomials, you can use the FOIL method or the each-by-each method. They’re the same idea: multiply every term in one polynomial by every term in the other polynomial, then combine like terms.

FOIL is a memory aid specifically for multiplying two binomials.

F - First (multiply the first terms within each parentheses)
O - Outside (multiply the two terms on the farthest edge of the parentheses)
I - Inside (multiply the two terms closest to the inside)
L - Last (multiply the last terms within each parentheses)

The FOIL method on (a + b)(c + d): arrows join the First terms a and c, the Outside terms a and d, the Inside terms b and c, and the Last terms b and d, giving ac + ad + bc + bd.
FOIL method graphic
Achievable

Example 1:

Distribute (b+2)(b+3).

Use FOIL:

(b+2)(b+3)​=b2+3b+2b+6=b2+5b+6​

Watch out for squaring a binomial: (x+3)2 means (x+3)(x+3)=x2+6x+9, not x2+9 - FOIL still gives you a middle term.

Example 2:

Multiply (y+7)(y2+2y+3).

Here you’re multiplying a binomial by a trinomial, so use the same each-by-each idea: multiply each term in (y+7) by each term in (y2+2y+3), then combine like terms.

(y+7)(y2+2y+3)​=y(y2+2y+3)+7(y2+2y+3)=y3+2y2+3y+7y2+14y+21=y3+9y2+17y+21​

Steps taken:

  • Multiply each term in one expression by each term in the other
  • Combine like terms

Knowledge check: Expand

(x+4)(x+5)

(spoiler)

x2+9x+20

Greatest common factor

Definitions
Greatest common factor
The largest shared factor between a set of terms
Factor
A value that divides evenly into another value.

We can use factors to simplify an expression with variables or multiple terms.

Let’s say we have the polynomial 12x3+8x2 and we want to find the common factors between the two terms. We’ll want to look at values that go into both the terms 12 and 8 and both of the variables x3 and x2. If we’re looking specifically for the greatest common factor, we’ll want to find the largest values that go into each term.

  • The factors of 12 are 1,2,3,4,6, and 12
  • The factors of 8 are 1,2,4, and 8
  • They share factors of 1,2, and 4, with 4 being the greatest common factor.

Now look at the variables: take the variable to the smallest exponent that appears across the terms. Both 12x3 and 8x2 include powers of x, and the smallest exponent is 2, so x2 is the shared factor.

So the greatest common factor between 12x3 and 8x2 is 4x2.

We can now rewrite the expression by factoring out 4x2 (divide each term by 4x2):

12x3+8x2=4x2(3x+2)

Steps taken:

  • Find the GCF of the coefficients
  • Find the GCF of the variables
  • Multiply to get the overall GCF
  • Factor it out of each term

Factoring

Definitions
Factoring
Rewriting an expression as a product of simpler factors. It is the reverse of expanding (FOIL-ing).

Factoring is often called reverse FOIL-ing: instead of starting with two parentheses and multiplying them into one expression, we start with the expanded expression and work backward to find the two parentheses that created it.

For example, FOIL-ing (x+3)(x−5) gives:

(x+3)(x−5)​=x2−5x+3x−15=x2−2x−15​

Factoring starts with x2−2x−15 and asks: “what two parentheses could multiply together to create this expression?”

How do we factor?

We will work with expressions in the form:

ax2+bx+c

For:

x2−2x−15

The values are:

  • a=1
  • b=−2
  • c=−15

When a=1, as here, we look for two numbers that:

  • Multiply to give c
  • Add to give b

So our factors will look like:

(x±_)(x±_)

At first, we do not know which numbers belong in the parentheses, so we list the factor pairs of −15:

(−1,15)

(1,−15)

(−3,5)

(3,−5)

Since c is negative, one number must be positive and one must be negative.

Now check which pair adds to −2:

−1+151+(−15)−3+53+(−5)​=14=−14=2=−2​

The pair that works is:

3 and −5

So the correct factors are:

(x+3)(x−5)

Check your answer:

FOIL-ing (x+3)(x−5) gets you back to x2−2x−15 - the same expansion shown at the top of this section. If the expression you get after FOIL-ing matches the original problem, the factoring is correct.

Pitfall: a factor pair has to satisfy both conditions - it must multiply to c and add to b. Check the sign before you commit to a pair: if c is positive, both numbers share the sign of b; if c is negative, the numbers have opposite signs.

Example: leading coefficient other than 1

Factor 2x2+7x+3.

Here a=2, and 2x2 splits only as 2x⋅x, so the factors take the form (2x±_)(x±_). (When a has more than one factor pair, test each split: 6x2 could start (6x±_)(x±_) or (3x±_)(2x±_).) Since c=3 is positive and b=7 is positive, both numbers are positive. Testing the factor pair of 3 (just 1 and 3), the outer and inner products need to add to 7x:

(2x+1)(x+3)=2x2+6x+x+3=2x2+7x+3

Answer: (2x+1)(x+3)

Example: difference of squares

Factor x2−9.

There’s no middle term, which means b=0: the two numbers must add to 0, so they’re opposites that multiply to −9 - that’s 3 and −3.

Answer: (x+3)(x−3)

Solving by factoring

If we can factor a quadratic equation, we can solve for x by setting each factor equal to zero.

This works because when two expressions multiply to equal 0, at least one of them must equal 0.

Example:

x2−2x−15(x+3)(x−5)​=0=0​

Now set each factor equal to 0:

x+3x​=0=−3​x−5x​=0=5​

So the solutions are:

x=−3 and x=5

Each solution has the opposite sign of the number in its factor: x+3 gives −3, and x−5 gives 5.

Steps taken:

  • Factor the quadratic expression
  • Set each factor equal to zero
  • Solve each resulting equation
  • State the solutions

Knowledge check: Solve

x2+5x+6=0

(spoiler)

x=−2 and x=−3

Multiplying polynomials (FOIL & each-by-each)

  • FOIL: multiply First, Outside, Inside, Last terms of two binomials, then combine like terms
  • For binomial × trinomial (or larger), use each-by-each: multiply every term in one expression by every term in the other
  • Watch for squaring binomials: (x+3)2=(x+3)(x+3)=x2+6x+9, not just x2+9

Greatest common factor (GCF)

  • GCF = largest factor shared by all terms (coefficients and variables)
  • Find GCF of coefficients, then take the variable raised to the smallest exponent present
  • Factor out the GCF by dividing each term by it: e.g., 12x3+8x2=4x2(3x+2)

Factoring quadratics (ax2+bx+c)

  • Factoring is “reverse FOIL”: find two binomials that multiply to give the original expression
  • When a=1: find two numbers that multiply to c and add to b; use these to build (x±_)(x±_)
  • Sign rule: if c is positive, both numbers share sign of b; if c is negative, numbers have opposite signs
  • Check answer by FOIL-ing the factors back to confirm it matches the original expression
  • If a=1, factors take form (px±_)(qx±_) with pq=a — test factor pairs of a and of c until outer+inner terms sum to bx
  • Difference of squares (no middle term, b=0): numbers are opposites, e.g., x2−9=(x+3)(x−3)

Solving quadratics by factoring

  • Factor the quadratic expression, set equal to 0
  • Set each factor equal to zero individually (zero product property) and solve for x
  • Steps: factor → set each factor = 0 → solve each → state both solutions

Sign up for free to take 15 quiz questions on this topic

Previous
Next  | 2.5.2 Systems of equations
All rights reserved ©2016 - 2026 Achievable, Inc.

FOIL and multiplying polynomials

FOIL-ing or each by each

When you multiply polynomials, you can use the FOIL method or the each-by-each method. They’re the same idea: multiply every term in one polynomial by every term in the other polynomial, then combine like terms.

FOIL is a memory aid specifically for multiplying two binomials.

F - First (multiply the first terms within each parentheses)
O - Outside (multiply the two terms on the farthest edge of the parentheses)
I - Inside (multiply the two terms closest to the inside)
L - Last (multiply the last terms within each parentheses)

Example 1:

Distribute (b+2)(b+3).

Use FOIL:

(b+2)(b+3)​=b2+3b+2b+6=b2+5b+6​

Watch out for squaring a binomial: (x+3)2 means (x+3)(x+3)=x2+6x+9, not x2+9 - FOIL still gives you a middle term.

Example 2:

Multiply (y+7)(y2+2y+3).

Here you’re multiplying a binomial by a trinomial, so use the same each-by-each idea: multiply each term in (y+7) by each term in (y2+2y+3), then combine like terms.

(y+7)(y2+2y+3)​=y(y2+2y+3)+7(y2+2y+3)=y3+2y2+3y+7y2+14y+21=y3+9y2+17y+21​

Steps taken:

  • Multiply each term in one expression by each term in the other
  • Combine like terms

Knowledge check: Expand

(x+4)(x+5)

(spoiler)

x2+9x+20

Greatest common factor

Definitions
Greatest common factor
The largest shared factor between a set of terms
Factor
A value that divides evenly into another value.

We can use factors to simplify an expression with variables or multiple terms.

Let’s say we have the polynomial 12x3+8x2 and we want to find the common factors between the two terms. We’ll want to look at values that go into both the terms 12 and 8 and both of the variables x3 and x2. If we’re looking specifically for the greatest common factor, we’ll want to find the largest values that go into each term.

  • The factors of 12 are 1,2,3,4,6, and 12
  • The factors of 8 are 1,2,4, and 8
  • They share factors of 1,2, and 4, with 4 being the greatest common factor.

Now look at the variables: take the variable to the smallest exponent that appears across the terms. Both 12x3 and 8x2 include powers of x, and the smallest exponent is 2, so x2 is the shared factor.

So the greatest common factor between 12x3 and 8x2 is 4x2.

We can now rewrite the expression by factoring out 4x2 (divide each term by 4x2):

12x3+8x2=4x2(3x+2)

Steps taken:

  • Find the GCF of the coefficients
  • Find the GCF of the variables
  • Multiply to get the overall GCF
  • Factor it out of each term

Factoring

Definitions
Factoring
Rewriting an expression as a product of simpler factors. It is the reverse of expanding (FOIL-ing).

Factoring is often called reverse FOIL-ing: instead of starting with two parentheses and multiplying them into one expression, we start with the expanded expression and work backward to find the two parentheses that created it.

For example, FOIL-ing (x+3)(x−5) gives:

(x+3)(x−5)​=x2−5x+3x−15=x2−2x−15​

Factoring starts with x2−2x−15 and asks: “what two parentheses could multiply together to create this expression?”

How do we factor?

We will work with expressions in the form:

ax2+bx+c

For:

x2−2x−15

The values are:

  • a=1
  • b=−2
  • c=−15

When a=1, as here, we look for two numbers that:

  • Multiply to give c
  • Add to give b

So our factors will look like:

(x±_)(x±_)

At first, we do not know which numbers belong in the parentheses, so we list the factor pairs of −15:

(−1,15)

(1,−15)

(−3,5)

(3,−5)

Since c is negative, one number must be positive and one must be negative.

Now check which pair adds to −2:

−1+151+(−15)−3+53+(−5)​=14=−14=2=−2​

The pair that works is:

3 and −5

So the correct factors are:

(x+3)(x−5)

Check your answer:

FOIL-ing (x+3)(x−5) gets you back to x2−2x−15 - the same expansion shown at the top of this section. If the expression you get after FOIL-ing matches the original problem, the factoring is correct.

Pitfall: a factor pair has to satisfy both conditions - it must multiply to c and add to b. Check the sign before you commit to a pair: if c is positive, both numbers share the sign of b; if c is negative, the numbers have opposite signs.

Example: leading coefficient other than 1

Factor 2x2+7x+3.

Here a=2, and 2x2 splits only as 2x⋅x, so the factors take the form (2x±_)(x±_). (When a has more than one factor pair, test each split: 6x2 could start (6x±_)(x±_) or (3x±_)(2x±_).) Since c=3 is positive and b=7 is positive, both numbers are positive. Testing the factor pair of 3 (just 1 and 3), the outer and inner products need to add to 7x:

(2x+1)(x+3)=2x2+6x+x+3=2x2+7x+3

Answer: (2x+1)(x+3)

Example: difference of squares

Factor x2−9.

There’s no middle term, which means b=0: the two numbers must add to 0, so they’re opposites that multiply to −9 - that’s 3 and −3.

Answer: (x+3)(x−3)

Solving by factoring

If we can factor a quadratic equation, we can solve for x by setting each factor equal to zero.

This works because when two expressions multiply to equal 0, at least one of them must equal 0.

Example:

x2−2x−15(x+3)(x−5)​=0=0​

Now set each factor equal to 0:

x+3x​=0=−3​x−5x​=0=5​

So the solutions are:

x=−3 and x=5

Each solution has the opposite sign of the number in its factor: x+3 gives −3, and x−5 gives 5.

Steps taken:

  • Factor the quadratic expression
  • Set each factor equal to zero
  • Solve each resulting equation
  • State the solutions

Knowledge check: Solve

x2+5x+6=0

(spoiler)

x=−2 and x=−3

Key points

Multiplying polynomials (FOIL & each-by-each)

  • FOIL: multiply First, Outside, Inside, Last terms of two binomials, then combine like terms
  • For binomial × trinomial (or larger), use each-by-each: multiply every term in one expression by every term in the other
  • Watch for squaring binomials: (x+3)2=(x+3)(x+3)=x2+6x+9, not just x2+9

Greatest common factor (GCF)

  • GCF = largest factor shared by all terms (coefficients and variables)
  • Find GCF of coefficients, then take the variable raised to the smallest exponent present
  • Factor out the GCF by dividing each term by it: e.g., 12x3+8x2=4x2(3x+2)

Factoring quadratics (ax2+bx+c)

  • Factoring is “reverse FOIL”: find two binomials that multiply to give the original expression
  • When a=1: find two numbers that multiply to c and add to b; use these to build (x±_)(x±_)
  • Sign rule: if c is positive, both numbers share sign of b; if c is negative, numbers have opposite signs
  • Check answer by FOIL-ing the factors back to confirm it matches the original expression
  • If a=1, factors take form (px±_)(qx±_) with pq=a — test factor pairs of a and of c until outer+inner terms sum to bx
  • Difference of squares (no middle term, b=0): numbers are opposites, e.g., x2−9=(x+3)(x−3)

Solving quadratics by factoring

  • Factor the quadratic expression, set equal to 0
  • Set each factor equal to zero individually (zero product property) and solve for x
  • Steps: factor → set each factor = 0 → solve each → state both solutions

More from Algebra II

  • Systems of equations
  • Functions, complex numbers, and consecutive integers
  • Mean, median, mode, range, and factorials