In mathematics, a real-valued function is a function whose values are real numbers. In other words, it is a function that assigns a real number to each member of its domain.
Real-valued functions of a real variable (commonly called real functions) and real-valued functions of several real variables are the main object of study of calculus and, more generally, real analysis. In particular, many function spaces consist of real-valued functions.
Let
{lF}(X,{R})
R
R
{lF}(X,{R})
f+g:x\mapstof(x)+g(x)
0:x\mapsto0
cf:x\mapstocf(x), c\inR
fg:x\mapstof(x)g(x)
These operations extend to partial functions from to
R,
Also, since
R
f\leg \iff \forallx:f(x)\leg(x),
{lF}(X,{R}),
{lF}(X,{R})
The σ-algebra of Borel sets is an important structure on real numbers. If has its σ-algebra and a function is such that the preimage of any Borel set belongs to that σ-algebra, then is said to be measurable. Measurable functions also form a vector space and an algebra as explained above in .
Moreover, a set (family) of real-valued functions on can actually define a σ-algebra on generated by all preimages of all Borel sets (or of intervals only, it is not important). This is the way how σ-algebras arise in (Kolmogorov's) probability theory, where real-valued functions on the sample space are real-valued random variables.
Real numbers form a topological space and a complete metric space. Continuous real-valued functions (which implies that is a topological space) are important in theories of topological spaces and of metric spaces. The extreme value theorem states that for any real continuous function on a compact space its global maximum and minimum exist.
The concept of metric space itself is defined with a real-valued function of two variables, the metric, which is continuous. The space of continuous functions on a compact Hausdorff space has a particular importance. Convergent sequences also can be considered as real-valued continuous functions on a special topological space.
Continuous functions also form a vector space and an algebra as explained above in, and are a subclass of measurable functions because any topological space has the σ-algebra generated by open (or closed) sets.
See main article: Smooth function. Real numbers are used as the codomain to define smooth functions. A domain of a real smooth function can be the real coordinate space (which yields a real multivariable function), a topological vector space,[1] an open subset of them, or a smooth manifold.
Spaces of smooth functions also are vector spaces and algebras as explained above in and are subspaces of the space of continuous functions.
A measure on a set is a non-negative real-valued functional on a σ-algebra of subsets.[2] Lp spaces on sets with a measure are defined from aforementioned real-valued measurable functions, although they are actually quotient spaces. More precisely, whereas a function satisfying an appropriate summability condition defines an element of Lp space, in the opposite direction for any and which is not an atom, the value is undefined. Though, real-valued Lp spaces still have some of the structure described above in . Each of Lp spaces is a vector space and have a partial order, and there exists a pointwise multiplication of "functions" which changes, namely
\sdot:L1/\alpha x L1/\beta\toL1/(\alpha+\beta), 0\le\alpha,\beta\le1, \alpha+\beta\le1.
Other contexts where real-valued functions and their special properties are used include monotonic functions (on ordered sets), convex functions (on vector and affine spaces), harmonic and subharmonic functions (on Riemannian manifolds), analytic functions (usually of one or more real variables), algebraic functions (on real algebraic varieties), and polynomials (of one or more real variables).