- Foundation
- About 14 min
- 5 practice questions
Even and odd functions, and adding and multiplying functions
Test a function for even or odd with f(−x), know how sums and products of even and odd functions behave, and find the domain of f + g, fg and f/g.
If something looks wrong, please tell us.
Replacing x by −x is a quick test that tells you whether a graph is symmetric, which saves work in later chapters such as integration. This lesson defines even and odd functions and shows the test step by step. It also covers the algebra of functions: adding, subtracting, multiplying and dividing two functions, and the domain of the result.
Even and odd functions
A function f is even if f(−x) = f(x) for every x in its domain. Its graph is symmetric about the y-axis: the left half is the mirror image of the right half. Examples are x², x⁴ and |x|. A function f is odd if f(−x) = −f(x) for every x in its domain. Its graph is symmetric about the origin: turning it half a circle about the origin leaves it unchanged. Examples are x, x³ and x|x|. The domain must itself be symmetric, so that −x is in it whenever x is.
Most functions are neither even nor odd, for example x + 1 or x² + x. The only function that is both even and odd on R is f(x) = 0, since f(x) = f(−x) = −f(x) forces f(x) = 0. To test a function, compute f(−x) carefully, simplify, and compare it with f(x) and with −f(x).
Worked example 1: an odd function
Test f(x) = x³ − 2x. Replace x by −x: f(−x) = (−x)³ − 2(−x) = −x³ + 2x = −(x³ − 2x) = −f(x). So f is odd. Note that (−x)³ = −x³ because an odd power keeps the sign, while (−x)² = x² because an even power removes it.
Worked example 2: neither even nor odd
Test f(x) = x² + x. Then f(−x) = x² − x. This is not equal to f(x) = x² + x, and not equal to −f(x) = −x² − x. So f is neither. A single number shows it quickly: f(1) = 2 and f(−1) = 0, which are neither equal nor opposite.
Worked example 3: an even polynomial
Test f(x) = x⁴ + 3x² + 1. Every power of x is even (the constant counts as x⁰), so f(−x) = x⁴ + 3x² + 1 = f(x), and f is even. For a polynomial, all even powers give an even function and all odd powers give an odd function; a mixture gives neither. A constant term is an even power, so x³ + 1 is neither.
Sums and products
| f | g | f + g | f × g |
|---|---|---|---|
| even | even | even | even |
| odd | odd | odd | even |
| even | odd | neither in general | odd |
The product rule behaves like signs: odd × odd is even, just as a negative times a negative is positive. For example x × x³ = x⁴ is even, and x² × x = x³ is odd.
The algebra of functions
For real functions f and g, define (f + g)(x) = f(x) + g(x), (f − g)(x) = f(x) − g(x) and (fg)(x) = f(x)g(x); the domain of each is the set of x where both f and g are defined. For the quotient (f/g)(x) = f(x)/g(x) we must also remove every x where g(x) = 0.
Worked example 4: sum, product and quotient
Let f(x) = x + 1 and g(x) = x − 2. Then (f + g)(x) = 2x − 1 and (fg)(x) = (x + 1)(x − 2) = x² − x − 2, both with domain R. The quotient (f/g)(x) = (x + 1)/(x − 2) needs g(x) ≠ 0, so its domain is R − {2}.
Even: f(−x) = f(x), symmetric about the y-axis. Odd: f(−x) = −f(x), symmetric about the origin. For f/g, remove the zeros of g from the domain.
Key takeaways
Compute f(−x), simplify, and compare with f(x) and −f(x). Even powers and |x| give even functions; odd powers give odd ones; mixtures and constants added to odd functions give neither. Odd × odd and even × even are even; even × odd is odd. The domain of f/g excludes every zero of g.
Check your understanding
-
1. Which function is odd?
- f(x) = x² + 1
- f(x) = x³ + 1
- f(x) = |x|
- f(x) = x³ + x
Show answer
Answer: D. (−x)³ + (−x) = −(x³ + x). x² + 1 and |x| are even, and x³ + 1 is neither because of the constant.
-
2. f(x) = x⁴ − x² is
- odd
- even
- neither even nor odd
- both even and odd
Show answer
Answer: B. Only even powers appear, so f(−x) = x⁴ − x² = f(x). It is not the zero function, so it is not also odd.
-
3. f(x) = x² + 2x is
- even
- neither even nor odd
- odd
- both even and odd
Show answer
Answer: B. f(−x) = x² − 2x, which is neither f(x) nor −f(x). For example f(1) = 3 and f(−1) = −1.
-
4. f is an odd function and f(2) = 5. What is f(−2)?
- 5
- −5
- 0
- 1/5
Show answer
Answer: B. For an odd function f(−x) = −f(x), so f(−2) = −f(2) = −5.
-
5. f(x) = x + 3 and g(x) = x² − 9. What is the domain of f/g?
- R − {3}
- R − {−3}
- R
- R − {−3, 3}
Show answer
Answer: D. The quotient needs g(x) ≠ 0. x² − 9 = 0 at x = 3 and x = −3, so both are removed.
Sign in to keep track of the lessons you finish.