How to Find If a Function Is Even or Odd: Formulas, Graphs & Solved Examples
Even and odd functions describe two kinds of symmetry that appear throughout algebra, calculus and applied mathematics. This guide explains the f(-x) test, shows how to read symmetry from a graph, and works through fully solved examples for polynomials, rational functions and trigonometry.


- A function is even when f(-x) = f(x) for every x in its domain, and odd when f(-x) = -f(x) for every x in its domain.
- The algebraic test is mechanical: substitute -x for x, simplify, and compare the result with f(x) and -f(x).
- Even functions are symmetric about the y-axis; odd functions are symmetric about the origin, which is a 180° rotation.
- Many functions are neither even nor odd — mixed polynomials such as x^2 + x and domain-restricted functions such as ln x and sqrt(x) fall into this group.
- Parity behaves predictably under multiplication: even times even is even, odd times odd is even, and even times odd is odd.
- The zero function, f(x) = 0, is the only function that is both even and odd.
Definition of Even and Odd Functions in Algebra & Calculus
A function is even when replacing x with -x leaves the output unchanged, and odd when replacing x with -x flips the sign of the output. In symbols, a function f is even when f(-x) = f(x) for every x in its domain, and odd when f(-x) = -f(x) for every x in its domain. These two definitions are the whole subject: every test, graph check and shortcut in this guide is a way of deciding which of the two equalities holds, or whether neither does.
Parity — the word mathematicians use for evenness and oddness — matters because symmetric functions are easier to work with. In calculus, the integral of an even function over a symmetric interval is twice the integral over half the interval, while the integral of an odd function over a symmetric interval is zero. In Fourier analysis, even functions are built from cosines and odd functions from sines, which is why the distinction shows up in physics, engineering and signal processing as well as in school algebra.
What Is an Even Function? The f(-x) = f(x) Rule Explained
An even function gives the same output for x and for -x, so its values come in matching pairs on either side of the y-axis. The classic example is f(x) = x^2: f(2) = 4 and f(-2) = 4, and the same holds for every input you try. Other familiar even functions include f(x) = cos x, f(x) = |x| and f(x) = x^4 - 2x^2 + 1, all of which return identical values for opposite inputs.
The equality must hold for every x in the domain, not just for one convenient number. Checking f(2) = f(-2) is a useful hint, but it is not a proof — a function can agree at one pair of points and disagree elsewhere. A rigorous answer always works with the general expression f(-x) and simplifies it algebraically, as the worked examples in section four demonstrate.
What Is an Odd Function? The f(-x) = -f(x) Rule Explained
An odd function flips its sign when the input flips its sign: whatever f(x) is, f(-x) is its negative. The simplest example is f(x) = x^3, since f(2) = 8 and f(-2) = -8. The sine function behaves the same way — sin(-x) = -sin x — as do f(x) = x, f(x) = 1/x and f(x) = x^3 - x, all of which pass through the origin and rotate onto themselves through 180°.
Odd functions always pass through the origin when 0 is in their domain, because f(0) must equal -f(0), which forces f(0) = 0. This gives a quick first check: if a function is defined at x = 0 but its graph does not pass through the origin, it cannot be odd. It may still be even, or it may be neither — the algebraic test will settle the question.
The Algebraic Test: Using f(-x) = f(x) vs. f(-x) = -f(x)
The algebraic test is a three-step routine that settles the parity of almost any function you meet. First, write down f(-x) by replacing every x in the formula with -x, using brackets carefully so that powers apply to the whole of -x. Second, simplify the result using the rules of algebra — even powers remove the minus sign, odd powers keep it, and trigonometric identities handle sin, cos and tan. Third, compare the simplified result with f(x) and with -f(x): if it matches f(x), the function is even; if it matches -f(x), it is odd; if it matches neither, the function is neither.
The most common source of errors is careless bracketing. Writing (-x)^2 is not the same as -x^2: the first equals x^2, while the second equals -x^2, and confusing the two will flip your answer. The same care applies to terms such as (-x)^3, which equals -x^3, and to fractions, where the minus sign can sit in the numerator, the denominator, or outside the fraction. Slow, bracketed substitution is the single habit that prevents most mistakes.
| Result after simplifying f(-x) | Classification | What it tells you |
|---|---|---|
| f(-x) = f(x) | Even | The function is unchanged by a sign flip; its graph is symmetric about the y-axis. |
| f(-x) = -f(x) | Odd | The function changes sign; its graph is symmetric about the origin. |
| f(-x) matches neither | Neither | The function has no parity symmetry; do not force it into either category. |
The Even Function Test: Substitute -x and Simplify, Step by Step
To test for evenness, substitute -x for x and simplify, then check whether the result is identical to the original function. Take f(x) = x^4 - 2x^2 + 1 as an example: f(-x) = (-x)^4 - 2(-x)^2 + 1 = x^4 - 2x^2 + 1, which is exactly f(x), so the function is even. Every term survives the substitution unchanged, because each term contains an even power of x.
A quicker way to spot evenness in a polynomial is to look at the exponents: a polynomial made only of even powers of x — including a constant term, which is x^0 — is always even. The test still works when the function is not a polynomial, though: f(x) = 1/(x^2 + 1) gives f(-x) = 1/((-x)^2 + 1) = 1/(x^2 + 1) = f(x), so it is even as well. The method is the same in every case; only the simplification changes.
- Write f(-x) by replacing every x with (-x), keeping the brackets.
- Simplify: even powers drop the minus sign, odd powers keep it.
- Compare with f(x). If they are identical, the function is even.
- If they differ, compare with -f(x) before concluding the function is odd or neither.
The Odd Function Test: When f(-x) Equals -f(x)
To test for oddness, substitute -x for x and simplify, then check whether the result is the negative of the original function. Take f(x) = x^3 - x: f(-x) = (-x)^3 - (-x) = -x^3 + x = -(x^3 - x) = -f(x), so the function is odd. Both terms change sign, and factoring out the minus sign recovers the original expression with a negative in front.
A polynomial made only of odd powers of x is always odd, which makes polynomials such as x^5 - 3x easy to classify at a glance. The same test handles the trigonometric functions: tan(-x) = -tan x, so tan x is odd, and 1/x gives f(-x) = 1/(-x) = -1/x = -f(x), so it is odd too. Whenever every term changes sign under the substitution, the function is odd.
Common Algebra Mistakes: Brackets, Signs & Domain Errors
The most frequent mistake is writing -x^2 when you mean (-x)^2, which changes an even result into an odd-looking one and produces the wrong classification. The second is forgetting that a minus sign inside a fraction can move: 1/(-x) equals -1/x, and (-x)/(x^2 + 1) equals -(x/(x^2 + 1)), so the sign must be tracked through every step. Writing each substitution inside brackets and simplifying one term at a time prevents both errors.
The third common mistake is ignoring the domain. A function is only even or odd if the test holds for every x in its domain, and functions such as ln x and sqrt(x) are not defined for negative x at all — so f(-x) does not even exist for the values you would need to test. In those cases the correct answer is “neither”, and the reason is the domain, not the algebra. Always check where the function is defined before applying either test.
Graphical Symmetry: Y-Axis Symmetry vs. Origin Symmetry (180° Rotation)
Graphs turn the algebra into something you can see. An even function is symmetric about the y-axis: fold the graph along the vertical axis and the two halves line up exactly, because the value at x and the value at -x are the same. A parabola such as y = x^2 shows this at a glance, with its left and right arms mirroring each other perfectly.
An odd function is symmetric about the origin instead, which means a 180° rotation about the point (0, 0) maps the graph onto itself. The cubic y = x^3 is the standard picture: the curve in the first quadrant rotates into the matching curve in the third quadrant, and the same holds for the sine wave, which repeats its shape with opposite signs on either side of the origin. If you can picture folding or rotating the graph, you can often classify a function before doing any algebra.
Y-Axis Symmetry: How Even Functions Mirror Across the Vertical Axis
Y-axis symmetry means that for every point (a, b) on the graph, the mirror point (-a, b) is also on the graph. This is exactly the statement that f(-a) = f(a), written in geometric language, and it is why the graph of an even function looks the same on the left and right of the vertical axis. The parabola y = x^2, the curve y = |x| with its sharp V at the origin, and the bell-shaped y = 1/(x^2 + 1) all show this mirror symmetry.
The mirror test is a useful check when a graph is given without a formula, as it often is in exam questions. Pick a point on the right-hand side, reflect it across the y-axis, and ask whether the reflected point lies on the curve. If it does for every point you can check, the function is even; if even one point fails, it is not.
Origin Symmetry: How Odd Functions Rotate 180° About the Origin
Origin symmetry means that for every point (a, b) on the graph, the point (-a, -b) is also on the graph, which is a 180° rotation about the origin. This is the geometric form of f(-a) = -f(a), and it explains why odd functions must pass through the origin whenever they are defined there. The cubic y = x^3 and the sine curve both show this rotational symmetry, with each hump on one side matched by an equal and opposite hump on the other.
A practical way to test origin symmetry on a printed graph is to imagine turning the page upside down: if the curve lands exactly on itself, the function is odd. Only the 180° rotation about the origin counts as odd symmetry.
Step-by-Step Solved Examples (Polynomials, Rational, and Trigonometric Functions)
The worked examples below follow the same routine every time: write f(-x), simplify it carefully, and compare the result with f(x) and -f(x). Each example shows the substitution step explicitly, because that is where marks are won or lost. Work through them with a pen before reading the conclusion, and check your own substitution against the one shown.
The examples are grouped by function type — polynomials first, then rational and absolute-value functions, then trigonometric and exponential functions — so you can see how the same test adapts to different kinds of algebra. The classifications are the ones to remember: x^2 is even, x^3 is odd, sin x is odd, cos x is even, tan x is odd, e^x is neither, and ln x is neither because of its domain.
Polynomial Examples: x², x³, x⁴ − 2x² + 1, x³ − x & Mixed Terms
Example 1: f(x) = x^2. Substituting gives f(-x) = (-x)^2 = x^2 = f(x), so f(x) = x^2 is even.
Example 2: f(x) = x^3. Substituting gives f(-x) = (-x)^3 = -x^3 = -f(x), so f(x) = x^3 is odd. These two are the reference cases — almost every polynomial question is a variation on one of them, with extra terms added.
Example 3: f(x) = x^4 - 2x^2 + 1. Substituting gives f(-x) = (-x)^4 - 2(-x)^2 + 1 = x^4 - 2x^2 + 1 = f(x), so this function is even, as expected for a polynomial with only even powers. Example 4: f(x) = x^3 - x. Substituting gives f(-x) = (-x)^3 - (-x) = -x^3 + x = -(x^3 - x) = -f(x), so this function is odd, as expected for a polynomial with only odd powers.
Example 5: f(x) = x^2 + x. Substituting gives f(-x) = (-x)^2 + (-x) = x^2 - x, which is neither f(x) nor -f(x), so this mixed polynomial is neither even nor odd. The pattern is worth memorising: in a polynomial, even powers alone mean even, odd powers alone mean odd, and a mixture of the two means neither.
Rational & Absolute Value Examples: 1/x, 1/(x²+1) & |x|
Example 6: f(x) = 1/x. Substituting gives f(-x) = 1/(-x) = -1/x = -f(x), so f(x) = 1/x is odd. The minus sign moves out of the denominator cleanly, which is the key step to show in your working.
Example 7: f(x) = 1/(x^2 + 1). Substituting gives f(-x) = 1/((-x)^2 + 1) = 1/(x^2 + 1) = f(x), so this function is even — the even power in the denominator absorbs the minus sign before it can affect the result.
Example 8: f(x) = |x|. Substituting gives f(-x) = |-x| = |x| = f(x), so the absolute value function is even, which matches its V-shaped graph mirroring across the y-axis. A useful general rule follows from these cases: if the numerator and denominator are both even, or both odd, the quotient is even; if one is even and the other is odd, the quotient is odd. The same rules apply to products: even times even is even, odd times odd is even, and even times odd is odd — so x^2 times sin x, for example, is odd, because even times odd is odd.
Trigonometric & Exponential Examples: sin x, cos x, tan x & eˣ
Example 9: f(x) = sin x. Substituting gives sin(-x) = -sin x = -f(x), so sin x is odd — a standard identity worth memorising. Example 10: f(x) = cos x. Substituting gives cos(-x) = cos x = f(x), so cos x is even, which is why the cosine curve is symmetric about the y-axis.
Example 11: f(x) = tan x. Since tan x = sin x / cos x, substituting gives tan(-x) = sin(-x) / cos(-x) = (-sin x) / cos x = -tan x = -f(x), so tan x is odd.
Example 12: f(x) = e^x. Substituting gives f(-x) = e^{-x} = 1/e^x, which is neither e^x nor -e^x, so e^x is neither even nor odd. This surprises many students, because the exponential curve looks smooth and well-behaved, but symmetry is a specific property and e^x simply does not have it. Note that e^{-x} is the reciprocal of e^x, not its negative, so neither equality in the test can hold.
Example 13: f(x) = ln x. Here f(-x) = ln(-x) is undefined for every positive x, because the logarithm is only defined for positive arguments — so the function is neither even nor odd, and the reason is its domain.
Functions that Are Neither Even Nor Odd
Most functions you meet in practice are neither even nor odd, and recognising that is just as important as spotting symmetry when it exists. A function is neither when f(-x) matches neither f(x) nor -f(x), and there are two main reasons this happens: the formula mixes even and odd parts, or the domain does not allow the test at all. Neither case is a failure of the test — “neither” is a complete and correct answer.
Students sometimes hesitate to answer “neither”, as though it were a weaker conclusion than even or odd. It is not: a function such as x^2 + x is precisely neither, and stating that with the working to prove it earns full marks. The exam questions that catch people out are usually the ones where the answer is neither, because they reward careful substitution instead of pattern-matching from memory.
Mixed Polynomials: Why x² + x & Similar Functions Are Neither
A polynomial that mixes even and odd powers is always neither even nor odd, unless one of the parts is zero. For f(x) = x^2 + x, the substitution gives f(-x) = x^2 - x: the even term survives unchanged while the odd term flips sign, so the result is neither the original nor its negative. The same happens with f(x) = x^3 + x^2, where f(-x) = -x^3 + x^2, and with any polynomial that contains at least one even-powered term and at least one odd-powered term.
The intuition is simple: an even part wants to stay the same under the sign flip, while an odd part wants to change sign, and a function cannot do both at once unless one of the parts is absent. Adding an even function to an odd function therefore produces a function that is neither, except in the trivial case where one of the two functions is zero.
Domain-Restricted Functions: ln x, √x & Why the Domain Decides
Some functions are neither even nor odd because the test cannot even be applied across the whole domain. For f(x) = ln x, the domain is x > 0, so f(-x) is undefined whenever x is positive — there is no value to compare with f(x), and the function cannot be even or odd. The same applies to f(x) = sqrt(x), whose domain is x ≥ 0: f(-x) = sqrt(-x) is undefined for positive x, so the classification is neither, and the reason is the domain rather than the shape of the formula.
This is a favourite exam trap, because students who substitute mechanically may write sqrt(-x) or ln(-x) and try to simplify it into something it is not. The correct working states the domain first, notes that f(-x) is undefined for x in the domain, and concludes “neither”. Remember also that evenness and oddness are defined relative to a symmetric domain: a function whose domain is not symmetric about zero, such as f(x) = x^2 for x ≥ 0 only, cannot be even or odd in the usual sense.
Quick Reference Table & Cheat Sheet for Math Assessments
This section gathers everything in the guide into two tables and a short checklist you can use for revision or in the last minutes before an assessment. The first table classifies the functions students meet most often, with the substitution result shown so you can see why each classification holds. The second table summarises the combination rules, which let you classify products, quotients and sums without redoing the substitution from scratch.
Use the tables as a memory aid, not a substitute for understanding: examiners frequently test functions that are not in any table, such as x^2 sin x or 1/(x^3 + x), and those require the f(-x) test itself. The checklist below it gives the order of operations for any new function, so that even an unfamiliar example can be classified reliably in under a minute.
| Function f(x) | f(-x) after simplifying | Classification |
|---|---|---|
| x^2 | x^2 | Even |
| x^3 | -x^3 | Odd |
| sin x | -sin x | Odd |
| cos x | cos x | Even |
| tan x | -tan x | Odd |
| e^x | e^{-x} ( = 1/e^x ) | Neither |
| ln x | Undefined for x > 0 | Neither (domain) |
| |x| | |x| | Even |
| 1/x | -1/x | Odd |
| x^2 + x | x^2 - x | Neither |
| sqrt(x) | Undefined for x > 0 | Neither (domain) |
| 5 (constant) | 5 | Even |
Common Functions Classified: Polynomials, Trig, Exponentials & More
The table above covers the twelve functions that appear most often in assessments, and it is worth learning the reasoning behind each row rather than the row itself. Polynomials follow the exponent rule: all even powers means even, all odd powers means odd, and a mixture means neither. The trigonometric functions split cleanly — cos x is the only even one of the three basic functions, while sin x and tan x are odd — and the exponential and logarithmic functions are neither, for the reasons shown in the worked examples.
Two rows deserve special attention. The constant function f(x) = 5 is even, because f(-x) = 5 = f(x), and students often miss this by assuming a constant has no parity at all. And f(x) = 0 is the only function that is both even and odd, because 0 = -0, so it satisfies both definitions at once. If an exam ever asks whether a function can be both, the zero function is the answer — and the only answer.
Exam Checklist: Classify Any Function in Under a Minute
A reliable routine beats inspiration under time pressure, so follow the same steps for every question. Start with the domain: if f(-x) is undefined for values in the domain, the answer is neither and you can stop. Then substitute -x with brackets, simplify, and compare with f(x) and -f(x). Finally, sanity-check your answer with a number — evaluate f(1) and f(-1) and confirm they match the classification you reached.
If the function is a product or quotient of familiar parts, the combination rules can save time: even times even is even, odd times odd is even, even times odd is odd, and the same three rules hold for quotients. Sums follow their own rule — even plus even is even, odd plus odd is odd, and even plus odd is neither — so check the parts before combining them. With these rules and the f(-x) test, no parity question should take more than a minute.
- Check the domain first: ln x and sqrt(x) are neither, because f(-x) is undefined.
- Substitute -x with brackets and simplify one term at a time.
- Compare with f(x) and -f(x): match the first for even, the second for odd.
- If neither matches, answer “neither” and show the working.
- Sanity-check with x = 1: compare f(1), f(-1) and -f(1).
- For products and quotients, use the parity combination rules to save time.
Frequently Asked Questions: Even & Odd Functions
The questions below cover the points students ask most often about even and odd functions, from the basic test to the edge cases that appear in exams.
1. How do you tell if a function is even or odd?
Substitute -x for x and simplify. If f(-x) = f(x), the function is even; if f(-x) = -f(x), it is odd; if neither equality holds, the function is neither. You can also check the graph: even functions are symmetric about the y-axis, while odd functions are symmetric about the origin.
2. Can a function be both even and odd?
Only one function can: f(x) = 0, the zero function. It satisfies both definitions because 0 equals both itself and its own negative, so f(-x) = 0 = f(x) and f(-x) = 0 = -f(x). Every other function is even, odd, or neither — never both.
3. Is x² + 1 even or odd?
It is even. Substituting gives f(-x) = (-x)^2 + 1 = x^2 + 1 = f(x), because the constant 1 counts as an even-powered term. Any polynomial with only even powers of x, including a constant term, is even.
4. Is sin x even or odd?
Sin x is odd, because sin(-x) = -sin x for every x. Its graph is symmetric about the origin, which you can see in the sine wave: each peak on the right is matched by an equal trough on the left. Cos x, by contrast, is even, and tan x is odd.
5. What if f(-x) equals neither f(x) nor -f(x)?
Then the function is neither even nor odd, and that is a complete answer. This happens with mixed polynomials such as x^2 + x and with domain-restricted functions such as e^x, ln x and sqrt(x). Show the substitution and state “neither” — do not guess one of the two classifications.
Conclusion: The f(-x) Test Settles Every Parity Question
Finding whether a function is even or odd comes down to one routine: substitute -x, simplify carefully, and compare the result with f(x) and -f(x). Even functions satisfy f(-x) = f(x) and mirror across the y-axis, odd functions satisfy f(-x) = -f(x) and rotate 180° about the origin, and everything else is neither — a complete answer in its own right. The worked examples in this guide show the routine applied to polynomials, rational functions, trigonometric functions and exponentials, and the reference table collects the results for revision.
The habits that matter most are the small ones: bracket every substitution, track the minus sign through fractions and powers, and check the domain before you start. With those habits, parity questions become the reliable marks in an assessment rather than a source of sign errors — and the symmetry you learn to spot here will return in calculus, Fourier analysis and every quantitative subject that follows.
Frequently Asked Questions
How do you tell if a function is even or odd?
Substitute -x for x and simplify. If f(-x) = f(x), the function is even; if f(-x) = -f(x), it is odd; if neither equality holds, the function is neither. You can also check the graph: even functions are symmetric about the y-axis, while odd functions are symmetric about the origin.
Can a function be both even and odd?
Only one function can: f(x) = 0, the zero function. It satisfies both definitions because 0 equals both itself and its own negative, so f(-x) = 0 = f(x) and f(-x) = 0 = -f(x). Every other function is even, odd, or neither — never both.
Is x^2 + 1 even or odd?
It is even. Substituting gives f(-x) = (-x)^2 + 1 = x^2 + 1 = f(x), because the constant 1 counts as an even-powered term. Any polynomial with only even powers of x, including a constant term, is even.
Is sin x even or odd?
Sin x is odd, because sin(-x) = -sin x for every x. Its graph is symmetric about the origin, which you can see in the sine wave: each peak on the right is matched by an equal trough on the left. Cos x, by contrast, is even, and tan x is odd.
What if f(-x) equals neither f(x) nor -f(x)?
Then the function is neither even nor odd, and that is a complete answer. This happens with mixed polynomials such as x^2 + x and with domain-restricted functions such as e^x, ln x and sqrt(x). Show the substitution and state “neither” — do not guess one of the two classifications.

Sarah Jenkins is a seasoned corporate speechwriter and organizational communications strategist with 15 years of experience counseling enterprise executives, board directors, and senior leaders on high-stakes rhetoric.
Further Recommended Readings from Our Desks
What Does Ltd. Stand For? Ltd. vs. Inc. — Legal Meanings, Differences & Rules
A plain-English guide to corporate suffixes: what Ltd. and Inc. actually mean, how they differ across the UK, US and Commonwealth, and how to pick the right legal designation for your company.
20$ in Euros, Pounds, CAD, Pesos & Crypto: US Dollar Conversion Guide for $2 and $20
A plain-English guide to converting US dollars: what $20 and $2 are worth in euros, British pounds, Canadian dollars and Mexican pesos, what $20 buys around the world, the story of the $2 bill, and the cheapest ways to convert and send money.
OVHD Cost (Overhead Cost): Definition, Calculation Formula, Types & Practical Examples
A plain-English guide to overhead cost: what OVHD means in business and cost accounting, the three types of overhead, the formula for calculating your overhead rate, and seven practical ways to cut overhead without hurting output.