Sub topic 1
Expressions, Terms, and Like Terms
Prerequisites
This chapter assumes you can compute with integers and fractions, apply exponent rules for positive integer powers, solve linear equations in one variable, and recognize perfect squares.
Expressions, Terms, and Like Terms
An expression combines numbers and variables with operations, such as 3x^2 + 5x - 7. Its terms are the pieces separated by plus or minus signs: 3x^2, 5x, and -7. Terms are like terms when their variable parts match exactly. So 4x and -x are like terms, but 4x and 4x^2 are not.
Expanding with the Distributive Property and FOIL
The distributive property states that a(b + c) = ab + ac. For two binomials, FOIL multiplies the First, Outer, Inner, and Last terms:
(x + 3)(x + 5) = x^2 + 5x + 3x + 15 = x^2 + 8x + 15
Combine like terms after you expand.
The Three Key Identities
For any numbers a and b:
- (a + b)^2 = a^2 + 2ab + b^2
- (a - b)^2 = a^2 - 2ab + b^2
- (a + b)(a - b) = a^2 - b^2
for a, b in [(3, 4), (-2, 5), (7, 7)]:
assert (a + b) ** 2 == a ** 2 + 2 * a * b + b ** 2
assert (a - b) ** 2 == a ** 2 - 2 * a * b + b ** 2
assert (a + b) * (a - b) == a ** 2 - b ** 2
print("identities hold")Using Identities for Fast Arithmetic
Rewrite a number as a sum or difference near a round number, then apply an identity:
- 99 × 101 = (100 − 1)(100 + 1) = 100^2 − 1^2 = 9999
- 103^2 = (100 + 3)^2 = 10000 + 600 + 9 = 10609
assert 99 * 101 == 100 ** 2 - 1 ** 2 == 9999
assert 103 ** 2 == 100 ** 2 + 2 * 100 * 3 + 3 ** 2 == 10609
print("shortcuts hold")Factoring Out the Greatest Common Factor
Factoring reverses expansion. The greatest common factor (GCF) is the largest factor that divides every term. For example, the GCF of 6x^3 and 9x^2 is 3x^2, so 6x^3 + 9x^2 = 3x^2(2x + 3).
Factoring a Difference of Squares
Because (a + b)(a − b) = a^2 − b^2, any difference of two perfect squares factors as a^2 − b^2 = (a − b)(a + b). For example, x^2 − 49 = (x − 7)(x + 7).
Exercise
Factor 4x^2 − 25.
Show answer
(2x − 5)(2x + 5), because 4x^2 − 25 = (2x)^2 − 5^2.