Source: https://neuron.eng.wayne.edu/auth/ece4340/ti89_calculus_tutorial.pdf