Sub topic 2
Factoring Perfect Square Trinomials
This chapter assumes you can multiply binomials, work with negative integers, and recognize perfect squares such as 9, 25, and 49.
Perfect Square Trinomials
A perfect square trinomial is a three-term polynomial that comes from squaring a binomial. The two identities are:
- (a + b)^2 = a^2 + 2ab + b^2
- (a - b)^2 = a^2 - 2ab + b^2
To recognize one, check that the first and last terms are perfect squares, and that the middle term equals twice the product of the square roots of those terms.
For example, x^2 + 6x + 9 has first term x^2, last term 9 = 3^2, and middle term 2(x)(3) = 6x. So x^2 + 6x + 9 = (x + 3)^2.
for x in [-5, 0, 2, 7]:
assert x**2 + 6*x + 9 == (x + 3)**2
print("factored form matches")Factoring by Grouping
Split four terms into two pairs, factor each pair, and then factor out the shared binomial. For example, x^3 + 2x^2 + 3x + 6 = x^2(x + 2) + 3(x + 2) = (x^2 + 3)(x + 2).
Factoring General Trinomials
For x^2 + bx + c, find two integers whose product is c and whose sum is b. For x^2 + 5x + 6, the integers 2 and 3 work, so the result is (x + 2)(x + 3). For ax^2 + bx + c with a != 1, find integers whose product is ac and whose sum is b, then split the middle term and group.
Sum and Difference of Cubes
a^3 + b^3 = (a + b)(a^2 - ab + b^2), and a^3 - b^3 = (a - b)(a^2 + ab + b^2). For example, x^3 - 8 = (x - 2)(x^2 + 2x + 4).
Standard Form of a Quadratic Equation
Write every quadratic as ax^2 + bx + c = 0 with a != 0. Move all terms to one side before factoring. For example, x^2 = 5x - 6 becomes x^2 - 5x + 6 = 0.
The Zero Product Property
If p * q = 0, then p = 0 or q = 0. This lets you set each factor equal to zero separately.
Solving Quadratics by Factoring
Factor the quadratic, set each factor to zero, and solve the resulting linear equations. For x^2 - 5x + 6 = 0, (x - 2)(x - 3) = 0, so x = 2 or x = 3.
Exercise
Factor x^2 + 14x + 49 and solve x^2 + 14x + 49 = 0.
Show answer
x^2 + 14x + 49 = (x + 7)^2, so (x + 7)^2 = 0 and x = -7 (a repeated root).