The derivative measures instantaneous rate of change:

Common rules: , , , and the product rule . Composition is handled by the chain-rule.

At a minimum of a smooth function, . gradient-descent uses the sign of the derivative to decide which way to step. For several variables see gradients.