Calculus in Machine Learning: Why it Works