Linear System Phase Portrait
A 2x2 matrix A and the orbits of x' = Ax (or x -> Ax) with its eigenlines, linked to a trace-determinant plane where the learner drags the system across the parabola and axes to change the portrait type. Lie-group readings: the time slider moves x0 along the one-parameter subgroup e^{tA}, with readouts for the flow matrix, area scaling, the tangent at the identity, group membership and a commutator loop of two flows that misses by s^2 [X, Y].
Used in: Group Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode | Title bar text. Default: "Linear system phase portrait" ("Linear map: orbits and eigenlines" in discrete time, "Commutator of two flows" with showCommutatorLoop). |
| matrix | (number | string)[][] | [[0.5, 1], [-1.5, -1]] ([[0, 1], [0, 0]] with showCommutatorLoop) | The 2x2 matrix A (the generator X in Lie-group pages). Entries may be expression strings in the names of `parameters` (e.g. [["eps", "1"], ["-1", "eps"]]): the entries then follow the sliders and the matrix is read-only. |
| parameters | {name, min, max, step?, initial?, label?}[] | [] | Sliders for the names used in matrix expressions. The first parameter's sweep is drawn as a dashed path in the trace-determinant plane. |
| dynamics | string | "continuous" | continuous: orbits of x' = Ax, t -> e^{tA}x. discrete: orbits of x -> Ax, k -> A^k x (dots), with the stability triangle in the trace-determinant plane. |
| symbol | string | "A" ("X" with showCommutatorLoop) | Letter used for the matrix in labels and readouts (e.g. "X" for a Lie-algebra element). |
| initial | number[][] | a ring of 10 points | Start points [x, y] of the background orbits. [] draws none. The learner can click the plane to add more. |
| probe | number[] | null | [1.5, 1] ([1, 0.5] with showCommutatorLoop) | Draggable start point x0 of the highlighted orbit, whose position at time t is marked. null hides it (and the time slider). |
| xRange | [number, number] | [-3, 3] ([-2, 2] with showCommutatorLoop) | Visible x range of the phase plane. |
| yRange | [number, number] | [-3, 3] ([-2, 2] with showCommutatorLoop) | Visible y range of the phase plane. |
| axisLabels | [string, string] | ["$x$", "$y$"] | Axis titles of the phase plane (TeX between $...$), e.g. ["$y$", "$y'$"]. |
| showField | boolean | true in continuous time, false otherwise | Faint direction field of x' = Ax. |
| showEigenlines | boolean | true (false with showCommutatorLoop) | Dashed real eigenlines labelled by their eigenvalues. |
| showTraceDetPlane | boolean | true (false with showCommutatorLoop) | Linked trace-determinant plane. Its point is draggable (it rescales A to the new trace and determinant, keeping the eigenlines where it can) unless the matrix depends on parameters or allowMatrixInput is false. |
| showParabola | boolean | true | Draw det = tr^2/4 (real vs complex eigenvalues) in the trace-determinant plane. |
| showParameterPath | boolean | true | With parameters: draw the path of (tr, det) as the first parameter sweeps its range. |
| trRange | [number, number] | [-4, 4] ([-3, 3] discrete) | Trace axis range. |
| detRange | [number, number] | [-3, 5] ([-2, 2.5] discrete) | Determinant axis range. |
| showTimePanel | boolean | false | Plot x(t) and y(t) of the highlighted orbit against t (or k) below the portrait. |
| allowMatrixInput | boolean | true | Show the editable matrix entries (and Y with showCommutatorLoop); false hides them and locks the trace-determinant point. |
| presets | (string | {label, matrix, Y?})[] | [] | Example matrices the learner can load. Strings are names: so(2) / SO(2) / rotation, sl(2, R) / SL(2, R), sl(2, R) hyperbolic / hyperbolic / squeeze, boost, shear / nilpotent / upper unitriangular, lower shear, gl(2, R), scaling, saddle, center, spiral sink, spiral source, node sink, node source, star sink, star source, degenerate sink, degenerate source, line of equilibria. Objects give a label and a 2x2 matrix (and optionally Y). |
| t | number | 1 | Initial flow time t (an integer step k in discrete time). |
| tRange | [number, number] | [-3, 3] ([0, 8] discrete) | Range of the time slider (and the time panel's axis). |
| shape | string | "none" | Also draw the image of the unit square or unit disk under e^{tA} (A^k), with the original dashed: the area factor is e^{t tr A}. |
| readouts | string[] | ["classification"] ([] with showCommutatorLoop) | Readout boxes, any of: classification (tr, det, discriminant, eigenvalues, portrait type), exp (the matrix e^{tA} or A^k and its value at x0), det (det e^{tA} = e^{t tr A}), tangent ((e^{tA} - I)/t tends to A), groups (is e^{tA} in GL2, SL2, SO(2), unitriangular N; is A in gl2, sl2, so2, n), homomorphism (e^{sA}e^{tA} = e^{(s+t)A}, adds an s slider and draws the dashed leg), commutator (added automatically with showCommutatorLoop). |
| showTangentAtIdentity | boolean | false | Draw the velocity arrow A x0 at x0 (the orbit's tangent at t = 0) and add the tangent readout. |
| showCommutatorLoop | boolean | false | Commutator mode: from x0 follow e^{-sY}, e^{-sX}, e^{sY}, e^{sX}; the loop misses x0 by about s^2 [X, Y] x0 (dashed arrow). |
| Y | number[][] | [[0, 0], [1, 0]] | Second generator for the commutator loop. |
| s | number | 70 % of sRange with showCommutatorLoop, else 1 | Initial value of the s slider (commutator leg length, or the first time in the homomorphism readout). |
| sRange | [number, number] | [0, 1] with showCommutatorLoop, else [-2, 2] | Range of the s slider. |
| controls | string[] | all controls shown | Ids of the hideable readout boxes and panels to show (see the controls registry: readout.classification, readout.exp, readout.det, readout.tangent, readout.groups, readout.homomorphism, panel.trace-det). A readout or panel the props ask for stays hidden unless listed. Core controls always show. Page building fills this from the subject's topic scope. |
PreviousNext