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

PropTypeDefaultDescription
titlestring"u-substitution, step by step"Title bar text.
integrandstring"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.
ustring"2*x^3 - 1"The substitution u = g(x), as an expression in x (a leading "u =" is allowed).
solveForstring | nullnullHow 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] | nullnullDefinite mode: the x-limits [a, b]; strings like "pi/3" are allowed.
methodstring"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).
showMixedErrorbooleanfalseDefinite 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.
antiderivativestring | nullnullAn 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.
rulestring | nullnullText shown at the integration step (plain text with $TeX$), e.g. the table entry used.
notestring | nullnullShort caption under the problem (plain text with $TeX$), e.g. a domain restriction or a hint.
labelstringthe integrandChip 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.
activeExamplenumber0Problem shown first: 0 = the main props, k = examples[k - 1].
stepnumber0Number of steps revealed at start (0 = only the problem; a large number shows all).
editablebooleantrueShow the input panel so the learner can type their own integrand, u, solve-for line and limits.
controlsstring[]all controls shownRegistry 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.