Optimization Scene
An applied scene (a fence, a box folded from a sheet, a box of fixed volume, a sliding ladder, a growing square, a filling cone) redrawn as the learner drags one dimension. Optimization scenes link the picture to the graph of the objective on its feasible interval, with the constraint that reduces two dimensions to one, the critical numbers and a candidates table; related-rates scenes play time forward at a constant known rate and graph the unknown rate, which is not constant, with the differentiated relating equation solved at the current instant.
Used in: Single Variable Calculus
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | by scene ("Fencing the largest area", "Sliding ladder", ...) | Card title. |
| scene | string | "fence" | The picture. Optimization: fence (rectangle of perimeter P, against a wall when sides = 3), box (open box folded from a sheet after cutting squares of side x from the corners), box-fixed-volume (open box with square base x and volume V; minimise the surface area). Related rates: ladder (length L, foot sliding away at dx/dt), square (side s growing at ds/dt), cone (inverted conical tank of top radius R and height H filling at dV/dt). |
| sides | 3 | 4 | 3 | fence: 3 = the wall is one side (2x + y = P, x is the side perpendicular to the wall); 4 = all four sides fenced (2x + 2y = P). |
| P | number | 160 | fence: total length of fence. |
| sheet | number | [number, number] | 12 | box: the sheet, square (side) or [a, b] (sides); the box has width a - 2x, length b - 2x and height x. |
| V | number | 500 | box-fixed-volume: the fixed volume x^2 y; the surface area is S = x^2 + 4V/x. |
| L | number | 5 | ladder: length of the ladder (x^2 + y^2 = L^2). |
| R | number | 2 | cone: radius of the top of the tank. |
| H | number | 4 | cone: height of the tank. |
| rate | number | 1 (ladder dx/dt, cone dV/dt), 0.5 (square ds/dt) | Related rates: the known constant rate, dx/dt (ladder), ds/dt (square) or dV/dt (cone). |
| start | number | a quarter of the domain (optimization); L/5, 1 or H/20 (ladder, square, cone) | Starting value of the dragged dimension: x in optimization scenes; the length x, s or the depth h at time t = 0 in related-rates scenes. |
| tRange | [number, number] | from t = 0 until the ladder is nearly flat, the cone is full, or t = 10 (square) | Related rates: time interval of the t slider and of Play (cut where the scene ends). |
| at | number | none | Related rates: the instant of interest, given as the value of x (ladder), s (square) or h (cone). The scene opens there, the rate graph marks it and a button jumps back to it. |
| showDifferentiatedEquation | boolean | true (when controls lists it) | Related rates: the relating equation differentiated with respect to t, solved for the unknown rate, with the current numbers put in. |
| objective | string | the scene's own formula | Optimization: the objective as a formula in x (a leading "A =" is ignored), shown and graphed; may use the scene's constants (P; a, b; V). It is checked against the picture, and a mismatch is flagged. |
| domain | [number, number | null] | from the constraint ([0, P/2], [0, min(a, b)/2], (0, ∞)) | Optimization: feasible interval of x; null = no upper end. |
| goal | string | max (fence, box), min (box-fixed-volume), or from expected | Optimization: whether the objective is maximised or minimised. |
| showConstraint | boolean | true (when controls lists it) | Optimization: panel showing the objective in two dimensions, the constraint solved for the other dimension, the inequalities that give the domain, and the objective in x alone. |
| expected | {argmax?, max?, argmin?, min?: number} | none | Optimization: the verified optimum; a mismatch with the computed one is flagged (author check, not shown otherwise). |
| xRange | [number, number] | the domain (unbounded: three times the first critical number) | Optimization: horizontal view of the objective graph; parts outside the domain are drawn dashed. |
| yRange | [number, number] | auto | Optimization: vertical view of the objective graph. |
| parameters | {name, min, max, initial?, step?, label?}[] | [] | Sliders for scene constants: P (fence), a and b (box sheet), V (box-fixed-volume), L and rate (ladder), rate (square), R, H and rate (cone). Formulas in objective may use the same names. |
| presets | {label, ...props}[] | [] | Other versions of the problem in an "Example" dropdown; each overrides the props it names. A preset that changes scene, sides or sheet drops the base objective, domain, expected, xRange, yRange, start, at and tRange. |
| presetLabel | string | "Main example" | Dropdown name of the configuration given by the props themselves. |
| controls | string[] | all controls shown | Ids of the hideable readouts and panels to show (see the controls registry); core ones always show. Absent = everything. Fitted per page by tooling, not by hand. |
PreviousNext