A function is even if f(−x) = f(x) for every x in its domain, odd if f(−x) = −f(x) for every x, and neither if either test fails anywhere in the domain. The test works by substituting −x into the rule and simplifying, then comparing the result to the original expression and to its negation. One symmetric term that fails to flip is enough to make the whole function neither, which is where most homework errors happen. Two conditions must be settled before any algebra: the domain has to be symmetric about zero, and the comparison has to hold for all x, not just the ones you happen to try.
Run the f(−x) Test in Four Steps Before Touching a Graph
The verbal test comes first, because the algebra confirms what a definition promises. Write the definition down: a function is even when f(−x) = f(x) for all x in its domain, and odd when f(−x) = −f(x) for all x. The phrase "for all x" carries the weight. An identity that holds at x = 0 and x = 1 but fails at x = 2 proves nothing about the function.
Here is the procedure in the order that catches mistakes fastest.
1: Check the domain. Confirm the domain is symmetric about 0 — if x is allowed, −x must be allowed too. A domain like [−3, 3] passes; [−1, 4] fails immediately and no algebra will rescue it. 2: Substitute −x everywhere x appears in the rule, including inside radicals, denominators, exponents, and absolute values. Parenthesize: write f(−x) = (−x)³ + 2(−x), not −x³ + 2−x. 3: Simplify (−x)² to x², (−x)³ to −x³, |−x| to |x|, and −x inside sin or cos to its identity. Most sign errors at this stage come from treating (−x)² as −x². 4: Compare the simplified f(−x) to f(x) and to −f(x). Match f(x): even. Match −f(x): odd. Match neither: neither — and note the specific term that broke.
A simple worked example shows the flow. Take f(x) = x⁴ − 3x² + 5. Substituting gives f(−x) = (−x)⁴ − 3(−x)² + 5 = x⁴ − 3x² + 5, which is exactly f(x). Every exponent is even, so the function is even. Now take g(x) = x⁵ + 4x³ − x: substitution gives −x⁵ − 4x³ + x, which equals −g(x), so g is odd.
The failure-handling rule: if two terms pass and one fails, stop trying to salvage it. f(x) = x³ + x² is neither because the cube term flips and the square term does not. That term alone defeats both identities.
The Domain Condition Most Tutorials Skip, and the Function It Rules Out
An even or odd function must have a domain symmetric about 0. If f(2) is defined but f(−2) is not, then neither equality can hold for all x, and the function falls into neither by default. This rule is a common source of classroom disputes and a frequent omission in online explanations that go straight to substitution.
Take f(x) = 1/x with domain all real numbers except 0. The domain is symmetric, and f(−x) = −1/x = −f(x), so it qualifies as odd. Compare that with f(x) = x² for x ≥ 2. Substitution gives f(−x) = x², which looks even, but f(−2) is undefined. The function is neither, because the domain isn't symmetric.
A subtler edge case: f(x) = √x with the natural real domain [0, ∞). The domain isn't symmetric, so neither test applies — even though students often call it "half of an even function" because of the parabola shape. No function whose real domain excludes all negative numbers can be classified. Interval notation in the problem stem is the giveaway.
Fractional powers behave similarly. f(x) = x^(2/3) has a real domain covering all reals, and it does satisfy f(−x) = f(x) because (−x)^(2/3) = ((−x)²)^(1/3) = (x²)^(1/3). Listen for whether the exponent reduces to an even-over-odd form.
Let the Exponents Decide Polynomials and Rational Functions
Polynomials have the fastest shortcut in the book: only even powers of x (including constants) makes a polynomial even; only odd powers (with no constant term) makes it odd. A polynomial with both kinds of terms is neither, full stop. This fact is provable from the exponent rules and appears in any standard precalculus text, including the widely used one by Stewart, Redlin, and Watson.
Here is the shortcut working in both directions. p(x) = 6x⁸ − x⁴ + 2 is even. q(x) = 6x⁷ − x³ + 2x is odd. r(x) = x⁴ + x is neither, and you can see why in one glance: the x⁴ term survives substitution unchanged while the x term flips. No amount of manipulation makes both identities hold.
Rational functions need one extra line of care, because denominators carry their own exponents. If the numerator and denominator are each even or each odd, the result is even. If one is even and the other odd, the result is odd. Test f(x) = (x² + 1)/(x³ − x). Substituting gives (x² + 1)/(−x³ + x), which is the negative of the original. Both numerator (even) and denominator (odd) cooperate, so f is odd.
One trap deserves explicit mention: (x + 1)². Expanding it gives x² + 2x + 1, which has an odd-degree term, so the function is neither. Students who see the square and assume the function is even get it wrong. The presence of an exponent on the whole binomial, rather than on a bare x, means the shortcut does not apply until you expand.
Trig Identities, Parentheses, and the Two Sign Traps That Fail Half the Class
The standard trig functions have fixed parity. Sine, tangent, and cotangent are odd; cosine and secant are even. Sine and tangent also come with the compounding identity sin(−x) = −sin(x), and when that identity is applied to an already-odd expression, the two negatives cancel in a way that trips up even strong students.
Consider f(x) = x·sin(x). Substitute: f(−x) = (−x)·sin(−x) = (−x)·(−sin x) = x·sin x. The two negatives multiply to a positive, matching f(x). Many students stop at sin(−x) = −sin x and call the whole thing odd. Read the sign in front of the trig function before declaring victory.
Two parentheses errors cost more points than the trig itself. First, squaring a signed term: (−x)² = x², not −x². Second, substituting into a binomial: f(−x) for f(x) = (x+1)² must be (−x+1)², not (−x+1²). The second rewrite changes the answer in a case like f(x) = (x+1)³.
A useful check after substitution: pick one actual number. For f(x) = cos(2x) + x², compute f(1). If the value matches f(−1), good sign; if it equals −f(1), the function is likely odd. The check is not a proof but catches sign errors before the answer goes to the grader. Confirming with an exact value like π/2 also works for trig cases, and it is faster than re-deriving the identity by hand.
Square Roots and Absolute Values Need a Sign Check Under the Radical
Radicals and absolute values introduce a subtle failure mode: the function might be even when it looks odd on the page. Absolute value is always even because |−x| = |x|, and the same holds for any power of an absolute-value quantity. Sine and cosine inside the absolute value still behave by the outer absolute's parity.
Test √(1 − x²), the upper semicircle. Substituting gives √(1 − (−x)²) = √(1 − x²), so it's even. That matches the picture: the semicircle is symmetric across the y-axis. The result is exactly the same algebra as squaring, because the square inside absorbs the negative.
Test √(x² − 1) over its real domain. The domain is x ≤ −1 or x ≥ 1, symmetric about 0. Substitution again gives √(x² − 1), so this also qualifies as even. The classic false step: a student sees √−x and reads it as an odd result. The negative sign was inside the square root, so it was squared away.
A more dangerous counterexample: f(x) = √x · (x² + 1). The domain starts at 0, so the test fails before any algebra, and the function is neither. For any radical expression, the correct sequence is domain check, then substitution, then sign comparison.
The absolute-value case deserves one more comment, because it masks failures. f(x) = |x| + x is neither even nor odd. For x = 2, f(2) = 4. For x = −2, f(−2) = 0. The values differ and they don't equal ±4 in the right way, so the entire function is neither — even though your initial instinct gives the even-looking |x| term more weight than the odd-looking x term.
Work Through Three Examples in Real Order and Watch the Classification Flip
Choose an example where the answer isn't obvious, then do the substitution by hand. These three cases cover the three possible outcomes and each exposes a different failure mode.
Example 1: f(x) = x³ − x. Substitution: (−x)³ − (−x) = −x³ + x = −(x³ − x) = −f(x). Odd. Check the endpoints: f(2) = 6, f(−2) = −6, and −6 = −6. The sign flip is clean.
Example 2: f(x) = x⁴ + x² + |x|. All three terms are even, so f(−x) = f(x), and the function is even. This is the boring case — unless you add a single x term and watch it collapse. f(x) = x⁴ + x² + x is neither; one odd-degree term spoils the whole expression.
Example 3: f(x) = (x + 1)/(x² + 1). Substitution gives (−x + 1)/(x² + 1). The numerator changes sign in one spot only, so it matches neither f(x) = (x + 1)/(x² + 1) nor −f(x) = (−x − 1)/(x² + 1). Neither. If the numerator were −x + 1, the function would flip cleanly and be odd. Change one sign and the classification changes.
The failure-handling pattern: when you get "neither," don't hand back an empty answer. Write out the substituted form, the original form, and the negated original form in three lines. Show which one line differs.
The last example matters because a function can look unbalanced in a plot and still be odd or even. f(x) = sin(x) looks lopsided on any partial window, yet the algebra confirms parity across the whole real line. Trust the simplification, not the picture of one period.
Use the Graph to Confirm Symmetry, Never to Prove It
Visual checks are fast and worth doing after the algebra, but a graph is a weaker proof than an identity because it only shows a window. An even function has a y-axis mirror: every point at (x, y) has a partner at (−x, y). An odd function has 180° rotational symmetry about the origin: (x, y) pairs with (−x, −y). If neither mirror or rotation appears, the function is likely neither.
Consider the cubic f(x) = x³ − 6x. The origin symmetry is visible because every time the curve rises above the x-axis to the right, it dips below to the left at the same distance. Even-power polynomials like x² − 4 show the y-axis mirror clearly. The reciprocal 1/x shows origin symmetry with its two disconnected branches.
The window matters more than most tutorials admit. The even function x² + 100 looks almost flat and shifted near x = 0, so the y-axis mirror is easy to see. The same function shifted horizontally — (x − 3)² — still looks like a parabola but has no y-axis mirror around x = 0. On a graph that opens with x ranging from −1 to 5, the shift creates the strange sight of a curve that appears symmetric around x = 3 instead. Visual symmetry is around the plotted axis, not the function's own parity.
Use the graph as a confirmation step after a worked substitution. If the algebra says odd and the picture disagrees, suspect the window or a typo in the plotted rule.
Avoiding the Test's Blind Spots, from Constants to Compositions
Certain functions and combinations trick even careful students, and they tend to appear in problem sets that grade rigorously. The composite of two even functions is even; two odds compose to odd; and mixing even with odd produces no reliable rule. So f(x) = cos(x²) is even by composition, while f(x) = sin(x³) is odd — the outer function doesn't override the exponent algebra.
A constant function f(x) = 7 is even because 7 = 7. It's not odd because 7 ≠ −7. The odd function f(x) = 0 is the single exception that is both even and odd; every x = 0 check is satisfied by both identities.
Composition with absolute value needs care. f(x) = |sin x| is even (absolute value forces the outer sign out and the inner sine still gives a positive value). But f(x) = sin|x| is even too, because |−x| = |x| and sin is the same at the two arguments. Students often tag one of these as odd; the substitution shows the answer in two lines of work.
The most common written error: declaring a function odd because f(−x) equals −f(x) at the tested points. One counterexample is enough to disprove; the test requires the identity everywhere in the domain.
A rigorous habit: write f(−x), f(x), and −f(x) in three parallel lines and match them. This convention survives from textbook to board exam. Blank is wrong; the substitution step costs one line and is almost always worth the points.
Comparison at a Glance
| Feature | Even function | Odd function | Neither |
|---|---|---|---|
| Definition | f(−x) = f(x) | f(−x) = −f(x) | One identity fails |
| Polynomial signature | Even powers only | Odd powers only, no constant | Mixed powers |
| Symmetry in graph | Mirror across y-axis | 180° rotation about origin | None of the above |
| Typical example | x², cos x, |x| | x³, sin x, 1/x | x² + x, (x+1)/(x²+1) |
| Domain condition | Symmetric about 0 | Symmetric about 0 | Any domain |
| Behavior at x = 0 | Any real value | Must be 0 when defined | No constraint |
| Sign flip under −x | None | Full sign | Partial |
The behavior at x = 0 is a useful check rather than a definition. An odd function must equal 0 at the origin, since f(0) = −f(0) forces f(0) = 0. f(x) = x³ + 1 looks odd at a glance, but f(0) = 1, so it is neither — and that one-step check catches many errors before substitution begins.
Where This Test Shows Up in Calculus and Series
Even and odd labels carry computational value in calculus, which is why textbooks ask for them before moving on. The integral of an odd function over a symmetric interval equals 0: ∫ from −a to a of x³ dx = 0 for any a. The corresponding integral of an even function doubles: ∫ from −a to a of x² dx = 2·∫ from 0 to a of x² dx.
Taylor series use parity as a sanity check. A Maclaurin series for an even function contains only even powers of x, which is why the cosine series has x², x⁴, x⁶ and no odd terms. An odd function like sine produces x, x³, x⁵ in its series. When a student's series expansion of sin x comes out with a stray x² term, the parity check catches the error in one line.
Fourier series sharpen this into a working rule. An even function has a Fourier series of cosines only, and an odd function has sines only. Engineers use the rule to halve their computation over symmetric intervals, since the coefficient integrals of half the terms vanish.
A last word on where parity helps and where it does not: a function can be symmetric without being even or odd if the symmetry axis sits away from x = 0. The parabola (x − 3)² is symmetric about x = 3, but around the origin it matches neither definition. Always record the axis before claiming a symmetry result.
FAQ
How do you quickly tell if a function is even or odd from its equation alone?
Use the exponent rule for polynomials: even powers only means even, odd powers only with no constant means odd. For anything else, substitute −x and simplify; the definitional test is the only reliable path. The exponent rule is a shortcut for one family, not a general law.
Can a function be both even and odd?
Only the zero function f(x) = 0 qualifies. The two conditions force f(x) = 0 for every x in the domain, so no function with a nonzero value can be both. Any qualified tutor will confirm this from the definitions.
Why is my function neither when it looks symmetric in a graphing calculator?
Your window is probably showing symmetry around an axis other than x = 0, or around a point other than the origin. Cosmetic symmetry inside one viewing window is not the same as y-axis or origin symmetry. Re-plot with x from −5 to 5 to check the true center.
Does the domain really matter for even and odd classification?
Yes, and the failure case is explicit: f(x) = x² on x ≥ 2 fails because f(−2) is undefined. The identities quantify over every x in the domain, so asymmetric domains rule out both classifications. Check the domain before substituting.
What's the fastest check for odd functions at the origin?
Evaluate f(0). An odd function must give 0 at the origin (when 0 is in the domain), because f(0) = −f(0). f(x) = x³ + 1 fails at f(0) = 1 and is neither. This rule saves a full substitution pass whenever the answer type is obvious.
Is |x| even or odd?
Absolute value is even because |−x| = |x|. A function like x² + |x| is even; a function like |x| + x is neither, because the two terms pull in different directions. Test the combination, not the components.
How does parity interact with things like sin x and cos x?
Sine is odd, cosine is even. Products and quotients follow the sign rules: sin x · x is odd, cos x · x² is even, and x·sin x is even because two negative signs cancel. When combining, write the sign in front of the trig before deciding.
Why do some online sources skip the domain check?
Many online explanations cover only polynomials, where the domain is all reals and the check is automatic. Once radicals, rationals, trig, or fractions with open endpoints are involved, the domain check becomes indispensable. Standard college precalculus texts include it explicitly.