back to the math tutorial index back to the math tutorial index

Special Trigonometric Integrals

In the study of Fourier Series, you will find that every continuous function f on an interval [-L,L] can be expressed on that interval as an infinite series of sines and cosines. For example, if the interval is [-p,p ],

f(x) = A0 + ¥
å
k = 1 
[Akcos(kx) + Bksin(kx)]
where the constants are given by integrals involving f.

The theory of Fourier series relies on the fact that the functions

1,    cos(x),    sin(x),    cos(2x),    sin(2x),   ¼,    cos(nx),    sin(nx),    ¼

form an orthogonal set:

The integral of the product of any 2 of these functions over [-p, p ] is 0.

Here, we will verify this fact.

We will use the following trigonometric identities:

sin(A)sin(B) = 1
2
[cos(A-B)-cos(A+B)]
cos(A)cos(B) = 1
2
[cos(A-B)+cos(A+B)]
sin(A)cos(B) = 1
2
[sin(A-B)+sin(A+B)]

We have six general integrals to evaluate to prove the orthogonality of the set {1, cosx, sinx, ¼}. In each of the following, we assume m and n are distinct positive integers.

  1.  
    ó
    õ
    p

    -p 
    1·cos(nx) dx
    = 1
    n
    sin(nx) ô
    ô
    p


    -p
    = 0.

  2.  
    ó
    õ
    p

    -p 
    1·sin(nx) dx
    = - 1
    n
    cos(nx) ô
    ô
    p


    -p
    = 0.

  3.  
    ó
    õ
    p

    -p 
    sin(nx)cos(nx) dx
    =
    sin2(nx)
    2n
    ô
    ô
    p


    -p
    = 0.

  4.  
    ó
    õ
    p

    -p 
    sin(mx)sin(nx) dx
    =
    ó
    õ
    p

    -p 
    1
    2
    [cos(m-n)x-cos(m+n)x] dx
    =
    sin[(m-n)x]
    2(m-n)
    - sin[(m+n)x]
    2(m+n)
    ô
    ô
    ô
    p



    -p
    = 0

  5.  
    ó
    õ
    p

    p 
    cos(mx)cos(nx) dx
    =
    ó
    õ
    p

    -p 
    1
    2
    [cos(m-n)x+cos(m+n)x] dx
    =
    sin[(m-n)x]
    2(m-n)
    - sin[(m+n)x]
    2(m+n)
    ô
    ô
    ô
    p



    -p
    = 0.

  6.  
    ó
    õ
    p

    -p 
    sin(mx)cos(nx) dx
    =
    ó
    õ
    p

    -p 
    1
    2
    [sin(m-n)x+sin(m+n)x] dx
    =
    cos[(m-n)x]
    2(m-n)
    - cos[(m+n)x]
    2(m+n)
    ô
    ô
    ô
    p



    -p
    = 0.

We have now shown that {1,  cos(x),  sin(x),  cos(2x),  sin(2x), ¼} is indeed an orthogonal set of functions!

In the following Exploration, graph functions sin(mx)sin(nx), sin(mx)cos(nx), and cos(mx)cos(nx) for various values of m and n and observe the interesting curves that result.

Exploration


Key Concept

The theory of Fourier series relies on the fact that the functions

1,    cos(x),    sin(x),    cos(2x),    sin(2x),   ¼,    cos(nx),    sin(nx),    ¼

form an orthogonal set:

The integral of the product of any 2 of these functions over [-p, p ] is 0.