Even and Odd Functions

The parity of a function classifies real-valued functions according to how their outputs change when the sign of the independent variable is reversed. Before evaluating either of the following two definitions, a prerequisite condition must be met: the domain of the function must be symmetric about the origin, meaning that for every value x in the domain, its opposite -x must also belong to the domain (if \(x \in D_f\), then \(-x \in D_f\)).

An even function is one that satisfies the condition that any value in its domain has the same output as its opposite value. In symbols:

$$f(-x) = f(x) \quad \text{for all } x \text{ in the domain}$$

From a geometric standpoint, its graph has the property of being symmetric about the y-axis.

An odd function is one that satisfies the condition that opposite values in the domain correspond to opposite outputs. In symbols:

$$f(-x) = -f(x) \quad \text{for all } x \text{ in the domain}$$

From a geometric standpoint, its graph is symmetric about the origin.

If a function does not satisfy either of these two equations, or if its domain is not symmetric about the origin, it is said to be neither even nor odd (or to lack parity).

The names "even" and "odd" come from powers of x, since functions with even natural exponents are even functions, and those with odd natural exponents are odd functions:

  • Given \(f(x) = x^2\), we can see that \(f(-x) = (-x)^2 = x^2 = f(x)\), so it satisfies the definition of an even function.
  • Given \(f(x) = x^3\), we see that \(f(-x) = (-x)^3 = -x^3 = -f(x)\), so it is an odd function.
  • Given \(g(x) = x^8\), we verify that \(g(-x) = (-x)^8 = x^8 = g(x)\); since the exponent is even, it is an even function.
  • Given \(h(x) = x^5\), it follows that \(h(-x) = (-x)^5 = -x^5 = -h(x)\), making it an odd function.

Do not confuse the parity of a function with the parity of integers. Whether a function is even or odd depends exclusively on its symmetry when replacing x with -x, and not on whether the outputs it produces are even or odd numbers. For example, \(f(x) = x^2\) is an even function even though \(f(3) = 9\) is an odd number.

Graphical Symmetry of Even and Odd Functions

The geometric significance of an even function lies in the fact that its graph is symmetric about the y-axis. This means the vertical axis acts like a mirror: if we know the curve for non-negative values (x ≥ 0, the right half of the plane), we can obtain the complete graph by reflecting that portion to the left. In other words, a reflection across the y-axis leaves the curve unchanged.

Graph of an even function symmetric about the y-axis
Graph of an even function. Every value of x and its opposite -x have the same output, creating symmetry about the y-axis.

In the case of an odd function, its graph is symmetric about the origin. If we have the sketch for x ≥ 0, we can complete the entire graph by rotating that portion 180° around the point (0, 0). As a direct consequence, if zero belongs to the domain of an odd function, its graph necessarily passes through the origin, meaning \(f(0) = 0\).

Graph of an odd function symmetric about the origin
Graph of an odd function. Each point (x, y) has its symmetric counterpart (-x, -y) when rotated 180° about the origin.

If upon examining a graph we notice that it is symmetric neither about the vertical axis nor about the origin (for example, when it extends farther to one side than the other or its shape changes between opposite quadrants), we can immediately conclude that the function is neither even nor odd.

The geometric interpretation also explains how translations of a graph affect its parity:

  • Vertical translations (\(f(x) + c\)): shifting a graph up or down preserves symmetry about the vertical axis, so an even function remains even (as happens with \(x^2 + 1\)). On the other hand, if \(c \ne 0\), it destroys the origin symmetry of an odd function, since the curve no longer passes through the point (0, 0).
  • Horizontal translations (\(f(x - h)\)): shifting a graph left or right (with \(h \ne 0\)) moves its axis or center of symmetry away from the vertical axis and the origin, causing it to lose its parity (except in special cases involving periodic functions).

