Added some mathematical analysis