# Degree of a polynomial (degree)

Degree of a polynomial in a variable.

## How to write it

### degree(polynomial, x)

**polynomial**

A polynomial, such as x^2 - 2. Takes a polynomial.

**x**

The variable to take the degree in. Takes a variable.

## Examples

- $\displaystyle \operatorname{degree}(x^{3}+x, x) = 3$

  `degree(x^3 + x, x)`

  In the solver, `degree(x^3 + x, x)` gives `3`.

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

## Related functions

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

  Denominator of a fraction.
- [cyclotomic](https://hilberon.com/library/cyclotomic)

  Cyclotomic polynomial of a given order.
- [discriminant](https://hilberon.com/library/discriminant)

  Discriminant of a polynomial in a variable.
- [complex_expand](https://hilberon.com/library/complex_expand)

  Expand an expression assuming its variables are real.
- [expand](https://hilberon.com/library/expand)

  Multiply out products and powers into a sum.
- [collect](https://hilberon.com/library/collect)

  Group the terms of an expression by powers of a variable.

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