Furthermore, the symmetry of an even function has a direct consequence for its invertibility: if its domain contains at least one non-zero number, the function is never one-to-one, since two distinct values (x and -x) share the same output. Because of this, no even function has an inverse function unless its domain is restricted beforehand (for example, by working only with x ≥ 0). In contrast, an odd function can be one-to-one (such as \(f(x) = x^3\)), although not all of them are (such as \(f(x) = \sin(x)\)).

How to Determine Whether a Function Is Even or Odd

If we have the graphical representation of a function, it suffices to visually check whether there is symmetry about the vertical axis or about the origin. When we only have the algebraic formula, we can test for parity by evaluating the function at -x and comparing the result with the original expression.

Steps to algebraically determine whether a function is even or odd:

  1. Verify that the domain is symmetric: check that for any value x where the function is defined, it is also defined at -x. If the domain is not symmetric, the test ends and the function is neither even nor odd.
  2. Evaluate the function at -x: substitute every occurrence of x with (-x) in the formula, using parentheses to avoid sign and exponent errors.
  3. Simplify the resulting expression: evaluate powers, products, and signs until obtaining a simplified form of \(f(-x)\).
  4. Compare with the original function: if \(f(-x) = f(x)\), the function is even; if \(f(-x) = -f(x)\), the function is odd. If neither equation holds, the function is neither even nor odd.

To see how this procedure applies to different types of expressions, let's examine the following cases:

Example 1

Determine whether the quadratic function \(f(x) = x^2 + 1\) is even, odd, or neither.

Since this is a polynomial, its domain is the entire set of real numbers (\(\mathbb{R}\)), which is symmetric about the origin. We compute \(f(-x)\) by replacing x with (-x):

$$f(-x) = (-x)^2 + 1 = x^2 + 1$$

We observe that we obtain the exact original expression, that is, \(f(-x) = f(x)\). Therefore, f is an even function.

Example 2

Analyze the parity of the rational function \(f(x) = \dfrac{1}{x}\).

The domain of this function is all real numbers except zero (\(\mathbb{R} - \{0\}\)), which is symmetric about the origin because if a number is non-zero, its opposite is also non-zero. We evaluate the function at -x:

$$f(-x) = \dfrac{1}{-x} = -\dfrac{1}{x}$$

The result matches the opposite of the initial formula, since \(-\dfrac{1}{x} = -f(x)\). Consequently, the function is odd.

Example 3

Check whether \(f(x) = 3x^2 + 2x + 1\) is even, odd, or neither.

The domain is again all real numbers (\(\mathbb{R}\)), so we proceed to calculate \(f(-x)\):

$$f(-x) = 3(-x)^2 + 2(-x) + 1 = 3x^2 - 2x + 1$$

We compare the result with \(f(x) = 3x^2 + 2x + 1\) and with \(-f(x) = -3x^2 - 2x - 1\). Since \(f(-x)\) matches neither expression (the sign of the linear term changed, while the other two did not), we conclude that the function is neither even nor odd.

Example 4

Classify the function \(f(x) = x\sqrt{x^2 + 4}\) according to its parity.

The expression inside the radical, \(x^2 + 4\), is always positive for any real number, so the domain is \(\mathbb{R}\) (symmetric about the origin). We substitute x with (-x) and simplify:

$$f(-x) = (-x)\sqrt{(-x)^2 + 4} = -x\sqrt{x^2 + 4}$$

We note that the minus sign sits in front of the entire original expression, so \(f(-x) = -f(x)\). Thus, f is an odd function.

Example 5

Study the parity of the function \(f(x) = \sqrt{x - 2}\).

Before substituting into the formula, we check the domain. For the square root to be defined over the real numbers, we must have \(x - 2 \ge 0\), meaning \(x \ge 2\) (the interval \([2, \infty)\)). If we take, for example, \(x = 3\), it belongs to the domain, whereas its opposite \(-x = -3\) lies outside it. Since the domain is not symmetric about the origin, the function is neither even nor odd without needing any further calculations.

Example 6

Verify whether the following piecewise function is even or odd:

$$f(x) = \begin{cases} -1 & \text{if } x < 0 \\ 1 & \text{if } x > 0 \end{cases}$$

