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
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "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. |
| integrand | string | "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. |
| initialChoice | number | none | choose mode: index into choices (or into the factors when choices is absent) to preselect as the first round's split. |
| initialStep | number | 0 | Step 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. |
| showLiateClasses | boolean | true | Tag each factor chip with its LIATE class (L, I, A, T, E) and show which factor LIATE suggests as u. |
| polynomial | string | polynomial factor of integrand | tabular mode: u = p(x), differentiated until 0. With f, overrides integrand. |
| f | string | the other factor of integrand | tabular mode: dv = f(x) dx, integrated repeatedly (e^(kx), sin kx, cos kx ...). |
| maxRounds | number | 6 | choose 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. |
| showWrongSecondChoice | boolean | true | solve-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?}[] | none | Presets for an Example picker; each uses the same prop names. When integrand/polynomial are absent, the first preset loads at start. |
| note | string | none | Short caption above the stepper (plain text with $TeX$). |
| allowInput | boolean | true | Show a box where the learner types their own integrand. |
| showModeToggle | boolean | true | Show the Choose u / Tabular / Solve for I switch. |
| showCheck | boolean | true | Under every final answer, differentiate it and show the integrand comes back. |
| label | string | none | Name of the starting preset in the Example picker (only used with examples). |
| controls | string[] | all controls shown | Registry 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. |