Parametric Point Tracer
The learner moves a parameter slider (or presses Play, or drags the point) and watches a point travel along a parametric curve, a polar curve or a line, with linked graphs of its coordinates, r, speed, distance or s, v, a against the parameter. It shows orientation and speed that the Cartesian equation loses, negative r, petals, sectors for polar area, symmetry tests, polar intersections, inverse-trig solutions on the unit circle, and a particle that turns where v = 0.
Used in: Single Variable Calculus
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by mode ("Tracing a parametric curve", ...) | Card title. |
| mode | string | from the props | curve (x(t), y(t)), polar (r = f(theta)), point (one polar point) or line (a particle on a line). Without it: polar when polar is given, line when position/velocity/acceleration is, curve when parametric is, point when point is a pair [r, theta], else curve. |
| parametric | {x: string, y: string, t?: [number | string, number | string], label?: string} | that[] | {x: "t^2", y: "t^3 - 3*t", t: [-2, 2]} | Curve mode: x(t) and y(t) with the parameter range t (default tRange, else [-3, 3]). A list draws several parametrisations moved by the same t slider (e.g. cos t vs cos 2t: same path, different speed); the first one is draggable and feeds the panels and readouts. Formulas support + - * / ^, implicit multiplication, trig and inverse trig, sinh/cosh/tanh, sqrt, exp, ln, abs, pi, e and the parameter names. |
| polar | string | string[] | none | Polar mode: r as a function of theta, e.g. "1 + cos(theta)" ("r =" is ignored). A list draws several curves swept by the same theta (intersections, area between). |
| thetaRange | [number | string, number | string] | [0, 2*pi] | Polar mode: range of theta. Point mode: range of the theta slider (default [-2*pi, 2*pi]). |
| tRange | [number | string, number | string] | [-3, 3] (curve), [0, 5] (line) | Parameter range for curves that give no t of their own; time range in line mode. |
| point | number | string | [number | string, number | string] | 40% into the range (curve, polar), 30% (line), [2, pi/4] (point) | Starting parameter value (t, theta or time; strings like "pi/6" are evaluated). In point mode the pair [r, theta]. |
| rRange | [number, number] | [-4, 4] | Point mode: range of the r slider (negative r allowed). |
| position | string | none | Line mode: position s(t), e.g. "t^3 - 6*t^2 + 9*t" ("s =" ignored); v and a are its derivatives. |
| velocity | string | none | Line mode: velocity v(t); s is recovered from initial.s, a is v'. |
| acceleration | string | none | Line mode: acceleration a(t); v and s are recovered by accumulating from initial.v and initial.s at the start of tRange. |
| initial | {s?: number | string, v?: number | string} | {s: 0, v: 0} | Line mode: s and v at the start of tRange (may name parameters, e.g. "v0"). |
| panels | string[] | none (line mode: ["s"]) | Linked graphs against the parameter, each with a draggable cursor. Curve: "x", "y", "speed", "distance" or any expression in x, y, t (e.g. "y/x", "1/y"). Polar: "r", "x", "y", "speed", "distance" or an expression in r, theta, x, y. Line: "s", "v", "a", "speed". |
| overlays | string[] | [] | Drawings at the moving point: "legs" (dashed x and y legs to the axes), "ray" (segment from the origin), "arc" (circle arc from angle 0 to angle t: the arc length t on the unit circle), "tangentSegment" (the segment on x = 1 cut off by the ray: tan t), "sector" (region swept by the ray from the start, with its area; polar: from the start of thetaRange), "triangles" (triangles O-A-P and O-A-T of the unit circle). |
| showDirection | boolean | false | Arrowheads along the curve showing its orientation (the direction of increasing parameter). |
| showVelocity | boolean | false | Velocity arrow (x'(t), y'(t)) at the point (scaled to fit, the scale is in the legend) with the x', y' and speed rows. |
| showDistance | boolean | false | Rows with the distance travelled from the start (arc length integral, so a curve traced twice counts twice) and over the whole range. |
| tableAt | (number | string)[] | [] | Parameter values plotted as labelled points on the curve and listed in a table of t, x, y (polar: theta, r, x, y; line: t, s, v, a). |
| cartesian | string | none | Curve mode: the Cartesian equation obtained by eliminating t, e.g. "y = x^2", drawn over the whole view so the learner sees which part the parametrisation covers. |
| solve | {panel?: string, level?: number | string, levelRange?: [number, number], levels?: (number | string)[], principal?: [a, b] | [a, b][], exclude?: (number | string)[], name?: string, conventions?: {label, principal, exclude?}[]} | none | Inverse functions: a slider for the level c on the named panel (default the first); every solution of panel = c is marked on the panel and on the curve, and the one in the principal interval (shaded) is read out as name(c), e.g. arcsin. conventions offers alternative intervals (arcsec, arccot) in a toggle. |
| sectors | number | none | Polar mode: starting number of sectors approximating the area over thetaRange, with an n slider and the sum against the integral (0 = off). |
| sectorsRange | [number, number] | [1, 64] | Range of the sectors slider. |
| areaBetween | boolean | false | Polar mode, two curves: shade the region between them over thetaRange and read out ½∫(f² - g²) dθ. |
| compareWrong | boolean | false | With areaBetween: also read out the common mistake ½∫(f - g)² dθ. |
| markIntersections | boolean | false | Two curves: mark every crossing (including the pole for polar curves) and list the parameter at which each curve reaches it, showing crossings reached at different parameters. |
| symmetry | string[] | [] | Polar mode: symmetry tests to run, from "polar-axis", "vertical-line", "pole": a table with the substitution test, the alternative representation and whether the picture is symmetric, plus a toggle drawing the reflected copy. |
| countPetals | boolean | false | Polar mode: rows counting the petals drawn so far, the loops traced (with repeats) and the turns of theta. |
| showRetrace | boolean | false | Say when the point is going over a part of the curve it has already drawn. |
| showEquivalentNames | boolean | false | Polar and point modes: other polar names of the current point, (r, θ ± 2π) and (-r, θ ± π). |
| markTurns | boolean | false | Line mode: mark the times where v = 0 (the particle turns or stops) on the track and the s, v panels. |
| shadeSigns | boolean | false | Line mode: shade the v and a panels green where positive and red where negative. |
| showSpeeding | boolean | false | Line mode: row saying whether the particle is speeding up (v and a same sign) or slowing down. |
| readouts | {label: string, value: string}[] | [] | Extra live rows: value is an expression in the parameter (t or theta), x, y (r in polar mode; s, v, a in line mode) and the parameter names, e.g. {"label": "$x^2 + y^2$", "value": "x^2 + y^2"}. |
| parameters | {name, min, max, initial?, step?, label?}[] | [] | Named parameters with sliders, usable in every formula and range (a family such as r = a + b sin θ, a rose with integer n). x, y, t, theta, r, e and pi are reserved. |
| labels | {x?, y?, t?, s?, v?, a?, curve?: string} | $x$, $y$, $t$, position $s$, ... | Axis titles and row labels (units such as "$s$ (m)"), and the legend name of the first curve. $...$ is TeX. |
| xRange | [number, number] | auto | Horizontal view of the curve. |
| yRange | [number, number] | auto | Vertical view of the curve. |
| equalAspect | boolean | true for polar and point modes and for curves of comparable width and height | One unit is as long on both axes (circles look round). |
| note | string | none | A sentence shown under the readouts (useful in presets, e.g. "traced twice"). |
| presets | {label, ...props}[] | [] | Further examples in a dropdown. A preset that sets parametric, polar, position, velocity, acceleration or point drops the curve-specific props of the main example (tableAt, cartesian, ranges, point, note, initial); other props are inherited. |
| presetLabel | string | "Main example" | Dropdown label of the main example when presets are given. |
| controls | string[] | all controls shown | Ids of the hideable controls to show (see the controls registry); core ones always show. Absent = everything. Fitted per page by tooling, not by hand. |
PreviousNext