The domain consists of all real numbers except zero, which is symmetric about the origin. To analyze \(f(-x)\) for a piecewise function, we must evaluate how the condition of each interval changes when replacing x with -x:

  • If \(x < 0\), multiplying by \(-1\) reverses the inequality and yields \(-x > 0\). Therefore, \(-x\) falls into the second piece, where the output is \(1\). Since in this first case \(f(x) = -1\), it holds that \(f(-x) = 1 = -(-1) = -f(x)\).
  • If \(x > 0\), multiplying by \(-1\) gives \(-x < 0\). Now \(-x\) falls into the first piece, where the output is \(-1\). Since here \(f(x) = 1\), it again holds that \(f(-x) = -1 = -f(x)\).

Because the condition \(f(-x) = -f(x)\) holds across all pieces of the domain, the piecewise function is odd.

Parity of Elementary Functions

Certain families of functions exhibit fixed symmetry behavior, allowing us to identify their parity directly from their algebraic structure.

In the case of polynomial functions, parity depends exclusively on the exponents of the variable x that appear with a non-zero coefficient (treating the constant term as \(c \cdot x^0\), which has an even exponent):

  • If all terms have an even exponent (for example, \(f(x) = 4x^4 - 3x^2 + 7\)), the function is even. In particular, every non-zero constant function \(f(x) = k\) with \(k \ne 0\) is even.
  • If all terms have an odd exponent and there is no constant term (for example, \(f(x) = 2x^5 - 5x\)), the function is odd.
  • If the polynomial combines terms with even and odd exponents (for example, \(f(x) = x^3 + x^2\)), it is neither even nor odd.

This exponent rule applies only to polynomials. When division, radicals, or absolute values are present, combining even and odd powers can still produce an even or odd function (for example, \(f(x) = \dfrac{x^3}{x^2 + 1}\) contains both odd and even exponents, yet substituting -x yields an odd function).

Meanwhile, the trigonometric functions sine, cosine, and tangent are odd, even, and odd respectively, owing to the negative-angle trigonometric identities:

  • \(f(x) = \sin(x) \rightarrow f(-x) = \sin(-x) = -\sin(x) = -f(x)\). Therefore, sine is an odd function.
  • \(f(x) = \cos(x) \rightarrow f(-x) = \cos(-x) = \cos(x) = f(x)\). Therefore, cosine is an even function.
  • \(f(x) = \tan(x) \rightarrow f(-x) = \tan(-x) = -\tan(x) = -f(x)\). Therefore, tangent is an odd function.

Their three reciprocal functions retain the exact same parity on their respective natural domains (which are also symmetric about the origin once the points where the denominators vanish are excluded):

  • The cosecant function, \(\csc(x) = \dfrac{1}{\sin(x)}\), is odd.
  • The secant function, \(\sec(x) = \dfrac{1}{\cos(x)}\), is even.
  • The cotangent function, \(\cot(x) = \dfrac{1}{\tan(x)}\), is odd.

The following table summarizes the parity of the most common elementary functions along with their domain conditions:

FunctionExpressionParityNote
Zero function\(f(x) = 0\)Even and oddIt is the only function with both parities simultaneously (on a symmetric domain).
Non-zero constant\(f(x) = k \quad (k \ne 0)\)EvenIts graph is a horizontal line symmetric about the y-axis.
Linear (through the origin)\(f(x) = mx \quad (m \ne 0)\)OddIf a y-intercept is added (\(mx + b\) with \(b \ne 0\)), it loses its parity.
Absolute value\(f(x) = |x|\)EvenSatisfies \(|-x| = |x|\) for all real numbers.
Natural power\(f(x) = x^n \quad (n \in \mathbb{N})\)Even if n is even
Odd if n is odd
Gives rise to the name of the classification.
Square root\(f(x) = \sqrt{x}\)Neither even nor oddIts domain \([0, \infty)\) is not symmetric about the origin.
Exponential\(f(x) = a^x \quad (a > 0, a \ne 1)\)Neither even nor oddFor \(x \ne 0\), \(a^{-x}\) matches neither \(a^x\) nor \(-a^x\).
Logarithmic\(f(x) = \log_a(x) \quad (a > 0, a \ne 1)\)Neither even nor oddIts domain \((0, \infty)\) is not symmetric about the origin.
Sine, tangent, cosecant, and cotangent\(\sin(x), \tan(x), \csc(x), \cot(x)\)OddReversing the sign of the angle reverses the sign of the output.
Cosine and secant\(\cos(x), \sec(x)\)EvenThe opposite angle produces the exact same value.

