Compute partial derivatives directly from first principles by setting up and simplifying the difference quotient as h approaches 0.