In mathematical analysis, and applications in geometry, applied mathematics, engineering, and natural sciences, a function of a real variable is a function whose domain is the real numbers
R
R
Nevertheless, the codomain of a function of a real variable may be any set. However, it is often assumed to have a structure of
R
R
R
R
R
The image of a function of a real variable is a curve in the codomain. In this context, a function that defines curve is called a parametric equation 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.
A real function is a function from a subset of
R
R,
R
R
R.
For many commonly used real functions, the domain is the whole set of real numbers, and the function is 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:
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:
\pi | |
2 |
+k\pi,
Some functions are continuous in their whole domain, and not differentiable at some points. This is the case of:
A real-valued function of a real variable is a function that takes as input a real number, commonly represented by the variable 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
R
f:X\to\R
such that its domain X is a subset of
R
A simple example of a function in one variable could be:
f:X\to\R
X=\{x\in\R:x\geq0\}
f(x)=\sqrt{x}
which is the square root of x.
See main article: Image (mathematics). The image of a function
f(x)
The preimage of a given real number y is the set of the solutions of the equation .
The domain of a function of several real variables is a subset of
R
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.
The arithmetic operations may be applied to the functions in the following way:
(x)\mapstor
rf:(x)\mapstorf(x)
R
f+g:(x)\mapstof(x)+g(x)
fg:(x)\mapstof(x)g(x)
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 (
R
One may similarly define
1/f:(x)\mapsto1/f(x),
R
Until the second part of 19th century, only continuous 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 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 of
R
d(x,y)=|x-y|
A function f is continuous at a point
a
|f(x)-f(a)|<\varepsilon
x
d(x,a)<\varphi.
a
f(a).
The limit of a real-valued function of a real variable is as follows.[1] 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
L=\limxf(x),
|f(x)-L|<\varepsilon
d(x,a)<\delta.
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
f(a)=\limxf(x).
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.
One can collect a number of functions each of a real variable, say
y1=f1(x), y2=f2(x),\ldots,yn=fn(x)
into a vector parametrized by x:
y=(y1,y2,\ldots,yn)=[f1(x),f2(x),\ldots,fn(x)]
The derivative of the vector y is the vector derivatives of fi(x) for i = 1, 2, ..., n:
dy | |
dx |
=\left(
dy1 | |
dx |
,
dy2 | |
dx |
,\ldots,
dyn | |
dx |
\right)
One can also perform line integrals along a space curve parametrized by x, with position vector r = r(x), by integrating with respect to the variable x:
b | |
\int | |
a |
y(x) ⋅ dr=
b | |
\int | |
a |
y(x) ⋅
dr(x) | |
dx |
dx
where · is the dot product, and x = a and x = b are the start and endpoints of the curve.
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. Evaluating a mixture of integrals and derivatives can be done by using theorem differentiation under the integral sign.
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
R
R
\phi:\R2\to\{0\}
and
\phi(x,y)=0
is an equation in the variables. Implicit functions are a more general way to represent functions, since if:
y=f(x)
then we can always define:
\phi(x,y)=y-f(x)=0
but the converse is not always possible, i.e. not all implicit functions have the form of this equation.
R
Given the functions,, ..., all of a common variable t, so that:
\begin{align} r1:R → R& r2:R → R& … & rn:R → R\\ r1=r1(t)& r2=r2(t)& … & rn=rn(t)\\ \end{align}
or taken together:
r:R → Rn, r=r(t)
then the parametrized n-tuple,
r(t)=[r1(t),r2(t),\ldots,rn(t)]
describes a one-dimensional space 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 derivatives of r1(t), r2(t), ..., rn(t), and r with respect to t:
r1(t)-a1 | |
dr1(t)/dt |
=
r2(t)-a2 | |
dr2(t)/dt |
= … =
rn(t)-an | |
drn(t)/dt |
The equation of the n-dimensional hyperplane normal to the tangent line at r = a is:
(p1-
a | ||||
|
+(p2-
a | ||||
|
+ … +(pn-
a | ||||
|
=0
or in terms of the dot product:
(p-a) ⋅
dr(t) | |
dt |
=0
where are points in the plane, not on the space curve.
The physical and geometric interpretation of dr(t)/dt is the "velocity" of a point-like particle moving along the path r(t), treating r as the spatial position vector 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, d2r(t)/dt2 is the "acceleration" of the particle, and is a vector normal to the curve directed along the radius of curvature.
A matrix can also be a function of a single variable. For example, the rotation matrix in 2d:
R(\theta)=\begin{bmatrix} \cos\theta&-\sin\theta\\ \sin\theta&\cos\theta\\ \end{bmatrix}
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):
Λ(\beta)=\begin{bmatrix}
1 | |
\sqrt{1-\beta2 |
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.
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 or an operator. This occurs, for instance, in the general time-dependent Schrödinger equation:
i\hbar
\partial | |
\partialt |
\Psi=\hatH\Psi
where one takes the derivative of a wave function, which can be an element of several different Hilbert spaces.
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.
The cardinality of the set of real-valued functions of a real variable,
RR=\{f:R\toR\}
ak{c} | |
\beth | |
2=2 |
Furthermore, if
X
2\leqcard(X)\leqak{c}
XR=\{f:R\toX\}
2ak{c}
However, the set of continuous functions
C0(R)=\{f:R\toR:f continuous\}
ak{c}
On the other hand, since there is a clear bijection between
\R
\{f:\R\to\R:f(x)\equivx0\}
C0(\R)
card(C0(\R))\geqak{c}
card(C0(\R))=ak{c}