
In
mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
, even functions and odd functions are
functions which satisfy particular
symmetry
Symmetry (from grc, συμμετρία "agreement in dimensions, due proportion, arrangement") in everyday language refers to a sense of harmonious and beautiful proportion and balance. In mathematics, "symmetry" has a more precise definit ...
relations, with respect to taking
additive inverse
In mathematics, the additive inverse of a number is the number that, when added to , yields zero. This number is also known as the opposite (number), sign change, and negation. For a real number, it reverses its sign: the additive inverse (opp ...
s. They are important in many areas of
mathematical analysis
Analysis is the branch of mathematics dealing with continuous functions, limit (mathematics), limits, and related theories, such as Derivative, differentiation, Integral, integration, measure (mathematics), measure, infinite sequences, series (m ...
, especially the theory of
power series
In mathematics, a power series (in one variable) is an infinite series of the form
\sum_^\infty a_n \left(x - c\right)^n = a_0 + a_1 (x - c) + a_2 (x - c)^2 + \dots
where ''an'' represents the coefficient of the ''n''th term and ''c'' is a const ...
and
Fourier series
A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or ''p ...
. They are named for the
parity
Parity may refer to:
* Parity (computing)
** Parity bit in computing, sets the parity of data for the purpose of error detection
** Parity flag in computing, indicates if the number of set bits is odd or even in the binary representation of the r ...
of the powers of the
power functions which satisfy each condition: the function
is an even function if ''n'' is an even
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
, and it is an odd function if ''n'' is an odd integer.
Definition and examples
Evenness and oddness are generally considered for
real functions, that is real-valued functions of a real variable. However, the concepts may be more generally defined for functions whose
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
and
codomain both have a notion of
additive inverse
In mathematics, the additive inverse of a number is the number that, when added to , yields zero. This number is also known as the opposite (number), sign change, and negation. For a real number, it reverses its sign: the additive inverse (opp ...
. This includes
abelian group
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is commut ...
s, all
rings, all
fields
Fields may refer to:
Music
*Fields (band), an indie rock band formed in 2006
*Fields (progressive rock band), a progressive rock band formed in 1971
* ''Fields'' (album), an LP by Swedish-based indie rock band Junip (2010)
* "Fields", a song by ...
, and all
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but can ...
s. Thus, for example, a real function could be odd or even (or neither), as could a
complex-valued function of a vector variable, and so on.
The given examples are real functions, to illustrate the
symmetry
Symmetry (from grc, συμμετρία "agreement in dimensions, due proportion, arrangement") in everyday language refers to a sense of harmonious and beautiful proportion and balance. In mathematics, "symmetry" has a more precise definit ...
of their
graphs
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discre ...
.
Even functions
Let ''f'' be a real-valued function of a real variable. Then ''f'' is even if the following equation holds for all ''x'' such that ''x'' and −''x'' are in the domain of ''f'':
or equivalently if the following equation holds for all such ''x'':
:
Geometrically, the graph of an even function is
symmetric with respect to the ''y''-axis, meaning that its graph remains unchanged after
reflection about the ''y''-axis.
Examples of even functions are:
*The
absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
*
*
*
cosine
*
hyperbolic cosine
In mathematics, hyperbolic functions are analogues of the ordinary trigonometric functions, but defined using the hyperbola rather than the circle. Just as the points form a circle with a unit radius, the points form the right half of the u ...
Odd functions
Again, let ''f'' be a real-valued function of a real variable. Then ''f'' is odd if the following equation holds for all ''x'' such that ''x'' and −''x'' are in the domain of ''f'':
[
or equivalently if the following equation holds for all such ''x'':
:
Geometrically, the graph of an odd function has rotational symmetry with respect to the ]origin
Origin(s) or The Origin may refer to:
Arts, entertainment, and media
Comics and manga
* Origin (comics), ''Origin'' (comics), a Wolverine comic book mini-series published by Marvel Comics in 2002
* The Origin (Buffy comic), ''The Origin'' (Bu ...
, meaning that its graph remains unchanged after rotation
Rotation, or spin, is the circular movement of an object around a '' central axis''. A two-dimensional rotating object has only one possible central axis and can rotate in either a clockwise or counterclockwise direction. A three-dimensional ...
of 180 degree
Degree may refer to:
As a unit of measurement
* Degree (angle), a unit of angle measurement
** Degree of geographical latitude
** Degree of geographical longitude
* Degree symbol (°), a notation used in science, engineering, and mathematics
...
s about the origin.
Examples of odd functions are:
*The identity function
*
*sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side that is oppo ...
* hyperbolic sine
*The error function
In mathematics, the error function (also called the Gauss error function), often denoted by , is a complex function of a complex variable defined as:
:\operatorname z = \frac\int_0^z e^\,\mathrm dt.
This integral is a special (non-elementary ...
Basic properties
Uniqueness
* If a function is both even and odd, it is equal to 0 everywhere it is defined.
* If a function is odd, the absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
of that function is an even function.
Addition and subtraction
* The sum
Sum most commonly means the total of two or more numbers added together; see addition.
Sum can also refer to:
Mathematics
* Sum (category theory), the generic concept of summation in mathematics
* Sum, the result of summation, the additio ...
of two even functions is even.
* The sum of two odd functions is odd.
* The difference between two odd functions is odd.
* The difference between two even functions is even.
* The sum of an even and odd function is not even or odd, unless one of the functions is equal to zero over the given domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
.
Multiplication and division
* The product of two even functions is an even function.
** That implies that product of any number of even functions is an even function as well.
* The product of two odd functions is an even function.
* The product of an even function and an odd function is an odd function.
* The quotient of two even functions is an even function.
* The quotient of two odd functions is an even function.
* The quotient of an even function and an odd function is an odd function.
Composition
* The composition of two even functions is even.
* The composition of two odd functions is odd.
* The composition of an even function and an odd function is even.
* The composition of any function with an even function is even (but not vice versa).
Even–odd decomposition
Every function may be uniquely decomposed as the sum of an even and an odd function, which are called respectively the even part and the odd part of the function; if one defines
and
then is even, is odd, and
:
Conversely, if
:
where is even and is odd, then and since
:
For example, the hyperbolic cosine
In mathematics, hyperbolic functions are analogues of the ordinary trigonometric functions, but defined using the hyperbola rather than the circle. Just as the points form a circle with a unit radius, the points form the right half of the u ...
and the hyperbolic sine may be regarded as the even and odd parts of the exponential function, as the first one is an even function, the second one is odd, and
:.
Further algebraic properties
* Any linear combination of even functions is even, and the even functions form a vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but can ...
over the reals. Similarly, any linear combination of odd functions is odd, and the odd functions also form a vector space over the reals. In fact, the vector space of ''all'' real functions is the direct sum
The direct sum is an operation between structures in abstract algebra, a branch of mathematics. It is defined differently, but analogously, for different kinds of structures. To see how the direct sum is used in abstract algebra, consider a more ...
of the subspaces of even and odd functions. This is a more abstract way of expressing the property in the preceding section.
**The space of functions can be considered a graded algebra
In mathematics, in particular abstract algebra, a graded ring is a ring such that the underlying additive group is a direct sum of abelian groups R_i such that R_i R_j \subseteq R_. The index set is usually the set of nonnegative integers or the se ...
over the real numbers by this property, as well as some of those above.
*The even functions form a commutative algebra
Commutative algebra, first known as ideal theory, is the branch of algebra that studies commutative rings, their ideals, and modules over such rings. Both algebraic geometry and algebraic number theory build on commutative algebra. Prominent ...
over the reals. However, the odd functions do ''not'' form an algebra over the reals, as they are not closed
Closed may refer to:
Mathematics
* Closure (mathematics), a set, along with operations, for which applying those operations on members always results in a member of the set
* Closed set, a set which contains all its limit points
* Closed interval, ...
under multiplication.
Analytic properties
A function's being odd or even does not imply differentiability, or even continuity. For example, the Dirichlet function is even, but is nowhere continuous.
In the following, properties involving derivative
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. F ...
s, Fourier series
A Fourier series () is a summation of harmonically related sinusoidal functions, also known as components or harmonics. The result of the summation is a periodic function whose functional form is determined by the choices of cycle length (or ''p ...
, Taylor series
In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor serie ...
, and so on suppose that these concepts are defined of the functions that are considered.
Basic analytic properties
* The derivative
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. F ...
of an even function is odd.
* The derivative of an odd function is even.
* The integral
In mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented i ...
of an odd function from −''A'' to +''A'' is zero (where ''A'' is finite, and the function has no vertical asymptotes between −''A'' and ''A''). For an odd function that is integrable over a symmetric interval, e.g.