Even and odd functions






The sine function and all of its Taylor polynomials are odd functions. This image shows sin⁡(x){displaystyle sin(x)}sin(x) and its Taylor approximations, polynomials of degree 1, 3, 5, 7, 9, 11 and 13.




The cosine function and all of its Taylor polynomials are even functions. This image shows cos⁡(x){displaystyle cos(x)}cos(x) and its Taylor approximation of degree 4.


In mathematics, even functions and odd functions are functions which satisfy particular symmetry relations, with respect to taking additive inverses. They are important in many areas of mathematical analysis, especially the theory of power series and Fourier series. They are named for the parity of the powers of the power functions which satisfy each condition: the function f(x)=xn{displaystyle f(x)=x^{n}}f(x)=x^{n} is an even function if n{displaystyle n}n is an even integer, and it is an odd function if n{displaystyle n}n is an odd integer.




Contents






  • 1 Definition and examples


    • 1.1 Even functions


    • 1.2 Odd functions




  • 2 Basic properties


    • 2.1 Uniqueness


    • 2.2 Addition and subtraction


    • 2.3 Multiplication and division


    • 2.4 Composition




  • 3 Even–odd decomposition


  • 4 Further algebraic properties


  • 5 Calculus properties


    • 5.1 Basic calculus properties


    • 5.2 Series




  • 6 Harmonics


  • 7 Generalizations


    • 7.1 Multivariate functions


    • 7.2 Complex-valued functions


    • 7.3 Finite length sequences




  • 8 See also


  • 9 Notes


  • 10 References





Definition and examples


Evenness or 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 an additive inverse. This includes additive groups, all rings, all fields, and all vector spaces. Thus, for example, a real function, 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)=x2{displaystyle f(x)=x^{2}}f(x)=x^{2} is an example of an even function.


Let f(x){displaystyle f(x)}f(x) be a real-valued function of a real variable. Then f{displaystyle f}f is even if the following equation holds for all x{displaystyle x}x and x{displaystyle -x}-x in the domain of f{displaystyle f}f:[1]:p. 11








f(x)=f(−x){displaystyle f(x)=f(-x)}{displaystyle f(x)=f(-x)}












 



 



 



 





(Eq.1)




or equivalently if the following equation holds for all x{displaystyle x}x and x{displaystyle -x}-x in the domain of f{displaystyle f}f:


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

Geometrically speaking, the graph face 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:




  • Absolute value |x|{displaystyle |x|}|x|

  • x2{displaystyle x^{2}}x^{2}

  • x4{displaystyle x^{4}}x^4


  • cosine cos⁡(x){displaystyle cos(x)}cos(x)


  • hyperbolic cosine cosh⁡(x){displaystyle cosh(x)}{displaystyle cosh(x)}



Odd functions





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


Again, let f(x){displaystyle f(x)}f(x) be a real-valued function of a real variable. Then f{displaystyle f}f is odd if the following equation holds for all x{displaystyle x}x and x{displaystyle -x}-x in the domain of f{displaystyle f}f:[1]:p. 72








f(x)=f(−x){displaystyle -f(x)=f(-x)}{displaystyle -f(x)=f(-x)}












 



 



 



 





(Eq.2)




or equivalently if the following equation holds for all x{displaystyle x}x and x{displaystyle -x}-x in the domain of f{displaystyle f}f:


