Quadratic Form Plane
A bilinear form on the plane, drawn by its level curves (or signed areas for an alternating form). The learner tests whether a matrix preserves the form (A^T J A = J, entry by entry, with the level curves carried onto themselves), slides points along level curves with a one-parameter isometry group (circles, hyperbolas, area-preserving shears), or moves coefficient sliders to see definiteness, minors, isotropic lines and form-orthogonal lines.
Used in: Group Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode | Title bar text. |
| mode | string | "preserve" | preserve: type or pick a matrix A and test A^T J A = J entry by entry (step-through), with u, v and their images, the level curves and their image under A (or, for an alternating form, the parallelogram of u, v and its image) and a det A readout (SO coset, Sp_2 = SL_2). isometries: a one-parameter group g(t) = exp(tX) (slider, Play) slides draggable points along their orbits; when g preserves the form the orbits are level curves and Q, B stay constant. level-curves: coefficient sliders for Q = a x^2 + 2bxy + c y^2, level curves, isotropic lines, eigen-axes, leading minors, definiteness and signature, and a draggable u with its form-orthogonal line u-perp. |
| form | string | "euclidean" | Named form: euclidean (I), lorentzian (diag(1, -1)), symplectic ([[0, 1], [-1, 0]]) or hyperbolic ([[0, 1], [1, 0]]). Ignored when gram is given. |
| gram | number[][] | none | 2x2 Gram matrix J of B(v, w) = v^T J w (symmetric, alternating or general). Overrides form; in level-curves mode its symmetric part sets a, b, c. |
| forms | string[] | none | Named forms (values of form) for a form chooser in the body; with gram, a Custom option comes first. Alternating forms are left out in level-curves mode. |
| matrix | number[][] | [[0.8, -0.6], [0.6, 0.8]] | preserve: the 2x2 matrix A to test. |
| editable | boolean | true | preserve: let the learner type A's entries (numbers or expressions such as 1/2, sqrt(3)/2) and pick standard matrices. |
| u | number[] | [1.5, 0.5] ([1, 0.5] in level-curves) | Starting position of the draggable vector u. |
| v | number[] | [-0.5, 1.2] | preserve: starting position of the draggable vector v. |
| points | number[][] | [[1, 0.4], [0.4, 1.3]] | isometries: 1 to 4 starting points p_i, moved by g(t) (draggable). |
| group | string | "auto" | isometries: the one-parameter group. auto: the form's own (rotations for a definite form, boosts for an indefinite one, shears for an alternating one); rotation, boost, squeeze ([[e^t, 0], [0, e^-t]]) or shear ([[1, t], [0, 1]]) to test a group against the form. The learner can change it. |
| t | number | 0 | isometries: starting value of the group parameter (angle or rapidity). |
| levels | number[] | [-4, -1, 1, 4] | Level values k of the curves Q = k (empty level sets are skipped). |
| parameters | {name, min, max, initial, step?}[] | a, b, c in [-3, 3] | level-curves: slider ranges and starting values for a, b, c (names a, b, c). |
| step | number | 0 | preserve: start the entry-by-entry check at entry 1-4 ((1,1), (1,2), (2,1), (2,2)); 0 = overview. |
| extent | number | 3 | Half-width of the square view [-extent, extent]^2 (1 to 20). |
| showLevelCurves | boolean | true | Draw the level curves of Q. |
| showIsotropic | boolean | true | Draw the isotropic lines Q = 0 (indefinite or degenerate forms). |
| showImage | boolean | true | preserve: draw the image of the level curves (or parallelogram) under A. |
| showEigenAxes | boolean | false | level-curves: start with the eigen-axes shown (toggle in the body). |
| showOrthogonal | boolean | true | level-curves: start with u-perp shown (toggle in the body). |
| showMinors | boolean | true | level-curves: show the leading minors and Sylvester's criterion. |
| showSliders | boolean | true | level-curves: show the a, b, c sliders. |
| showModeSwitch | boolean | false | Let the learner switch between the three modes. |
| controls | string[] | all controls shown | Ids of the hideable readouts to show (see the controls registry: readout.det-so, readout.det-coset). Core controls always show. Page building fills this from the subject's topic scope. |