Parity in Function Composition

When we evaluate one function inside another through composition \((f \circ g)(x) = f(g(x))\), we can determine the parity of the resulting function by analyzing the behavior of the inner function \(g\) and the outer function \(f\) when replacing x with -x (assuming symmetric domains where the composition is well-defined):

  • If the inner function \(g\) is even, then \(f(g(x))\) is always an even function, regardless of the parity of \(f\) (it is not even necessary for \(f\) to be even or odd), since \(f(g(-x)) = f(g(x))\).
  • If \(f\) is even and \(g\) is odd, then \(f(g(x))\) is an even function, because \(f(g(-x)) = f(-g(x)) = f(g(x))\).
  • If both \(f\) and \(g\) are odd, then \(f(g(x))\) is an odd function, because \(f(g(-x)) = f(-g(x)) = -f(g(x))\).

Let's see how to apply these rules to classify composite expressions without having to expand all of their algebra:

Example 1

Determine the parity of the composite function \(h(x) = \sin(x^2 + 3)\).

We identify the inner function \(g(x) = x^2 + 3\) and the outer function \(f(u) = \sin(u)\). Since \(g(-x) = (-x)^2 + 3 = x^2 + 3 = g(x)\), we know that the inner function is even. Substituting directly into \(h(-x)\) gives:

$$h(-x) = \sin((-x)^2 + 3) = \sin(x^2 + 3) = h(x)$$

Therefore, h is an even function.

Example 2

Classify the function \(h(x) = \cos(x^3)\) according to its parity.

In this case, the inner function \(g(x) = x^3\) is odd and the outer function \(f(u) = \cos(u)\) is even. We evaluate \(h(-x)\) by first applying the oddness of the cube and then the evenness of the cosine:

$$h(-x) = \cos((-x)^3) = \cos(-x^3) = \cos(x^3) = h(x)$$

Consequently, h is also an even function.

Properties of Even and Odd Functions

Even and odd functions satisfy a set of algebraic properties that allow us to deduce the parity of composite expressions without applying the definition from scratch:

Algebraic properties:

  1. Every function with a domain symmetric about the origin can be written as the sum of an even function and an odd function.
  2. The constant function \(f(x) = 0\) (defined on a non-empty symmetric domain) is the only function that is both even and odd at the same time.
  3. The product of two even functions is an even function.
  4. The product of two odd functions is an even function.
  5. The product of an even function and an odd function is an odd function.
  6. The sum (or difference) of two even functions is an even function.
  7. The sum (or difference) of two odd functions is an odd function.

Proofs

Below are the algebraic proofs for each of the properties listed above:

Property 1

We want to prove that every function \(f\) with a domain \(D_f\) symmetric about the origin can be expressed as the sum of an even function and an odd function. To do so, consider the following algebraic identity:

$$f(x) = \dfrac{1}{2}[f(x) + f(-x)] + \dfrac{1}{2}[f(x) - f(-x)]$$

Let \(p(x) = \dfrac{1}{2}[f(x) + f(-x)]\) denote the first term and \(i(x) = \dfrac{1}{2}[f(x) - f(-x)]\) denote the second. Evaluating both at -x (which is possible because \(D_f\) is symmetric), we verify that:

$$p(-x) = \dfrac{1}{2}[f(-x) + f(x)] = p(x)$$

