Recall from calculus that a differentiable function is minimized at the point at which the derivative is zero. Thus, we want to find
Cool! It's just another system of linear equations to solve. (Thank goodness derivatives are linear operators!)