Maths for ML / Notation

dfdx, f′(x)\frac{df}{dx},\ f'(x)

derivative

CalculusBeginner

Say it “d f d x / f prime of x”

How fast f changes when x changes a tiny bit — the slope.

Example

ddxx2=2x\frac{d}{dx}x^2 = 2x

In code

(f(x+h) - f(x)) / h  # numerical
y.backward(); x.grad

Where you’ll see it in ML

Every gradient update starts here.

Don’t confuse it with

Lessons that use it

← All 94 symbols