# Interval arithmetic

Interval arithmetic, interval mathematics, interval analysis, or interval computation, is a method developed by mathematicians since the 1950s and 1960s, as an approach to putting bounds on rounding errors and measurement errors in mathematical computation and thus developing numerical methods that yield reliable results. Very simply put, it represents each value as a range of possibilities. For example, instead of estimating the height of someone using standard arithmetic as 2.0 metres, using interval arithmetic we might be certain that that person is somewhere between 1.97 and 2.03 metres.

This concept is suitable for a variety of purposes. The most common use is to keep track of and handle rounding errors directly during the calculation and of uncertainties in the knowledge of the exact values of physical and technical parameters. The latter often arise from measurement errors and tolerances for components or due to limits on computational accuracy. Interval arithmetic also helps find reliable and guaranteed solutions to equations (such as differential equations) and optimization problems.

Mathematically, instead of working with an uncertain real ${\displaystyle x}$ we work with the two ends of the interval ${\displaystyle [a,b]}$ that contains ${\displaystyle x}$. In interval arithmetic, any variable ${\displaystyle x}$ lies between ${\displaystyle a}$ and ${\displaystyle b}$, or could be one of them. A function ${\displaystyle f}$ when applied to ${\displaystyle x}$ is also uncertain. In interval arithmetic ${\displaystyle f}$ produces an interval ${\displaystyle [c,d]}$ that is all the possible values for ${\displaystyle f(x)}$ for all ${\displaystyle x\in [a,b]}$.

## Introduction

The main focus of interval arithmetic is a simple way to calculate upper and lower endpoints for the range of values of a function in one or more variables. These endpoints are not necessarily the supremum or infimum, since the precise calculation of those values can be difficult or impossible.

Treatment is typically limited to real intervals, so quantities of form

${\displaystyle [a,b]=\{x\in \mathbb {R} \,|\,a\leq x\leq b\},}$

where ${\displaystyle a={-\infty }}$ and ${\displaystyle b={\infty }}$ are allowed; with one of them infinite we would have an unbounded interval, while with both infinite we would have the extended real number line.

As with traditional calculations with real numbers, simple arithmetic operations and functions on elementary intervals must first be defined.[1] More complicated functions can be calculated from these basic elements.[1]

### Example

Take as an example the calculation of body mass index (BMI). The BMI is the body weight in kilograms divided by the square of height in metres. A bathroom scale may have a resolution of one kilogram. We do not know intermediate values  about 79.6 kg or 80.3 kg  but information rounded to the nearest whole number. It is unlikely that when the scale reads 80 kg, someone really weighs exactly 80.0 kg. In normal rounding to the nearest value, the scales showing 80 kg indicates a weight between 79.5 kg and 80.5 kg. The relevant range is that of all real numbers that are greater than or equal to 79.5, while less than or equal to 80.5, or in other words the interval [79.5,80.5].

For a man who weighs 80 kg and is 1.80 m tall, the BMI is about 24.7. With a weight of 79.5 kg and the same height the value is 24.5, while 80.5 kilograms gives almost 24.9. So the actual BMI is in the range [24.5,24.9]. The error in this case does not affect the conclusion (normal weight), but this is not always the position. For example, weight fluctuates in the course of a day so that the BMI can vary between 24 (normal weight) and 25 (overweight). Without detailed analysis it is not possible to always exclude questions as to whether an error ultimately is large enough to have significant influence.

Interval arithmetic states the range of possible outcomes explicitly. Simply put, results are no longer stated as numbers, but as intervals that represent imprecise values. The size of the intervals are similar to error bars to a metric in expressing the extent of uncertainty. Simple arithmetic operations, such as basic arithmetic and trigonometric functions, enable the calculation of outer limits of intervals.

### Simple arithmetic

Returning to the earlier BMI example, in determining the body mass index, height and body weight both affect the result. For height, measurements are usually in round centimetres: a recorded measurement of 1.80 metres actually means a height somewhere between 1.795 m and 1.805 m. This uncertainty must be combined with the fluctuation range in weight between 79.5 kg and 80.5 kg. The BMI is defined as the weight in kilograms divided by the square of height in metre. Using either 79.5 kg and 1.795 m or 80.5 kg and 1.805 m gives approximately 24.7. But the person in question may only be 1.795 m tall, with a weight of 80.5 kilograms  or 1.805 m and 79.5 kilograms: all combinations of all possible intermediate values must be considered. Using the interval arithmetic methods described below, the BMI lies in the interval

${\displaystyle [79{.}5;80{.}5]/([1{.}795;1{.}805])^{2}=[24{.}4;25{.}0].}$

An operation ${\displaystyle \langle \mathrm {op} \rangle ,}$ such as addition or multiplication, on two intervals is defined by

${\displaystyle [x_{1},x_{2}]{\,\langle \mathrm {op} \rangle \,}[y_{1},y_{2}]=\{x{\,\langle \mathrm {op} \rangle \,}y\,|\,x\in [x_{1},x_{2}]\,{\mbox{and}}\,y\in [y_{1},y_{2}]\}.}$

For the four basic arithmetic operations this can become

${\displaystyle [x_{1},x_{2}]\langle \mathrm {op} \rangle [y_{1},y_{2}]=\left[\min(x_{1}{\langle \mathrm {op} \rangle }y_{1},x_{1}\langle \mathrm {op} \rangle y_{2},x_{2}\langle \mathrm {op} \rangle y_{1},x_{2}\langle \mathrm {op} \rangle y_{2}),\max(x_{1}\langle \mathrm {op} \rangle y_{1},x_{1}\langle \mathrm {op} \rangle y_{2},x_{2}\langle \mathrm {op} \rangle y_{1},x_{2}\langle \mathrm {op} \rangle y_{2})\right],}$

