Learn Before
Formula

Chain Rule for Single-Variable Functions

For functions of a single variable, the chain rule is used to compute the derivative of deeply nested functions. Suppose that y=f(g(x))y = f(g(x)) is a composite function, and that the underlying functions y=f(u)y = f(u) and u=g(x)u = g(x) are both differentiable. The chain rule states that the derivative of yy with respect to xx is the product of the derivative of yy with respect to uu and the derivative of uu with respect to xx:

dydx=dydududx\frac{dy}{dx} = \frac{dy}{du} \frac{du}{dx}

0

1

Updated 2026-05-01

Tags

Data Science

D2L

Dive into Deep Learning @ D2L