The curve as an equation

The price is on the equation

A line costs five bars. The same line, written as its own equation multiplied by a factor that is never zero, costs fifty — and the machine compiled from the longer equation draws the same line just as exactly. Every cost this field quotes belongs to a polynomial and not to a curve, and the cheapest equation of a given curve is a quantity nobody here has.

Assumes Five bars for a line, four hundred for a quintic and A circle costs one term.

This field measures size. Five bars for a line, four hundred for a quintic counted nine machines and found the bar count growing like the fourth power of the degree; a circle costs one term found that what a curve costs is not its degree but how many frequency pairs its own symmetry fails to cancel. Both readings treat the cost as belonging to the curve — a line costs five bars — and the arithmetic behind them is careful about everything except that.

The demand is an equation, and the compiler is handed that equation rather than the curve. It expands p(x,y)p(x,y) into a sum of cosines of whole-number combinations of the arm’s two angles, builds one gadget per term, and sums them head to tail. Nowhere in that process is there a step that asks what set pp vanishes on. So the cost it returns is a cost of the polynomial, and a curve does not determine its polynomial.

The demonstration takes one line. The factor 1+x2+y21 + x^2 + y^2 is at least one at every real point of the plane, so p(1+x2+y2)=0p \cdot (1 + x^2 + y^2) = 0 holds at exactly the same real points as p=0p = 0. Hand the compiler the second one and it returns a bigger machine for the same curve.

A rectangular hyperbola, compiled from a multiple of its equationThe machine compiled from p · (1 + x² + y²) for a rectangular hyperbola, with the translators — the parallelograms that carry a direction from where it is produced to where it is needed — in their own colour. The factor 1 + x² + y² is at least one at every real point, so every equation here vanishes on exactly the same curve. The machines do not agree: 20 bars at p, 75 bars at p · (1 + x² + y²), 144 bars at p · (1 + x² + y²)². This one solves 29 positions over an arc of 0.508 radians, and at every one of them the original polynomial reads 4.93e-14.the armrigid offsetsreflectorsmeansp · (1 + x² + y²), degree 475 bars for the same curve
Fig. 1 A rectangular hyperbola compiled from its equation multiplied by a factor that is never zero. The thin line is the curve; the marks on it are where the machine went. The machine has seventy-five bars and the unpadded one has twenty.

The padded machine is on the curve, not near it

The first thing to establish is that this is not a trick played on the solver, because the obvious suspicion is that the bigger machine is merely nearly right and the comparison is between a mechanism and a worse mechanism.

It is not. A machine compiled from pqpq satisfies pq=0pq = 0 at every position it reaches, exactly, to the solver’s own floor — that is what this field’s whole apparatus is for. And q>0q > 0 everywhere real, so pq=0pq = 0 forces p=0p = 0. The padded machine is therefore on the original curve for the same reason the unpadded one is: not approximately, not to a tolerance, but as a consequence of the constraints.

Measured rather than argued: at the points the padded machines actually reached, the original polynomial reads 1.2×10121.2 \times 10^{-12} for the line, 1.0×10131.0 \times 10^{-13} for the circle and 4.9×10144.9 \times 10^{-14} for the hyperbola. The unpadded machines read 7.0×10147.0 \times 10^{-14}, 1.3×10111.3 \times 10^{-11} and 1.3×10111.3 \times 10^{-11} at theirs. The padded ones are, if anything, the tidier set, and the difference between the two columns is which position of which march happened to be worst rather than anything structural.

That measurement is worth pausing on, because the padded machine has never heard of pp. Its terms are different cosines. Its bars are different lengths. The polynomial it was compiled from has a degree two higher and coefficients that share no factor with the original’s. It lands on the original curve because the original curve is where its own equation vanishes, and that is the only reason.

So the situation is exactly the one the section title says. There are two machines, of twenty and seventy-five bars, both exact, both tracing the same hyperbola, and the second is not worse at the job. It is only larger.

There is one asymmetry between them worth naming before it is mistaken for a defect. The padded machine reaches fewer positions — twenty-nine against ninety-six — so the column of numbers it is being judged on is shorter, and a shorter march has fewer chances to find its own worst case. That could in principle flatter it. It does not flatter it enough to matter: the unpadded hyperbola’s worst reading over ninety-six positions is 1.3×10111.3 \times 10^{-11}, and the padded one would have to be three orders of magnitude worse on the sixty-seven positions it never reached before the comparison reversed. What the short march is evidence of is something else entirely, and it is the subject of two sections below.

