notes gradient and directional derivatives 2869811