Constant function

Revision as of 04:28, 5 December 2024 by imported>TakuyaMurata (→‎Other properties: lk)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description Template:Distinguish Template:Functions

In mathematics, a constant function is a function whose (output) value is the same for every input value.

Basic propertiesEdit

File:Wiki constant function 175 200.png
An example of a constant function is Template:Math, because the value of Template:Math is 4 regardless of the input value Template:Mvar.

As a real-valued function of a real-valued argument, a constant function has the general form Template:Math or just Template:Nowrap For example, the function Template:Math is the specific constant function where the output value is Template:Math. The domain of this function is the set of all real numbers. The image of this function is the singleton set Template:Math. The independent variable Template:Nowrap does not appear on the right side of the function expression and so its value is "vacuously substituted"; namely Template:Math, Template:Math, Template:Math, and so on. No matter what value of Template:Math is input, the output is Template:Math.<ref>Template:Cite book</ref>

The graph of the constant function Template:Math is a horizontal line in the plane that passes through the point Template:Math.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> In the context of a polynomial in one variable Template:Math, the constant function is called non-zero constant function because it is a polynomial of degree 0, and its general form is Template:Math, where Template:Mvar is nonzero. This function has no intersection point with the Template:Nowrapaxis, meaning it has no root (zero). On the other hand, the polynomial Template:Math is the identically zero function. It is the (trivial) constant function and every Template:Math is a root. Its graph is the Template:Nowrapaxis in the plane.<ref>Template:Cite book</ref> Its graph is symmetric with respect to the Template:Nowrapaxis, and therefore a constant function is an even function.<ref>Template:Cite book</ref>

In the context where it is defined, the derivative of a function is a measure of the rate of change of function values with respect to change in input values. Because a constant function does not change, its derivative is 0.<ref>Template:Cite book</ref> This is often written: <math>(x \mapsto c)' = 0</math>. The converse is also true. Namely, if Template:Math for all real numbers Template:Math, then Template:Math is a constant function.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> For example, given the constant function Template:Nowrap The derivative of Template:Math is the identically zero function Template:Nowrap

Other propertiesEdit

For functions between preordered sets, constant functions are both order-preserving and order-reversing; conversely, if Template:Math is both order-preserving and order-reversing, and if the domain of Template:Math is a lattice, then Template:Math must be constant.

  • Every constant function whose domain and codomain are the same set Template:Math is a left zero of the full transformation monoid on Template:Math, which implies that it is also idempotent.
  • It has zero slope or gradient.
  • Every constant function between topological spaces is continuous.
  • A constant function factors through the one-point set, the terminal object in the category of sets. This observation is instrumental for F. William Lawvere's axiomatization of set theory, the Elementary Theory of the Category of Sets (ETCS).<ref>Template:Cite arXiv</ref>
  • For any non-empty Template:Math, every set Template:Math is isomorphic to the set of constant functions in <math>X \to Y</math>. For any Template:Math and each element Template:Math in Template:Math, there is a unique function <math>\tilde{y}: X \to Y</math> such that <math>\tilde{y}(x) = y</math> for all <math>x \in X</math>. Conversely, if a function <math>f: X \to Y</math> satisfies <math>f(x) = f(x')</math> for all <math>x, x' \in X</math>, <math>f</math> is by definition a constant function.
    • As a corollary, the one-point set is a generator in the category of sets.
    • Every set <math>X</math> is canonically isomorphic to the function set <math>X^1</math>, or hom set <math>\operatorname{hom}(1,X)</math> in the category of sets, where 1 is the one-point set. Because of this, and the adjunction between Cartesian products and hom in the category of sets (so there is a canonical isomorphism between functions of two variables and functions of one variable valued in functions of another (single) variable, <math>\operatorname{hom}(X \times Y, Z) \cong \operatorname{hom}(X(\operatorname{hom}(Y, Z))</math>) the category of sets is a closed monoidal category with the Cartesian product of sets as tensor product and the one-point set as tensor unit. In the isomorphisms <math>\lambda: 1 \times X \cong X \cong X \times 1: \rho</math> [[natural transformation|natural in Template:Math]], the left and right unitors are the projections <math>p_1</math> and <math>p_2</math> the ordered pairs <math>(*, x)</math> and <math>(x, *)</math> respectively to the element <math>x</math>, where <math>*</math> is the unique point in the one-point set.

A function on a connected set is locally constant if and only if it is constant.

ReferencesEdit

Template:Reflist

  • Herrlich, Horst and Strecker, George E., Category Theory, Heldermann Verlag (2007).

External linksEdit

Template:Sister project

  • {{#invoke:Template wrapper|{{#if:|list|wrap}}|_template=cite web

|_exclude=urlname, _debug, id |url = https://mathworld.wolfram.com/{{#if:ConstantFunction%7CConstantFunction.html}} |title = Constant Function |author = Weisstein, Eric W. |website = MathWorld |access-date = |ref = Template:SfnRef }}

Template:Polynomials Template:Functions navbox