Lesson 26 of 46 · Algebra

Algebraic expressions, identities and factoring

Expand and factor expressions with three key identities, simplify fractions by cancelling factors, and use identities to evaluate without solving.

About 22 minutes

In this lesson

  • Expand products and recognise the three standard identities in either direction.
  • Factor out a common factor, a difference of squares and a trinomial, including one whose leading coefficient is not 1.
  • Simplify an algebraic fraction by cancelling common factors, never common terms.
  • Use an identity to find a value such as x2−y2x^2 - y^2 or a2+b2a^2 + b^2 without finding the variables.

The idea

Terms and factors

An expression is built from terms joined by ++ and −-; each term is a product of factors. In 3x2−5xy+23x^2 - 5xy + 2 there are three terms; the first term has the factors 33, xx and xx. The distinction decides almost everything in this lesson: you may combine like terms (same variables to the same powers), and you may cancel common factors of a numerator and a denominator, but you may never cancel a term.

Expanding

To multiply two brackets, multiply every term of the first by every term of the second and add the results:

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

Three products come up so often that it pays to know them by sight, in both directions:

Identity Expanded
(a+b)2(a + b)^2 a2+2ab+b2a^2 + 2ab + b^2
(a−b)2(a - b)^2 a2−2ab+b2a^2 - 2ab + b^2
(a+b)(a−b)(a + b)(a - b) a2−b2a^2 - b^2

The middle term 2ab2ab is the one people lose. (a+b)2(a + b)^2 is not a2+b2a^2 + b^2; a quick test with a=b=1a = b = 1 gives 44 on one side and 22 on the other.

Factoring is expanding in reverse

Work through these checks in order.

  1. Common factor. Take out the largest factor shared by every term: 6x3−9x2=3x2(2x−3)6x^3 - 9x^2 = 3x^2(2x - 3).
  2. Difference of squares. Two squares with a minus between them: x2−49=(x−7)(x+7)x^2 - 49 = (x - 7)(x + 7), and 4m2−25=(2m−5)(2m+5)4m^2 - 25 = (2m - 5)(2m + 5). A sum of squares such as x2+49x^2 + 49 does not factor this way.
  3. Trinomial x2+bx+cx^2 + bx + c. Find two numbers that multiply to cc and add to bb. For x2−x−12x^2 - x - 12, the numbers are −4-4 and 33, so it is (x−4)(x+3)(x - 4)(x + 3).
  4. Trinomial ax2+bx+cax^2 + bx + c with a≠1a \neq 1. Find two numbers that multiply to acac and add to bb, split the middle term with them, and factor in pairs (grouping).
  5. Perfect square trinomial. If the first and last terms are squares and the middle term is twice the product of their roots, it is a square: x2−10x+25=(x−5)2x^2 - 10x + 25 = (x - 5)^2.

After factoring, take out anything that still factors: 2x3−8x=2x(x2−4)=2x(x−2)(x+2)2x^3 - 8x = 2x(x^2 - 4) = 2x(x - 2)(x + 2). To check a factorisation, expand it back, or substitute a small number such as x=3x = 3 into both forms.

Simplifying algebraic fractions

Factor the numerator and the denominator completely, then cancel factors that appear in both. A whole bracket is one factor; a single term inside a bracket is not.

x2+5xx2−25=x(x+5)(x−5)(x+5)=xx−5,x≠±5\frac{x^2 + 5x}{x^2 - 25} = \frac{x(x + 5)}{(x - 5)(x + 5)} = \frac{x}{x - 5}, \quad x \neq \pm 5

The restriction matters. The original fraction is undefined at x=5x = 5 and at x=−5x = -5, and the simplified one still is at x=5x = 5; cancelling a factor never makes a forbidden value allowed. When a question adds a condition such as x≠5x \neq 5, this is the reason.

Identities let you skip the solving

Questions often give two facts and ask for a third expression. If the third expression is linked to the given ones by an identity, use it directly:

  • Given x+yx + y and x−yx - y, the product gives x2−y2x^2 - y^2.
  • Given a+ba + b and abab, rearrange (a+b)2=a2+2ab+b2(a + b)^2 = a^2 + 2ab + b^2 to get a2+b2=(a+b)2−2aba^2 + b^2 = (a + b)^2 - 2ab.
  • Given a−ba - b and abab, similarly a2+b2=(a−b)2+2aba^2 + b^2 = (a - b)^2 + 2ab.

When you see x2−y2x^2 - y^2, a2+b2a^2 + b^2 or (a+b)2(a + b)^2 in a question, the question is almost always built on one of these identities. Solving for the variables is possible in some cases but slower, and in others the variables are not whole numbers, so the identity is the only sensible route.

Comparisons built on identities

