Source: https://www.waves.utoronto.ca/prof/mojahedi/ECE1228/Course Notes Set 1.pdf