# Eliminate variables from equations (eliminate)

Eliminate variables from a system of equations, leaving equations in the others.

## How to write it

### eliminate(equations, eliminate)

**equations**

The system, in brackets. Takes a list of equations in brackets.

**eliminate**

The variables to eliminate. Takes a variable, or a list of variables.

## Examples

- $\displaystyle \operatorname{eliminate}(\left[ x+y = 1, x-y = 0 \right], \left[ y \right]) = \left[ x-\frac{1}{2} = 0 \right]$

  `eliminate([x + y = 1, x - y = 0], [y])`

  In the solver, `eliminate([x + y = 1, x - y = 0], [y])` gives `[x - 1/2 = 0]`.

  [Open in the solver](https://hilberon.com/?q=eliminate%28%5Bx%20%2B%20y%20%3D%201%2C%20x%20-%20y%20%3D%200%5D%2C%20%5By%5D%29)

## Related functions

- [find_instance](https://hilberon.com/library/find_instance)

  A point that meets a condition, or an empty list when there is none.
- [solve_identity](https://hilberon.com/library/solve_identity)

  Find the values of the parameters that make an equation true for every value of the variable.
- [find_root](https://hilberon.com/library/find_root)

  Find a root numerically, from a starting value.
- [solve_all](https://hilberon.com/library/solve_all)

  Describe the complete solution set of equations and inequalities.
- [least_squares](https://hilberon.com/library/least_squares)

  The least-squares solution of A x = b.
- [solve](https://hilberon.com/library/solve)

  Solve equations for one or more unknowns.

---
Source: https://hilberon.com/library/eliminate
