Compute a quadratic loss gradient, its directional derivative, and the normalized steepest-descent direction.