World Library  
Flag as Inappropriate
Email this Article

Constant function

Article Id: WHEBN0000320861
Reproduction Date:

Title: Constant function  
Author: World Heritage Encyclopedia
Language: English
Subject: Linear function (calculus), Polynomial, Polynomials, Constant (mathematics), Step function
Collection: Elementary Mathematics, Elementary Special Functions, Functions and Mappings, Types of Functions
Publisher: World Heritage Encyclopedia

Constant function

Constant function y=4

In mathematics, a constant function is a function whose (output) value is the same for every input value.[1][2][3] For example, the function y(x) = 4 is a constant function because the value of  y(x)  is 4 regardless of the input value x (see image).


  • Basic properties 1
  • Other properties 2
  • References 3
  • External links 4

Basic properties

As a real-valued function of a real-valued argument, a constant function has the general form  y(x)=c  or just  y=c  .

Example: The function  y(x)=2  or just  y=2  is the specific constant function where the output value is  c=2. The domain of this function is the set of all real numbers ℝ. The codomain of this function is just {2}. The independent variable x does not appear on the right side of the function expression and so its value is "vacuously substituted". Namely y(0)=2, y(−2.7)=2, y(π)=2,.... No matter what value of x is input, the output is "2".
Real-world example: A store where every item is sold for the price of 1 euro.

The graph of the constant function y=c is a horizontal line in the plane that passes through the point (0,c).[4]

In the context of a polynomial in one variable x, the non-zero constant function is a polynomial of degree 0 and its general form is f(x) = c \, ,\,\, c \neq 0 . This function has no intersection point with the x-axis, that is, it has no root (zero). On the other hand, the polynomial  f(x)=0  is the identically zero function. It is the (trivial) constant function and every x is a root. Its graph is the x-axis in the plane.[5]

A constant function is an even function, i.e. the graph of a constant function is symmetric with respect to the y-axis.

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.[6] This is often written:  (c)'=0 . The converse is also true. Namely, if y'(x)=0 for all real numbers x, then y(x) is a constant function.[7]

Example: Given the constant function   y(x)=-\sqrt{2}  . The derivative of y is the identically zero function   y'(x)=(-\sqrt{2})'=0  .

Other properties

For functions between 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, then f must be constant.

  • Every constant function whose domain and codomain are the same is idempotent.
  • 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).[8]
  • Every set X is isomorphic to the set of constant functions into it. For each element x and any set Y, there is a unique function \tilde{x}: Y \rightarrow X such that \tilde{x}(y) = x for all y \in Y. Conversely, if a function f: X \rightarrow Y satisfies f(y) = f(y') for all y, y' \in Y, f is by definition a constant function.
    • As a corollary, the one-point set is a generator in the category of sets.
    • Every set X is canonically isomorphic to the function set X^1, or hom set hom(1,X) 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, hom(X \times Y,Z) \cong hom(X(hom(Y,Z))) 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 \lambda :1\times X \cong X\cong X\times1:\rho natural in X, the left and right unitors are the projections p_1 and p_2 the ordered pairs (*,x) and (x,*) respectively to the element x, where * 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.


  1. ^ Tanton, James (2005). Encyclopedia of Mathematics. Facts on File, New York. p. 94.  
  2. ^ C.Clapham, J.Nicholson (2009). "Oxford Concise Dictionary of Mathematics, Constant Function" (PDF). Addison-Wesley. p. 175. Retrieved January 2014. 
  3. ^ Weisstein, Eric (1999). CRC Concise Encyclopedia of Mathematics. CRC Press, London. p. 313.  
  4. ^ Dawkins, Paul (2007). "College Algebra". Lamar University. p. 224. Retrieved January 2014. 
  5. ^ Carter, John A.; Cuevas, Gilbert J.; Holliday, Berchie; Marks, Daniel; McClure, Melissa S.publisher=Glencoe/McGraw-Hill School Pub Co (2005). "1". Advanced Mathematical Concepts - Pre-calculus with Applications, Student Edition (1 ed.). p. 22.  
  6. ^ Dawkins, Paul (2007). "Derivative Proofs". Lamar University. Retrieved January 2014. 
  7. ^ "Zero Derivative implies Constant Function". Retrieved January 2014. 
  8. ^ Leinster, Tom (27 Jun 2011). "An informal introduction to topos theory". Retrieved 11 November 2014. 
  • Herrlich, Horst and Strecker, George E., Category Theory, Heldermann Verlag (2007).

External links

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from World Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.