In
mathematical analysis, and applications in
geometry,
applied mathematics,
engineering, and
natural science
Natural science is one of the branches of science concerned with the description, understanding and prediction of natural phenomena, based on empirical evidence from observation and experimentation. Mechanisms such as peer review and repeatab ...
s, a function of a real variable is a
function whose
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
is the
real numbers
, or a
subset
In mathematics, Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are ...
of
that contains an
interval of positive length. Most real functions that are considered and studied are
differentiable in some interval.
The most widely considered such functions are the real functions, which are the
real-valued functions of a real variable, that is, the functions of a real variable whose
codomain 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 a
Euclidean space, a
coordinate vector
In linear algebra, a coordinate vector is a representation of a vector as an ordered list of numbers (a tuple) that describes the vector in terms of a particular ordered basis. An easy example may be a position such as (5, 2, 1) in a 3-dimensiona ...
, the set of
matrices of real numbers of a given size, or an
-
algebra, such as the
complex numbers or the
quaternion
In mathematics, the quaternion number system extends the complex numbers. Quaternions were first described by the Irish mathematician William Rowan Hamilton in 1843 and applied to mechanics in three-dimensional space. Hamilton defined a quatern ...
s. 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.
The
image
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensiona ...
of a function of a real variable is a
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line (geometry), line, but that does not have to be Linearity, straight.
Intuitively, a curve may be thought of as the trace left by a moving point (ge ...
in the codomain. In this context, a function that defines curve is called a
parametric equation
In mathematics, a parametric equation defines a group of quantities as functions of one or more independent variables called parameters. Parametric equations are commonly used to express the coordinates of the points that make up a geometric obj ...
of the curve.
When the codomain of a function of a real variable is a
finite-dimensional vector space, the function may be viewed as a sequence of real functions. This is often used in applications.
Real function

A real function is a
function from a subset of
to
where
denotes as usual the set of
real numbers. That is, the
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
of a real function is a subset
, and its
codomain is
It is generally assumed that the domain contains an
interval of positive length.
Basic examples
For many commonly used real functions, the domain is the whole set of real numbers, and the function is
continuous
Continuity or continuous may refer to:
Mathematics
* Continuity (mathematics), the opposing concept to discreteness; common examples include
** Continuous probability distribution or random variable in probability and statistics
** Continuous ...
and
differentiable at every point of the domain. One says that these functions are defined, continuous and differentiable everywhere. This is the case of:
* All
polynomial function
In mathematics, a polynomial is an expression (mathematics), expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addition, subtrac ...
s, including
constant function
In mathematics, a constant function is a function whose (output) value is the same for every input value. For example, the function is a constant function because the value of is 4 regardless of the input value (see image).
Basic properties ...
s and
linear functions
*
Sine
In mathematics, sine and cosine are trigonometric functions of an angle. The sine and cosine of an acute angle are defined in the context of a right triangle: for the specified angle, its sine is the ratio of the length of the side that is oppo ...
and
cosine functions
*
Exponential function
Some functions are defined everywhere, but not continuous at some points. For example
* The
Heaviside step function is defined everywhere, but not continuous at zero.
Some functions are defined and continuous everywhere, but not everywhere differentiable. For example
* The
absolute value
In mathematics, the absolute value or modulus of a real number x, is the non-negative value without regard to its sign. Namely, , x, =x if is a positive number, and , x, =-x if x is negative (in which case negating x makes -x positive), an ...
is defined and continuous everywhere, and is differentiable everywhere, except for zero.
* The
cubic root is defined and continuous everywhere, and is differentiable everywhere, except for zero.
Many common functions are not defined everywhere, but are continuous and differentiable everywhere where they are defined. For example:
* A
rational function
In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be rat ...
is a quotient of two polynomial functions, and is not defined at the
zeros of the denominator.
* The
tangent function is not defined for
where is any integer.
* The
logarithm function is defined only for positive values of the variable.
Some functions are continuous in their whole domain, and not differentiable at some points. This is the case of:
*The
square root is defined only for nonnegative values of the variable, and not differentiable at 0 (it is differentiable for all positive values of the variable).
General definition
A real-valued function of a real variable is a
function that takes as input a
real number, commonly represented by the
variable
Variable may refer to:
* Variable (computer science), a symbolic name associated with a value and whose associated value may be changed
* Variable (mathematics), a symbol that represents a quantity in a mathematical expression, as used in many ...
''x'', for producing another real number, the ''value'' of the function, commonly denoted ''f''(''x''). For simplicity, in this article a real-valued function of a real variable will be simply called a function. 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 subset ''X'' of ℝ, the
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
of the function, which is always supposed to contain an
interval of positive length. In other words, a real-valued function of a real variable is a function
:
such that its domain ''X'' is a subset of ℝ that contains an interval of positive length.
A simple example of a function in one variable could be:
:
:
:
which is the
square root of ''x''.
Image
The
image
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensiona ...
of a function
is the set of all values of when the variable ''x'' runs in the whole domain of . For a continuous (see below for a definition) real-valued function with a connected domain, the image is either an
interval or a single value. In the latter case, the function is a
constant function
In mathematics, a constant function is a function whose (output) value is the same for every input value. For example, the function is a constant function because the value of is 4 regardless of the input value (see image).
Basic properties ...
.
The
preimage
In mathematics, the image of a function is the set of all output values it may produce.
More generally, evaluating a given function f at each element of a given subset A of its domain produces a set, called the "image of A under (or through) ...
of a given real number ''y'' is the set of the solutions of the
equation
In mathematics, an equation is a formula that expresses the equality of two expressions, by connecting them with the equals sign . The word ''equation'' and its cognates in other languages may have subtly different meanings; for example, in ...
.
Domain
The
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
**Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
* Do ...
of a function of several real variables is a subset of ℝ that is sometimes explicitly defined. In fact, if one restricts the domain ''X'' of a function ''f'' to a subset ''Y'' ⊂ ''X'', one gets formally a different function, the ''restriction'' of ''f'' to ''Y'', which is denoted ''f''
, ''Y''. In practice, it is often not harmful to identify ''f'' and ''f''
, ''Y'', and to omit the subscript
, ''Y''.
Conversely, it is sometimes possible to enlarge naturally the domain of a given function, for example by
continuity or by
analytic continuation. This means that it is not worthy to explicitly define the domain of a function of a real variable.
Algebraic structure
The arithmetic operations may be applied to the functions in the following way:
* For every real number ''r'', the
constant function
In mathematics, a constant function is a function whose (output) value is the same for every input value. For example, the function is a constant function because the value of is 4 regardless of the input value (see image).
Basic properties ...
, is everywhere defined.
* For every real number ''r'' and every function ''f'', the function
has the same domain as ''f'' (or is everywhere defined if ''r'' = 0).
* If ''f'' and ''g'' are two functions of respective domains ''X'' and ''Y'' such that contains an open subset of ℝ, then
and
are functions that have a domain containing .
It follows that the functions of ''n'' variables that are everywhere defined and the functions of ''n'' variables that are defined in some
neighbourhood of a given point both form
commutative algebras over the reals (ℝ-algebras).
One may similarly define
which is a function only if the set of the points in the domain of ''f'' such that contains an open subset of ℝ. This constraint implies that the above two algebras are not
fields.
Continuity and limit

Until the second part of 19th century, only
continuous function
In mathematics, a continuous function is a function such that a continuous variation (that is a change without jump) of the argument induces a continuous variation of the value of the function. This means that there are no abrupt changes in value ...
s 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 a
topological space and a
continuous 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 the
distance function
In mathematics, a metric space is a set together with a notion of ''distance'' between its elements, usually called points. The distance is measured by a function called a metric or distance function. Metric spaces are the most general settin ...
of ℝ, which is an everywhere defined function of 2 real variables:
A function ''f'' is continuous at a point
which is
interior
Interior may refer to:
Arts and media
* ''Interior'' (Degas) (also known as ''The Rape''), painting by Edgar Degas
* ''Interior'' (play), 1895 play by Belgian playwright Maurice Maeterlinck
* ''The Interior'' (novel), by Lisa See
* Interior de ...
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 by ''f'' of the interval of radius centered at
contained in the interval of length centered at
A function is continuous if it is continuous at every point of its domain.
The
limit
Limit or Limits may refer to:
Arts and media
* ''Limit'' (manga), a manga by Keiko Suenobu
* ''Limit'' (film), a South Korean film
* Limit (music), a way to characterize harmony
* "Limit" (song), a 2016 single by Luna Sea
* "Limits", a 2019 ...
of a real-valued function of a real variable is as follows. Let ''a'' be a point in
topological closure of the domain ''X'' of the function ''f''. The function, ''f'' has a limit ''L'' when ''x'' tends toward ''a'', denoted
:
if the following condition is satisfied:
For every positive real number ''ε'' > 0, there is a positive real number ''δ'' > 0 such that
:
for all ''x'' in the domain such that
:
If the limit exists, it is unique. If ''a'' is in the interior of the domain, the limit exists if and only if the function is continuous at ''a''. In this case, we have
:
When ''a'' is in the
boundary of the domain of ''f'', and if ''f'' has a limit at ''a'', the latter formula allows to "extend by continuity" the domain of ''f'' to ''a''.
Calculus
One can collect a number of functions each of a real variable, say
:
into a vector parametrized by ''x'':
:
The derivative of the vector y is the vector derivatives of ''f
i''(''x'') for ''i'' = 1, 2, ..., ''n'':
:
One can also perform
line integrals along a
space curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that a ...
parametrized by ''x'', with
position vector
In geometry, a position or position vector, also known as location vector or radius vector, is a Euclidean vector that represents the position of a point ''P'' in space in relation to an arbitrary reference origin ''O''. Usually denoted x, r, or s ...
r = r(''x''), by integrating with respect to the variable ''x'':
:
where · is the
dot product, and ''x'' = ''a'' and ''x'' = ''b'' are the start and endpoints of the curve.
Theorems
With the definitions of integration and derivatives, key theorems can be formulated, including the
fundamental theorem of calculus,
integration by parts, and
Taylor's theorem
In calculus, Taylor's theorem gives an approximation of a ''k''-times differentiable function around a given point by a polynomial of degree ''k'', called the ''k''th-order Taylor polynomial. For a smooth function, the Taylor polynomial is the t ...
. Evaluating a mixture of integrals and derivatives can be done by using theorem
differentiation under the integral sign.
Implicit functions
A real-valued
implicit function of a real variable is not written in the form "''y'' = ''f''(''x'')". Instead, the mapping is from the space ℝ
2 to the
zero 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.
One-dimensional space curves in ℝ''n''
Formulation
Given the functions , , ..., all of a common variable ''t'', so that:
:
or taken together:
:
then the parametrized ''n''-tuple,
:
describes a one-dimensional
space curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that a ...
.
Tangent line to curve
At a point for some constant ''t'' = ''c'', the equations of the one-dimensional tangent line to the curve at that point are given in terms of the
ordinary derivative
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. F ...
s of ''r''
1(''t''), ''r''
2(''t''), ..., ''r''
''n''(''t''), and ''r'' with respect to ''t'':
:
Normal plane to curve
The equation of the ''n''-dimensional hyperplane normal to the tangent line at r = a is:
:
or in terms of the
dot product:
:
where are points ''in the plane'', not on the space curve.
Relation to kinematics

The physical and geometric interpretation of ''d''r(''t'')/''dt'' is the "
velocity" of a point-like
particle moving along the path r(''t''), treating r as the spatial
position vector
In geometry, a position or position vector, also known as location vector or radius vector, is a Euclidean vector that represents the position of a point ''P'' in space in relation to an arbitrary reference origin ''O''. Usually denoted x, r, or s ...
coordinates parametrized by time ''t'', and is a vector tangent to the space curve for all ''t'' in the instantaneous direction of motion. At ''t'' = ''c'', the space curve has a tangent vector , and the hyperplane normal to the space curve at ''t'' = ''c'' is also normal to the tangent at ''t'' = ''c''. Any vector in this plane (p − a) must be normal to .
Similarly, ''d''
2r(''t'')/''dt''
2 is the "
acceleration" of the particle, and is a vector normal to the curve directed along the
radius of curvature.
Matrix valued functions
A
matrix
Matrix most commonly refers to:
* ''The Matrix'' (franchise), an American media franchise
** ''The Matrix'', a 1999 science-fiction action film
** "The Matrix", a fictional setting, a virtual reality environment, within ''The Matrix'' (franchis ...
can also be a function of a single variable. For example, the
rotation matrix in 2d:
:
is a matrix valued function of rotation angle of about the origin. Similarly, in
special relativity, the
Lorentz transformation matrix for a pure boost (without rotations):
:
is a function of the boost parameter ''β'' = ''v''/''c'', in which ''v'' is the
relative velocity between the frames of reference (a continuous variable), and ''c'' is the
speed of light, a constant.
Banach and Hilbert spaces and quantum mechanics
Generalizing the previous section, the output of a function of a real variable can also lie in a Banach space or a Hilbert 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 a
ket
Kentucky Educational Television (KET) is a state network of PBS member television stations serving the U.S. Commonwealth of Kentucky. It is operated by the Kentucky Authority for Educational Television, an agency of the Kentucky state governm ...
or an
operator
Operator may refer to:
Mathematics
* A symbol indicating a mathematical operation
* Logical operator or logical connective in mathematical logic
* Operator (mathematics), mapping that acts on elements of a space to produce elements of another ...
. This occurs, for instance, in the general time-dependent
Schrödinger equation:
:
where one takes the derivative of a wave function, which can be an element of several different Hilbert spaces.
Complex-valued function of a real variable
A complex-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 allowing
complex values.
If is such a complex valued function, it may be decomposed as
: = + ,
where and 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.
Cardinality of sets of functions of a real variable
The
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
of the set of real-valued functions of a real variable,
, is
, which is strictly larger than the cardinality of the
continuum
Continuum may refer to:
* Continuum (measurement), theories or models that explain gradual transitions from one condition to another without abrupt changes
Mathematics
* Continuum (set theory), the real line or the corresponding cardinal number ...
(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 of
continuous function
In mathematics, a continuous function is a function such that a continuous variation (that is a change without jump) of the argument induces a continuous variation of the value of the function. This means that there are no abrupt changes in value ...
s
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.
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 clear bijection between
and the set of constant functions
, which forms a subset of
,
must also hold. Hence,
.
See also
*
Real analysis
*
Function of several real variables
*
Complex analysis
Complex analysis, traditionally known as the theory of functions of a complex variable, is the branch of mathematical analysis that investigates Function (mathematics), functions of complex numbers. It is helpful in many branches of mathemati ...
*
Function of several complex variables
The theory of functions of several complex variables is the branch of mathematics dealing with complex-valued functions. The name of the field dealing with the properties of function of several complex variables is called several complex variable ...
References
*
*
*
External links
''Multivariable Calculus''L. A. Talman (2007) ''Differentiability for Multivariable Functions''
{{Authority control
Mathematical analysis
Real numbers
Multivariable calculus