Make a table for f(x)=x2: the inputs −3,−2,−1,1,2,3 give 9,4,1,1,4,9. Each negative input gives the same output as its positive partner, so the graph is a mirror image across the y-axis; that is what f(−x)=f(x) says. Now try g(x)=x3: the same inputs give −27,−8,−1,1,8,27. Negating the input negates the output, so the point (2,8) has a partner (−2,−8), and the graph looks the same after a half-turn about the origin: g(−x)=−g(x).
For polynomials the names match the exponents. Even powers, including the constant term (x0), survive a sign change: (−x)4=x4. Odd powers flip: (−x)5=−x5. So 3x4−2x2+7 is even, x5−4x is odd, and x2+x, which mixes the two, is neither, since f(−x)=x2−x. The test works for any function: cos(−x)=cosx, so cosine is even; sin(−x)=−sinx, so sine is odd; and ex is neither, because e−2≈0.135 matches neither e2≈7.39 nor −e2.
An even function has nothing to do with even numbers. f(x)=x+2 turns even inputs into even outputs, yet f(−x)=−x+2 is neither f(x) nor −f(x), so it has no symmetry of this kind. Symmetry about some other line does not count either: (x−3)2 is a mirror image across x=3, but it is not even, because f(−1)=16 while f(1)=4. The test always compares x with −x.
Think of it like this. An even function is like a butterfly with its body on the y-axis: fold the graph along that line and the wings match. An odd function is like a playing-card design that looks the same after the card is turned upside down about its center. Most functions are like an ordinary photo, which neither the fold nor the turn brings back.
Core idea. A symmetric function reproduces itself (even) or flips sign (odd) when the input is negated.