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

PropTypeDefaultDescription
titlestringby modeTitle bar text.
modestring"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.
formstring"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.
gramnumber[][]none2x2 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.
formsstring[]noneNamed 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.
matrixnumber[][][[0.8, -0.6], [0.6, 0.8]]preserve: the 2x2 matrix A to test.
editablebooleantruepreserve: let the learner type A's entries (numbers or expressions such as 1/2, sqrt(3)/2) and pick standard matrices.
unumber[][1.5, 0.5] ([1, 0.5] in level-curves)Starting position of the draggable vector u.
vnumber[][-0.5, 1.2]preserve: starting position of the draggable vector v.
pointsnumber[][][[1, 0.4], [0.4, 1.3]]isometries: 1 to 4 starting points p_i, moved by g(t) (draggable).
groupstring"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.
tnumber0isometries: starting value of the group parameter (angle or rapidity).
levelsnumber[][-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).
stepnumber0preserve: start the entry-by-entry check at entry 1-4 ((1,1), (1,2), (2,1), (2,2)); 0 = overview.
extentnumber3Half-width of the square view [-extent, extent]^2 (1 to 20).
showLevelCurvesbooleantrueDraw the level curves of Q.
showIsotropicbooleantrueDraw the isotropic lines Q = 0 (indefinite or degenerate forms).
showImagebooleantruepreserve: draw the image of the level curves (or parallelogram) under A.
showEigenAxesbooleanfalselevel-curves: start with the eigen-axes shown (toggle in the body).
showOrthogonalbooleantruelevel-curves: start with u-perp shown (toggle in the body).
showMinorsbooleantruelevel-curves: show the leading minors and Sylvester's criterion.
showSlidersbooleantruelevel-curves: show the a, b, c sliders.
showModeSwitchbooleanfalseLet the learner switch between the three modes.
controlsstring[]all controls shownIds 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.