What is it?
The derivative is linear, and there are rules for products and quotients. With the chain rule, they let you differentiate any formula mechanically — which is why computers can do it.
Formulas
- linearity
- product rule (Leibniz)
- quotient rule
Where it shows up in computing
Each rule is a rewrite rule on the expression tree; the hard part is simplifying the result.
Where it shows up in AI
AD applies exactly these rules, one elementary operation at a time, to numbers instead of formulas.
Where is it used?
Computing topics reachable from here, through the chain of ideas that leads to them:
ℒ AI and machine learning
- Automatic differentiation★★★★★
- Derivatives of elementary functions→Activation functions★★★★★
- Automatic differentiation→Backpropagation★★★★★
- Derivatives of elementary functions→Activation functions→Neural networks★★★★★
- Automatic differentiation→Backpropagation→Deep learning★★★★★
- Derivatives of elementary functions→Activation functions→Neural networks→Loss landscape★★★★★
- +6
⚙ Robotics and control
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Control theory★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Control theory→Trajectory optimization and MPC★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Laplace transform→PID control★★★★★
⚛ Physics and simulation
- Integration by parts→Finite element method★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Classical mechanics★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Physics engines★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Population and epidemic models★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Physics engines→N-body gravitational simulation★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Partial differential equations→Heat equation and diffusion★★★★★
- +2
∿ Signals, media and vision
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Partial fractions→Digital filters★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Integration by substitution→Trigonometric integrals→Signal processing★★★★★
- Derivatives of elementary functions→Antiderivatives and indefinite integrals→Ordinary differential equations→Partial differential equations→Image processing and computer vision★★★★★
What depends on it
Exercises
1Computation
Differentiate .
Solution
.
This page has the essentials. A fuller treatment (intuition, formal definition, worked example) is on the way.