A derivative measures how fast a function changes with its input. For a graph, it is the slope of the tangent line at a point: positive means the function is rising, negative means it is falling, and zero means it is momentarily flat. This turns a visual judgment about a curve into a number that code can use. section 5.1 section 5.1.1
Shrinking the interval makes an average-change line approach the tangent line, revealing the derivative as local slope. section 5.1.1
At one input, a derivative is a number. Across a domain, those numbers form a new function, written with a prime when the variable is clear. A linear function has a constant derivative; differentiating a quadratic produces a linear function, and differentiating a cubic produces a quadratic. A function is differentiable at a point only when this measurement can be taken there. section 5.1.1 section 5.1.2
Useful differentiation rules let large expressions be handled in smaller pieces:
- A constant differentiates to 0, and a constant factor remains a factor. section 5.1.3
- A sum differentiates term by term; for polynomials, apply the power rule to each term. section 5.1.3 section 6.1.2
- A product uses f′g + fg′; nested functions use the derivative of the outer function times the derivative of the inner one. section 5.1.3
Finding the turning behavior of a polynomial
For P(x) = x³ − x² − 2x + 1, the derivative is P′(x) = 3x² − 2x − 2. Where a continuous derivative changes from positive to negative or back, the original polynomial changes from rising to falling or vice versa, producing a local maximum or minimum. A derivative root alone is not enough: if it touches the axis without changing sign, there need not be an extremum. section 6.1.2
Derivatives also describe geometric constraints. The derivative of a polynomial at a point gives the slope of its tangent, so interpolation equations can require a curve both to pass through chosen points and to leave them at chosen angles. Matching first derivatives where curve pieces meet supports smooth joins. A second derivative is connected to curvature, and continuity of successive derivatives describes levels such as C1 and C2 smoothness. section 7.1.1 section 5.6
For symbolic work, use SymPy’s diff to compute derivatives and select differentiation variables when needed. This leaves attention for interpreting slopes, smoothness, and curve behavior rather than memorizing every formula. section 5.1.5





