Substitution Integral Stepper
The learner types an integrand and a choice of u (optionally limits) and steps through du, the rewrite in u, solving for a leftover x, the integration and the back-substitution. A missing constant factor is absorbed, a missing non-constant factor leaves an x that is flagged, and in definite mode changing the limits and returning to x give the same number while the mixed-up route (u-antiderivative with x-limits) gives a different one, side by side.
Used in: Single Variable Calculus
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "u-substitution, step by step" | Title bar text. |
| integrand | string | "x^2*(2*x^3 - 1)^4" | The integrand in x, typed as an expression: + - * / ^, implicit products (2x, 2x cos(x^2)), sqrt, exp or e^(...), ln, sin, cos, tan, sec, arcsin, arctan, |x|, pi. |
| u | string | "2*x^3 - 1" | The substitution u = g(x), as an expression in x (a leading "u =" is allowed). |
| solveFor | string | null | null | How to express a leftover x through u, e.g. "x = u - 3" or "x^2 = u - 1" (left side x or x^n). When u is linear in x this step is automatic; for other u, without solveFor a leftover x is flagged as a failed choice. |
| limits | [number | string, number | string] | null | null | Definite mode: the x-limits [a, b]; strings like "pi/3" are allowed. |
| method | string | "change-limits" | Definite mode route shown in the step list (the learner can switch): change-limits (convert the limits to u) or return-to-x (substitute back, use the x-limits). |
| showMixedError | boolean | false | Definite mode: also show the mixed-up route (u-antiderivative evaluated at the x-limits) and its wrong number beside the two correct routes. The learner can toggle it. |
| antiderivative | string | null | null | An antiderivative F(u) of the u-integrand, for integrals beyond the built-in rules (e.g. a table entry). It is checked numerically; if it does not differentiate back, the widget says so. |
| rule | string | null | null | Text shown at the integration step (plain text with $TeX$), e.g. the table entry used. |
| note | string | null | null | Short caption under the problem (plain text with $TeX$), e.g. a domain restriction or a hint. |
| label | string | the integrand | Chip text for the main problem when examples are given (plain text with $TeX$). |
| examples | {label?, integrand, u, solveFor?, limits?, method?, antiderivative?, rule?, note?}[] | [] | More problems shown as chips the learner can switch to, including failing choices of u (e.g. e^(x^2) with u = x^2). Items without integrand or u are skipped. |
| activeExample | number | 0 | Problem shown first: 0 = the main props, k = examples[k - 1]. |
| step | number | 0 | Number of steps revealed at start (0 = only the problem; a large number shows all). |
| editable | boolean | true | Show the input panel so the learner can type their own integrand, u, solve-for line and limits. |
| controls | string[] | all controls shown | Registry ids of the hideable panels and toggles to show (panel.solve-for, panel.limits, toggle.method, toggle.mixed-route). Core controls always show; absent shows everything. Fitted by tooling from the props and what the lecture has taught; authors do not pick it by hand. |