Sub topic 10
Even and Odd Functions and Symmetry
This chapter assumes you can evaluate f(x), plot points on the coordinate plane, and work with absolute values, exponents and basic quadratics. It builds on graph reading. It also prepares you for functional equations later in the tutorial.
Why symmetry matters in CAT problems
Many CAT function questions look hard until you notice that the graph or the formula has a symmetry. Symmetry lets you do three things:
- Halve your work: sketch only the right half of a graph and mirror it.
- Predict values: if f(3) is known, f(-3) may follow with no calculation.
- Simplify sums and equations: terms often cancel in pairs.
Two symmetries cover most exam questions: mirror symmetry about the y-axis (even functions) and half-turn symmetry about the origin (odd functions).
Definitions
A function f is even if f(-x) = f(x) for every x in its domain. Its graph is unchanged when reflected in the y-axis.
A function f is odd if f(-x) = -f(x) for every x in its domain. Its graph is unchanged when rotated 180° about the origin.
Both definitions contain a condition on the domain: if x is in the domain, then -x must be too. A function defined only for x ≥ 0 can't be even or odd, because -x falls outside the domain.
| Property | Algebraic test | Graph test | Standard examples | Column | Column |
|---|---|---|---|---|---|
| Even | f(-x) = f(x) | Mirror image across the y-axis | x², x⁴, \ | x\ | , constant c |
| Odd | f(-x) = -f(x) | Unchanged after a 180° turn about the origin | x, x³, 1/x | ||
| Neither | Neither equation holds | No such symmetry | x² + x, 2ˣ, √x |
Testing a function step by step
Follow the same routine every time:
- Check the domain is symmetric about 0.
- Replace every x with (-x). Use brackets so signs are not lost.
- Simplify and compare with f(x) and with -f(x).
Example 1. f(x) = x⁴ - 3x² + 7. Then f(-x) = (-x)⁴ - 3(-x)² + 7 = x⁴ - 3x² + 7 = f(x). The function is even. Every power of x is even (the constant 7 counts as x⁰).
Example 2. f(x) = x³ + 5x. Then f(-x) = -x³ - 5x = -(x³ + 5x) = -f(x). The function is odd. Every power is odd.
Example 3. f(x) = x² + x. Then f(-x) = x² - x. This is neither f(x) nor -f(x), so the function is neither.
A polynomial is even when it has only even powers, and odd when it has only odd powers. A mix of both gives neither. The constant term counts as an even power, so x³ + 1 is neither.
def classify(f, samples):
even = all(abs(f(-x) - f(x)) < 1e-9 for x in samples)
odd = all(abs(f(-x) + f(x)) < 1e-9 for x in samples)
if even and odd:
return "both (zero function)"
if even:
return "even"
if odd:
return "odd"
return "neither"
samples = [0.5, 1, 2, 3.7, 10]
print(classify(lambda x: x**4 - 3 * x**2 + 7, samples)) # even
print(classify(lambda x: x**3 + 5 * x, samples)) # odd
print(classify(lambda x: x**2 + x, samples)) # neither
print(classify(lambda x: abs(x) * x, samples)) # oddSampling can only disprove symmetry. A pass on a few points suggests, but does not prove, that the function is even or odd. The algebraic test is the proof.
Rules for combining functions
Parity follows rules similar to the signs of numbers.
| Combination | Result |
|---|---|
| even + even | even |
| odd + odd | odd |
| even × even | even |
| odd × odd | even |
| even × odd | odd |
| even ∘ anything even or odd | even (if inner is even or odd) |
| odd ∘ odd | odd |
| even + odd (neither zero) | neither |
Examples:
- x² · x³ = x⁵ is even × odd = odd.
- x · x = x² is odd × odd = even.
- |x| · x is even × odd = odd. This is the function in the code above.
- f(g(x)) with f even and g odd: f(g(-x)) = f(-g(x)) = f(g(x)), so the composition is even.
The only function that is both even and odd is f(x) = 0, since f(x) = f(-x) = -f(x) forces f(x) = 0.
Every function splits into even and odd parts
For any f with a symmetric domain:
- Even part: (f(x) + f(-x)) / 2
- Odd part: (f(x) - f(-x)) / 2
Their sum is f(x). For f(x) = 2ˣ, the even part is (2ˣ + 2⁻ˣ)/2 and the odd part is (2ˣ - 2⁻ˣ)/2. This decomposition is useful in functional equations where f(x) and f(-x) both appear.
Consequences you can use immediately
Odd functions pass through the origin when defined at 0. From f(0) = -f(0), we get f(0) = 0. If a question says f is odd and defined at 0, then f(0) = 0.
Integer-free sums cancel. For an odd f, f(a) + f(-a) = 0. So f(-3) + f(-2) + ... + f(3) = 0 for any odd f defined on those points. For an even f, f(-a) = f(a), so the sum is f(0) + 2[f(1) + f(2) + f(3)].
Roots come in pairs. If f is even and r is a root, then -r is also a root. If f is odd, the same holds. So nonzero roots of an even or odd function come in ±pairs, and a polynomial of this type has an even count of nonzero roots (counted with multiplicity), with 0 as a possible extra root.
Maxima and minima mirror each other. For an even function, a minimum at x = a means a minimum at x = -a. For an odd function, a maximum at x = a means a minimum at x = -a with the opposite value.
def f(x):
return x**3 - 4 * x # odd
print(sum(f(k) for k in range(-3, 4))) # 0
print([x for x in range(-5, 6) if f(x) == 0]) # [-2, 0, 2]Other kinds of symmetry
Symmetry need not be about the y-axis or the origin. Two extensions appear in CAT.
Symmetry about the line x = a. If f(a + t) = f(a - t) for all t, the graph mirrors across the vertical line x = a. A parabola f(x) = (x - 3)² - 4 has this property with a = 3. It is an even function shifted right by 3, which links to graph transformations.
The same idea explains the modulus example from the topic plan. For f(x) = |x - 2| + |x - 5|, the graph is symmetric about x = 3.5, the midpoint of 2 and 5. Check: f(3.5 + t) = |1.5 + t| + |-1.5 + t| = |t + 1.5| + |t - 1.5|, which is unchanged when t becomes -t.
Symmetry about the point (a, b). If f(a + t) + f(a - t) = 2b for all t, the graph has half-turn symmetry about (a, b). For example, f(x) = (x - 1)³ + 2 is symmetric about (1, 2).
A shortcut: if f(x) + f(c - x) is a constant k for all x, then the graph is symmetric about the point (c/2, k/2). For f(x) = 2ˣ/(2ˣ + √2), f(x) + f(1 - x) = 1, so you can pair terms in sums like f(1/100) + f(2/100) + ... + f(99/100) to get 99/2.
Common errors
- Forgetting the domain. f(x) = x² on [-2, 5] is not even, because 5 has no partner -5 in the domain.
- Dropping brackets. (-x)² is x², but -x² is not. Write (-x) in full before simplifying.
- Declaring "neither" too fast. Expand and simplify first. For f(x) = (x + 1)² - 2x - 1 = x² the function is even, though it did not look it.
- Assuming a mixed polynomial is neither without checking cancellations. Terms such as x³ - x³ can vanish.
- Treating x + 1 as odd. A line is odd only if it passes through the origin.
- Sign mistakes with |x|. |x| is even, but |x|·x is odd and x|x| flips sign with x.
- Confusing a symmetric graph with an even function. A graph symmetric about x = 3 is even only after shifting it.
Applying the idea to a CAT-style problem
Problem. An odd function f satisfies f(2) = 5 and f(-3) = 7. Find f(3) + f(-2) + f(0).
Because f is odd, f(3) = -f(-3) = -7, and f(-2) = -f(2) = -5. Also f(0) = 0. The sum is -7 - 5 + 0 = -12.
Problem. Let f(x) = x⁵ + ax³ + bx - 8 and f(-2) = 10. Find f(2).
Define g(x) = x⁵ + ax³ + bx, which is odd. Then f(x) = g(x) - 8. From f(-2) = 10 we get g(-2) = 18, so g(2) = -18. Hence f(2) = -18 - 8 = -26. No need to find a or b.
The same trick works whenever a function is "odd part plus constant" and you know the value at one point.
Link to functional equations
The next chapters use the parity definitions as substitution rules. Replacing x with -x in an equation such as f(x) + 2f(-x) = 3x gives a second equation. Solving the pair yields f(x) = -x. Recognizing parity early tells you which substitutions are worth trying.
Exercise
Classify each as even, odd or neither: (a) f(x) = x⁶ - |x|, (b) g(x) = x³ + 1, (c) h(x) = x|x|, (d) k(x) = (2ˣ - 2⁻ˣ)/2.
Show answer
(a) Even: both x⁶ and |x| are even. (b) Neither: x³ is odd, the constant 1 is even, and the mix is neither. Check g(-x) = -x³ + 1, which is neither g(x) nor -g(x). (c) Odd: h(-x) = (-x)|-x| = -x|x| = -h(x). (d) Odd: k(-x) = (2⁻ˣ - 2ˣ)/2 = -k(x).
Exercise
Let f(x) = ax⁷ + bx³ + cx + 4 and f(-5) = 9. Find f(5).
Show answer
Let g(x) = ax⁷ + bx³ + cx, which is odd. Then f(-5) = g(-5) + 4 = 9, so g(-5) = 5 and g(5) = -5. Therefore f(5) = -5 + 4 = -1.
Exercise
Let f(x) = 4ˣ/(4ˣ + 2). Show that f(x) + f(1 - x) = 1, then find f(1/10) + f(2/10) + ... + f(9/10).
Show answer
f(1 - x) = 4^(1-x)/(4^(1-x) + 2). Multiply the numerator and denominator by 4ˣ: this gives 4/(4 + 2·4ˣ) = 2/(2 + 4ˣ). So f(x) + f(1 - x) = 4ˣ/(4ˣ + 2) + 2/(4ˣ + 2) = 1. The nine terms form four pairs, (1/10, 9/10), (2/10, 8/10), (3/10, 7/10) and (4/10, 6/10), each summing to 1, plus the middle term f(1/2) = 2/(2 + 2) = 1/2. The total is 4 + 1/2 = 4.5.