f(x)+f(−x)=0.{displaystyle 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{displaystyle f(x)=x}f(x)=x

  • f(x)=x3{displaystyle f(x)=x^{3}}f(x)=x^{3}


  • sinef(x)=sin⁡(x){displaystyle f(x)=sin(x)}f(x)=sin(x)


  • hyperbolic sine f(x)=sinh⁡(x){displaystyle f(x)=sinh(x)}{displaystyle f(x)=sinh(x)}


  • error function f(x)=erf⁡(x){displaystyle f(x)=operatorname {erf} (x)}{displaystyle f(x)=operatorname {erf} (x)}





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



Basic properties



Uniqueness



  • If a function is even and odd, it is equal to 0 everywhere it is defined.

  • If a function is odd, the absolute value of that function is an even function.



Addition and subtraction



  • The sum 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 neither even nor odd, unless one of the functions is equal to zero over the given domain.



Multiplication and division



  • The product of two even functions is an even function.

  • 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. In fact, if one defines








fe(x)=f(x)+f(−x)2{displaystyle f_{text{e}}(x)={frac {f(x)+f(-x)}{2}}}{displaystyle f_{text{e}}(x)={frac {f(x)+f(-x)}{2}}}












 



 



 



 





(Eq.3)




and








fo(x)=f(x)−f(−x)2{displaystyle f_{text{o}}(x)={frac {f(x)-f(-x)}{2}}}{displaystyle f_{text{o}}(x)={frac {f(x)-f(-x)}{2}}}












 



 



 



 





(Eq.4)




then fe{displaystyle f_{text{e}}}{displaystyle f_{text{e}}} is even, fo{displaystyle f_{text{o}}}{displaystyle f_{text{o}}} is odd, and


f(x)=fe(x)+fo(x).{displaystyle f(x)=f_{text{e}}(x)+f_{text{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),}{displaystyle f(x)=g(x)+h(x),}

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


2fe(x)=f(x)+f(−x)=g(x)+g(−x)+h(x)+h(−x)=2g(x),2fo(x)=f(x)−f(−x)=g(x)−g(−x)+h(x)−h(−x)=2h(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}}}{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 defined as the even and odd parts of the exponential function, as the first one is an even function, the second one is odd, and



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


Further algebraic properties


  • Any linear combination of even functions is even, and the even functions form a vector space 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 of the subspaces of even and odd functions. This is a more abstract way for expressing the property of the preceding section.

  • The even functions form a commutative algebra over the reals. However, the odd functions do not form an algebra over the reals, as they are not closed under multiplication.


Calculus 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, and so on suppose that these concepts are defined of the functions that are considered.



Basic calculus properties



  • The derivative of an even function is odd.

  • The derivative of an odd function is even.

  • The integral 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. [−A,A]{displaystyle [-A,A]}{displaystyle [-A,A]} the result of the integral over that interval is identically zero; that is[2]



AAf(x)dx=0{displaystyle int _{-A}^{A}f(x)dx=0}{displaystyle int _{-A}^{A}f(x)dx=0}.

  • The integral of an even function from −A to +A is twice the integral from 0 to +A (where A is finite, and the function has no vertical asymptotes between −A and A. This also holds true when A is infinite, but only if the integral converges); that is


AAf(x)dx=2∫0Af(x)dx{displaystyle int _{-A}^{A}f(x)dx=2int _{0}^{A}f(x)dx}{displaystyle int _{-A}^{A}f(x)dx=2int _{0}^{A}f(x)dx}.


Series



  • The Maclaurin series of an even function includes only even powers.

  • The Maclaurin series of an odd function includes only odd powers.

  • The Fourier series of a periodic even function includes only cosine terms.

  • The Fourier series of a periodic odd function includes only sine terms.



Harmonics


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



  • When the response function is even, the resulting signal will consist of only even harmonics of the input sine wave; 0f,2f,4f,6f,…{displaystyle 0f,2f,4f,6f,dots }{displaystyle 0f,2f,4f,6f,dots }

    • The fundamental is also an odd harmonic, so will not be present.

    • A simple example is a full-wave rectifier.

    • The 0f{displaystyle 0f}0f component represents the DC offset, due to the one-sided nature of even-symmetric transfer functions.



  • When it is odd, the resulting signal will consist of only odd harmonics of the input sine wave; 1f,3f,5f,…{displaystyle 1f,3f,5f,dots }{displaystyle 1f,3f,5f,dots }

    • The output signal will be half-wave symmetric.

    • A simple example is clipping in a symmetric push-pull amplifier.



  • When it is asymmetric, the resulting signal may contain either even or odd harmonics; 1f,2f,3f,…{displaystyle 1f,2f,3f,dots }{displaystyle 1f,2f,3f,dots }
    • Simple examples are a half-wave rectifier, and clipping in an asymmetrical class-A amplifier.



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:Rn↦R{displaystyle f:mathbb {R} ^{n}mapsto mathbb {R} }{displaystyle f:mathbb {R} ^{n}mapsto mathbb {R} } is called even symmetric if:


f(x1,x2,…,xn)=f(−x1,−x2,…,−xn)∀(x1,…,xn)∈Rn{displaystyle f(x_{1},x_{2},ldots ,x_{n})=f(-x_{1},-x_{2},ldots ,-x_{n})quad forall (x_{1},ldots ,x_{n})in mathbb {R} ^{n}}{displaystyle f(x_{1},x_{2},ldots ,x_{n})=f(-x_{1},-x_{2},ldots ,-x_{n})quad forall (x_{1},ldots ,x_{n})in mathbb {R} ^{n}}

Odd symmetry:


A function f:Rn↦R{displaystyle f:mathbb {R} ^{n}mapsto mathbb {R} }{displaystyle f:mathbb {R} ^{n}mapsto mathbb {R} } is called odd symmetric if:


f(x1,x2,…,xn)=−f(−x1,−x2,…,−xn)∀(x1,…,xn)∈Rn{displaystyle f(x_{1},x_{2},ldots ,x_{n})=-f(-x_{1},-x_{2},ldots ,-x_{n})quad forall (x_{1},ldots ,x_{n})in mathbb {R} ^{n}}{displaystyle f(x_{1},x_{2},ldots ,x_{n})=-f(-x_{1},-x_{2},ldots ,-x_{n})quad forall (x_{1},ldots ,x_{n})in mathbb {R} ^{n}}


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} mapsto mathbb {C} }{displaystyle f:mathbb {R} mapsto mathbb {C} } is called even symmetric if:


