Even and odd functions

The sine function and all of its Taylor polynomials are odd functions. The cosine function and all of its Taylor polynomials are even functions.

In mathematics, an even function is a real function such that f ( − x ) = f ( x ) {\displaystyle f(-x)=f(x)} for every x {\displaystyle x} in its domain. Similarly, an odd function is a function such that f ( − x ) = − f ( x ) {\displaystyle f(-x)=-f(x)} for every x {\displaystyle x} in its domain.

They are named for the parity of the powers of the power functions which satisfy each condition: the function f ( x ) = x n {\displaystyle f(x)=x^{n}} is even if n is an even integer, and it is odd if n is an odd integer.

Even functions are those real functions whose graph is self-symmetric with respect to the y-axis, and odd functions are those whose graph is self-symmetric with respect to the origin.

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.

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 and codomain both have a notion of additive inverse. This includes abelian groups, all rings, all fields, and all vector spaces. 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 of their graphs.

Even functions

f ( x ) = x 2 {\displaystyle f(x)=x^{2}} is an example of an even function.

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:: p. 11 

f ( − x ) = f ( x ) {\displaystyle f(-x)=f(x)} (Eq.1)

or equivalently if the following equation holds for all such x:

f ( x ) − f ( − x ) = 0. {\displaystyle f(x)-f(-x)=0.}

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:

Odd functions

f ( x ) = x 3 {\displaystyle f(x)=x^{3}} is an example of an odd function.

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:: p. 72 

f ( − x ) = − f ( x ) {\displaystyle f(-x)=-f(x)} (Eq.2)

or equivalently if the following equation holds for all such x:

f ( x ) + f ( − x ) = 0. {\displaystyle f(x)+f(-x)=0.}

Geometrically, the graph of an odd function has rotational symmetry with respect to the origin, meaning that its graph remains unchanged after rotation of 180 degrees about the origin.

Examples of odd functions are:

f ( x ) = x 3 + 1 {\displaystyle f(x)=x^{3}+1} is neither even nor odd.

Basic properties

Uniqueness

Addition and subtraction

Multiplication and division

Composition

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

f e ( x ) = f ( x ) + f ( − x ) 2 {\displaystyle f_{\text{e}}(x)={\frac {f(x)+f(-x)}{2}}} (Eq.3)

and

f o ( x ) = f ( x ) − f ( − x ) 2 {\displaystyle f_{\text{o}}(x)={\frac {f(x)-f(-x)}{2}}} (Eq.4)

then f e {\displaystyle f_{\text{e}}} is even, f o {\displaystyle f_{\text{o}}} is odd, and

f ( x ) = f e ( x ) + f o ( x ) . {\displaystyle f(x)=f_{\text{e}}(x)+f_{\text{o}}(x).}

Conversely, if

f ( x ) = g ( x ) + h ( x ) , {\displaystyle f(x)=g(x)+h(x),}

where g is even and h is odd, then g = f e {\displaystyle g=f_{\text{e}}} and h = f o , {\displaystyle h=f_{\text{o}},} since

2 f e ( x ) = f ( x ) + f ( − x ) = g ( x ) + g ( − x ) + h ( x ) + h ( − x ) = 2 g ( x ) , 2 f o ( x ) = f ( x ) − f ( − x ) = g ( x ) − g ( − x ) + h ( x ) − h ( − x ) = 2 h ( x ) . {\displaystyle {\begin{aligned}2f_{\text{e}}(x)&=f(x)+f(-x)=g(x)+g(-x)+h(x)+h(-x)=2g(x),\\2f_{\text{o}}(x)&=f(x)-f(-x)=g(x)-g(-x)+h(x)-h(-x)=2h(x).\end{aligned}}}

For example, the hyperbolic cosine 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

e x = cosh ⁡ ( x ) ⏟ f e ( x ) + sinh ⁡ ( x ) ⏟ f o ( x ) {\displaystyle e^{x}=\underbrace {\cosh(x)} _{f_{\text{e}}(x)}+\underbrace {\sinh(x)} _{f_{\text{o}}(x)}} .

Further algebraic properties

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 derivatives, Fourier series, Taylor series are considered, and these concepts are thus supposed to be defined for the considered functions.

Basic analytic properties

Series

Harmonics

