Precalculus · Textbook draft · 10 minute reading

Algebraic Expressions and Factoring

Use distributivity, structure, and restrictions to rewrite expressions.

Before you begin

  • Exponent laws and arithmetic with fractions.

Learning objectives

  • Expand and factor polynomial expressions.
  • Simplify rational expressions on their original domains.
  • Verify algebraic identities by structural reasoning.

An expression can have several useful forms. Expanding (x−3)(x+2)(x-3)(x+2) makes its coefficients visible. Keeping it factored makes its zeros visible. Rewriting changes how we inspect the expression, and an identity tells us that the rewritten forms agree at every input for which the operations are defined.

Distributivity and like terms

The distributive law a(b+c)=ab+aca(b+c)=ab+ac is the basis of polynomial arithmetic. Applying it twice gives

(x−3)(x+2)=x2+2x−3x−6=x2−x−6.(x-3)(x+2)=x^2+2x-3x-6=x^2-x-6.

The middle terms combine because they are multiples of the same quantity xx. Terms xx and x2x^2 cannot be combined that way. Their values vary differently with the input.

Repeated distributivity gives useful identities:

(a+b)2=a2+2ab+b2,a2−b2=(a−b)(a+b).(a+b)^2=a^2+2ab+b^2,\qquad a^2-b^2=(a-b)(a+b).

The cross term 2ab2ab in the first identity accounts for both products abab and baba. Omitting it would make (1+1)2(1+1)^2 equal 2. A numerical substitution like this can disprove an incorrect identity, although agreement at a few inputs cannot prove a proposed identity.

Factoring reverses expansion

Begin by looking for a common factor. In 6x3−9x26x^3-9x^2, both terms contain 3x23x^2, giving 3x2(2x−3)3x^2(2x-3). To factor x2+5x+6x^2+5x+6, seek constants whose product is 6 and sum is 5. They are 2 and 3, so the factors are (x+2)(x+3)(x+2)(x+3).

For 2x2+7x+32x^2+7x+3, the leading coefficient must also be accounted for. The product (2x+1)(x+3)(2x+1)(x+3) expands to 2x2+7x+32x^2+7x+3. Grouping supplies another route: split 7x7x into 6x+x6x+x, obtaining 2x(x+3)+(x+3)2x(x+3)+(x+3), then factor the common binomial.

Recognizing a structure is more useful than guessing indefinitely. The difference 8x3−278x^3-27 has the form a3−b3a^3-b^3:

a3−b3=(a−b)(a2+ab+b2),a^3-b^3=(a-b)(a^2+ab+b^2),

which gives (2x−3)(4x2+6x+9)(2x-3)(4x^2+6x+9). Expanding the product verifies the identity and explains the cancellation of its intermediate terms.

Factoring over a specified number system also matters. The polynomial x2+1x^2+1 does not factor into real linear factors. Later, complex numbers will provide a larger number system in which it does.

Rational expressions retain excluded inputs

A rational expression is a quotient of polynomials. Its denominator must be nonzero. For

x2−9x2−x−6=(x−3)(x+3)(x−3)(x+2)=x+3x+2,\frac{x^2-9}{x^2-x-6} =\frac{(x-3)(x+3)}{(x-3)(x+2)} =\frac{x+3}{x+2},

the original expression requires x≠3,−2x\ne3,-2. Cancellation is multiplication by the reciprocal of a nonzero common factor. It therefore applies only away from x=3x=3. The final formula without that restriction would define a different function at 3.

Factors, rather than individual terms, cancel. In (x+3)/(x+2)(x+3)/(x+2), deleting both xx terms would give 3/23/2, which disagrees with the original expression at x=1x=1. To add rational expressions, first produce a common denominator:

1x+1x+1=2x+1x(x+1),x≠0,−1.\frac1x+\frac1{x+1} =\frac{2x+1}{x(x+1)},\qquad x\ne0,-1.

The numerator counts contributions from both fractions; denominators do not simply add.

Structure makes differences manageable

For a square function, the expression (a+h)2−a2(a+h)^2-a^2 becomes 2ah+h2=h(2a+h)2ah+h^2=h(2a+h). When h≠0h\ne0, dividing by hh leaves 2a+h2a+h. This small calculation will return in the last chapter as an average-rate calculation. The algebra identifies a common factor while preserving the exclusion at h=0h=0.

For radicals, the related identity (u−v)(u+v)=u−v(\sqrt u-\sqrt v)(\sqrt u+\sqrt v)=u-v converts a difference of roots into a difference of their arguments. Require u,v≥0u,v\ge0, and check that any factor used as a denominator is nonzero.

Exercises

  1. Expand (2x−3)2(2x-3)^2.
  2. Factor 3x2−123x^2-12 completely over the reals.
  3. Factor x2−x−12x^2-x-12 and verify by expansion.
  4. Simplify (x2−4)/(x2+x−6)(x^2-4)/(x^2+x-6) with original restrictions.
  5. Combine 2/x−1/(x+2)2/x-1/(x+2).
  6. Simplify [(a+h)3−a3]/h[(a+h)^3-a^3]/h for h≠0h\ne0.
Worked solutions
  1. 4x2−12x+94x^2-12x+9; both cross products contribute −6x-6x.
  2. 3(x−2)(x+2)3(x-2)(x+2).
  3. (x−4)(x+3)=x2−x−12(x-4)(x+3)=x^2-x-12.
  4. Factoring gives (x−2)(x+2)/[(x−2)(x+3)](x-2)(x+2)/[(x-2)(x+3)], so the result is (x+2)/(x+3)(x+2)/(x+3) with x≠2,−3x\ne2,-3.
  5. The common denominator gives (x+4)/[x(x+2)](x+4)/[x(x+2)], with x≠0,−2x\ne0,-2.
  6. Expand the cube to obtain 3a2h+3ah2+h33a^2h+3ah^2+h^3 in the numerator. Division gives 3a2+3ah+h23a^2+3ah+h^2.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.