Slide 8
Slide 8 text
“DUAL NUMBER” TRICK
▸ Replace each numerical variable by a pair of (self, derivative)
▸ set `derivative` = 1 for variable to differentiate on, 0 otherwise
▸ These pairs follow a set of algebraic rules:
▸ Apply the function now with the dual number pair and its algebra:
▸ magically: f(x) => f((x, x’)) = (f(x), f’(x))
▸ Math behind is quite neat, see references in the end
https://en.wikipedia.org/wiki/Automatic_differentiation