f(x)=f(−x)¯x∈R{displaystyle f(x)={overline {f(-x)}}quad forall xin mathbb {R} }{displaystyle f(x)={overline {f(-x)}}quad forall xin mathbb {R} }

Odd symmetry:


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


f(x)=−f(−x)¯x∈R{displaystyle f(x)=-{overline {f(-x)}}quad forall xin mathbb {R} }{displaystyle f(x)=-{overline {f(-x)}}quad forall xin mathbb {R} }


Finite length sequences


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


Even symmetry:


A N-point sequence is called even symmetric if


f(n)=f(N−n)∀n∈{1,…,N−1}.{displaystyle f(n)=f(N-n)quad forall nin left{1,ldots ,N-1right}.}{displaystyle f(n)=f(N-n)quad forall nin left{1,ldots ,N-1right}.}

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)∀n∈{1,…,N−1}.{displaystyle f(n)=-f(N-n)quad forall nin left{1,ldots ,N-1right}.}{displaystyle f(n)=-f(N-n)quad forall nin left{1,ldots ,N-1right}.}

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



See also




  • Hermitian function for a generalization in complex numbers

  • Taylor series

  • Fourier series

  • Holstein–Herring method

  • Parity (physics)



Notes





  1. ^ ab Gel'Fand, I.M.; Glagoleva, E.G.; Shnol, E.E. (1990). Functions and Graphs. Birkhäuser. ISBN 0-8176-3532-7..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  2. ^ W., Weisstein, Eric. "Odd Function". mathworld.wolfram.com.


  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



  • Gelfand, I. M.; Glagoleva, E. G.; Shnol, E. E. (2002) [1969], Functions and Graphs, Mineola, N.Y: Dover Publications



Popular posts from this blog

Guess what letter conforming each word

Port of Spain

Run scheduled task as local user group (not BUILTIN)