Constant function should not be confused with function constant.
In mathematics, a constant function is a function whose (output) value is the same for every input value.
As a real-valued function of a real-valued argument, a constant function has the general form or just For example, the function is the specific constant function where the output value is . The domain of this function is the set of all real numbers. The image of this function is the singleton set . The independent variable does not appear on the right side of the function expression and so its value is "vacuously substituted"; namely,,, and so on. No matter what value of is input, the output is .[1]
The graph of the constant function is a horizontal line in the plane that passes through the point .[2] In the context of a polynomial in one variable, the constant function is called non-zero constant function because it is a polynomial of degree 0, and its general form is, where is nonzero. This function has no intersection point with the axis, meaning it has no root (zero). On the other hand, the polynomial is the identically zero function. It is the (trivial) constant function and every is a root. Its graph is the axis in the plane.[3] Its graph is symmetric with respect to the axis, and therefore a constant function is an even function.[4]
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.[5] This is often written:
(x\mapstoc)'=0
For functions between preordered sets, constant functions are both order-preserving and order-reversing; conversely, if is both order-preserving and order-reversing, and if the domain of is a lattice, then must be constant.
X\toY
\tilde{y}:X\toY
\tilde{y}(x)=y
x\inX
f:X\toY
f(x)=f(x')
x,x'\inX
f
X
X1
\operatorname{hom}(1,X)
\operatorname{hom}(X x Y,Z)\cong\operatorname{hom}(X(\operatorname{hom}(Y,Z))
λ:1 x X\congX\congX x 1:\rho
p1
p2
(*,x)
(x,*)
x
*
A function on a connected set is locally constant if and only if it is constant.
. Cynthia Y. Young . 2021 . Precalculus . 3rd . 122 . John Wiley & Sons.