Advanced maths

Tropical polynomial roots calculator with breakpoints and multiplicities

Find exact breakpoints, active monomials and slope-jump multiplicities of a univariate tropical polynomial under a stated min-plus or max-plus convention.

Your numbers

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

Find exact breakpoints, active monomials and slope-jump multiplicities of a univariate tropical polynomial under a stated min-plus or max-plus convention.

THE FORMULAf(x)=min_i(ci+mi x); roots are envelope breakpoints, with multiplicity equal to the absolute slope jump.

A worked example

For min(0,x−2,2x), the active pieces are 2x for x<−2, x−2 for −2<x<2, and 0 for x>2. Roots are −2 and 2, each of multiplicity one.

Good to know

One to thirty rational coefficient/exponent terms with nonnegative integer exponents at most fifty; repeated exponents are combined by the chosen envelope convention. Exact rational pair intersections and envelope tests. Omitted exponents represent the tropical additive zero. Min/max convention selectable; only finite real breakpoints, no multivariable tropical varieties or p-adic root reconstruction.

A polynomial is a piecewise-linear function

Under the min-plus convention, tropical addition means taking a minimum and tropical multiplication means ordinary addition. A monomial with exponent m and coefficient c therefore evaluates to c+mx. The polynomial is the lower envelope of its affine monomials, producing a continuous piecewise-linear function on the real line.

The max-plus convention uses the upper envelope instead. Both are supported on the same page with an explicit selector, because silently switching conventions reverses which terms are active. These are actual tropical coefficients, not coefficients of an ordinary polynomial whose p-adic valuations still need to be computed.

Lower envelope of affine monomials with roots marked at slope changesx = −2x = 2Active slopes: 2 → 1 → 0; multiplicities: 1, 1
Scroll across to see the full diagram.
The lower envelope of 0, x−2 and 2x changes slope at −2 and 2. The pairwise crossing at zero is hidden above the envelope.

Compare this with the P adic Newton polygon calculator with root valuation multiplicities. Analyze the actual min-plus piecewise-linear function and slope jumps from tropical coefficients; a p-adic Newton polygon infers valuations of ordinary polynomial roots.

Enter terms rather than ordinary powers

Each row contains [exponent,coefficient], with a nonnegative integer exponent and a finite rational coefficient. A coefficient zero is an ordinary finite tropical coefficient, not an absent term. Omitted exponents represent infinity under min-plus, or negative infinity under max-plus, and do not contribute a competing affine line.

Repeated exponents are combined before analysis: keep the smaller coefficient for min-plus or the larger for max-plus. This is tropical addition of competing equal-slope terms. A larger min-plus coefficient at the same exponent can never be active, even though its numeric value is perfectly finite. The normalized term list makes that simplification visible.

Find the exact active envelope

Two terms with different exponents intersect at the rational value (cj−ci)/(mi−mj). Candidate breakpoints can therefore be generated exactly from every term pair. A candidate is a root only when at least two terms attain the selected envelope there and the active slope changes across it.

A pair intersection above the lower envelope is irrelevant in min-plus, even if its coordinates look prominent on an all-lines plot. The solver must test global activity rather than report every pairwise crossing. Exact rational comparisons also allow redundant terms and coincident multiway ties to be handled without arbitrary floating epsilon choices.

Multiplicity is a slope change

On an interval with one active monomial, the slope equals that monomial’s exponent. At a min-plus root, the envelope slope decreases; at a max-plus root it increases. Root multiplicity is the absolute integer jump between the neighboring active slopes, not simply the number of monomials meeting there.

Three terms can meet at one breakpoint with an intermediate term active only at that point. In that case the endpoint slopes determine multiplicity. Counting the tied terms would give the wrong answer. The output should distinguish the list of tied active terms from the two neighboring slopes used to calculate the root’s multiplicity.

Trace the three-term example

The default min-plus polynomial is min(0,x−2,2x). The lines 2x and x−2 meet at x=−2, where both are −4 and lie below the constant term. The lines x−2 and zero meet at x=2, where both are zero and lie below 2x.

For x<−2 the active slope is two; between −2 and two it is one; and for x>2 it is zero. Each breakpoint has a slope jump of one, so the two roots have multiplicity one each. The intersection of 0 and 2x at zero is not a root because x−2 lies strictly below both there.

Coefficient changes and useful checks

Adding the same constant to every coefficient moves the entire envelope vertically and leaves every root unchanged. Negating all coefficients while switching between min-plus and max-plus, with the appropriate input-axis sign relation, gives a useful convention check. These transformations help test the implementation without replacing its exact envelope computation.

For a single surviving monomial there are no finite breakpoints. The total multiplicity of finite roots equals the difference between the extreme active slopes, which is the exponent range of the outer pieces. Missing a constant term changes asymptotic slope behavior; the page does not invent an extra finite root merely to match an ordinary-polynomial degree convention.

Interpret tropical roots within scope

A tropical root is a corner of the selected piecewise-linear function, not generally a real solution of an ordinary polynomial equation. Its multiplicity records balancing through slope changes. Solving min(0,x−2,2x)=0 is a different question and can yield intervals rather than the two corner locations.

The result does not construct a multivariable tropical variety or recover ordinary algebraic roots from valuations. Those related topics need additional data and hypotheses. Use the active exponents at each exact rational breakpoint and its multiplicity together, and retain the chosen min/max convention when comparing another package or a plotted envelope.

A few questions, answered

Is every line intersection a root?

No. The intersection must lie on the selected envelope and produce an active slope change.

Does coefficient zero mean a missing term?

No. Zero is a finite coefficient. Omitted exponents are the absent terms.

Is multiplicity the number of tied terms?

No. It is the absolute slope jump between the neighboring active intervals.

Are these roots of an ordinary polynomial?

No. They are corners of a tropical piecewise-linear function, under the displayed convention.

Find your calculator

Start typing to explore the library.