| Function |
|---|
| x ↦f (x) |
| History of the function concept |
| Types bydomain andcodomain |
| Classes/properties |
| Constructions |
| Generalizations |
| List of specific functions |
Inmathematical analysis, and applications ingeometry,applied mathematics,engineering, andnatural sciences, afunction of a real variable is afunction whosedomain is thereal numbers, or asubset of that contains aninterval of positive length. Most real functions that are considered and studied aredifferentiable in some interval.The most widely considered such functions are thereal functions, which are thereal-valued functions of a real variable, that is, the functions of a real variable whosecodomain is the set of real numbers.
Nevertheless, the codomain of a function of a real variable may be any set. However, it is often assumed to have a structure of-vector space over the reals. That is, the codomain may be aEuclidean space, acoordinate vector, the set ofmatrices of real numbers of a given size, or an-algebra, such as thecomplex numbers or thequaternions. The structure-vector space of the codomain induces a structure of-vector space on the functions. If the codomain has a structure of-algebra, the same is true for the functions.
Theimage of a function of a real variable is acurve in the codomain. In this context, a function that defines curve is called aparametric equation of the curve.
When the codomain of a function of a real variable is afinite-dimensional vector space, the function may be viewed as a sequence of real functions. This is often used in applications.

A real function is afunction from a subset of to where denotes as usual the set ofreal numbers. That is, thedomain of a real function is a subset, and itscodomain is It is generally assumed that the domain contains aninterval of positive length.
For many commonly used real functions, the domain is the whole set of real numbers, and the function iscontinuous anddifferentiable at every point of the domain. One says that these functions are defined, continuous and differentiable everywhere. This is the case of:
Some functions are defined everywhere, but not continuous at some points. For example
Some functions are defined and continuous everywhere, but not everywhere differentiable. For example
Many common functions are not defined everywhere, but are continuous and differentiable everywhere where they are defined. For example:
Some functions are continuous in their whole domain, and not differentiable at some points. This is the case of:
Areal-valued function of a real variable is afunction that takes as input areal number, commonly represented by thevariablex, for producing another real number, thevalue of the function, commonly denotedf(x). For simplicity, in this article a real-valued function of a real variable will be simply called afunction. To avoid any ambiguity, the other types of functions that may occur will be explicitly specified.
Some functions are defined for all real values of the variables (one says that they are everywhere defined), but some other functions are defined only if the value of the variable is taken in a subsetX of, thedomain of the function, which is always supposed to contain aninterval of positive length. In other words, a real-valued function of a real variable is a function
such that its domainX is a subset of that contains an interval of positive length.
A simple example of a function in one variable could be:
which is thesquare root ofx.
Theimage of a function is the set of all values off when the variablex runs in the whole domain off. For a continuous (see below for a definition) real-valued function with a connected domain, the image is either aninterval or a single value. In the latter case, the function is aconstant function.
Thepreimage of a given real numbery is the set of the solutions of theequationy =f(x).
Thedomain of a function of several real variables is a subset of that is sometimes explicitly defined. In fact, if one restricts the domainX of a functionf to a subsetY ⊂X, one gets formally a different function, therestriction off toY, which is denotedf|Y. In practice, it is often not harmful to identifyf andf|Y, and to omit the subscript|Y.
Conversely, it is sometimes possible to enlarge naturally the domain of a given function, for example bycontinuity or byanalytic continuation. This means that it is not worthy to explicitly define the domain of a function of a real variable.
The arithmetic operations may be applied to the functions in the following way:
It follows that the functions ofn variables that are everywhere defined and the functions ofn variables that are defined in someneighbourhood of a given point both formcommutative algebras over the reals (-algebras).
One may similarly define which is a function only if the set of the points(x) in the domain off such thatf(x) ≠ 0 contains an open subset of. This constraint implies that the above two algebras are notfields.

