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 \mathbb{R}, the
domain 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 :f: X \to \R such that its domain
X is a subset of \mathbb{R} that contains an interval of positive length. A simple example of a function in one variable could be: : f : X \to \R : X = \{ x \in \R \,:\, x \geq 0\} : f(x) = \sqrt{x} which is the
square root of
x.
Image The
image of a function f(x) 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. The
preimage of a given real number
y is the set of the solutions of the
equation .
Domain The
domain of a function of several real variables is a subset of \mathbb{R} 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 (x)\mapsto r, is everywhere defined. • For every real number
r and every function
f, the function rf:(x)\mapsto rf(x) 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 \mathbb{R}, then f+g:(x)\mapsto f(x)+g(x) and f\,g:(x)\mapsto f(x)\,g(x) 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 (\mathbb{R}-algebras). One may similarly define 1/f:(x)\mapsto 1/f(x), which is a function only if the set of the points in the domain of
f such that contains an open subset of \mathbb{R}. This constraint implies that the above two algebras are not
fields.
Continuity and limit 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 \mathbb{R}, which is an everywhere defined function of 2 real variables: d(x,y)=|x-y| A function
f is
continuous at a point a which is
interior to its domain, if, for every positive real number , there is a positive real number such that |f(x)-f(a)| for all x such that d(x,a) In other words, may be chosen small enough for having the image by
f of the interval of radius centered at a contained in the interval of length centered at f(a). A function is continuous if it is continuous at every point of its domain. The
limit 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 :L = \lim_{x \to a} f(x), if the following condition is satisfied: For every positive real number
ε > 0, there is a positive real number
δ > 0 such that :|f(x) - L| for all
x in the domain such that :d(x, a) 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) = \lim_{x \to a} f(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. ==Calculus==