<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Constant_function</id>
	<title>Constant function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Constant_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Constant_function&amp;action=history"/>
	<updated>2026-04-07T13:19:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Constant_function&amp;diff=205869&amp;oldid=prev</id>
		<title>38.210.0.65 at 17:06, 23 September 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Constant_function&amp;diff=205869&amp;oldid=prev"/>
		<updated>2025-09-23T17:06:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Type of mathematical function}}&lt;br /&gt;
{{distinguish|function constant}}&lt;br /&gt;
{{Functions}}&lt;br /&gt;
&lt;br /&gt;
In [[mathematics]], a &amp;#039;&amp;#039;&amp;#039;constant function&amp;#039;&amp;#039;&amp;#039; is a [[Function (mathematics)|function]] whose (output) value is the same for every input value.&lt;br /&gt;
&lt;br /&gt;
== Basic properties ==&lt;br /&gt;
[[Image:wiki constant function 175 200.png|thumb|An example of a constant function is {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = 4}}, because the value of {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;)}} is 4 regardless of the input value {{mvar|x}}.]]&lt;br /&gt;
As a real-valued function of a real-valued argument, a constant function has the general form {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = &amp;#039;&amp;#039;c&amp;#039;&amp;#039;}} or just {{nowrap|{{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039; = &amp;#039;&amp;#039;c&amp;#039;&amp;#039;}}.}} For example, the function {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = 4}} is the specific constant function where the output value is {{math|1=&amp;#039;&amp;#039;c&amp;#039;&amp;#039; = 4}}. The [[domain of a function|domain of this function]] is the set of all [[real number]]s. The [[Image (mathematics)|image]] of this function is the [[Singleton (mathematics)|singleton]] set {{math|{{mset|4}}}}. The independent variable {{nowrap|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}} does not appear on the right side of the function expression and so its value is &amp;quot;vacuously substituted&amp;quot;; namely {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(0) = 4}}, {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(−2.7) = 4}}, {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;(π) = 4}}, and so on. No matter what value of {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}} is input, the output is {{math|4}}.&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
 | last = Tanton | first = James&lt;br /&gt;
 | year = 2005&lt;br /&gt;
 | title = Encyclopedia of Mathematics&lt;br /&gt;
 | publisher = Facts on File, New York&lt;br /&gt;
 | isbn = 0-8160-5124-0&lt;br /&gt;
 | page = 94&lt;br /&gt;
 | url = https://archive.org/details/encyclopedia-of-mathematics_202206/page/94/mode/1up?view=theater&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The graph of the constant function {{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039; = &amp;#039;&amp;#039;c&amp;#039;&amp;#039;}} is a &amp;#039;&amp;#039;horizontal line&amp;#039;&amp;#039; in the [[plane (geometry)|plane]] that passes through the point {{math|(0, &amp;#039;&amp;#039;c&amp;#039;&amp;#039;)}}.&amp;lt;ref&amp;gt;{{cite web|title=College Algebra| last1=Dawkins|first1=Paul| year=2007| publisher= Lamar University|url=http://tutorial.math.lamar.edu/Classes/Alg/Alg.aspx| page=224|access-date=January 12, 2014}}&amp;lt;/ref&amp;gt; In the context of a [[polynomial]] in one variable {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}, the constant function is called &amp;#039;&amp;#039;non-zero constant function&amp;#039;&amp;#039; because it is a polynomial of degree 0, and its general form is {{math|1=&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = &amp;#039;&amp;#039;c&amp;#039;&amp;#039;}}, where {{mvar|c}} is nonzero. This function has no intersection point with the {{nowrap|1={{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}-}}axis, meaning it has no [[zero of a function|root (zero)]]. On the other hand, the polynomial {{math|1=&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) = 0}} is the &amp;#039;&amp;#039;identically zero function&amp;#039;&amp;#039;. It is the (trivial) constant function and every {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}} is a root. Its graph is the {{nowrap|1={{math|1=&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}-}}axis in the plane.&amp;lt;ref&amp;gt;{{cite book|title=Advanced Mathematical Concepts - Pre-calculus with Applications, Student Edition|last1=Carter|first1=John A.|last4=Marks|first4=Daniel|last2=Cuevas|first2=Gilbert J.|last3=Holliday|first3=Berchie|last5=McClure|first5=Melissa S. |publisher=Glencoe/McGraw-Hill School Pub Co|year=2005|isbn=978-0078682278|chapter=1|edition=1|page=22}}&amp;lt;/ref&amp;gt; Its graph is symmetric with respect to the {{nowrap|1={{math|1=&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}-}}axis, and therefore a constant function is an [[Even and odd functions|even function]].&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
 | last = Young | first = Cynthia Y. | authorlink = Cynthia Y. Young&lt;br /&gt;
 | year = 2021&lt;br /&gt;
 | title = Precalculus&lt;br /&gt;
 | edition = 3rd&lt;br /&gt;
 | url = https://books.google.com/books?id=BOBDEAAAQBAJ&amp;amp;pg=PA122&lt;br /&gt;
 | page = 122&lt;br /&gt;
 | publisher = John Wiley &amp;amp; Sons&lt;br /&gt;
| isbn = 978-1-119-58294-6 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
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.&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
 | last1 = Varberg | first1 = Dale E.&lt;br /&gt;
 | last2 = Purcell | first2 = Edwin J.&lt;br /&gt;
 | last3 = Rigdon | first3 = Steven E.&lt;br /&gt;
 | title = Calculus&lt;br /&gt;
 | year = 2007&lt;br /&gt;
 | publisher = [[Pearson Prentice Hall]]&lt;br /&gt;
 | page = 107&lt;br /&gt;
 | edition = 9th&lt;br /&gt;
 | isbn = 978-0131469686&lt;br /&gt;
}}&amp;lt;/ref&amp;gt; This is often written: &amp;lt;math&amp;gt;(x \mapsto c)&amp;#039; = 0&amp;lt;/math&amp;gt;. The converse is also true. Namely, if {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;′(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) {{=}} 0}} for all real numbers {{math|&amp;#039;&amp;#039;x&amp;#039;&amp;#039;}}, then {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}} is a constant function.&amp;lt;ref&amp;gt;{{cite web|url=http://www.proofwiki.org/wiki/Zero_Derivative_implies_Constant_Function|title=Zero Derivative implies Constant Function|access-date=January 12, 2014}}&amp;lt;/ref&amp;gt; For example, given the constant function {{nowrap|&amp;lt;math&amp;gt;y(x) = -\sqrt{2}&amp;lt;/math&amp;gt;.}} The derivative of {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}} is the identically zero function {{nowrap|&amp;lt;math&amp;gt;y&amp;#039;(x) = \left(x \mapsto -\sqrt{2}\right)&amp;#039; = 0&amp;lt;/math&amp;gt;.}}&lt;br /&gt;
&lt;br /&gt;
== Other properties ==&lt;br /&gt;
For functions between [[preorder|preordered sets]], constant functions are both [[order-preserving]] and [[order-reversing]]; conversely, if {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} is both order-preserving and order-reversing, and if the [[Domain of a function|domain]] of {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} is a [[lattice (order)|lattice]], then {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;}} must be constant.&lt;br /&gt;
&lt;br /&gt;
* Every constant function whose [[Domain of a function|domain]] and [[codomain]] are the same set {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} is a [[left zero]] of the [[full transformation monoid]] on {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}}, which implies that it is also [[idempotent]].&lt;br /&gt;
* It has zero [[slope]] or [[gradient]]. &lt;br /&gt;
* Every constant function between [[topological space]]s is [[continuous function (topology)|continuous]].&lt;br /&gt;
* A constant function factors through the [[singleton (mathematics)|one-point set]], the [[terminal object]] in the [[category of sets]]. This observation is instrumental for [[F. William Lawvere]]&amp;#039;s axiomatization of set theory, the [[Elementary Theory of the Category of Sets]] (ETCS).&amp;lt;ref&amp;gt;{{cite arXiv|last1=Leinster|first1=Tom|title=An informal introduction to topos theory|date=27 Jun 2011|eprint=1012.5647|class=math.CT}}&amp;lt;/ref&amp;gt; &lt;br /&gt;
* For any non-empty {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}}, every set {{math|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}} is [[isomorphic]] to the set of constant functions in &amp;lt;math&amp;gt;X \to Y&amp;lt;/math&amp;gt;. For any {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}} and each element {{math|&amp;#039;&amp;#039;y&amp;#039;&amp;#039;}} in {{math|&amp;#039;&amp;#039;Y&amp;#039;&amp;#039;}}, there is a unique function &amp;lt;math&amp;gt;\tilde{y}: X \to Y&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\tilde{y}(x) = y&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x \in X&amp;lt;/math&amp;gt;. Conversely, if a function &amp;lt;math&amp;gt;f: X \to Y&amp;lt;/math&amp;gt; satisfies &amp;lt;math&amp;gt;f(x) = f(x&amp;#039;)&amp;lt;/math&amp;gt; for all &amp;lt;math&amp;gt;x, x&amp;#039; \in X&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; is by definition a constant function.&lt;br /&gt;
** As a corollary, the one-point set is a [[generator (category theory)|generator]] in the category of sets.&lt;br /&gt;
** Every set &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; is canonically isomorphic to the function set &amp;lt;math&amp;gt;X^1&amp;lt;/math&amp;gt;, or [[hom set]] &amp;lt;math&amp;gt;\operatorname{hom}(1,X)&amp;lt;/math&amp;gt; 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, &amp;lt;math&amp;gt;\operatorname{hom}(X \times Y, Z) \cong \operatorname{hom}(X(\operatorname{hom}(Y, Z))&amp;lt;/math&amp;gt;) 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 &amp;lt;math&amp;gt;\lambda: 1 \times X \cong X \cong X \times 1: \rho&amp;lt;/math&amp;gt; [[natural transformation|natural in {{math|&amp;#039;&amp;#039;X&amp;#039;&amp;#039;}}]], the left and right unitors are the projections &amp;lt;math&amp;gt;p_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;p_2&amp;lt;/math&amp;gt; the [[ordered pair]]s &amp;lt;math&amp;gt;(*, x)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;(x, *)&amp;lt;/math&amp;gt; respectively to the element &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is the unique [[point (mathematics)|point]] in the one-point set.&lt;br /&gt;
&lt;br /&gt;
A function on a [[connected set]] is [[locally constant]] if and only if it is constant.&lt;br /&gt;
&amp;lt;!--Lfahlberg 01.2014: Perhaps needs information contained in: http://mathworld.wolfram.com/ConstantMap.html, http://www.proofwiki.org/wiki/Definition:Constant_Mapping, http://math.stackexchange.com/questions/133257/show-that-a-constant-mapping-between-metric-spaces-is-continuous  and programming http://www.w3schools.com/php/func_misc_constant.asp, http://www2.math.uu.se/research/telecom/software/stcounting.html --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
* Herrlich, Horst and Strecker, George E., &amp;#039;&amp;#039;Category Theory&amp;#039;&amp;#039;, Heldermann Verlag  (2007).&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
{{commons category|Constant functions}}&lt;br /&gt;
* {{MathWorld |title=Constant Function |id=ConstantFunction}}&lt;br /&gt;
* {{planetmath reference |urlname=ConstantFunction |title=Constant function}}&lt;br /&gt;
&lt;br /&gt;
{{polynomials}} {{Functions navbox}}&lt;br /&gt;
[[Category:Elementary mathematics]]&lt;br /&gt;
[[Category:Elementary special functions]]&lt;br /&gt;
[[Category:Polynomial functions]]&lt;/div&gt;</summary>
		<author><name>38.210.0.65</name></author>
	</entry>
</feed>