Slope of a function #
In this file we define the slope of a function f : k → PE taking values in an affine space over
k and prove some basic theorems about slope. The slope function naturally appears in the Mean
Value Theorem, and in the proof of the fact that a function with nonnegative second derivative on an
interval is convex on this interval.
Tags #
affine space, slope
slope f a b = (b - a)⁻¹ • (f b -ᵥ f a) is the slope of a function f on the interval
[a, b]. Note that slope f a a = 0, not the derivative of f at a.
Instances For
slope f a c is a linear combination of slope f a b and slope f b c. This version
explicitly provides coefficients. If a ≠ c, then the sum of the coefficients is 1, so it is
actually an affine combination, see lineMap_slope_slope_sub_div_sub.
slope f a c is an affine combination of slope f a b and slope f b c. This version uses
lineMap to express this property.
slope f a b is an affine combination of slope f a (lineMap a b r) and
slope f (lineMap a b r) b. We use lineMap to express this property.