Advanced maths

Multivariate polynomial factorization calculator over rationals

Factor a bounded rational polynomial in x and y into irreducible rational factors, reporting multiplicities, scalar and exact reconstruction.

Your numbers

Use rational coefficients, parentheses and whole powers. Total degree ≤4 and substituted degree ≤12; unsupported sizes and search limits are explicit.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Multivariate factorization asks whether a polynomial is a product of simpler nonconstant polynomials over a declared coefficient field. This page factors over the rational numbers, keeps repeated factors, and separates the rational scalar. An injective bounded-degree substitution turns the polynomial into a univariate problem; exact integer interpolation factors that image. The solver then recombines image factors and tests candidates by exact division in Q[x,y]. Recombination is essential because a factor created by substitution need not be a genuine factor of the original two-variable polynomial.

THE FORMULAp(x,y)=c∏ fᵢ(x,y)^mᵢ, with c∈Q and each nonconstant fᵢ monic and irreducible over Q.

A worked example

For x²−y², the scalar is one and the factors are x−y and x+y, each with multiplicity one. Replacing the input by (x+y)²(x−y) preserves those two distinct factors but changes the multiplicity of x+y to two. Their product has total degree three. In contrast, x²+y²+1 has no rational polynomial factorization into nonconstant parts; this is a field-specific irreducibility statement, not a claim that the polynomial has no complex zeros.

Good to know

Nonzero Q[x,y] input of total degree at most four, with substituted degree at most twelve under x=t,y=t^(1+degree_x). Exact interpolation/recombination is capped at 150,000 candidates, integer-divisor search at 1,500,000 trials and sample magnitude at 10^12. Term and rational-growth limits also apply. Every limit is an error rather than an irreducibility assertion. No real, complex, finite-field, approximate or transcendental factorization is claimed.

Substitution is a search device, not the final factor certificate

Choosing a substitution base larger than the original x-degree gives each bounded monomial x^i y^j a distinct exponent i+bj. Coefficients are therefore recoverable from the encoded polynomial. The degree can nevertheless become much larger, which explains the additional substituted-degree limit. A low total degree alone does not guarantee that this deliberately simple exact method will finish efficiently.

A substituted factor can decode to an expression that fails to divide the original polynomial. The solver tests proper combinations of the univariate irreducible factors, retains only exact bivariate divisors, and recursively checks both sides. Only after the finite recombination search completes are the remaining nonconstant factors called irreducible. Multiplying the scalar and every factor occurrence back together provides a separate exact check on the reported identity.

A difference of squares separates into two rational polynomial factorsx² − y²x − yx + yx² + xy − xy − y² = x² − y²
The identity x²−y²=(x−y)(x+y) has scalar one and two factors of multiplicity one. Expanding the product cancels the mixed xy terms exactly. The factorization is in Q[x,y].

Multiplicity and coefficient field change the interpretation

Repeated factors are consolidated by a positive integer multiplicity; they are not duplicate output rows. Normalizing each factor to leading coefficient one under x>y moves all scalar changes into the displayed coefficient. This makes equivalent factorizations easier to compare even when another system distributes minus signs or integer coefficients among its factors. Constants have no nonconstant factor list, while zero has no finite irreducible factorization.

Over Q, x²+1 is irreducible, though over C it splits into x−i and x+i. Similarly, a polynomial with no rational zeros can still factor into higher-degree rational polynomials. A rational-root search alone would miss such cases. The Exact polynomial arithmetic calculator performs operations on one-variable coefficient lists; this page instead establishes a product decomposition in the two-variable rational polynomial ring.

A few questions, answered

Can the factors have fractional coefficients?

Yes. The coefficient field is Q. Monic normalization can introduce fractions even when the input coefficients are integers.

Does reaching a limit mean the polynomial is irreducible?

No. It means the exact search did not finish within its declared budget. The page returns an error and makes no completeness or irreducibility claim.

Find your calculator

Start typing to explore the library.