The padded machine is on the curve, not near it. How far the original polynomial is from nought at the points each machine actually reached, for three curves, compiled from the equation and from the equation times 1 + x² + y². The padded machines were handed a different polynomial — different terms, different bar lengths, and the original never mentioned anywhere in them — and they land on the original curve at line 1.17e-12, circle 1.01e-13, hyperbola 4.93e-14, against 6.96e-14, 1.31e-11, 1.27e-11 for the unpadded ones. Both sets are the solver's own floor. Padding costs bars and costs arc; it does not cost exactness.
Fig. 2 The original polynomial at each machine’s own traced points, for three curves, compiled with and without the factor. Both sets sit at the solver’s floor.

Five curves, three equations each

Running the comparison across the catalogue gives the size of the effect, and it is not small.

A line goes from five bars to fifty and then to a hundred and fourteen. A circle goes from eleven to twenty-seven to forty-nine. A hyperbola goes twenty, seventy-five, a hundred and forty-four; a lemniscate fifty, a hundred and fourteen, a hundred and ninety-two; a cubic a hundred and one, two hundred and nine, three hundred and fifty. Fifteen machines, five curves, and every curve in the set is the same curve in all three of its rows.

The reading is unavoidable. The field’s headline numbers are upper bounds attached to particular representations. “A line costs five bars” is the claim that this equation of this line compiles to five bars. What a line costs, taken over all its equations, is a minimum nobody here has computed and which the numbers above only bound from above.

That is not a complaint about the measurements. They are the right measurements of the thing they measure, and an upper bound is what a construction gives — the field has been explicit from the start that the compiler is one way of building a machine rather than the cheapest, and what an approximation costs against what exactness costs is a comparison between constructions throughout. What changes here is the attribution. A statement like the cost grows like the fourth power of the degree reads as a fact about polynomials of that degree, and it survives intact; a statement like a lemniscate is expensive reads as a fact about lemniscates, and it does not.

There is a sharper version. Since a polynomial and its multiple have different degrees, any curve here has equations of arbitrarily high degree — so the curve has machines of arbitrarily many bars, and a maximum cost does not exist. Every cost quoted in this field is therefore one end of an unbounded interval, and the interesting end, the minimum, is the one not measured.

The same five curves, at three equations each. How many bars each curve's machine has when its equation is multiplied by a factor that removes no point of it. line goes 5 → 50 → 114; circle goes 11 → 27 → 49; hyperbola goes 20 → 75 → 144; lemniscate goes 50 → 114 → 192; cubic goes 101 → 209 → 350. The curves are unchanged throughout — 1 + x² + y² is at least one everywhere real — so none of this is a fact about the curves. It is a fact about the equations they were handed as, and the field's headline costs are therefore upper bounds on particular representations rather than properties of the shapes.
Fig. 3 Five curves at three equations each. Every line on this plot is one curve, unchanged, being handed to the compiler under three different names.

A line, at fifty bars

The case worth looking at rather than tabulating is the cheapest one, because the penalty there is the largest and the picture is legible.

Five bars for a line is the field’s smallest machine and its clearest result: the arm, one reflector, one mean and the closure, and the traced point runs along a straight line exactly. Multiply that line’s equation by the factor and the compiler returns fifty bars — a machine with sixteen translators in it, nearly all of them carrying a direction from one place to another so that a term which sums to nothing useful can be added to a chain.

That is the field’s own transport result arriving from a new direction. A parallelogram carries an angle and only so far established that transport grows quadratically in the number of terms while the arithmetic grows like dlogdd \log d, so most of a large machine is carrying. What the padding shows is that the carrying can be made to dominate a machine whose curve needs none of it — the line still has two frequency pairs’ worth of content, and the other three are pure overhead introduced by an equation nobody had to write that way.

It also makes the measurement’s independence from the drawing plain. Dragging the padding through its three stops changes the mechanism from five bars to fifty to a hundred and fourteen while the thin line it is drawn against does not move by a pixel, because it is the same line. That is the whole argument in one control.

A line, compiled from a multiple of its equationThe machine compiled from p · (1 + x² + y²) for a line, with the translators — the parallelograms that carry a direction from where it is produced to where it is needed — in their own colour. The factor 1 + x² + y² is at least one at every real point, so every equation here vanishes on exactly the same curve. The machines do not agree: 5 bars at p, 50 bars at p · (1 + x² + y²), 114 bars at p · (1 + x² + y²)². This one solves 160 positions over an arc of 2.800 radians, and at every one of them the original polynomial reads 1.17e-12.the armrigid offsetsreflectorsmeansp · (1 + x² + y²), degree 350 bars for the same curve
Fig. 4 The same line at three equations. The curve is a constant and the machine is not; the translators are the loud colour, and at the padded stops they are most of it.

