Inmathematics, aneven function is areal function such that for every in itsdomain. Similarly, anodd function is a function such that for every in its domain.
They are named for theparity of the powers of thepower functions which satisfy each condition: the function is even ifn is aneven integer, and it is odd ifn is an odd integer.
Even functions are those real functions whosegraph isself-symmetric with respect to they-axis, and odd functions are those whose graph is self-symmetric with respect to theorigin.
If the domain of a real function is self-symmetric with respect to the origin, then the function can be uniquely decomposed as the sum of an even function and an odd function.
The concept of even and odd functions appears to date back to the early 18th century, withLeonard Euler playing a significant role in their formalization. Euler introduced the concepts of even and odd functions (using Latin termspares andimpares) in his workTraiectoriarum Reciprocarum Solutio from 1727. Before Euler, however,Isaac Newton had already developed geometric means of deriving coefficients of power series when writing thePrincipia (1687), and included algebraic techniques in an early draft of hisQuadrature of Curves, though he removed it before publication in 1706. It is also noteworthy that Newton didn't explicitly name or focus on the even-odd decomposition, his work with power series would have involved understanding properties related to even and odd powers.
Evenness and oddness are generally considered forreal functions, that is real-valued functions of a real variable. However, the concepts may be more generally defined for functions whosedomain andcodomain both have a notion ofadditive inverse. This includesabelian groups, allrings, allfields, and allvector spaces. Thus, for example, a real function could be odd or even (or neither), as could acomplex-valued function of a vector variable, and so on.
The given examples are real functions, to illustrate thesymmetry of theirgraphs.
Areal functionf iseven if, for everyx in its domain,−x is also in its domain and[1]: p. 11 or equivalently
Geometrically, the graph of an even function issymmetric with respect to they-axis, meaning that its graph remains unchanged afterreflection about they-axis.
A real functionf isodd if, for everyx in its domain,−x is also in its domain and[1]: p. 72 or equivalently
Geometrically, the graph of an odd function has rotational symmetry with respect to theorigin, meaning that its graph remains unchanged afterrotation of 180degrees about the origin.
If a real function has a domain that is self-symmetric with respect to the origin, it may be uniquely decomposed as the sum of an even and an odd function, which are called respectively theeven part (or theeven component) and theodd part (or theodd component) of the function, and are defined byand
It is straightforward to verify that is even, is odd, and
This decomposition is unique since, if
whereg is even andh is odd, then and since
For example, thehyperbolic cosine and thehyperbolic 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
.
Fourier'ssine and cosine transforms also perform even–odd decomposition by representing a function's odd part withsine waves (an odd function) and the function's even part with cosine waves (an even function).
Anylinear combination of even functions is even, and the even functions form avector space over thereals. 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 ofall real functions is thedirect sum of thesubspaces 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 agraded algebra over the real numbers by this property, as well as some of those above.
The even functions form acommutative algebra over the reals. However, the odd functions donot form an algebra over the reals, as they are notclosed under multiplication.
In the following, properties involvingderivatives,Fourier series,Taylor series are considered, and these concepts are thus supposed to be defined for the considered functions.
Insignal processing,harmonic distortion occurs when asine wave signal is sent through a memory-lessnonlinear system, that is, a system whose output at timet only depends on the input at timet and does not depend on the input at any previous times. Such a system is described by a response function. The type ofharmonics produced depend on the response functionf:[4]
When the response function is even, the resulting signal will consist of only even harmonics of the input sine wave;
Thefundamental is also an odd harmonic, so will not be present.
When it is asymmetric, the resulting signal may contain either even or odd harmonics;
Simple examples are a half-wave rectifier, and clipping in an asymmetricalclass-A amplifier.
This does not hold true for more complex waveforms. Asawtooth wave contains both even and odd harmonics, for instance. After even-symmetric full-wave rectification, it becomes atriangle wave, which, other than the DC offset, contains only odd harmonics.
The definitions for even and odd symmetry forcomplex-valued functions of a real argument are similar to the real case. Insignal processing, a similar symmetry is sometimes considered, which involvescomplex conjugation.[5][6]
Conjugate symmetry:
A complex-valued function of a real argument is calledconjugate symmetric if
A complex valued function is conjugate symmetric if and only if itsreal part is an even function and itsimaginary part is an odd function.
A typical example of a conjugate symmetric function is thecis function
Conjugate antisymmetry:
A complex-valued function of a real argument is calledconjugate antisymmetric if:
A complex valued function is conjugate antisymmetric if and only if itsreal part is an odd function and itsimaginary part is an even function.
^Berners, Dave (October 2005)."Ask the Doctors: Tube vs. Solid-State Harmonics".UA WebZine. Universal Audio. Retrieved2016-09-22.To summarize, if the function f(x) is odd, a cosine input will produce no even harmonics. If the function f(x) is even, a cosine input will produce no odd harmonics (but may contain a DC component). If the function is neither odd nor even, all harmonics may be present in the output.