In a quantitative comparison, subtract one quantity from the other and simplify. Comparing (x+3)2(x + 3)^2 with x2+9x^2 + 9, the difference is 6x6x, so the answer depends only on the sign of xx. If the stem says xx is negative, Quantity B is greater; if xx could be anything, the relationship cannot be determined.

Worked examples

Example 1: Cancelling factors in a fraction

Simplify x2−9x2+x−6\frac{x^2 - 9}{x^2 + x - 6}, where x≠−3x \neq -3 and x≠2x \neq 2.

  1. Factor the numerator as a difference of squares: x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3).

  2. Factor the denominator: two numbers that multiply to −6-6 and add to 11 are 33 and −2-2, so x2+x−6=(x+3)(x−2)x^2 + x - 6 = (x + 3)(x - 2).

  3. Cancel the common factor (x+3)(x + 3): the result is x−3x−2\frac{x - 3}{x - 2}.

  4. Check with x=4x = 4: the original is 16−916+4−6=714=12\frac{16 - 9}{16 + 4 - 6} = \frac{7}{14} = \frac{1}{2}, and the simplified form is 12\frac{1}{2} too.

Answer

x−3x−2\frac{x - 3}{x - 2}. Cancelling the x2x^2 terms to get −9x−6\frac{-9}{x - 6} is the classic error: x2x^2 is a term, not a factor of the whole numerator and denominator.

Example 2: Evaluating x2−y2x^2 - y^2 from two sums

If x+y=9x + y = 9 and x−y=3x - y = 3, what is x2−y2x^2 - y^2?

  1. x2−y2=(x+y)(x−y)x^2 - y^2 = (x + y)(x - y), and both factors are given.

  2. Multiply: 9×3=279 \times 3 = 27.

  3. Check by solving: adding the equations gives 2x=122x = 12, so x=6x = 6 and y=3y = 3; then 36−9=2736 - 9 = 27.

Answer

x2−y2=27x^2 - y^2 = 27. Squaring the difference instead, 32=93^2 = 9, finds (x−y)2(x - y)^2, which is a different expression.

Example 3: Finding a2+b2a^2 + b^2 from a+ba + b and abab

If (a+b)2=64(a + b)^2 = 64 and ab=7ab = 7, what is a2+b2a^2 + b^2?

  1. Expand the given square: a2+2ab+b2=64a^2 + 2ab + b^2 = 64.

  2. Substitute ab=7ab = 7: a2+14+b2=64a^2 + 14 + b^2 = 64, so a2+b2=50a^2 + b^2 = 50.

  3. Check: a+b=8a + b = 8 and ab=7ab = 7 fit a=7a = 7, b=1b = 1, and 49+1=5049 + 1 = 50. The other possibility, a+b=−8a + b = -8, fits a=−7a = -7, b=−1b = -1, which also gives 50.

Answer

a2+b2=50a^2 + b^2 = 50. Subtracting abab once instead of 2ab2ab gives the tempting wrong answer 57.

Example 4: Factoring when the leading coefficient is not 1

Factor 3x2+7x−63x^2 + 7x - 6.

  1. Multiply the leading coefficient by the constant: ac=3×(−6)=−18ac = 3 \times (-6) = -18.

  2. Find two numbers that multiply to −18-18 and add to 77: they are 99 and −2-2.

  3. Split the middle term: 3x2+9x−2x−63x^2 + 9x - 2x - 6.

  4. Factor in pairs: 3x(x+3)−2(x+3)=(3x−2)(x+3)3x(x + 3) - 2(x + 3) = (3x - 2)(x + 3).

  5. Check with x=1x = 1: the original is 3+7−6=43 + 7 - 6 = 4, and the factored form is (1)(4)=4(1)(4) = 4.

Answer

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

Common traps

  • Losing the middle term

    (x+5)2(x + 5)^2 is x2+10x+25x^2 + 10x + 25, not x2+25x^2 + 25. Whenever you square a sum or a difference, write out the 2ab2ab term. A one-second check with small numbers (a=b=1a = b = 1) exposes the error.

  • Cancelling terms instead of factors

    In x+66\frac{x + 6}{6} the 6 on top is a term, so nothing cancels; the fraction is x6+1\frac{x}{6} + 1. You may cancel only something that multiplies the entire numerator and the entire denominator. Factor first, then cancel.

  • Mixing up x2−y2x^2 - y^2 and (x−y)2(x - y)^2

    x2−y2=(x−y)(x+y)x^2 - y^2 = (x - y)(x + y), while (x−y)2=x2−2xy+y2(x - y)^2 = x^2 - 2xy + y^2. They are equal only when y=0y = 0 or x=yx = y. Questions that give x−yx - y and ask for x2−y2x^2 - y^2 need x+yx + y as well.

  • Stopping too early

    2x3−8x=2x(x2−4)2x^3 - 8x = 2x(x^2 - 4) is not finished: x2−4x^2 - 4 is a difference of squares. If answer choices are fully factored, a half-factored expression will not match any of them.

