Chapter 06
Derivative
Differentiation gives the instantaneous rate of change (slope) at a point. The derivative as a function is the basis for gradient descent and backprop in deep learning.
Math diagram by chapter
Select a chapter to see its diagram below. View the flow of basic math at a glance.
Left: Tangent line — the line that touches the curve at exactly one point. Its slope is the derivative there. Right: Line through two points — the line through two points on the curve. As the points get closer, this line approaches the tangent, and that limit is the derivative.
Pick one point (2, 4) on the curve . We want to measure the slope at this point.
The derivative is the slope of the tangent line. The limit of the "line through two points" slopes (as the points get closer) is the tangent slope.
What are differentiation and the derivative?
| Item | Description |
|---|---|
| Below | Common differentiation formulas. |
| Means the derivative. |
| Formula | Description |
|---|---|
| Constant | derivative is 0 |
| Power | bring down , exponent |
| Exponential | derivative is still |
| Exponential | |
| Natural log | |
| Log (base a) | |
| sin | derivative is cos |
| cos | derivative is |
| tan | derivative is |
| Sum/difference | differentiate each part and add or subtract |
| Constant multiple | keep constant, differentiate the rest |
| Product rule | (first′)×second + first×(second′) |
| Quotient rule | (top′×bottom − top×bottom′) / bottom² |
| Intuition (product) | first derivative × second + first × second derivative. In the limit the two changes add up, so you get these two terms. |
| Intuition (quotient) | Write the quotient as top × (1/bottom) and use the product rule. The derivative of (1/bottom) gives the usual formula. |
| Formula | Numeric example | Solution step |
|---|---|---|
| Constant | (5)'=0, (-3)'=0 | derivative is 0 |
| , at : 12 | bring down , exponent | |
| at : 1; at : | unchanged by differentiation | |
| multiply by | ||
| at : | derivative is | |
| sin | at : 1 | sin → cos |
| cos | at : 0 | cos → |
| Sum | differentiate each term and add | |
| Constant multiple | keep constant, differentiate rest | |
| Product | (first′)×second + first×(second′) | |
| Quotient | → at : 0 | (top′×bottom−top×bottom′)/bottom² |
| Problem | Solution |
|---|---|
| Ex 1. | Power and sum: |
| Ex 2. | Product rule: |
| Ex 3. | Quotient rule: |