In signal processing, harmonic distortion occurs when a sine wave signal is sent through a memory-less nonlinear system, that is, a system whose output at time t only depends on the input at time t and does not depend on the input at any previous times. Such a system is described by a response function V out ( t ) = f ( V in ( t ) ) {\displaystyle V_{\text{out}}(t)=f(V_{\text{in}}(t))} . The type of harmonics produced depend on the response function f:

Note that this does not hold true for more complex waveforms. A sawtooth wave contains both even and odd harmonics, for instance. After even-symmetric full-wave rectification, it becomes a triangle wave, which, other than the DC offset, contains only odd harmonics.

Generalizations

Multivariate functions

Even symmetry:

A function f : R n → R {\displaystyle f:\mathbb {R} ^{n}\to \mathbb {R} } is called even symmetric if:

f ( x 1 , x 2 , … , x n ) = f ( − x 1 , − x 2 , … , − x n ) for all  x 1 , … , x n ∈ R {\displaystyle f(x_{1},x_{2},\ldots ,x_{n})=f(-x_{1},-x_{2},\ldots ,-x_{n})\quad {\text{for all }}x_{1},\ldots ,x_{n}\in \mathbb {R} }

Odd symmetry:

A function f : R n → R {\displaystyle f:\mathbb {R} ^{n}\to \mathbb {R} } is called odd symmetric if:

f ( x 1 , x 2 , … , x n ) = − f ( − x 1 , − x 2 , … , − x n ) for all  x 1 , … , x n ∈ R {\displaystyle f(x_{1},x_{2},\ldots ,x_{n})=-f(-x_{1},-x_{2},\ldots ,-x_{n})\quad {\text{for all }}x_{1},\ldots ,x_{n}\in \mathbb {R} }

Complex-valued functions

The definitions for even and odd symmetry for complex-valued functions of a real argument are similar to the real case but involve complex conjugation.

Even symmetry:

A complex-valued function of a real argument f : R → C {\displaystyle f:\mathbb {R} \to \mathbb {C} } is called even symmetric if:

f ( x ) = f ( − x ) ¯ for all  x ∈ R {\displaystyle f(x)={\overline {f(-x)}}\quad {\text{for all }}x\in \mathbb {R} }

Odd symmetry:

A complex-valued function of a real argument f : R → C {\displaystyle f:\mathbb {R} \to \mathbb {C} } is called odd symmetric if:

f ( x ) = − f ( − x ) ¯ for all  x ∈ R {\displaystyle f(x)=-{\overline {f(-x)}}\quad {\text{for all }}x\in \mathbb {R} }

Finite length sequences

The definitions of odd and even symmetry are extended to N-point sequences (i.e. functions of the form f : { 0 , 1 , … , N − 1 } → R {\displaystyle f:\left\{0,1,\ldots ,N-1\right\}\to \mathbb {R} } ) as follows:: p. 411 

Even symmetry:

A N-point sequence is called even symmetric if

f ( n ) = f ( N − n ) for all  n ∈ { 1 , … , N − 1 } . {\displaystyle f(n)=f(N-n)\quad {\text{for all }}n\in \left\{1,\ldots ,N-1\right\}.}

Such a sequence is often called a palindromic sequence; see also Palindromic polynomial.

Odd symmetry:

A N-point sequence is called odd symmetric if

f ( n ) = − f ( N − n ) for all  n ∈ { 1 , … , N − 1 } . {\displaystyle f(n)=-f(N-n)\quad {\text{for all }}n\in \left\{1,\ldots ,N-1\right\}.}

Such a sequence is sometimes called an anti-palindromic sequence; see also Antipalindromic polynomial.

See also

Notes

  1. ^ a b Gel'Fand, I. M.; Glagoleva, E. G.; Shnol, E. E. (1990). Functions and Graphs. Birkhäuser. ISBN 0-8176-3532-7.
  2. ^ W., Weisstein, Eric. "Odd Function". mathworld.wolfram.com.{{cite web}}: CS1 maint: multiple names: authors list (link)
  3. ^ Berners, Dave (October 2005). "Ask the Doctors: Tube vs. Solid-State Harmonics". UA WebZine. Universal Audio. Retrieved 2016-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.
  4. ^ Proakis, John G.; Manolakis, Dimitri G. (1996), Digital Signal Processing: Principles, Algorithms and Applications (3 ed.), Upper Saddle River, NJ: Prentice-Hall International, ISBN 9780133942897, sAcfAQAAIAAJ

References