Symmetry, and how to test for it
Even and odd functions, seen on the graph and proved from the equation.
Some graphs look the same in a mirror placed on the vertical axis. Others look the same after being turned upside down through the origin. Both kinds of symmetry can be checked without drawing anything, by comparing what the rule does to an input and to its negative.
Run this and read the two output columns against each other.
Change the rule to x * x * x and run it again, then to x * x + x. Three rules, three different relationships between the columns.
For the two columns are identical. For each entry in the second column is the negative of the first. For there is no relationship at all: 6 against 2, 12 against 6.
Those three cases have names. A function is even if for every input. A function is odd if for every input. A function with neither property is neither, which is the commonest case.
On a graph, even means symmetric about the vertical axis: fold the paper along that axis and the halves match. Odd means symmetric about the origin: turn the paper half a turn about the origin and the graph lands on itself.
Both symmetries can be checked one point at a time. If is on the graph of an even function, then is on it too: same height, opposite side. If it is on the graph of an odd function, then is on it instead: opposite side and opposite height. An odd function whose domain includes 0 must pass through the origin, because forces to be 0.
Most functions are neither, and saying so is a complete answer rather than a failure to find something. Shifting a graph left or right destroys both properties, and so does adding a constant to an odd function.
The words are not describing whether the powers are even or odd numbers, but for a rule made only of powers of that happens to line up, which is where the names came from. , and are even. , and are odd. Mixing an even power with an odd one, as in , usually destroys both properties.
Testing without a graph
A sample of inputs can only ever suggest an answer, so an exam wants the algebra. The method is to substitute into the rule and simplify, then compare the result with and with . Let the machine do the sampling first so you know what you are aiming to prove.
Add a line testing lambda x: 5 and predict the answer before running it. A flat line is symmetric about the vertical axis.
One worked example in full. Decide whether is even, odd or neither.
- Substitute everywhere: .
- Simplify each term: , and .
- So .
- Compare with . They are not equal, so it is not even.
- Compare with . That is exactly what came to.
- So the function is odd.
is odd and . What is ?
7. Odd means , so . If had been even instead, the answer would have been -7, the same value again.
Classify as even, odd or neither, showing the substitution.
Even. Substituting: . Now , because four minus signs multiply to a plus, and for the same reason with two. So , which is exactly , and the even test is satisfied.
Classify as even, odd or neither, showing the substitution.
Neither. Substituting: . Compare with : not equal, so not even. Compare with : not equal either, so not odd. One term kept its sign and the other flipped, and that mixture is what leaves a function in the neither box.