Discova
Back to cards
Programming4 min readWikipedia, updated 27 November 2026

Fourier–Motzkin elimination

Mathematical algorithm for eliminating variables from a system of linear inequalities

Fourier–Motzkin elimination, also known as the FME method, is a mathematical algorithm for eliminating variables from a system of linear inequalities. It can output real solutions.

The algorithm is named after Joseph Fourier who proposed the method in 1826 and Theodore Motzkin who re-discovered it in 1936.

Elimination

The elimination of a set of variables, say V, from a system of relations (here linear inequalities) refers to the creation of another system of the same sort, but without the variables in V, such that both systems have the same solutions over the remaining variables.

If all variables are eliminated from a system of linear inequalities, then one obtains a system of constant inequalities. It is then trivial to decide whether the resulting system is true or false. It is true if and only if the original system has solutions. As a consequence, elimination of all variables can be used to detect whether a system of inequalities has solutions or not.

Consider a system of inequalities with variables to , with the variable to be eliminated. Let denote the vector consisting of all variables but . The linear inequalities in the system can be grouped into three classes depending on the sign (positive, negative or null) of the coefficient for .

  • those inequalities that are of the form ; denote these by , for , where is the number of such inequalities;
  • those inequalities that are of the form ; denote these by , for , where is the number of such inequalities;
  • those inequalities in which plays no role, grouped into a single conjunction .

The original system is thus equivalent to

.

Elimination consists in producing a system equivalent to . Obviously, this formula is equivalent to

.

The inequality

.

is equivalent to the inequalities , for and .

We have therefore transformed the original system into another system where is eliminated. Note that the output system has inequalities. In particular, if , then the number of output inequalities is .

Example

Consider the following system of inequalities:

Since all the inequalities are in the same form (all less-than or all greater-than), we can examine the coefficient signs for each variable. Eliminating x would yield 2*2 = 4 inequalities on the remaining variables, and so would eliminating y. Eliminating z would yield only 3*1 = 3 inequalities so we use that instead.

which gives the 3 inequalities:

Simplifying:

This system uses only 2 variables instead of 3. Examining the coefficient signs for each variable yields all-positive for y, so we can immediately say that the system is unbounded in y: since all y coefficients are positive and all inequalities are less-than-or-equal, setting y to negative infinity (or any sufficiently large negative number) would satisfy the reduced system, therefore there exist corresponding x and z for the larger systems as well, and there are infinitely many such solutions. E.g. setting y = −1000000, x = 0, z = −2222222 satisfies the original system as well as the reduced ones.

Complexity

Running an elimination step over inequalities can result in at most inequalities in the output, thus naively running successive steps can result in at most , a double exponential complexity. This is due to the algorithm producing many redundant constraints implied by other constraints.

McMullen's upper bound theorem states that the number of non-redundant constraints grows as a single exponential. A single exponential implementation of Fourier–Motzkin elimination and complexity estimates are given in.

Linear programming is well known to give solutions to inequality systems in polynomial time, favoring it over Fourier–Motzkin elimination.

Imbert's acceleration theorems

Two "acceleration" theorems due to Imbert permit the elimination of redundant inequalities based solely on syntactic properties of the formula derivation tree, thus curtailing the need to solve linear programs or compute matrix ranks.

Define the history of an inequality as the set of indexes of inequalities from the initial system used to produce . Thus, for inequalities of the initial system. When adding a new inequality (by eliminating ), the new history is constructed as .

Suppose that the variables have been officially eliminated. Each inequality partitions the set into :

  • , the set of effectively eliminated variables, i.e. on purpose. A variable is in the set as soon as at least one inequality in the history of results from the elimination of .
  • , the set of implicitly eliminated variables, i.e. by accident. A variable is implicitly eliminated when it appears in at least one inequality of , but appears neither in inequality nor in
  • , all remaining variables.

A non-redundant inequality has the property that its history is minimal.

Theorem (Imbert's first acceleration theorem). If the history of an inequality is minimal, then .

An inequality that does not satisfy these bounds is necessarily redundant, and can be removed from the system without changing its solution set.

The second acceleration theorem detects minimal history sets:

Theorem (Imbert's second acceleration theorem). If the inequality is such that , then is minimal.

This theorem provides a quick detection criterion and is used in practice to avoid more costly checks, such as those based on matrix ranks. See the reference for implementation details.

Adapted from the Wikipedia article, CC BY-SA 4.0. Continue on Wikipedia

Go deeper

Ideas this article links to.