Partial Derivatives, 2nd Derivatives, Rules, and Least Squares