# Polynomial division remainder (polynomial_remainder)

Remainder of a polynomial division.

## How to write it

### polynomial_remainder(p, q, x)

**p**

The dividend. Takes a polynomial.

**q**

The divisor. Takes a polynomial.

**x**

The variable of the polynomials. Takes a variable.

## Examples

- $\displaystyle \operatorname{polynomial\_remainder}(x^{2}+1, x-1, x) = 2$

  `polynomial_remainder(x^2 + 1, x - 1, x)`

  In the solver, `polynomial_remainder(x^2 + 1, x - 1, x)` gives `2`.

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

## Related functions

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

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

  Least common multiple of two polynomials.
- [polynomial_gcd](https://hilberon.com/library/polynomial_gcd)

  Greatest common divisor of two polynomials.
- [minimal_polynomial](https://hilberon.com/library/minimal_polynomial)

  Minimal polynomial of an algebraic number over the rationals.
- [power_expand](https://hilberon.com/library/power_expand)

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

  Resultant of two polynomials in a variable.

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