Curve Intersection Explorer

Plane curves meeting curves and lines, counted exactly with multiplicity. The learner moves parameter sliders and watches crossings merge into tangencies, turn complex or escape to infinity while the total stays at the Bezout number; drags a fibre line to count the fibre of a projection (and shears the curve to make it finite, as in Noether normalisation); reads the resultant's roots as the shadow of the intersection; turns a line through a point to find the order of contact and the tangent cone; or reads off the local intersection multiplicity and whether two curves form a system of parameters.

Used in: Ring Theory

Props

PropTypeDefaultDescription
titlestringby mode, e.g. "Where two curves meet"Title bar text.
controlsstring[]all controls shownIds of the hideable controls and readouts to show (see the controls registry, e.g. readout.complex, readout.bezout, readout.leading-coefficient, readout.tangent-cone). Core controls always show. Page building fills this from the subject's topic scope.
mode"intersection" | "fibre" | "resultant" | "contact" | "local"inferred: compare -> local; slope/slopeRange -> contact; point -> contact (one curve) or local (two); shear/fibreAt or a single curve -> fibre; projectTo -> resultant; else intersectionintersection: every common point of two curves (real, complex, at infinity) with its multiplicity, against the Bezout number. fibre: a draggable fibre line over the x-axis (or y-axis), the fibre counted, points escaping to infinity, leading coefficient, finite or not, branch values. resultant: Res_y(f, g) with its roots as the shadow of the intersection points on the axis, plus its graph. contact: a line through point p with a slope slider; the restriction phi(t), its order of vanishing, the multiplicity of p and the tangent cone. local: I_p(f, g) at point p, system of parameters or not, regular or not, optionally next to a second system. Set it explicitly whenever the inference could be ambiguous.
equationsstring[]by mode, e.g. ["x^2 + y^2 = 5", "x*y = c"]Polynomial equations in x and y, as "lhs = rhs" or an expression meaning expr = 0 ("y = x^2", "x^2 + y^2 = 25", "(x^2 + y^2)^2 = 3*x^2*y - y^3"). Other letters are parameters with sliders. Two curves for intersection, resultant and local; one for fibre and contact (extra ones are ignored). Total degree at most 6, and deg f · deg g at most 20 for the two-curve modes (beyond that a message and an example are shown).
equationstringnoneOne curve; shorthand for equations: [equation] (fibre and contact modes).
parameters{name, min, max, initial, step?, label?}[][] (any other free letter gets a slider from -5 to 5 starting at 1)Named parameter sliders used in the equations or the shear. Slider values are exact decimals, so a tangency at a rational value (c = 5/2) is detected exactly.
presets(number | object)[][]Buttons that set parameters: a number sets the first parameter (e.g. [0, 0.5, -0.5] for c), an object sets several and may carry a label ({"c": 1, "label": "60°"}).
shearstringnoneFibre mode: a change of variables applied to the curve, "x -> x + c*y" (also "x = x - y", several separated by ";"); its parameters get sliders. The transformed equation is shown and drawn; the curve before it is drawn dashed.
showOriginalbooleantrueFibre mode with a shear: draw the curve before the change of variables, dashed.
fibreAtnumber0Fibre mode: starting position x0 of the draggable fibre line x = x0 (y = y0 with projectTo "y").
projectTo"x" | "y""x"Fibre and resultant modes: the axis projected onto. "x": vertical fibres, the fibre polynomial is in y, the resultant eliminates y. "y": the other way round.
showBranchValuesbooleantrueFibre mode: mark the branch values (where the fibre has fewer than deg_y f distinct points: zeros of the discriminant and of the leading coefficient). false hides them.
showLeadingCoefficientbooleantrueFibre mode: the readout naming the leading coefficient of f in y and where it vanishes. false hides it.
point[number, number][0, 0]Contact mode: the base point p of the rotating line (normally on the curve). Local mode: the point where I_p(f, g) is computed.
slopenumber | "vertical"0Contact mode: starting slope m of the line through p (the learner moves it with a slider).
slopeRange[number, number][-4, 4]Contact mode: range of the slope slider.
comparestring[]noneLocal mode: a second pair of equations, shown side by side with its own I_p (e.g. ["y = 0", "x = 0"] next to ["y^2 = x^3", "x = 0"]).
xRange[number, number][-4, 4]Visible x range.
yRange[number, number][-4, 4]Visible y range.
equalAspectbooleanfalseEqual units on both axes (circles look round).
rationalRootTestbooleanfalseIntersection and resultant modes: eliminate y and run the rational root test on the resulting polynomial in x (candidates p/q, rational roots, and irreducibility over Q for degree 2 or 3).
editablebooleantrueShow an Edit button that lets the learner type their own equations. false hides it.