$$i(-x) = \dfrac{1}{2}[f(-x) - f(x)] = -\dfrac{1}{2}[f(x) - f(-x)] = -i(x)$$

This proves that \(p\) is an even function and \(i\) is an odd function. For example, for \(f(x) = 3x^2 + 2x + 1\), applying these formulas yields the even function \(p(x) = 3x^2 + 1\) and the odd function \(i(x) = 2x\).

Property 2

We want to prove that the zero function \(f(x) = 0\) is the only function (with a non-empty symmetric domain) that simultaneously satisfies the definitions of being even and odd.

Suppose a function \(f\) is both even and odd at the same time. Then, for every x in its domain, both equations hold:

$$f(-x) = f(x) \quad \text{and} \quad f(-x) = -f(x)$$

Equating the right-hand sides of both expressions, we obtain:

$$f(x) = -f(x)$$

Adding \(f(x)\) to both sides gives \(2f(x) = 0\), from which we solve to get \(f(x) = 0\) for all x in the domain.

Property 3

We want to prove that the product of two even functions is an even function.

Suppose two functions \(f\) and \(g\) are even. Then \(f(-x) = f(x)\) and \(g(-x) = g(x)\) hold on the intersection of their domains (which is also symmetric).

Let \(h\) be the product function defined as \(h(x) = f(x) \cdot g(x)\). Evaluating at -x, we verify that:

$$h(-x) = f(-x) \cdot g(-x) = f(x) \cdot g(x) = h(x)$$

Therefore, \(h\) is also an even function.

Property 4

We want to prove that the product of two odd functions is an even function.

Suppose two functions \(f\) and \(g\) are odd. Then \(f(-x) = -f(x)\) and \(g(-x) = -g(x)\).

Let \(h\) be the product function defined as \(h(x) = f(x) \cdot g(x)\). We evaluate \(h(-x)\):

$$h(-x) = f(-x) \cdot g(-x)$$

$$= [-f(x)] \cdot [-g(x)]$$

$$= (-1)f(x) \cdot (-1)g(x)$$

$$= (-1)(-1)f(x) \cdot g(x)$$

$$= f(x) \cdot g(x) = h(x)$$

Consequently, the product function is even.

Property 5

We want to prove that the product of an even function and an odd function is an odd function.

Let \(f\) be an even function and \(g\) be an odd function, so that \(f(-x) = f(x)\) and \(g(-x) = -g(x)\).

We define the product function \(h(x) = f(x) \cdot g(x)\) and compute \(h(-x)\):

$$h(-x) = f(-x) \cdot g(-x)$$

$$= f(x) \cdot [-g(x)]$$

$$= -[f(x) \cdot g(x)] = -h(x)$$

This proves that \(h\) is an odd function.

Property 6

We want to prove that the sum of two even functions is an even function.

Let \(f\) and \(g\) be two even functions, so that \(f(-x) = f(x)\) and \(g(-x) = g(x)\).

Let \(h\) be the sum function defined as \(h(x) = f(x) + g(x)\). It holds that:

$$h(-x) = f(-x) + g(-x) = f(x) + g(x) = h(x)$$

Therefore, the sum function is even.

Property 7

We want to prove that the sum of two odd functions is an odd function.

Let \(f\) and \(g\) be two odd functions, so that \(f(-x) = -f(x)\) and \(g(-x) = -g(x)\).

Let \(h\) be the sum function defined as \(h(x) = f(x) + g(x)\). Evaluating at -x, we verify that:

$$h(-x) = f(-x) + g(-x) = -f(x) - g(x) = -[f(x) + g(x)] = -h(x)$$

Thus, the sum function is odd.

Did you find this useful? Rate it!

0.0 / 5 — 0 votes

Daniel Machado

Mathematics teacher and administrator of Flamath, where he shares content about Mathematical Logic

HOW TO CITE THIS ARTICLE
Machado, D. (2026, December 5). Even and Odd Functions. Flamath. https://en.flamath.com/even-odd-functions

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *