Constant function: Difference between revisions

Content deleted Content added
m revert myself for now
Line 15:
The first characterization of constant functions given above, is taken as the motivating and defining property for the more general notion of [[constant morphism]] in [[Category theory]].
 
TheIn contexts where it is defined, the [[derivative]] of a function measures how that function varies with respect to the variation of some argument. It follows that, since a constant function does not vary, its derivative, where defined, will be zero. Indeed, suppose f(''x'') = ''c''Thus for all vector ''x'' in an Euclidean space and ''c'' constant. Then, for non-zero vector <math>\mathit{h}</math>example:
Other properties of constant functions include:
 
* Every constant function whose [[___domain]] and [[codomain]] are the same is [[idempotent]].
*If ''f'' is a [[real number|real-valued]] function of a real [[variable]], defined on some [[interval]], then ''f'' is constant if and only if the [[derivative]] of ''f'' is everywhere zero.
* Every constant function between [[topological space]]s is [[continuous function (topology)|continuous]].
 
For functions between [[preorder|preordered sets]], constant functions are both [[order-preserving]] and [[order-reversing]]; conversely, if ''f'' is both order-preserving and order-reversing, and if the [[___domain]] of ''f'' is a [[lattice (order)|lattice]], then ''f'' must be constant.
 
Other properties of constant functions include:
== Derivative ==
* Every constant function whose [[___domain]] and [[codomain]] are the same is [[idempotent]].
 
* Every constant function between [[topological space]]s is [[continuous function (topology)|continuous]].
The [[derivative]] of a function measures how that function varies with respect to the variation of some argument. It follows, since a constant function does not vary, its derivative will be zero. Indeed, suppose f(''x'') = ''c'' for all vector ''x'' in an Euclidean space and ''c'' constant. Then, for non-zero vector <math>\mathit{h}</math>
:<math>\left| {f(x + h) - f(x) \over h} \right| = \left| {c - c \over h} \right| = 0</math>.
 
In a [[connected set]], the function is [[locally constant]] if and only if it is constant.
It turned out the converse follows when ''f'' is real-valued; since the [[mean-value theorem]] says <math>|f(b) - f(a)| = |f'(x)|</math> for ''f'' differentiable on [''a'', ''b''] and some ''x'' between. The converse also holds when ''f'' maps real vectors, provided that all of its partial derivatives vanish. If only some of the partial derivatives are zero, then ''f'' is [[locally constant]]. If, however, the function is [[locally constant]] on a connected set, then it is constant.
 
==References==