The penalty is not the factor’s either

The next question is whether the padding at least has a fixed price — whether multiplying by 1+x2+y21+x^2+y^2 costs some constant factor in bars whatever it is applied to, which would make the effect a nuisance to be divided out rather than a hole in the cost model.

It does not. One copy of the factor costs a factor of 10.00 on the line, 3.75 on the hyperbola, 2.45 on the circle and 2.07 on the cubic. The cheapest curve in the catalogue pays the most, and it pays five times what the most expensive curve pays.

The reason is the field’s own central mechanism seen from an unfamiliar side. A curve’s cost is the number of frequency pairs its symmetry fails to cancel: the expansion of pp produces a great many terms cos(mα+nβ+φ)\cos(m\alpha + n\beta + \varphi) and most of them cancel against each other, leaving a few. Every curve is a sum of cosines, and multiplying pp by qq multiplies out into a new and larger set of frequency pairs, and how many of those cancel depends on how the symmetries of pp and qq interact. A circle is the most symmetric object in the catalogue and cancels almost everything, before and after; a line is only symmetric under a reflection and cancels very little of what the multiplication produces.

So the penalty is not a property of the multiplier, is not a property of the curve on its own, and is not a function of the degree — it is a property of the pair. A cost model with that character cannot be repaired by normalising the degree or by dividing out a constant, which is what makes it a hole rather than a correction.

What one redundant factor costs, per curve. The bar count of each curve's machine with one copy of 1 + x² + y² in its equation, divided by the bar count without it. If the penalty were a property of the factor these would be four equal bars. They run from 2.07 on the cubic to 10.00 on the line — a line, the cheapest curve in the catalogue at five bars, becomes fifty. What the multiplication actually does is multiply out into new frequency pairs, and how many of those survive the cancellation depends on the symmetry of the polynomial being multiplied, which is a property of it and not of the multiplier.
Fig. 5 What one copy of the factor costs each curve, as a multiple of its unpadded bar count. Four equal bars would mean the penalty belonged to the factor.

The cost that is not counted in bars

The bar count is the field’s currency and it is not the quantity that decides whether a machine works.

Marching each padded machine and asking how far it can be driven before a position fails to solve gives a different and more brutal picture. The hyperbola runs over 1.68 radians unpadded, 0.51 with one factor, and nothing at all with two: a hundred and forty-four bars, every length computed, and not one position solvable. The cubic does the same — 1.63, then 0.56, then nothing. The circle degrades gently, 1.56 to 1.56 to 1.14. The line does something else again, going up from 2.26 to 2.80 before collapsing to 0.80, which is worth recording as the one place the pattern is not monotone and is not explained here.

The mechanism behind the collapse is already in the field. A gadget stops being the function it was built to be at the configuration where its rhombus flattens: the machine goes on turning, every bar stays the length it was, the closure residual stays at the solver’s floor, and the thing it computes is a different function. Every gadget has such a configuration, so a machine with three times as many gadgets has three times as many chances for one of them to fall inside the arc being marched. The machine itself does not notice: thirty-five equations go on being satisfied and the polynomial at the traced point is the only quantity that knows. Lengthening the equation shortens the run.

That is the sense in which padding is not free even though it buys exactness for nothing. The bars are a cost to a manufacturer. The arc is a cost to a reader: a machine with no arc draws no curve, and a hundred and forty-four bars that cannot be assembled anywhere is not a slower way to trace a hyperbola but a failure to trace one.

It also sharpens what what universality is worth found. The existence theorem says a linkage exists for every algebraic curve; the four-hundred-bar quintic says how many bars one construction needs; and this says that the arc — which the theorem does not mention at all — shrinks as the construction grows, in a way that depends on the equation rather than on the curve. Three facts, and only the first is in the theorem.

The cost that is not counted in bars. The arc each machine can actually be marched over, against the padding in its equation. line goes 2.26 → 2.80 → 0.80; circle goes 1.56 → 1.56 → 1.14; hyperbola goes 1.68 → 0.51 → 0.00; cubic goes 1.63 → 0.56 → 0.00. Two of the four — hyperbola and cubic — reach nought: the machine compiles, its bars are the lengths the compiler computed, and not one position of it can be solved. A bigger machine has more gadgets and every gadget has a configuration at which it flattens and starts computing something else, so lengthening the equation shortens the run. Bars are the cost the field has been quoting; this is the cost that ends the machine.
Fig. 6 The arc each machine can actually be marched over, against the padding in its equation. Two of the four reach nothing.

