Mathematics of Waves