A binary operation on two intervals, such as addition or multiplication is defined by :[x_1, x_2] {\,\star\,} [y_1, y_2] = \{ x \star y \, | \, x \in [x_1, x_2] \,\land\, y \in [y_1, y_2] \}. In other words, it is the set of all possible values of , where and are in their corresponding intervals. If is
monotone for each operand on the intervals, which is the case for the four basic arithmetic operations (except division when the denominator contains zero), the extreme values occur at the endpoints of the operand intervals. Writing out all combinations, one way of stating this is :[x_1, x_2] \star [y_1, y_2] = \left[ \min\{ x_1 \star y_1, x_1 \star y_2, x_2 \star y_1, x_2 \star y_2\}, \max \{x_1 \star y_1, x_1 \star y_2, x_2 \star y_1, x_2 \star y_2\} \right], provided that is defined for all and . For practical applications, this can be simplified further: •
Addition: [x_1, x_2] + [y_1, y_2] = [x_1+y_1, x_2+y_2] •
Subtraction: [x_1, x_2] - [y_1, y_2] = [x_1-y_2, x_2-y_1] •
Multiplication: [x_1, x_2] \cdot [y_1, y_2] = [\min \{x_1 y_1,x_1 y_2,x_2 y_1,x_2 y_2\}, \max\{x_1 y_1,x_1 y_2,x_2 y_1,x_2 y_2\}] •
Division: \frac{[x_1, x_2]}{[y_1, y_2]} = [x_1, x_2] \cdot \frac{1}{[y_1, y_2]}, where \begin{align} \frac{1}{[y_1, y_2]} &= \left [\frac{1}{y_2}, \frac{1}{y_1} \right ] && \textrm{if}\;0 \notin [y_1, y_2] \\ \frac{1}{[y_1, 0]} &= \left [-\infty, \frac{1}{y_1} \right ] \\ \frac{1}{[0, y_2]} &= \left [\frac{1}{y_2}, \infty \right ] \\ \frac{1}{[y_1, y_2]} &= \left [-\infty, \frac{1}{y_1} \right ] \cup \left [\frac{1}{y_2}, \infty \right ] \subseteq [-\infty, \infty] && \textrm{if}\;0 \in (y_1, y_2) \end{align} The last case loses useful information about the exclusion of . Thus, it is common to work with and as separate intervals. More generally, when working with discontinuous functions, it is sometimes useful to do the calculation with so-called
multi-intervals of the form . The corresponding
multi-interval arithmetic maintains a set of (usually disjoint) intervals and also provides for overlapping intervals to unite. Interval multiplication often only requires two multiplications. If , are nonnegative, :[x_1, x_2] \cdot [y_1, y_2] = [x_1 \cdot y_1, x_2 \cdot y_2], \qquad \text{ if } x_1, y_1 \geq 0. The multiplication can be interpreted as the area of a rectangle with varying edges. The result interval covers all possible areas, from the smallest to the largest. With the help of these definitions, it is already possible to calculate the range of simple functions, such as . For example, if , and : :f(a,b,x) = [1,2] \cdot [2,3] + [5,7] = [1 \cdot 2, 2\cdot 3] + [5,7] = [7,13].
Notation To shorten the notation of intervals, brackets can be used. can be used to represent an interval. Note that in such a compact notation, should not be confused between a single-point interval and a general interval. For the set of all intervals, we can use :[\R] := \left \{\, [x_1, x_2] \,|\, x_1 \leq x_2 \text{ and } x_1, x_2 \in \R \cup \{-\infty, \infty\} \right \} as an abbreviation. For a vector of intervals we can use a bold font: :[\mathbf{x}] = \left([x]_1, \ldots , [x]_n \right) \in [\R]^n .
Elementary functions Interval functions beyond the four basic operators may also be defined. For
monotonic functions in one variable, the range of values is simple to compute. If is monotonically increasing in the interval , then for all such that , then (and if is decreasing, ). The range corresponding to the interval can be therefore calculated by applying the function to its endpoints: :f([y_1, y_2]) = \left[\min \left \{f(y_1), f(y_2) \right \}, \max \left\{ f(y_1), f(y_2) \right\}\right]. From this, the following basic features for interval functions can easily be defined: •
Exponential function: a^{[x_1, x_2]} = [a^{x_1},a^{x_2}] \qquad \text{for } a > 1, •
Logarithm: \log_a [x_1, x_2] = [\log_a {x_1}, \log_a {x_2}] \quad \text{for positive intervals } [x_1, x_2] \text{ and } a>1, • Odd powers: [x_1, x_2]^n = [x_1^n,x_2^n] \qquad \text{for odd } n\in \N. For even powers, the range of values being considered is important and needs to be dealt with before doing any multiplication. For example, for should produce the interval for even . But if is taken by repeating interval multiplication of form then the result is , wider than necessary. More generally one can say that, for piecewise monotonic functions, it is sufficient to consider the endpoints , of an interval, together with the so-called
critical points within the interval, being those points where the monotonicity of the function changes direction. For the
sine and
cosine functions, the critical points are respectively at and , for . Thus, only up to five points within an interval need to be considered, as the resulting interval is if the interval includes at least two extrema. For sine and cosine, only the endpoints need full evaluation, as the critical points lead to easily pre-calculated values—namely −1, 0, and 1.
Interval extensions of general functions In general, it may not be easy to find such a simple description of the output interval for many functions. But it may still be possible to extend functions to interval arithmetic. If is a function from a real vector to a real number, then is called an
interval extension of if :[f]([\mathbf{x}]) \supseteq \{f(\mathbf{y}) \mid \mathbf{y} \in [\mathbf{x}]\}. This definition of the interval extension does not give a precise result. For example, both and are allowable extensions of the exponential function. Tighter extensions are desirable, though the relative costs of calculation and imprecision should be considered; in this case, should be chosen as it gives the tightest possible result. Given a real expression, its
natural interval extension is achieved by using the interval extensions of each of its subexpressions, functions, and operators. The
Taylor interval extension (of degree ) is a times differentiable function defined by :[f]([\mathbf{x}]) := f(\mathbf{y}) + \sum_{i=1}^k\frac{1}{i!}\mathrm{D}^i f(\mathbf{y}) \cdot ([\mathbf{x}] - \mathbf{y})^i + [r]([\mathbf{x}], [\mathbf{x}], \mathbf{y}), for some , where is the th order differential of at the point and is an interval extension of the
Taylor remainder. :r(\mathbf{x}, \boldsymbol{\xi}, \mathbf{y}) = \frac{1}{(k+1)!}\mathrm{D}^{k+1} f(\boldsymbol{\xi}) \cdot (\mathbf{x}-\mathbf{y})^{k+1}. The vector lies between and with ; is protected by . Usually is chosen to be the midpoint of the interval and uses the natural interval extension to assess the remainder. The special case of the Taylor interval extension of degree is also referred to as the
mean value form. ==Complex interval arithmetic==