Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Calculus studies how quantities change. In AI/ML it shows up every time we optimize a model: we measure how a loss changes when we nudge parameters, then move parameters in the direction that improves the loss.
L(w), the derivative tells how sensitive the loss is to parameters w.For a scalar function L(w) where w ∈ R^d, the gradient is the vector of partial derivatives:
∇L(w) = [∂L/∂w₁, ∂L/∂w₂, …, ∂L/∂w_d]In gradient descent we update parameters using a step size (learning rate) η:
w ← w - η ∇L(w)Neural networks are compositions of functions. The chain rule tells us how to compute derivatives through a composition efficiently:
If y = f(g(x)), then dy/dx = f'(g(x)) · g'(x).Backpropagation is the chain rule applied repeatedly across layers, reusing intermediate results to avoid expensive recomputation.