Calculus 3: How to prove the curvature formula