# Resultant of two polynomials (resultant)

Resultant of two polynomials in a variable.

## How to write it

### resultant(p, q, x)

**p**

A polynomial. Takes a polynomial.

**q**

A polynomial. Takes a polynomial.

**x**

The variable of the polynomials. Takes a variable.

## Examples

- $\displaystyle \operatorname{resultant}(x^{2}-1, x-2, x) = 3$

  `resultant(x^2 - 1, x - 2, x)`

  In the solver, `resultant(x^2 - 1, x - 2, x)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=resultant%28x%5E2%20-%201%2C%20x%20-%202%2C%20x%29)

## Related functions

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

  Simplify an expression, optionally under assumptions.
- [power_expand](https://hilberon.com/library/power_expand)

  Expand powers and logarithms of products and powers.
- [subs](https://hilberon.com/library/subs)

  Substitute a rule, or a list of rules, in an expression.
- [polynomial_remainder](https://hilberon.com/library/polynomial_remainder)

  Remainder of a polynomial division.
- [to_radicals](https://hilberon.com/library/to_radicals)

  Write algebraic numbers, given as roots of polynomials, with radicals.
- [polynomial_quotient](https://hilberon.com/library/polynomial_quotient)

  Quotient of a polynomial division.

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