Source: http://web.abo.fi/fak/mnf/mate/kurser/fourieranalys/chap5.pdf