Calculus and gradients

dydx\frac{dy}{dx} Derivative (d/dx)

An ordinary derivative: the rate of change of one quantity with respect to one variable.

In ML papers

dydx\frac{dy}{dx} is the derivative of yy with respect to xx: the slope of yy as xx changes. The dd's are not variables and do not cancel; the fraction is one symbol. Some papers write the dd upright, d\mathrm{d}, to make that clear.

In an integral, dxdx (or dx\mathrm{d}x) marks the variable being integrated over.

How to type it

LaTeXShows
\frac{dy}{dx}dydx\frac{dy}{dx}
\frac{\mathrm{d}y}{\mathrm{d}x} upright ddydx\frac{\mathrm{d}y}{\mathrm{d}x}

A worked example

y=x3  ⇒  dydx=3x2=12 at x=2y = x^3 \;\Rightarrow\; \frac{dy}{dx} = 3x^2 = 12 \text{ at } x = 2

Near x=2x = 2, yy rises about 12 times as fast as xx.

Common confusions

Related

∂L∂w\frac{\partial \mathcal{L}}{\partial w}Partial derivativef′(x)f'(x)Prime∫p(x∣z) p(z) dz\int p(x \mid z)\, p(z)\, dzIntegral∇θL\nabla_\theta \mathcal{L}Nabla (gradient)

Decode this example →