Source: https://www.dip.ee.uct.ac.za/~nicolls/lectures/eee2047s/notes/05_fouriertransform_notes.pdf