Integration by Parts Stepper

The learner clicks a factor of a product integrand to make it u (factors tagged with their LIATE class) and steps through du, v and the new integral of v du, seeing whether the choice makes the integral simpler, harder or impossible (no elementary v). A tabular mode fills the derivative and antiderivative columns with signed diagonal products, and a solve-for-I mode steps two rounds on a cycling integrand until I reappears and solves for it (the opposite second choice gives I = I).

Used in: Single Variable Calculus

Props

PropTypeDefaultDescription
titlestring"Integration by parts"Title bar text.
mode"choose" | "tabular" | "solve-for-I""choose"choose: pick u and dv, one round at a time (repeat rounds allowed). tabular: the derivative / antiderivative table for polynomial times f. solve-for-I: two rounds on a cycling integrand, then solve I = E + cI.
integrandstring"x*cos(x)" (tabular "x^3*sin(x)", solve-for-I "exp(x)*sin(x)")Product integrand in x. Accepts + - * / ^, implicit products ("x e^x", "2x"), e^(...), exp, ln/log, sqrt, sin cos tan sec csc cot, arcsin arccos arctan. The top-level factors become the clickable chips.
choices{u: string, dv?: string, label?: string}[]none (each factor of the integrand as u)choose mode: preset splits shown as buttons, e.g. a failing LIATE split. dv defaults to the integrand divided by u; u * dv must equal the integrand.
initialChoicenumbernonechoose mode: index into choices (or into the factors when choices is absent) to preselect as the first round's split.
initialStepnumber0Step shown at load. choose (with initialChoice): 1 u and dv, 2 du, 3 v, 4 parts formula, 5 verdict / answer. tabular: rows revealed after the first (0 to the last row). solve-for-I (with firstChoice): 1 to 8, 8 = solved; steps past 3 need secondChoice.
showLiateClassesbooleantrueTag each factor chip with its LIATE class (L, I, A, T, E) and show which factor LIATE suggests as u.
polynomialstringpolynomial factor of integrandtabular mode: u = p(x), differentiated until 0. With f, overrides integrand.
fstringthe other factor of integrandtabular mode: dv = f(x) dx, integrated repeatedly (e^(kx), sin kx, cos kx ...).
maxRoundsnumber6choose mode: most rounds of repeated parts; tabular mode stops after maxRounds + 2 rows when the derivative column never reaches 0.
firstChoice{u: string, dv?: string}none (the learner clicks a factor)solve-for-I mode: the first round's split.
secondChoice"same" | "opposite"none (the learner picks)solve-for-I mode: preselected second-round choice. same: u is again the factor of the first u's type. opposite: u = the first round's v, which gives I = I.
showWrongSecondChoicebooleantruesolve-for-I mode: also offer the opposite second choice (swap back), which ends in I = I.
examples{label?, mode?, integrand?, choices?, initialChoice?, polynomial?, f?, firstChoice?, secondChoice?, initialStep?, note?}[]nonePresets for an Example picker; each uses the same prop names. When integrand/polynomial are absent, the first preset loads at start.
notestringnoneShort caption above the stepper (plain text with $TeX$).
allowInputbooleantrueShow a box where the learner types their own integrand.
showModeTogglebooleantrueShow the Choose u / Tabular / Solve for I switch.
showCheckbooleantrueUnder every final answer, differentiate it and show the integrand comes back.
labelstringnoneName of the starting preset in the Example picker (only used with examples).
controlsstring[]all controls shownRegistry ids of the hideable controls to show (e.g. readout.liate, repeat.again, mode.tabular, mode.solve-for-i, readout.nonelementary). 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.