Source: https://people.bath.ac.uk/bsphre/maths/HelpFiles/Introductionandtutorial.pdf