PolynomialLCM
✖
PolynomialLCM
Details and Options

- PolynomialLCM[poly1,poly2,…] will by default treat algebraic numbers that appear in the polyi as independent variables.
- PolynomialLCM[poly1,poly2,…,Extension->Automatic] extends the coefficient field to include algebraic numbers that appear in the polyi.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Compute the least common multiple (LCM) of polynomials:

https://wolfram.com/xid/0enyraham-ez0t51

Compute the least common multiple of several polynomials:

https://wolfram.com/xid/0enyraham-e53zqt

Compute the least common multiple of multivariate polynomials:

https://wolfram.com/xid/0enyraham-ye5dbn

Scope (9)Survey of the scope of standard use cases
Basic Uses (4)
The LCM of univariate polynomials:

https://wolfram.com/xid/0enyraham-dmnnhd

The LCM of multivariate polynomials:

https://wolfram.com/xid/0enyraham-w5552x

The LCM of more than two polynomials:

https://wolfram.com/xid/0enyraham-46hd1a

The LCM of rational functions:

https://wolfram.com/xid/0enyraham-l16cq1

Advanced Uses (5)
With Extension->Automatic, PolynomialLCM detects algebraically dependent coefficients:

https://wolfram.com/xid/0enyraham-cjjv04

Compute the LCM over the integers modulo :

https://wolfram.com/xid/0enyraham-eaapzc

Compute the LCM of polynomials over a finite field:

https://wolfram.com/xid/0enyraham-cjmue

https://wolfram.com/xid/0enyraham-iw6si

With Trig->True, PolynomialLCM recognizes identities between trigonometric functions:

https://wolfram.com/xid/0enyraham-okfr9n

The LCM of rational functions:

https://wolfram.com/xid/0enyraham-mx889w

Options (3)Common values & functionality for each option
Extension (1)
By default, algebraic numbers are treated as independent variables:

https://wolfram.com/xid/0enyraham-dtj4en

With Extension->Automatic, PolynomialLCM detects algebraically dependent coefficients:

https://wolfram.com/xid/0enyraham-iol7f

Modulus (1)
Trig (1)
By default, PolynomialLCM treats trigonometric functions as independent variables:

https://wolfram.com/xid/0enyraham-ckmz7k

With Trig->True, PolynomialLCM recognizes dependencies between trigonometric functions:

https://wolfram.com/xid/0enyraham-dst8bi

Applications (2)Sample problems that can be solved with this function
If divides
, then their least common multiple is equal to
:

https://wolfram.com/xid/0enyraham-cmgunl

https://wolfram.com/xid/0enyraham-dp40tj

If and
are relatively prime, then their least common multiple is equal to
:

https://wolfram.com/xid/0enyraham-ya5hyv

https://wolfram.com/xid/0enyraham-faf1ts

In general, the least common multiple of and
is
divided by the greatest common divisor of
and
:

https://wolfram.com/xid/0enyraham-kqvo0y

https://wolfram.com/xid/0enyraham-49sti4


https://wolfram.com/xid/0enyraham-jvnehg

Use Together to prove the equality:

https://wolfram.com/xid/0enyraham-oohqp9

Compute the LCM of the first five cyclotomic polynomials. Notice the coefficients are anti-palindromic:

https://wolfram.com/xid/0enyraham-rtr5rw

This results from the fact that every cyclotomic polynomial is palindromic except the first:

https://wolfram.com/xid/0enyraham-rw4r6p

The first cyclotomic polynomial is anti-palindromic:

https://wolfram.com/xid/0enyraham-lu7bfi

Thus when taking the product of palindromic polynomials with one anti-palindromic polynomial, we will always obtain an anti-palindromic polynomial:

https://wolfram.com/xid/0enyraham-0nftw0

Properties & Relations (1)Properties of the function, and connections to other functions
The LCM of polynomials is divisible by the polynomials; use PolynomialMod to prove it:

https://wolfram.com/xid/0enyraham-gyrlio


https://wolfram.com/xid/0enyraham-qr5oya

PolynomialGCD finds the greatest common divisor of polynomials:

https://wolfram.com/xid/0enyraham-bi3zhw


https://wolfram.com/xid/0enyraham-mwhwo

Wolfram Research (1991), PolynomialLCM, Wolfram Language function, https://reference.wolfram.com/language/ref/PolynomialLCM.html (updated 2023).
Text
Wolfram Research (1991), PolynomialLCM, Wolfram Language function, https://reference.wolfram.com/language/ref/PolynomialLCM.html (updated 2023).
Wolfram Research (1991), PolynomialLCM, Wolfram Language function, https://reference.wolfram.com/language/ref/PolynomialLCM.html (updated 2023).
CMS
Wolfram Language. 1991. "PolynomialLCM." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/PolynomialLCM.html.
Wolfram Language. 1991. "PolynomialLCM." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/PolynomialLCM.html.
APA
Wolfram Language. (1991). PolynomialLCM. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PolynomialLCM.html
Wolfram Language. (1991). PolynomialLCM. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PolynomialLCM.html
BibTeX
@misc{reference.wolfram_2025_polynomiallcm, author="Wolfram Research", title="{PolynomialLCM}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/PolynomialLCM.html}", note=[Accessed: 28-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_polynomiallcm, organization={Wolfram Research}, title={PolynomialLCM}, year={2023}, url={https://reference.wolfram.com/language/ref/PolynomialLCM.html}, note=[Accessed: 28-April-2025
]}