Nothing tried is cheaper

The obvious hope is that the effect runs only one way — that padding always costs and there is no equation of a curve cheaper than the natural one, so the natural one is the minimum and the cost model is saved by a convention.

Over the multiplications tried, that hope holds and proves nothing. Multiplying each catalogue curve by each of five factors — 1+x2+y21+x^2+y^2, 2+x2+y22+x^2+y^2, 1+x21+x^2, 1+y21+y^2, 1+x41+x^4 — never produces fewer terms than the equation it multiplies. A circle goes from one term to two at best; a quintic from eighteen to twenty-four.

Five multiplications are not a search. The equations of a curve are every polynomial vanishing on it, which for an irreducible curve is every multiple of its minimal polynomial — so a search over multiples is the right family, and five of them is a vanishingly small sample of it. Worse, for a reducible or non-real-radical situation the minimal polynomial need not be the natural one at all, and the catalogue here is chosen from curves whose natural equation is already the obvious generator. Scaling the coefficients is the one family of alternative equations the field had already measured, and it is the one that changes nothing.

What can be said is narrow and worth saying anyway: nothing observed here suggests that a redundant factor ever cancels more than it creates, and the reason to expect it might is real. The expansion’s cancellation is exactly a coincidence between frequency pairs, and a multiplier chosen to make coincidences is not obviously impossible. Whether some curve has a cheaper equation of higher degree is open, and it is the question a cost model for curves would have to settle first.

Nothing tried is cheaper. The term count of each catalogue curve's own equation, and of that equation multiplied by each of five factors. Every entry is larger than the equation's own, on every curve: line 2 against a best of 5, circle 1 against a best of 2, hyperbola 3 against a best of 6, lemniscate 5 against a best of 8, cubic 8 against a best of 12, quintic 18 against a best of 24. That is a negative result and a small one — five multiplications are a vanishing part of the set of equations a curve has, and nothing here searches over equations that are not multiples. The cheapest equation of a given curve is the quantity the field's cost model wants and does not have.
Fig. 7 Each catalogue curve’s own equation against five multiples of it, counted in terms. Every entry is larger than the one it multiplies.

What this does not settle

The factor is harmless only over the reals. 1+x2+y2=01 + x^2 + y^2 = 0 is a perfectly good complex conic, so pqpq is a reducible curve with a component the machine can never reach, and the machine’s branch structure is correspondingly different. Nothing here counts its assembly modes or asks whether the extra component contributes spurious branches of the kind bracing removes.

No minimum is computed. The whole point is that the minimum over equations is the quantity the cost model wants, and it is not measured here for any curve — not even for the circle, where one term looks unimprovable and is not proved to be.

Five curves and two paddings. The table is fifteen machines. The effect is large enough at that sample that its existence is not in doubt; its behaviour at higher paddings and on curves with other symmetries is not charted.

The arc is measured by marching. A machine is driven from its seed and a position counts when its Newton solve converges, so the arc reported is the arc this march found from this start. A machine with a short reported arc may have a longer one elsewhere in its configuration space, and the arc has been predicted as well as found only for the unpadded machines.

Nothing is claimed about compilers in general. A different construction — not this one — might charge for something closer to the curve. What is shown is that this compiler charges for the equation, and that the field’s numbers inherit that.

Still open: the cheapest equation of a curve

The measurement above turns a statement the field has been making into a question it has not asked. What a curve costs is the minimum of the compiler’s bar count over every polynomial vanishing on it, and no instrument here computes a minimum over an infinite set.

Its distinct argument would be a lower bound rather than a search. The compiler’s cost is set by the number of surviving frequency pairs in the expansion, and that number is a rank: the expansion is linear in the polynomial’s coefficients, so the set of polynomials of degree at most dd vanishing on a given curve is a linear subspace, and the cheapest equation of degree at most dd is the vector in that subspace with the sparsest expansion. That is a sparsest-vector problem on an explicit subspace, and although the general version is hard, the dimensions here are small enough to settle by exhaustion at low degree. Two things would come out of it. Whether the natural equation of any catalogue curve is beaten at its own degree — which would mean the field has been quoting a cost that is not even locally minimal; and whether a higher degree ever wins, which is the question the five multiples above could only fail to answer.

What this makes readable

Essays that name this one as a prerequisite.

About the same objects

Not linked from either essay — found by the objects both name.

What links here

Essays that link to this one from their own argument.

The objects this essay names

Each one links to every other essay that touches it.

Algebraic curveCompiled linkageCost modelDegreeFrequency pairImplicit equationSingularityUniversalityWorking arc