Constant function

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 is a constant function because the value of is 4 for every input value (see image).
Basic properties
As a real-valued function of a real-valued argument, a constant function has the form or just .
- Example: The function or just is the specific constant function where the output value is . The domain of this function is the set of all real numbers ℝ. The codomain of this function is just {4}. 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)=4, y(−2.7)=4, y(π)=4,.... No matter what value of x is input, the output is "4".
The graph of the constant function is a horizontal line in the plane that passes through the point .[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 . This function has no intersection point with the x-axis, that is, it has no root (zero). On the other hand, the polynomial 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: . The converse (opposite) 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 . The derivative of y is the identically zero function .
Generalization
A function f : A → B is a constant function if f(a) = f(b) for every a and b in A.[8]
Examples
Real-world example: A store where every item is sold for the price of 1 euro. The domain of this function is the set of items in the store. The codomain is the set {1 euro}.
Example: Let f : A → B where A={X,Y,Z,W} and B={1,2,3} and f(a)=3 for every a∈A. Then f is a constant function.
Example: z(x,y)=2 is the constant function from A=ℝ² to B=ℝ where every point (x,y)∈ℝ² is mapped to the value z=2. The graph of this constant function is the horizontal plane (parallel to the x0y plane) in 3D space that passes through the point (0,0,2). The function z(x,y)=0 is the identically zero function whose graph is the x0y plane in 3D space.
Example: The polar function ρ(φ)=2.5 is the constant function that maps every angle φ to the radius ρ=2.5. The graph of this function is the circle of radius 2.5 in the plane.
![]() Generalized constant function. |
![]() Constant function z(x,y)=2 |
![]() Constant polar function ρ(φ)=2.5 |
Other properties
There are other properties associated with constant functions. See Constant function on Wikipedia
See also
References
- ↑ Tanton, James (2005). Encyclopedia of Mathematics. Facts on File, New York. p. 94. ISBN 0-8160-5124-0. Template:En
- ↑ C.Clapham, J.Nicholson (2009). "Oxford Concise Dictionary of Mathematics, Constant Function" (PDF). Addison-Wesley. p. 175. Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help) - ↑ Weisstein, Eric (1999). CRC Concise Encyclopedia of Mathematics. CRC Press, London. p. 313. ISBN 0-8493-9640-9. Template:En
- ↑ Dawkins, Paul (2007). "College Algebra". Lamar University. p. 224. Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help) - ↑ 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. ISBN 978-0078682278. Template:En
- ↑ Dawkins, Paul (2007). "Derivative Proofs". Lamar University. Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help); Cite has empty unknown parameter:|1=
(help) - ↑ "Zero Derivative implies Constant Function". Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help) - ↑ "Constant Function". Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help)
Other websites

- Weisstein, Eric W. "Constant Function". From MathWorld--A Wolfram Web Resource. Retrieved January 2014.
{{cite web}}
: Check date values in:|accessdate=
(help); Cite has empty unknown parameter:|1=
(help)