# polynomial_lcm function

Least common multiple of two polynomials.

## How to write it

### polynomial_lcm(p, q)

**p**

A polynomial. Takes a polynomial.

**q**

A polynomial. Takes a polynomial.

## Examples

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

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

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

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

## Related functions

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

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

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

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

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

  Numerator of a fraction.
- [power_expand](https://hilberon.com/library/power_expand)

  Expand powers and logarithms of products and powers.

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