Loading…

Greatest Common Divisor for Polynomials

Math Algebra • Polynomial and Rational Functions

View all topics

Compute the greatest common divisor of two or more polynomials using the polynomial Euclidean algorithm. The calculator shows division remainders, optional content and primitive parts, optional LCM, graphing, and step-by-step work.

GCD: highest-degree common divisor Euclidean step: \(A(x)=B(x)Q(x)+R(x)\) Update rule: \(\gcd(A,B)=\gcd(B,R)\) LCM relation: \(\operatorname{lcm}(A,B)=\dfrac{AB}{\gcd(A,B)}\)

Polynomial inputs

Supported syntax: x^3 + 5x^2 + 6x, x^2 + 4x + 3, (x + 2)(x + 3), 2x(x - 1). Use ^ for powers; implicit multiplication such as 2x and (x-1)(x+2) is supported.

GCD and LCM settings

Graph window

Quick examples

Ready
Enter two or more polynomials, then click “Compute GCD”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the GCD of polynomials?

The GCD is the highest-degree polynomial that divides all input polynomials without leaving a remainder.

Why is the polynomial GCD often monic?

Polynomial GCDs are unique only up to a nonzero constant factor. Making the GCD monic, with leading coefficient 1, gives a standard form.

How does the Euclidean algorithm work for polynomials?

It repeatedly divides A(x) by B(x) to get A(x)=B(x)Q(x)+R(x), then replaces gcd(A,B) with gcd(B,R) until the remainder is zero.

What is the last nonzero remainder?

The last nonzero remainder in the Euclidean algorithm is the GCD, after normalization.

Can the calculator handle more than two polynomials?

Yes. It computes the GCD pairwise, using gcd(P1,P2,P3)=gcd(gcd(P1,P2),P3).

What is coefficient content?

The content of a polynomial with integer coefficients is the greatest common divisor of its coefficients.

What is a primitive part?

The primitive part is the polynomial that remains after dividing out the coefficient content.

How is the polynomial LCM computed?

For two nonzero polynomials, lcm(A,B)=A(x)B(x)/gcd(A,B). For multiple polynomials, the calculator applies this pairwise.

Can I enter factored expressions?

Yes. Inputs such as (x-1)(x+1) and 2x(x-1) are supported.

Does the graph prove the GCD?

The graph is a visual aid. The Euclidean algorithm and divisibility verification provide the algebraic proof.