Check yourself

Answer each question before you open its answer.

Question 1: Using the difference of squares

Algebra

If x−y=5x - y = 5 and x2−y2=45x^2 - y^2 = 45, what is the value of x+yx + y?

  1. A.22
  2. B.55
  3. C.77
  4. D.99
  5. E.4040
Show the answer

Answer: D. 99

Working

x2−y2=(x−y)(x+y)x^2 - y^2 = (x - y)(x + y), so 45=5(x+y)45 = 5(x + y) and x+y=9x + y = 9. Check: with x+y=9x + y = 9 and x−y=5x - y = 5, x=7x = 7 and y=2y = 2, and 49−4=4549 - 4 = 45.

Why the other options are wrong

  • A. This is the value of yy, found after solving; the question asks for x+yx + y.
  • B. This repeats the given x−yx - y.
  • C. This is the value of xx, not of x+yx + y.
  • E. Subtracts 55 from 4545 instead of dividing; x2−y2x^2 - y^2 is the product of x−yx - y and x+yx + y.

What carries over

When a question gives x−yx - y and x2−y2x^2 - y^2, divide to get x+yx + y.

Question 2: Where did the middle term go?

Quantitative Comparison

x<0x < 0

Quantity A Quantity B
(x+3)2(x + 3)^2 x2+9x^2 + 9
  1. A.Quantity A is greater.
  2. B.Quantity B is greater.
  3. C.The two quantities are equal.
  4. D.The relationship cannot be determined from the information given.
Show the answer

Answer: B. Quantity B is greater.

Working

Expand Quantity A: x2+6x+9x^2 + 6x + 9. Subtract Quantity B: the difference is 6x6x, which is negative for every x<0x < 0, so Quantity B is greater. Check with x=−1x = -1: Quantity A is 44 and Quantity B is 1010.

Why the other options are wrong

  • A. Quantity A exceeds Quantity B by 6x6x, which would be positive only for positive xx; the stem says xx is negative.
  • C. Treats (x+3)2(x + 3)^2 as x2+9x^2 + 9, dropping the middle term 6x6x.
  • D. The difference 6x6x does depend on xx, but only on its sign, and the condition x<0x < 0 fixes the sign.

What carries over

In a comparison, expand both quantities and look at their difference; a condition in the stem often settles its sign.

Question 3: Simplify fully

Algebra

For x≠3x \neq 3, which of the following is equal to 2x2−18x2−6x+9\frac{2x^2 - 18}{x^2 - 6x + 9}?

  1. A.22
  2. B.2(x+3)2(x + 3)
  3. C.2(x+3)x−3\frac{2(x + 3)}{x - 3}
  4. D.2(x−3)x+3\frac{2(x - 3)}{x + 3}
  5. E.x+3x−3\frac{x + 3}{x - 3}
Show the answer

Answer: C. 2(x+3)x−3\frac{2(x + 3)}{x - 3}

Working

Numerator: 2x2−18=2(x2−9)=2(x−3)(x+3)2x^2 - 18 = 2(x^2 - 9) = 2(x - 3)(x + 3). Denominator: x2−6x+9=(x−3)2x^2 - 6x + 9 = (x - 3)^2. Cancel one factor of x−3x - 3 to get 2(x+3)x−3\frac{2(x + 3)}{x - 3}. Check with x=5x = 5: the original is 50−1825−30+9=324=8\frac{50 - 18}{25 - 30 + 9} = \frac{32}{4} = 8, and 2×82=8\frac{2 \times 8}{2} = 8.

Why the other options are wrong

  • A. Cancels x2x^2 against 2x22x^2 as if they were factors and ignores the other terms; terms cannot be cancelled.
  • B. Treats the denominator as a single factor x−3x - 3; it is (x−3)2(x - 3)^2, so one factor x−3x - 3 stays underneath.
  • D. Factors the denominator as (x+3)2(x + 3)^2; the middle term −6x-6x means it is (x−3)2(x - 3)^2.
  • E. Loses the common factor 2 that was taken out of the numerator.

What carries over

Take out common factors first, then factor what is left, and cancel whole factors only.

Key points

  • Know (a+b)2(a + b)^2, (a−b)2(a - b)^2 and (a+b)(a−b)(a + b)(a - b) by sight, in both directions.

  • Factor in order: common factor, difference of squares, trinomial, then check for anything left.

  • Cancel factors, never terms.

  • When a question shows x2−y2x^2 - y^2 or a2+b2a^2 + b^2, look for the identity before solving.

All questions here are original and written for UniExamer; none comes from the test maker.

Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.

Bu konuyu çalış

Bu beceride çözümlü açıklamalarla yeni sorular. Çalışma için Single Exam Pass veya Plus gerekir.