Graph Point Probe
The learner drags an input (or a vertical or horizontal line) on one graph and reads what a definition says at that point: its value, which inputs share an output, how many outputs one input has, its mirror images, its mirror in y = x, a window around it, a second input compared with it, the piece of a piecewise rule in use, f and g combined there, or 1/f there. Readouts state the test at the chosen point; optional verdicts check the whole shown part.
Used in: Single Variable Calculus
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | per mode ("Read the graph", "Horizontal line probe", "Reflect in y = x", ...) | Title bar text. |
| mode | string | from the props (g: combine, mirrors: symmetry, window: window, pair: orderPair, level: horizontalLine, inverseFormula / inverseSlope / showTangents: inverse, pieces: piecewise; else point) | What the probe tests. point: drag x, read f(x). verticalLine: drag the line x = c and count the points it meets (the vertical line test; f may be an equation in x and y such as "x^2 + y^2 = 4"). horizontalLine: drag the line y = c and list the inputs with f(x) = c (range, one-to-one). symmetry: the mirror images of P = (a, f(a)) and whether each lies on the graph. inverse: the mirror image Q = (f(a), a) of P in y = x, tracing the reflection. window: a window around a with its largest and smallest values (local and absolute extremes). orderPair: two inputs x1, x2 and their outputs compared (increasing / decreasing). piecewise: the piece whose condition holds at x, highlighted. combine: f and g combined at x (sum, difference, product, quotient, composition), tracing the result. reciprocal: 1/f(x) traced from f. |
| f | string | "y = x^3 - 3*x" | The function, "y = ..." in x (a leading "y =" or "f(x) =" is ignored). Supports + - * / ^, implicit multiplication, |u|, pi, e, sin cos tan sec csc cot, asin acos atan (arcsin ...), sinh cosh tanh and inverses, sqrt cbrt exp ln log log2 log10, abs sign floor ceil round min max, if(cond, a, b). In verticalLine and horizontalLine modes it may be an equation in x and y ("x^2 + y^2 = 4", "y*(x - 2) = 1"). |
| pieces | {f: string, when?: string}[] | none | A piecewise function instead of f: the first piece whose condition holds gives the value; a piece without when applies wherever no earlier one does. Conditions use < <= > >= and chains such as "0 <= x < 1". Works in every mode; piecewise mode highlights the piece in use, marks filled / hollow end dots and flags inputs that satisfy two conditions with different values. |
| g | string | "y = x" | Combine mode: the second function. |
| operation | string | "sum" (or the first of operations) | Combine mode: how f and g are combined: sum, difference, product, quotient, composition (f(g(x))) or reverseComposition (g(f(x))). |
| operations | string[] | none | Combine mode: offer these operations in a switch (e.g. ["composition", "reverseComposition"] to compare both orders). |
| compare | string | (string | {expr, label?})[] | none | Comparison curves drawn dashed with legend entries (an expected result such as y = cosh(x), a contrasting function, an asymptote curve). The line modes probe them too: each gets its own row of intersections (and a one-to-one row in horizontalLine mode). |
| point | number | string | 70% of the way across the view | Starting input of the probe (point, symmetry, inverse, window, piecewise, combine, reciprocal; the line position in verticalLine). A string is evaluated ("pi/3"). |
| level | number | string | f(point) | HorizontalLine mode: starting height c of the line y = c. |
| levelRange | [number, number] | the y range | HorizontalLine mode: how far the line can be dragged. |
| pair | [number, number] | 30% and 70% of the interval | OrderPair mode: starting inputs x1 and x2. |
| window | number | a tenth of the x range | Window mode: starting half-width delta of the window around a. |
| windowRange | [number, number] | [x span / 200, x span / 3] | Window mode: range of the half-width slider. |
| mirrors | string[] | ["y-axis", "origin"] | Symmetry mode: which mirror images of P to draw and test: y-axis (-a, f(a)), x-axis (a, -f(a)), origin (-a, -f(a)). |
| domain | [number | string, number | string] | null | none (the whole view) | Take f on this interval only (endpoints included): the probe stays inside, the curve outside is drawn faint, and every readout (extremes, increasing / decreasing, one-to-one, reflection, intercepts) uses only this part, e.g. [0, "2*pi"] for an absolute minimum on a closed interval. null in a preset clears the main example's domain. |
| restrict | [a, b] | ([a, b] | {label?, intervals: [a, b][]})[] | none | Domain restrictions the learner can switch on and off: one interval gives a switch "Only x in [a, b]", several give a choice ("all x" or each one); an item with intervals is a union (e.g. two branches of arcsec). null in a preset clears the main example's restriction. |
| restricted | boolean | false | Start with the first restriction switched on. |
| traced | boolean | false | Inverse, combine and reciprocal modes: start with the whole derived curve drawn (otherwise it is traced as the probe moves; a switch draws it whole). |
| showTangents | boolean | false | Inverse mode: tangent lines at P and at its mirror Q, with the slopes f'(a) and 1/f'(a) (vertical at Q when f'(a) = 0). |
| inverseFormula | string | string[] | none | Inverse mode: a formula for the inverse, drawn dashed and checked against Q at x = f(a). A list gives one formula per restriction (the i-th belongs to the i-th restriction; shown while it is active). |
| inverseSlope | string | none | Inverse mode, with showTangents: a formula for the derivative of the inverse in x (e.g. "1/sqrt(1 - x^2)"), evaluated at x = f(a) and compared with the slope at Q. |
| showIntercepts | boolean | false (true in the bare render) | Point mode: mark and list the y-intercept (0, f(0)) and the x-intercepts in view. |
| showDomain | boolean | false | Point mode: shade the inputs where f has a value on the x-axis and the outputs reached on the y-axis, with the domain and range of the shown part as inequalities. |
| vlines | (number | string)[] | none | Dashed vertical guides (asymptotes); strings are evaluated, a leading "x =" is ignored ("x = pi/2"). |
| hlines | (number | string)[] | none | Dashed horizontal guides (asymptotes); a leading "y =" is ignored. |
| xRange | [number, number] | [-5, 5] | Visible x range. |
| yRange | [number, number] | from the curve over the x range | Visible y range. |
| equalAspect | boolean | true in inverse mode, else false | Same scale on both axes (mirror images in y = x look like mirror images). |
| presets | {label, ...props}[] | none | Other examples in an "Example" dropdown; each overrides the props it names. A preset that sets f or pieces drops the main example's f, pieces, point, level, inverseFormula and inverseSlope. |
| presetLabel | string | "Main example" | Dropdown name of the configuration given by the props themselves. |
| controls | string[] | all controls shown | Registry ids of the optional toggles and readouts to show (core controls always show). Fitted per node by tooling; absent shows everything. |
PreviousNext