provided that ${\displaystyle x\langle \mathrm {op} \rangle y}$ is well-defined for all ${\displaystyle x\in [x_{1},x_{2}]}$ and ${\displaystyle y\in [y_{1},y_{2}]}$.

For practical applications this can be simplified further:

• Addition: ${\displaystyle [x_{1},x_{2}]+[y_{1},y_{2}]=[x_{1}+y_{1},x_{2}+y_{2}]}$
• Subtraction: ${\displaystyle [x_{1},x_{2}]-[y_{1},y_{2}]=[x_{1}-y_{2},x_{2}-y_{1}]}$
• Multiplication: ${\displaystyle [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:
${\displaystyle {\frac {[x_{1},x_{2}]}{[y_{1},y_{2}]}}=[x_{1},x_{2}]\cdot {\frac {1}{[y_{1},y_{2}]}},}$
where
{\displaystyle {\begin{aligned}{\frac {1}{[y_{1},y_{2}]}}&=\left[{\tfrac {1}{y_{2}}},{\tfrac {1}{y_{1}}}\right]&&0\notin [y_{1},y_{2}]\\{\frac {1}{[y_{1},0]}}&=\left[-\infty ,{\tfrac {1}{y_{1}}}\right]\\{\frac {1}{[0,y_{2}]}}&=\left[{\tfrac {1}{y_{2}}},\infty \right]\\{\frac {1}{[y_{1},y_{2}]}}&=\left[-\infty ,{\tfrac {1}{y_{1}}}\right]\cup \left[{\tfrac {1}{y_{2}}},\infty \right]=[-\infty ,\infty ]&&0\in (y_{1},y_{2})\end{aligned}}}

The last case loses useful information about ${\displaystyle (1/y_{1},1/y_{2})}$. So typically it is common to work with ${\displaystyle \left[-\infty ,{\tfrac {1}{y_{1}}}\right]}$ and ${\displaystyle \left[{\tfrac {1}{y_{2}}},\infty \right]}$ as separate intervals.

Because several such divisions may occur in an interval arithmetic calculation, it is sometimes useful to do the calculation with so-called multi-intervals of the form

${\displaystyle \bigcup _{i=1}^{l}\left[x_{i1},x_{i2}\right].}$

The corresponding multi-interval arithmetic maintains a disjoint set of intervals and also provides for overlapping intervals to unite.[2]:15

Since a real number ${\displaystyle r\in \mathbb {R} }$ can be interpreted as the interval ${\displaystyle [r,r],}$ intervals and real numbers can be freely and easily combined.

With the help of these definitions, it is already possible to calculate the range of simple functions, such as ${\displaystyle f(a,b,x)=a\cdot x+b.}$ If for example, ${\displaystyle a=[1,2],b=[5,7]}$ and ${\displaystyle x=[2,3],}$ it is clear

${\displaystyle f(a,b,x)=([1,2]\cdot [2,3])+[5,7]=[1\cdot 2,2\cdot 3]+[5,7]=[7,13]}$.

Interpreting this as a function ${\displaystyle f(a,b,x)}$ of the variable ${\displaystyle x}$ with interval parameters ${\displaystyle a}$ and ${\displaystyle b}$, then it is possible to find the roots of this function. It is then

${\displaystyle f([1,2],[5,7],x)=([1,2]\cdot x)+[5,7]=0\Longleftrightarrow [1,2]\cdot x=[-7,-5]\Longleftrightarrow x={\frac {[-7,-5]}{[1,2]}},}$

the possible zeros are in the interval ${\displaystyle [-7,-2.5].}$

As in the above example, the multiplication of intervals often only requires two multiplications. It is in fact

${\displaystyle [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 seen as a destination area of a rectangle with varying edges. The result interval covers all levels from the smallest to the largest.

The same applies when one of the two intervals is non-positive and the other non-negative. Generally, multiplication can produce results as wide as ${\displaystyle [-\infty ,\infty ].}$ for example if ${\displaystyle 0\cdot \infty }$ is squared. This also occurs, for example, in a division, if the numerator and denominator both contain zero.

### Notation

To make the notation of intervals smaller in formulae, brackets can be used.

So we can use ${\displaystyle [x]\equiv [x_{1},x_{2}]}$ to represent an interval. For the set of all finite intervals, we can use

${\displaystyle [\mathbb {R} ]:=\left\{\,[x_{1},x_{2}]\,|\,x_{1}\leq x_{2}{\text{ and }}x_{1},x_{2}\in \mathbb {R} \cup \{-\infty ,\infty \}\right\}}$

as an abbreviation. For a vector of intervals ${\displaystyle \left([x]_{1},\ldots ,[x]_{n}\right)\in [\mathbb {R} ]^{n}}$ we can also use a bold font: ${\displaystyle [\mathbf {x} ]}$.

Note that in such a compact notation, ${\displaystyle [x]}$ should not be confused between a so-called improper or single point interval ${\displaystyle [x_{1},x_{1}]}$ and the lower and upper limit.

### Elementary functions

Interval methods can also apply to functions that do not just use simple arithmetic, and we must also use other basic functions to redefine intervals, using already known monotonicity properties.

For monotonic functions in one variable, the range of values is also easy. If ${\displaystyle f:\mathbb {R} \to \mathbb {R} }$ is monotonically increasing or decreasing in the interval ${\displaystyle [x_{1},x_{2}],}$ then for all ${\displaystyle y_{1},y_{2}\in [x_{1},x_{2}]}$ such that ${\displaystyle y_{1}\leq y_{2},}$ one of the following inequalities applies:

${\displaystyle f(y_{1})\leq f(y_{2})\quad {\text{or}}\quad f(y_{1})\geq f(y_{2}).}$

The range corresponding to the interval ${\displaystyle [y_{1},y_{2}]\subseteq [x_{1},x_{2}]}$ can be calculated by applying the function to its endpoints:

${\displaystyle 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: ${\displaystyle a^{[x_{1},x_{2}]}=[a^{x_{1}},a^{x_{2}}],}$ for ${\displaystyle a>1,}$
• Logarithm: ${\displaystyle \log _{a}[x_{1},x_{2}]=[\log _{a}{x_{1}},\log _{a}{x_{2}}],}$ for positive intervals ${\displaystyle [x_{1},x_{2}]}$ and ${\displaystyle a>1,}$
• Odd powers: ${\displaystyle [x_{1},x_{2}]^{n}=[x_{1}^{n},x_{2}^{n}]}$, for odd ${\displaystyle n\in \mathbb {N} .}$

For even powers, the range of values being considered is important, and needs to be dealt with before doing any multiplication. For example, ${\displaystyle x^{n}}$ for ${\displaystyle x\in [-1,1]}$ should produce the interval ${\displaystyle [0,1]}$ when ${\displaystyle n=2,4,6,\ldots .}$ But if ${\displaystyle [-1,1]^{n}}$ is taken by applying interval multiplication of form ${\displaystyle [-1,1]\cdot \ldots \cdot [-1,1]}$ then the result appears to be ${\displaystyle [-1,1],}$ wider than necessary.

Instead consider the function ${\displaystyle x^{n}}$ as a monotonically decreasing function for ${\displaystyle x<0}$ and a monotonically increasing function for ${\displaystyle x>0.}$ So for even ${\displaystyle n\in \mathbb {N} }$:

${\displaystyle {}[x_{1},x_{2}]^{n}={\begin{cases}\left[x_{1}^{n},x_{2}^{n}\right]&x_{1}\geq 0\\\left[x_{2}^{n},x_{1}^{n}\right]&x_{2}<0\\\left[0,\max \left\{x_{1}^{n},x_{2}^{n}\right\}\right]&{\text{otherwise}}\end{cases}}}$

More generally, one can say that for piecewise monotonic functions it is sufficient to consider the endpoints ${\displaystyle x_{1},x_{2}}$ of the interval ${\displaystyle [x_{1},x_{2}]}$, 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 at ${\displaystyle \left({\tfrac {1}{2}}+n\right)\pi }$ or ${\displaystyle n\pi }$ for all ${\displaystyle n\in \mathbb {Z} }$ respectively. Only up to five points matter as the resulting interval is ${\displaystyle [-1,1]}$ 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, +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 ${\displaystyle f:\mathbb {R} ^{n}\rightarrow \mathbb {R} }$ is a function from a real vector to a real number, then  ${\displaystyle [f]:[\mathbb {R} ]^{n}\rightarrow [\mathbb {R} ]}$ is called an interval extension of ${\displaystyle f}$ if

${\displaystyle [f]([\mathbf {x} ])\supseteq \{f(\mathbf {y} )|\mathbf {y} \in [\mathbf {x} ]\}}$.

This definition of the interval extension does not give a precise result. For example, both ${\displaystyle [f]([x_{1},x_{2}])=[e^{x_{1}},e^{x_{2}}]}$ and ${\displaystyle [g]([x_{1},x_{2}])=[{-\infty },{\infty }]}$ are allowable extensions of the exponential function. Extensions as tight as possible are desirable, taking into account the relative costs of calculation and imprecision; in this case ${\displaystyle [f]}$ should be chosen as it gives the tightest possible result.

The natural interval extension is achieved by combining the function rule ${\displaystyle f(x_{1},\cdots ,x_{n})}$ with the equivalents of the basic arithmetic and elementary functions.

The Taylor interval extension (of degree ${\displaystyle k}$ ) is a ${\displaystyle k+1}$ times differentiable function ${\displaystyle f}$ defined by

${\displaystyle [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 ${\displaystyle \mathbf {y} \in [\mathbf {x} ]}$, where ${\displaystyle \mathrm {D} ^{i}f(\mathbf {y} )}$ is the ${\displaystyle i}$th order differential of ${\displaystyle f}$ at the point ${\displaystyle \mathbf {y} }$ and ${\displaystyle [r]}$ is an interval extension of the Taylor remainder

${\displaystyle r(\mathbf {x} ,\xi ,\mathbf {y} )={\frac {1}{(k+1)!}}\mathrm {D} ^{k+1}f(\xi )\cdot (\mathbf {x} -\mathbf {y} )^{k+1}.}$

The vector ${\displaystyle \xi }$ lies between ${\displaystyle \mathbf {x} }$ and ${\displaystyle \mathbf {y} }$ with ${\displaystyle \mathbf {x} ,\mathbf {y} \in [\mathbf {x} ]}$, ${\displaystyle \xi }$ is protected by ${\displaystyle [\mathbf {x} ]}$. Usually one chooses ${\displaystyle \mathbf {y} }$ 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 ${\displaystyle k=0}$ is also referred to as the mean value form. For an interval extension of the Jacobian ${\displaystyle [J_{f}](\mathbf {[x]} )}$ we get

${\displaystyle [f]([\mathbf {x} ]):=f(\mathbf {y} )+[J_{f}](\mathbf {[x]} )\cdot ([\mathbf {x} ]-\mathbf {y} )}$.

A nonlinear function can be defined by linear features.

## Complex interval arithmetic

An interval can also be defined as a locus of points at a given distance from the centre, and this definition can be extended from real numbers to complex numbers.[3] As it is the case with computing with real numbers, computing with complex numbers involves uncertain data. So, given the fact that an interval number is a real closed interval and a complex number is an ordered pair of real numbers, there is no reason to limit the application of interval arithmetic to the measure of uncertainties in computations with real numbers.[4] Interval arithmetic can thus be extended, via complex interval numbers, to determine regions of uncertainty in computing with complex numbers.[4]

The basic algebraic operations for real interval numbers (real closed intervals) can be extended to complex numbers. It is therefore not surprising that complex interval arithmetic is similar to, but not the same as, ordinary complex arithmetic.[4] It can be shown that, as it is the case with real interval arithmetic, there is no distributivity between addition and multiplication of complex interval numbers except for certain special cases, and inverse elements do not always exist for complex interval numbers.[4] Two other useful properties of ordinary complex arithmetic fail to hold in complex interval arithmetic: the additive and multiplicative properties, of ordinary complex conjugates, do not hold for complex interval conjugates.[4]

Interval arithmetic can be extended, in an analogous manner, to other multidimensional number systems such as quaternions and octonions, but with the expense that we have to sacrifice other useful properties of ordinary arithmetic.[4]

## Interval methods

The methods of classical numerical analysis can not be transferred one-to-one into interval-valued algorithms, as dependencies between numerical values are usually not taken into account.

### Rounded interval arithmetic

To work effectively in a real-life implementation, intervals must be compatible with floating point computing. The earlier operations were based on exact arithmetic, but in general fast numerical solution methods may not be available. The range of values of the function ${\displaystyle f(x,y)=x+y}$ for ${\displaystyle x\in [0.1,0.8]}$ and ${\displaystyle y\in [0.06,0.08]}$ are for example ${\displaystyle [0.16,0.88]}$. Where the same calculation is done with single digit precision, the result would normally be ${\displaystyle [0.2,0.9]}$. But ${\displaystyle [0.2,0.9]\not \supseteq [0.16,0.88]}$, so this approach would contradict the basic principles of interval arithmetic, as a part of the domain of ${\displaystyle f([0.1,0.8],[0.06,0.08])}$ would be lost. Instead, the outward rounded solution ${\displaystyle [0.1,0.9]}$ is used.

The standard IEEE 754 for binary floating-point arithmetic also sets out procedures for the implementation of rounding. An IEEE 754 compliant system allows programmers to round to the nearest floating point number; alternatives are rounding towards 0 (truncating), rounding toward positive infinity (i.e. up), or rounding towards negative infinity (i.e. down).

The required external rounding for interval arithmetic can thus be achieved by changing the rounding settings of the processor in the calculation of the upper limit (up) and lower limit (down). Alternatively, an appropriate small interval ${\displaystyle [\varepsilon _{1},\varepsilon _{2}]}$ can be added.

### Dependency problem

The so-called dependency problem is a major obstacle to the application of interval arithmetic. Although interval methods can determine the range of elementary arithmetic operations and functions very accurately, this is not always true with more complicated functions. If an interval occurs several times in a calculation using parameters, and each occurrence is taken independently then this can lead to an unwanted expansion of the resulting intervals.

As an illustration, take the function ${\displaystyle f}$ defined by ${\displaystyle f(x)=x^{2}+x.}$ The values of this function over the interval ${\displaystyle [-1,1]}$ are ${\displaystyle \left[-{\tfrac {1}{4}},2\right].}$ As the natural interval extension, it is calculated as:

${\displaystyle [-1,1]^{2}+[-1,1]=[0,1]+[-1,1]=[-1,2],}$

which is slightly larger; we have instead calculated the infimum and supremum of the function ${\displaystyle h(x,y)=x^{2}+y}$ over ${\displaystyle x,y\in [-1,1].}$ There is a better expression of ${\displaystyle f}$ in which the variable ${\displaystyle x}$ only appears once, namely by rewriting ${\displaystyle f(x)=x^{2}+x}$ as addition and squaring in the quadratic

${\displaystyle f(x)=\left(x+{\frac {1}{2}}\right)^{2}-{\frac {1}{4}}.}$

So the suitable interval calculation is

${\displaystyle \left([-1,1]+{\frac {1}{2}}\right)^{2}-{\frac {1}{4}}=\left[-{\frac {1}{2}},{\frac {3}{2}}\right]^{2}-{\frac {1}{4}}=\left[0,{\frac {9}{4}}\right]-{\frac {1}{4}}=\left[-{\frac {1}{4}},2\right]}$

and gives the correct values.

In general, it can be shown that the exact range of values can be achieved, if each variable appears only once and if ${\displaystyle f}$ is continuous inside the box. However, not every function can be rewritten this way.

The dependency of the problem causing over-estimation of the value range can go as far as covering a large range, preventing more meaningful conclusions.

An additional increase in the range stems from the solution of areas that do not take the form of an interval vector. The solution set of the linear system

${\displaystyle {\begin{cases}x=p\\y=p\end{cases}}\qquad p\in [-1,1]}$

is precisely the line between the points ${\displaystyle (-1,-1)}$ and ${\displaystyle (1,1).}$ Using interval methods results in the unit square, ${\displaystyle [-1,1]\times [-1,1].}$ This is known as the wrapping effect.

### Linear interval systems

A linear interval system consists of a matrix interval extension ${\displaystyle [\mathbf {A} ]\in [\mathbb {R} ]^{n\times m}}$ and an interval vector ${\displaystyle [\mathbf {b} ]\in [\mathbb {R} ]^{n}}$. We want the smallest cuboid ${\displaystyle [\mathbf {x} ]\in [\mathbb {R} ]^{m}}$, for all vectors ${\displaystyle \mathbf {x} \in \mathbb {R} ^{m}}$ which there is a pair ${\displaystyle (\mathbf {A} ,\mathbf {b} )}$ with ${\displaystyle \mathbf {A} \in [\mathbf {A} ]}$ and ${\displaystyle \mathbf {b} \in [\mathbf {b} ]}$ satisfying

${\displaystyle \mathbf {A} \cdot \mathbf {x} =\mathbf {b} }$.

For quadratic systems in other words, for ${\displaystyle n=m}$ there can be such an interval vector ${\displaystyle [\mathbf {x} ]}$, which covers all possible solutions, found simply with the interval Gauss method. This replaces the numerical operations, in that the linear algebra method known as Gaussian elimination becomes its interval version. However, since this method uses the interval entities${\displaystyle [\mathbf {A} ]}$ and ${\displaystyle [\mathbf {b} ]}$ repeatedly in the calculation, it can produce poor results for some problems. Hence using the result of the interval-valued Gauss only provides first rough estimates, since although it contains the entire solution set, it also has a large area outside it.

A rough solution ${\displaystyle [\mathbf {x} ]}$ can often be improved by an interval version of the Gauss–Seidel method. The motivation for this is that the ${\displaystyle i}$-th row of the interval extension of the linear equation

${\displaystyle {\begin{pmatrix}{[a_{11}]}&\cdots &{[a_{1n}]}\\\vdots &\ddots &\vdots \\{[a_{n1}]}&\cdots &{[a_{nn}]}\end{pmatrix}}\cdot {\begin{pmatrix}{x_{1}}\\\vdots \\{x_{n}}\end{pmatrix}}={\begin{pmatrix}{[b_{1}]}\\\vdots \\{[b_{n}]}\end{pmatrix}}}$

can be determined by the variable ${\displaystyle x_{i}}$ if the division ${\displaystyle 1/[a_{ii}]}$ is allowed. It is therefore simultaneously

${\displaystyle x_{j}\in [x_{j}]}$ and ${\displaystyle x_{j}\in {\frac {[b_{i}]-\sum \limits _{k\not =j}[a_{ik}]\cdot [x_{k}]}{[a_{ii}]}}}$.

So we can now replace ${\displaystyle [x_{j}]}$ by

${\displaystyle [x_{j}]\cap {\frac {[b_{i}]-\sum \limits _{k\not =j}[a_{ik}]\cdot [x_{k}]}{[a_{ii}]}}}$,

and so the vector ${\displaystyle [\mathbf {x} ]}$ by each element. Since the procedure is more efficient for a diagonally dominant matrix, instead of the system ${\displaystyle [\mathbf {A} ]\cdot \mathbf {x} =[\mathbf {b} ]{\mbox{,}}}$ one can often try multiplying it by an appropriate rational matrix ${\displaystyle \mathbf {M} }$ with the resulting matrix equation

${\displaystyle (\mathbf {M} \cdot [\mathbf {A} ])\cdot \mathbf {x} =\mathbf {M} \cdot [\mathbf {b} ]}$

left to solve. If one chooses, for example, ${\displaystyle \mathbf {M} =\mathbf {A} ^{-1}}$ for the central matrix ${\displaystyle \mathbf {A} \in [\mathbf {A} ]}$, then ${\displaystyle \mathbf {M} \cdot [\mathbf {A} ]}$ is outer extension of the identity matrix.

These methods only work well if the widths of the intervals occurring are sufficiently small. For wider intervals it can be useful to use an interval-linear system on finite (albeit large) real number equivalent linear systems. If all the matrices ${\displaystyle \mathbf {A} \in [\mathbf {A} ]}$ are invertible, it is sufficient to consider all possible combinations (upper and lower) of the endpoints occurring in the intervals. The resulting problems can be resolved using conventional numerical methods. Interval arithmetic is still used to determine rounding errors.

This is only suitable for systems of smaller dimension, since with a fully occupied ${\displaystyle n\times n}$ matrix, ${\displaystyle 2^{n^{2}}}$ real matrices need to be inverted, with ${\displaystyle 2^{n}}$ vectors for the right hand side. This approach was developed by Jiri Rohn and is still being developed.[5]

### Interval Newton method

An interval variant of Newton's method for finding the zeros in an interval vector ${\displaystyle [\mathbf {x} ]}$ can be derived from the average value extension.[6] For an unknown vector ${\displaystyle \mathbf {z} \in [\mathbf {x} ]}$ applied to ${\displaystyle \mathbf {y} \in [\mathbf {x} ]}$, gives

${\displaystyle f(\mathbf {z} )\in f(\mathbf {y} )+[J_{f}](\mathbf {[x]} )\cdot (\mathbf {z} -\mathbf {y} )}$.

For a zero ${\displaystyle \mathbf {z} }$, that is ${\displaystyle f(z)=0}$, and thus must satisfy

${\displaystyle f(\mathbf {y} )+[J_{f}](\mathbf {[x]} )\cdot (\mathbf {z} -\mathbf {y} )=0}$.

This is equivalent to ${\displaystyle \mathbf {z} \in \mathbf {y} -[J_{f}](\mathbf {[x]} )^{-1}\cdot f(\mathbf {y} )}$. An outer estimate of ${\displaystyle [J_{f}](\mathbf {[x]} )^{-1}\cdot f(\mathbf {y} ))}$ can be determined using linear methods.

In each step of the interval Newton method, an approximate starting value ${\displaystyle [\mathbf {x} ]\in [\mathbb {R} ]^{n}}$ is replaced by ${\displaystyle [\mathbf {x} ]\cap \left(\mathbf {y} -[J_{f}](\mathbf {[x]} )^{-1}\cdot f(\mathbf {y} )\right)}$ and so the result can be improved iteratively. In contrast to traditional methods, the interval method approaches the result by containing the zeros. This guarantees that the result produces all zeros in the initial range. Conversely, it proves that no zeros of ${\displaystyle f}$ were in the initial range ${\displaystyle [\mathbf {x} ]}$ if a Newton step produces the empty set.

The method converges on all zeros in the starting region. Division by zero can lead to separation of distinct zeros, though the separation may not be complete; it can be complemented by the bisection method.

As an example, consider the function ${\displaystyle f(x)=x^{2}-2}$, the starting range ${\displaystyle [x]=[-2,2]}$, and the point ${\displaystyle y=0}$. We then have ${\displaystyle J_{f}(x)=2\,x}$ and the first Newton step gives

${\displaystyle [-2,2]\cap \left(0-{\frac {1}{2\cdot [-2,2]}}(0-2)\right)=[-2,2]\cap {\Big (}[{-\infty },{-0.5}]\cup [{0.5},{\infty }]{\Big )}=[{-2},{-0.5}]\cup [{0.5},{2}]}$.

More Newton steps are used separately on ${\displaystyle x\in [{-2},{-0.5}]}$ and ${\displaystyle [{0.5},{2}]}$. These converge to arbitrarily small intervals around ${\displaystyle -{\sqrt {2}}}$ and ${\displaystyle +{\sqrt {2}}}$.

The Interval Newton method can also be used with thick functions such as ${\displaystyle g(x)=x^{2}-[2,3]}$, which would in any case have interval results. The result then produces intervals containing ${\displaystyle \left[-{\sqrt {3}},-{\sqrt {2}}\right]\cup \left[{\sqrt {2}},{\sqrt {3}}\right]}$.

### Bisection and covers

The various interval methods deliver conservative results as dependencies between the sizes of different intervals extensions are not taken into account. However the dependency problem becomes less significant for narrower intervals.

Covering an interval vector ${\displaystyle [\mathbf {x} ]}$ by smaller boxes ${\displaystyle [\mathbf {x} _{1}],\ldots ,[\mathbf {x} _{k}],}$ so that

${\displaystyle [\mathbf {x} ]=\bigcup _{i=1}^{k}[\mathbf {x} _{i}],}$

is then valid for the range of values

${\displaystyle f([\mathbf {x} ])=\bigcup _{i=1}^{k}f([\mathbf {x} _{i}]).}$

So for the interval extensions described above the following holds:

${\displaystyle [f]([\mathbf {x} ])\supseteq \bigcup _{i=1}^{k}[f]([\mathbf {x} _{i}]).}$

Since ${\displaystyle [f]([\mathbf {x} ])}$ is often a genuine superset of the right-hand side, this usually leads to an improved estimate.

Such a cover can be generated by the bisection method such as thick elements ${\displaystyle [x_{i1},x_{i2}]}$ of the interval vector ${\displaystyle [\mathbf {x} ]=([x_{11},x_{12}],\ldots ,[x_{n1},x_{n2}])}$ by splitting in the centre into the two intervals ${\displaystyle \left[x_{i1},{\tfrac {1}{2}}(x_{i1}+x_{i2})\right]}$ and ${\displaystyle \left[{\tfrac {1}{2}}(x_{i1}+x_{i2}),x_{i2}\right].}$ If the result is still not suitable then further gradual subdivision is possible. Note that a cover of ${\displaystyle 2^{r}}$ intervals results from ${\displaystyle r}$ divisions of vector elements, substantially increasing the computation costs.

With very wide intervals, it can be helpful to split all intervals into several subintervals with a constant (and smaller) width, a method known as mincing. This then avoids the calculations for intermediate bisection steps. Both methods are only suitable for problems of low dimension.

## Application

Interval arithmetic can be used in various areas (such as set inversion, motion planning, set estimation or stability analysis) to treat estimates with no exact numerical value.[7]

### Rounding error analysis

Interval arithmetic is used with error analysis, to control rounding errors arising from each calculation. The advantage of interval arithmetic is that after each operation there is an interval that reliably includes the true result. The distance between the interval boundaries gives the current calculation of rounding errors directly:

Error = ${\displaystyle \mathrm {abs} (a-b)}$ for a given interval ${\displaystyle [a,b]}$.

Interval analysis adds to rather than substituting for traditional methods for error reduction, such as pivoting.

### Tolerance analysis

Parameters for which no exact figures can be allocated often arise during the simulation of technical and physical processes. The production process of technical components allows certain tolerances, so some parameters fluctuate within intervals. In addition, many fundamental constants are not known precisely.[2]

If the behavior of such a system affected by tolerances satisfies, for example, ${\displaystyle f(\mathbf {x} ,\mathbf {p} )=0}$, for ${\displaystyle \mathbf {p} \in [\mathbf {p} ]}$ and unknown ${\displaystyle \mathbf {x} }$ then the set of possible solutions

${\displaystyle \{\mathbf {x} \,|\,\exists \mathbf {p} \in [\mathbf {p} ],f(\mathbf {x} ,\mathbf {p} )=0\}}$,

can be found by interval methods. This provides an alternative to traditional propagation of error analysis. Unlike point methods, such as Monte Carlo simulation, interval arithmetic methodology ensures that no part of the solution area can be overlooked. However, the result is always a worst-case analysis for the distribution of error, as other probability-based distributions are not considered.

### Fuzzy interval arithmetic

Interval arithmetic can also be used with affiliation functions for fuzzy quantities as they are used in fuzzy logic. Apart from the strict statements ${\displaystyle x\in [x]}$ and ${\displaystyle x\not \in [x]}$, intermediate values are also possible, to which real numbers ${\displaystyle \mu \in [0,1]}$ are assigned. ${\displaystyle \mu =1}$ corresponds to definite membership while ${\displaystyle \mu =0}$ is non-membership. A distribution function assigns uncertainty, which can be understood as a further interval.

For fuzzy arithmetic[8] only a finite number of discrete affiliation stages ${\displaystyle \mu _{i}\in [0,1]}$ are considered. The form of such a distribution for an indistinct value can then represented by a sequence of intervals

${\displaystyle \left[x^{(1)}\right]\supset \left[x^{(2)}\right]\supset \cdots \supset \left[x^{(k)}\right].}$

The interval ${\displaystyle \left[x^{(i)}\right]}$ corresponds exactly to the fluctuation range for the stage ${\displaystyle \mu _{i}.}$

The appropriate distribution for a function ${\displaystyle f(x_{1},\ldots ,x_{n})}$ concerning indistinct values ${\displaystyle x_{1},\ldots ,x_{n}}$ and the corresponding sequences

${\displaystyle \left[x_{1}^{(1)}\right]\supset \cdots \supset \left[x_{1}^{(k)}\right],\ldots ,\left[x_{n}^{(1)}\right]\supset \cdots \supset \left[x_{n}^{(k)}\right]}$

can be approximated by the sequence

${\displaystyle \left[y^{(1)}\right]\supset \cdots \supset \left[y^{(k)}\right],}$

where

${\displaystyle \left[y^{(i)}\right]=f\left(\left[x_{1}^{(i)}\right],\ldots \left[x_{n}^{(i)}\right]\right)}$

and can be calculated by interval methods. The value ${\displaystyle \left[y^{(1)}\right]}$ corresponds to the result of an interval calculation.

### Computer-assisted proof

Warwick Tucker used interval arithmetic in order to solve the 14th of Smale's problems, that is, to show that the Lorenz attractor is a strange attractor[9]. Thomas Hales used interval arithmetic in order to solve the Kepler conjecture.

## History

Interval arithmetic is not a completely new phenomenon in mathematics; it has appeared several times under different names in the course of history. For example, Archimedes calculated lower and upper bounds 223/71 < π < 22/7 in the 3rd century BC. Actual calculation with intervals has neither been as popular as other numerical techniques nor been completely forgotten.

Rules for calculating with intervals and other subsets of the real numbers were published in a 1931 work by Rosalind Cicely Young, a doctoral candidate at the University of Cambridge[10]. Arithmetic work on range numbers to improve the reliability of digital systems were then published in a 1951 textbook on linear algebra by Paul Dwyer (University of Michigan)[11]; intervals were used to measure rounding errors associated with floating-point numbers. A comprehensive paper on interval algebra in numerical analysis was published by Teruo Sunaga (1958).[12]

The birth of modern interval arithmetic was marked by the appearance of the book Interval Analysis by Ramon E. Moore in 1966.[13][14] He had the idea in Spring 1958, and a year later he published an article about computer interval arithmetic.[15] Its merit was that starting with a simple principle, it provided a general method for automated error analysis, not just errors resulting from rounding.

Independently in 1956, Mieczyslaw Warmus suggested formulae for calculations with intervals,[16] though Moore found the first non-trivial applications.

In the following twenty years, German groups of researchers carried out pioneering work around Götz Alefeld[17] and Ulrich Kulisch[1][18] at the University of Karlsruhe and later also at the Bergische University of Wuppertal. For example, Karl Nickel explored more effective implementations, while improved containment procedures for the solution set of systems of equations were due to Arnold Neumaier among others. In the 1960s, Eldon R. Hansen dealt with interval extensions for linear equations and then provided crucial contributions to global optimisation, including what is now known as Hansen's method, perhaps the most widely used interval algorithm.[6] Classical methods in this often have the problem of determining the largest (or smallest) global value, but could only find a local optimum and could not find better values; Helmut Ratschek and Jon George Rokne developed branch and bound methods, which until then had only applied to integer values, by using intervals to provide applications for continuous values.

In 1988, Rudolf Lohner developed Fortran-based software for reliable solutions for initial value problems using ordinary differential equations.[19]

The journal Reliable Computing (originally Interval Computations) has been published since the 1990s, dedicated to the reliability of computer-aided computations. As lead editor, R. Baker Kearfott, in addition to his work on global optimisation, has contributed significantly to the unification of notation and terminology used in interval arithmetic (Web: Kearfott).

In recent years work has concentrated in particular on the estimation of preimages of parameterised functions and to robust control theory by the COPRIN working group of INRIA in Sophia Antipolis in France (Web: INRIA).

## Implementations

There are many software packages that permit the development of numerical applications using interval arithmetic.[20] These are usually provided in the form of program libraries. There are also C++ and Fortran compilers that handle interval data types and suitable operations as a language extension, so interval arithmetic is supported directly.

Since 1967, Extensions for Scientific Computation (XSC) have been developed in the University of Karlsruhe for various programming languages, such as C++, Fortran and Pascal.[21] The first platform was a Zuse Z 23, for which a new interval data type with appropriate elementary operators was made available. There followed in 1976, Pascal-SC, a Pascal variant on a Zilog Z80 that it made possible to create fast, complicated routines for automated result verification. Then came the Fortran 77-based ACRITH-XSC for the System/370 architecture (FORTRAN-SC), which was later delivered by IBM. Starting from 1991 one could produce code for C compilers with Pascal-XSC; a year later the C++ class library supported C-XSC on many different computer systems. In 1997, all XSC variants were made available under the GNU General Public License. At the beginning of 2000 C-XSC 2.0 was released under the leadership of the working group for scientific computation at the Bergische University of Wuppertal to correspond to the improved C++ standard.

Another C++-class library was created in 1993 at the Hamburg University of Technology called Profil/BIAS (Programmer's Runtime Optimized Fast Interval Library, Basic Interval Arithmetic), which made the usual interval operations more user friendly. It emphasized the efficient use of hardware, portability and independence of a particular presentation of intervals.

The Boost collection of C++ libraries contains a template class for intervals. Its authors are aiming to have interval arithmetic in the standard C++ language.[22]

The Frink programming language has an implementation of interval arithmetic that handles arbitrary-precision numbers. Programs written in Frink can use intervals without rewriting or recompilation.

Gaol[23] is another C++ interval arithmetic library that is unique in that it offers the relational interval operators used in interval constraint programming.

The Moore library [24] is an efficient implementation of interval arithmetic in C++. It provides intervals with endpoints of arbitrary precision and is based on the concepts´´ feature of C++.

The Julia programming language[25] has an implementation of interval arithmetics along with high-level features, such as root-finding (for both real and complex-valued functions) and interval constraint programming, via the ValidatedNumerics.jl package.[26]

In addition computer algebra systems, such as Mathematica, Maple and MuPAD, can handle intervals. A Matlab extension Intlab builds on BLAS routines, and the Toolbox b4m makes a Profil/BIAS interface.[27] Moreover, the Software Euler Math Toolbox includes an interval arithmetic.

A library for the functional language OCaml was written in assembly language and C.[28]

## IEEE Std 1788-2015 – IEEE standard for interval arithmetic

A standard for interval arithmetic has been approved in June 2015.[29] Two reference implementations are freely available.[30] These have been developed by members of the standard's working group: The libieeep1788[31] library for C++, and the interval package[32] for GNU Octave.

A minimal subset of the standard, IEEE Std 1788.1-2017, has been approved in December 2017 and published in February 2018. It should be easier to implement and may speed production of implementations[33].

## Conferences and Workshop

Several international conferences or workshop take place every year in the world. The main conference is probably SCAN (International Symposium on Scientific Computing, Computer Arithmetic, and Verified Numerical Computation), but there is also SWIM (Small Workshop on Interval Methods), PPAM (International Conference on Parallel Processing and Applied Mathematics), REC (International Workshop on Reliable Engineering Computing).

## References

1. Kulisch, Ulrich (1989). Wissenschaftliches Rechnen mit Ergebnisverifikation. Eine Einführung (in German). Wiesbaden: Vieweg-Verlag. ISBN 3-528-08943-1.
2. Dreyer, Alexander (2003). Interval Analysis of Analog Circuits with Component Tolerances. Aachen, Germany: Shaker Verlag. ISBN 3-8322-4555-3.
3. Complex interval arithmetic and its applications, Miodrag Petkovi?, Ljiljana Petkovi?, Wiley-VCH, 1998, ISBN 978-3-527-40134-5
4. Hend Dawood (2011). Theories of Interval Arithmetic: Mathematical Foundations and Applications. Saarbrücken: LAP LAMBERT Academic Publishing. ISBN 978-3-8465-0154-2.
5. Jiri Rohn, List of publications
6. Walster, G. William; Hansen, Eldon Robert (2004). Global Optimization using Interval Analysis (2nd ed.). New York, USA: Marcel Dekker. ISBN 0-8247-4059-9.
7. Jaulin, Luc; Kieffer, Michel; Didrit, Olivier; Walter, Eric (2001). Applied Interval Analysis. Berlin: Springer. ISBN 1-85233-219-0.
8. Tucker, W. (1999). The Lorenz attractor exists. Comptes Rendus de l'Académie des Sciences-Series I-Mathematics, 328(12), 1197-1202.
9. Young, R. C. (1931). The algebra of many-valued quantities. Mathematische Annalen, 104(1), 260-290.
10. Dwyer, P. S. (1951). Linear computations. Oxford, England: Wiley.
11. Sunaga, Teruo (1958). "Theory of interval algebra and its application to numerical analysis". RAAG Memoirs (2): 29–46.
12. Moore, R. E. (1966). Interval Analysis. Englewood Cliff, New Jersey, USA: Prentice-Hall. ISBN 0-13-476853-1.
13. Cloud, Michael J.; Moore, Ramon E.; Kearfott, R. Baker (2009). Introduction to Interval Analysis. Philadelphia: Society for Industrial and Applied Mathematics (SIAM). ISBN 978-0-89871-669-6.
14. Hansen, E. R. (2001-08-13). "Publications Related to Early Interval Work of R. E. Moore". University of Louisiana at Lafayette Press. Retrieved 2015-06-29.
15. Precursory papers on interval analysis by M. Warmus Archived April 18, 2008, at the Wayback Machine
16. Alefeld, Götz; Herzberger, Jürgen. Einführung in die Intervallrechnung. Reihe Informatik (in German). 12. Mannheim, Wien, Zürich: B.I.-Wissenschaftsverlag. ISBN 3-411-01466-0.
17. Kulisch, Ulrich (1969). "Grundzüge der Intervallrechnung". In Laugwitz, Detlef (ed.). Jahrbuch Überblicke Mathematik (in German). 2. Mannheim, Germany: Bibliographisches Institut. pp. 51–98.
18. History of XSC-Languages Archived 2007-09-29 at the Wayback Machine
19. A Proposal to add Interval Arithmetic to the C++ Standard Library
20. Gaol is Not Just Another Interval Arithmetic Library
21. Moore: Interval Arithmetic in Modern C++
22. The Julia programming language
23. ValidatedNumerics.jl
24. Alliot, Jean-Marc; Gotteland, Jean-Baptiste; Vanaret, Charlie; Durand, Nicolas; Gianazza, David (2012), Implementing an interval computation library for OCaml on x86/amd64 architectures, 17th ACM SIGPLAN International Conference on Functional Programming
25. IEEE Standard for Interval Arithmetic
26. Revol, Nathalie (2015). The (near-)future IEEE 1788 standard for interval arithmetic. 8th small workshop on interval methods. Slides (PDF)
27. C++ implementation of the preliminary IEEE P1788 standard for interval arithmetic
28. GNU Octave interval package
29. "IEEE Std 1788.1-2017 - IEEE Standard for Interval Arithmetic (Simplified)". IEEE Standard. IEEE Standards Association. Retrieved 2018-02-06.