Until the second part of 19th century, onlycontinuous functions were considered by mathematicians. At that time, the notion of continuity was elaborated for the functions of one or several real variables a rather long time before the formal definition of atopological space and acontinuous map between topological spaces. As continuous functions of a real variable are ubiquitous in mathematics, it is worth defining this notion without reference to the general notion of continuous maps between topological space.
For defining the continuity, it is useful to consider thedistance function of, which is an everywhere defined function of 2 real variables:
A functionf iscontinuous at a point which isinterior to its domain, if, for every positive real numberε, there is a positive real numberδ such that for all such that In other words,δ may be chosen small enough for having the image byf of the interval of radiusδ centered at contained in the interval of length2ε centered at A function is continuous if it is continuous at every point of its domain.
Thelimit of a real-valued function of a real variable is as follows.[1] Leta be a point intopological closure of the domainX of the functionf. The function,f has a limitL whenx tends towarda, denoted
if the following condition is satisfied:For every positive real numberε > 0, there is a positive real numberδ > 0 such that
for allx in the domain such that
If the limit exists, it is unique. Ifa is in the interior of the domain, the limit exists if and only if the function is continuous ata. In this case, we have
Whena is in theboundary of the domain off, and iff has a limit ata, the latter formula allows to "extend by continuity" the domain off toa.
One can collect a number of functions each of a real variable, say
into a vector parametrized byx:
The derivative of the vectory is the vector derivatives offi(x) fori = 1, 2, ...,n:
One can also performline integrals along aspace curve parametrized byx, withposition vectorr =r(x), by integrating with respect to the variablex:
where · is thedot product, andx =a andx =b are the start and endpoints of the curve.
With the definitions of integration and derivatives, key theorems can be formulated, including thefundamental theorem of calculus,integration by parts, andTaylor's theorem. Evaluating a mixture of integrals and derivatives can be done by using theoremdifferentiation under the integral sign.
Areal-valuedimplicit function of a real variable is not written in the form "y =f(x)". Instead, the mapping is from the space2 to thezero element in (just the ordinary zero 0):
and
is an equation in the variables. Implicit functions are a more general way to represent functions, since if:
then we can always define:
but the converse is not always possible, i.e. not all implicit functions have the form of this equation.

Given the functionsr1 =r1(t),r2 =r2(t), ...,rn =rn(t) all of a common variablet, so that:
or taken together:
then the parametrizedn-tuple,
describes a one-dimensionalspace curve.
At a pointr(t =c) =a = (a1,a2, ...,an) for some constantt =c, the equations of the one-dimensional tangent line to the curve at that point are given in terms of theordinary derivatives ofr1(t),r2(t), ...,rn(t), andr with respect tot:
The equation of then-dimensionalhyperplane normal to the tangent line atr =a is:
or in terms of thedot product:
wherep = (p1,p2, ...,pn) are pointsin the plane, not on the space curve.

The physical and geometric interpretation ofdr(t)/dt is the "velocity" of a point-likeparticle moving along the pathr(t), treatingr as the spatialposition vector coordinates parametrized by timet, and is a vector tangent to the space curve for allt in the instantaneous direction of motion. Att =c, the space curve has a tangent vectordr(t)/dt|t =c, and the hyperplane normal to the space curve att =c is also normal to the tangent att =c. Any vector in this plane (p −a) must be normal todr(t)/dt|t =c.
Similarly,d2r(t)/dt2 is the "acceleration" of the particle, and is a vector normal to the curve directed along theradius of curvature.
Amatrix can also be a function of a single variable. For example, therotation matrix in 2d:
is a matrix valued function of rotation angle of about the origin. Similarly, inspecial relativity, theLorentz transformation matrix for a pure boost (without rotations):
is a function of the boost parameterβ =v/c, in whichv is therelative velocity between the frames of reference (a continuous variable), andc is thespeed of light, a constant.
Generalizing the previous section, the output of a function of a real variable can also lie in aBanach space or aHilbert space. In these spaces, division and multiplication and limits are all defined, so notions such as derivative and integral still apply. This occurs especially often in quantum mechanics, where one takes the derivative of aket or anoperator. This occurs, for instance, in the general time-dependentSchrödinger equation:
where one takes the derivative of a wave function, which can be an element of several different Hilbert spaces.
Acomplex-valued function of a real variable may be defined by relaxing, in the definition of the real-valued functions, the restriction of the codomain to the real numbers, and allowingcomplex values.
Iff(x) is such a complex valued function, it may be decomposed as
whereg andh are real-valued functions. In other words, the study of the complex valued functions reduces easily to the study of the pairs of real valued functions.
Thecardinality of the set of real-valued functions of a real variable,, is, which is strictly larger than the cardinality of thecontinuum (i.e., set of all real numbers). This fact is easily verified by cardinal arithmetic:
Furthermore, if is a set such that, then the cardinality of the set is also, since
However, the set ofcontinuous functions has a strictly smaller cardinality, the cardinality of the continuum,. This follows from the fact that a continuous function is completely determined by its value on a dense subset of its domain.[2] Thus, the cardinality of the set of continuous real-valued functions on the reals is no greater than the cardinality of the set of real-valued functions of a rational variable. By cardinal arithmetic:
On the other hand, since there is a clearbijection between and the set of constant functions, which forms a subset of, must also hold. Hence,.