Gradient analysis