Next  |  Prev  |  Up  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search


Even and Odd Functions

Some of the Fourier theorems can be succinctly expressed in terms of even and odd symmetries.



Definition: A function f(n) is said to be even if f(n)=f(n).

An even function is also symmetric, but the term symmetric applies also to functions symmetric about a point other than 0.



Definition: A function f(n) is said to be odd if f(n)=f(n).

An odd function is also called antisymmetric.

Note that every finite odd function f(n) must satisfy f(0)=0.7.12 Moreover, for any odd xCN with N even, we also have x(N/2)=0 since x(N/2)=x(N/2)=x(N/2+N)=x(N/2); that is, N/2 and N/2 index the same point when N is even (since all indexing in CN is modulo N).



Theorem: Every function f(n) can be uniquely decomposed into a sum of its even part fe(n) and odd part fo(n), where

fe(n)=Δf(n)+f(n)2fo(n)=Δf(n)f(n)2.



Proof: In the above definitions, fe is even and fo is odd by construction. Summing, we have

fe(n)+fo(n)=f(n)+f(n)2+f(n)f(n)2=f(n).

To show uniqueness, let f(n)=fe(n)+fo(n) denote some other even-odd decomposition. Then f(n)+f(n)=2fe(n)=2fe(n)fe(n)=fe(n), and f(n)f(n)=2fo(n)=2fo(n)fo(n)=fo(n).



Theorem: The product of even functions is even, the product of odd functions is even, and the product of an even times an odd function is odd.



Proof: Readily shown.

Since even times even is even, odd times odd is even, and even times odd is odd, we can think of even as (+) and odd as ():

(+)(+)=(+)()()=(+)(+)()=()()(+)=()



Example: cos(ωkn), nZ, is an even signal since cos(θ)=cos(θ).



Example: sin(ωkn) is an odd signal since sin(θ)=sin(θ).



Example: cos(ωkn)sin(ωln) is an odd signal (even times odd).



Example: sin(ωkn)sin(ωln) is an even signal (odd times odd).



Theorem: The sum of all the samples of an odd signal xo in CN is zero.



Proof: This is readily shown by writing the sum as xo(0)+[xo(1)+xo(1)]++x(N/2), where the last term only occurs when N is even. Each term so written is zero for an odd signal xo.



Example: For all DFT sinusoidal frequencies ωk=2πk/N,

n=0N1sin(ωkn)cos(ωkn)=0,k=0,1,2,,N1.

More generally,

n=0N1xe(n)xo(n)=0,

for any even signal xe and odd signal xo in CN. In terms of inner products5.9), we may say that the even part of every real signal is orthogonal to its odd part:

xe,xo=0

Check Your Understanding

Exercise 1 Multiple Choice
Any function x(t) can be decomposed into even and odd parts. What is the even part xe(t)?
[x(t) + x(-t)] / 2
[x(t) - x(-t)] / 2
x(t) + x(-t)
x(t) · x(-t)
An even function satisfies f(-t) = f(t)
Adding x(t) and x(-t) cancels the odd part
Exercise 2 Multiple Choice
For N = 4, the sequence x = [0, 1, 2, 1] has the property that x[−n] = x[Nn]. What are the even and odd parts of x?
xe = [0, 1, 2, 1],  xo = [0, 0, 0, 0]
xe = [0, 0, 0, 0],  xo = [0, 1, 2, 1]
xe = [0, 1, 2, 1],  xo = [0, 1, 2, 1]
xe = [0, 0.5, 1, 0.5],  xo = [0, 0.5, 1, 0.5]
Compute x[−n] mod 4: x[0]=0, x[−1]=x[3]=1, x[−2]=x[2]=2, x[−3]=x[1]=1.
Even part = (x[n] + x[−n])/2. If x[n] = x[−n], the odd part vanishes.
Exercise 3 Multiple Choice
For N = 4, the sequence x = [0, 1, 0, −1]. Compute its even part xe and odd part xo (indices modulo 4).
xe = [0, 0.5, 0, −0.5],  xo = [0, 0.5, 0, −0.5]
xe = [0, 1, 0, −1],  xo = [0, 0, 0, 0]
xe = [0, 0, 0, 0],  xo = [0, 1, 0, −1]
xe = [0, −1, 0, 1],  xo = [0, 1, 0, −1]
Compute x[−n] mod 4: position 1 maps to position 3, and vice versa.
If x[−n] = −x[n] for all n, the sequence is purely odd and its even part is zero.
Exercise 4 Multiple Choice
For N = 4, find the even part of x = [0, 1, 2, 3] (indices modulo 4).
[0, 2, 2, 2]
[0, 1, 2, 3]
[0, 2, 4, 6]
[0, −1, 0, 1]
x[−n] mod 4: reverse positions 1 and 3, keep 0 and 2 fixed.
Even part = (x[n] + x[−n])/2 element-by-element.
Exercise 5 Multiple Choice
For N = 4 (indexing modulo N), what is the odd part xo of the sequence x = [0, 1, 2, 3]?
[0, −1, 0, 1]
[0, 1, 0, −1]
[0, 2, 2, 2]
[0, 1, 2, 3]
xo[n] = (x[n] − x[−n])/2, where −n is taken modulo N.
Reverse [0,1,2,3] modulo 4 to get [0,3,2,1], then subtract and halve.

Next  |  Prev  |  Up  |  Top  |  Index  |  JOS Index  |  JOS Pubs  |  JOS Home  |  Search

[How to cite this work]  [Order a printed hardcopy]  [Comment on this page via email]

``Mathematics of the Discrete Fourier Transform (DFT), with Audio Applications --- Second Edition'', by Julius O. Smith III, W3K Publishing, 2007, ISBN 978-0-9745607-4-8
Copyright © 2026-08-21 by Julius O. Smith III
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA

MDFT Course

0 of 18 chapters started
0 of 301 pages visited · ~7h total content
Current Page

§7.3Even and Odd Functions

Chapter: Fourier Theorems for the DFT

~2 min read

Exercises Completed

0 exercises