Skip to main content
Chemistry LibreTexts

1.2: Odd and Even Functions

  • Page ID
    106799
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Many of you probably heard about odd and even functions in previous courses, but for those who did not, here is a brief introduction.

    • An odd function obeys the relation \(f(x) = −f(−x)\). For example, \(\sin x\) is odd because \(\sin x = − \sin(−x)\).
    • An even function obeys the relation \(f(x) = f(−x)\). For example, \(\cos x\) is even because \(\cos x = \cos(−x)\).

    Even functions are symmetric with respect to the y−axis. In other words, if you were to put a mirror perpendicular to the screen at \(x = 0\), the right side of the plot would produce a reflection that would overlap with the left side of the plot. Check Figure \(\PageIndex{1}\) to be sure you understand what this means.

    Screen Shot 2019-10-18 at 2.08.42 PM.png
    Figure \(\PageIndex{1}\): Odd and even functions. (CC BY-NC-SA; Marcia Levitus)

    Odd functions are symmetric in a different way. Imagine that you have an axis perpendicular to the screen that contains the point (0,0). Now rotate every point of your graph 180 degrees. If the plot you create after rotation overlaps with the plot before the rotation, the function is odd. Check Figure \(\PageIndex{1}\) to be sure you understand what this means.

    Note that functions do not necessarily need to be even or odd. The function \(e^x\), for instance, is clearly neither, as \(e^x \neq e^{−x}\) (condition for even) and \(e^x \neq −e^{−x}\) (condition for odd). You can also sketch the function \(e^x\) and verify that it does not have the symmetry of an odd or even function. For any function,

    \[ \int_{-a}^a f(x)dx = \int_{-a}^0 f(x) dx + \int_0^{a} f(x) dx \nonumber \]

    For an odd function, this integral equals zero:

    \[ \label{eq2} \int_{-a}^a f(x)dx = \int_{-a}^0 f(x) dx + \int_0^{a} f(x) dx = 0 \]

    This should be obvious just by looking at the plot of \(\sin x\). The area under the curve between 0 and \(a\) cancels out with the area under the curve between \(−a\) and 0. This is great news because it means that we do not have to bother integrating odd functions as long as the limits of integration span from \(−a\) to \(a\), where a can be any number, including infinity. As it turns out this happens often in quantum mechanics, so it is something worth keeping in mind!

    For an even function,

    \[ \int_{-a}^a f(x)dx = 2 \int_{0}^{a} f(x) dx \nonumber \]

    because the area under the curve between 0 and \(a\) equals the area under the curve between \(−a\) and 0. This not as helpful as Equation \ref{eq2}, but still might help in some cases. For example, let’s say that you need to evaluate \(\int_{- \infty}^{\infty} x^2 e^{-x^2} dx\) and the only material that you have available is the formula sheet. You find an expression for

    \[\int_0^{\infty} x^{2n} e^{-ax^2} dx \nonumber \]

    which you can use with \(n = 1\) to obtain

    \[\int_0^{\infty} x^2 e^{−x^2} dx = \frac{ \sqrt{\pi}}{4} \nonumber \] (be sure you can get this result on your own).

    How do you get \(\int_{- \infty}^{\infty} x^2 e^{-x^2} dx\)? If the integrand is even, you just need to multiply by 2. This is in fact an even function, because \(x^2 = (−x)^2\), and therefore it is clear that \(x^2 e^{−x^2} = (−x)^2 e^{−(−x)^2}\). Therefore,

    \[\int_{- \infty}^{\infty} x^2 e^{-x^2} dx = \frac{\sqrt{\pi}}{2} \nonumber \]

    It is useful to know that the product of two even functions or two odd functions is an even function, and the product of an odd function and an even function is odd. For example,

    • \(\sin^2 x\) is the product of two odd functions, and is therefore even.
    • \(\cos^2 x\) is the product of two even functions, and is therefore even.
    • \(\sin x \cos x\) is the product of an odd function and an even function, and is therefore odd.
    Screen Shot 2019-10-18 at 2.16.37 PM.png
    Figure \(\PageIndex{2}\): Products of odd and even functions. (CC BY-NC-SA; Marcia Levitus)

    Need help understanding how to identify odd and even functions? External links:

    http://www.youtube.com/watch?v=8VgmBe3ulb8

    http://www.youtube.com/watch?v=68enNRhFORc

    Odd, even or neither?

    See if you can classify the functions shown in this short quiz.

    http://tinyurl.com/l4pehb8


    This page titled 1.2: Odd and Even Functions is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Marcia Levitus via source content that was edited to the style and standards of the LibreTexts platform.