Linear Gradient Formula