Accumulation Function Explorer

The learner drags the upper limit x of A(x) = integral of f from a to x and watches the signed area on the integrand's graph build the linked graph of A, whose slope at x is f(x). Options add a draggable lower limit (A shifts by a constant), a split point, |f| for distance, a comparison integrand, symmetric limits, limits that are functions of x (Leibniz rule), parameter sliders, and a logarithmic slider that pushes a limit toward infinity or a singularity to test an improper integral.

Used in: Mathematical Analysis, Single Variable Calculus

Props

PropTypeDefaultDescription
titlestringby mode ("Accumulation function", ...)Card title.
fstring"cos(t)"The integrand, in t (or x: both mean the integration variable) and the parameter names. A leading "y =" is ignored. Supports + - * / ^, implicit multiplication, |u|, comparisons (< <= > >= give 1 or 0), if(cond, a, b), sin cos tan sec csc cot, their inverses (asin, arcsec, ...), sinh cosh tanh sech csch coth and inverses (asinh, acosh, atanh, asech, acsch, acoth), sqrt cbrt exp ln log (natural) log10 log2 abs sign floor ceil min max, pi, e, inf.
pieces{f: string, to?: number}[]nonePiecewise integrand instead of f: piece i holds on [to of piece i-1, to), the last piece to the right of the previous to. E.g. [{"f": "15", "to": 2}, {"f": "-10"}].
fTexstringprinted from fTeX for the integrand in the formula line, when the automatic printing is not what the page uses.
parameters{name, min, max, initial?, step?, label?}[][]Named parameters, each with a slider; usable in f, the limits, the ranges and every formula prop. x and t are reserved.
lowernumber | string0Lower limit a. A string may use parameters ("a", "-2*a"); a string in x makes it a moving limit u(x) (variable-limit mode).
uppernumber | stringlower + 2Starting position of the moving upper limit x (or the fixed upper limit b when moving is "lower"; the half-width a when symmetric). A string in x makes it v(x) (variable-limit mode).
movingstring"upper"Which limit the learner drags: upper (A(x) = integral from a to x) or lower (A(x) = integral from x to b, e.g. pushing a limit toward a singularity at 0).
lowerDraggablebooleanfalseAlso let the learner drag the lower limit a: the whole A curve shifts by a constant (FTC part 2).
lowerRange[number | string, number | string]the viewRange of the lower-limit handle (draggable a, or the moving limit when moving is "lower"). Entries may use parameters.
upperRange[number | string, number | string]the viewRange of the moving upper limit (or of the half-width a when symmetric). When it reaches past the view, a slider appears; when it spans 100x or more from a positive start (e.g. [1, 10000]), the slider and the A axis become logarithmic (improper integrals).
symmetricbooleanfalseLimits -a and a: the learner drags a and sees the two halves and their sum, with the mirror image f(-t) for even/odd comparison.
splitnumbernoneA draggable split point c: shows the integrals from a to c and from c to x and their sum (additivity; c may lie outside the interval).
splitRange[number, number]the viewRange of the split-point handle.
xnumbermiddle of xBoundsVariable-limit mode: starting value of x.
xBounds[number, number][0, 2]Variable-limit mode: slider range of x.
antiderivativestringnoneA closed form F(x), drawn dashed on the accumulation graph (it differs from A by the constant F(a)), with the readout F(b) - F(a).
derivativestringnoneVariable-limit mode: the closed form of G'(x), shown next to the computed f(v)v' - f(u)u'.
wrongDerivativestringnoneVariable-limit mode: a common wrong answer for G'(x) (e.g. without the chain-rule factor), shown for contrast.
referencestringnoneA reference curve in x drawn dotted on the accumulation graph, e.g. "ln(x)" for power antiderivatives pinned at 1.
referenceLabelstring"reference"Legend label of the reference curve ($...$ TeX allowed).
comparestringnoneA comparison integrand g, drawn dashed with its own accumulation (comparison tests).
showRatiobooleanfalseWith compare: show the ratio f(x)/g(x) (limit comparison test).
distancestring"off"off; toggle (a switch adds the integral of |f|: total area / distance); on (always shown). Adds |f| to the graph and the net, total, above and below readouts.
showTangentbooleantrueTangent to A at x with slope f(x), and the A'(x) = f(x) readout (linear axes only).
stripnumber0 (off)Width h of a highlighted strip from x to x + h, with a slider and the readout (A(x+h) - A(x))/h next to f(x).
targetnumbernoneA level for A: a horizontal line and the readout of the x where A reaches it (e.g. 1 for ln x = 1 at x = e).
limitnumber | stringnoneKnown value of the improper integral, drawn as a horizontal line; may use parameters, e.g. "if(p > 1, 1/(p - 1), inf)" (not drawn when infinite).
initialValuenumber | string0Starting amount Q(a): the graph shows Q(x) = Q(a) + integral from a to x (net change). May name a parameter to get a slider.
singularitiesnumber[]detectedPoints where f has a vertical asymptote. Detected automatically; list them when detection could miss one. An interval containing one shows as diverging/undefined.
labels{t?, x?, f?, A?, g?: string}$t$, $x$, $f(t)$, $A(x)$Axis and legend labels ($...$ TeX), e.g. {"t": "t (h)", "f": "v (km/h)", "A": "position (km)"}.
xRange[number, number]from the limitsHorizontal range of the integrand graph (and of the A graph on linear axes).
yRange[number, number]autoVertical range of the integrand graph.
accRange[number, number]autoVertical range of the accumulation graph.
presets{label, ...props}[][]Further examples in a dropdown. A preset that sets f or pieces replaces the integrand-specific props (antiderivative, compare, limit, split, ...) of the main example; other props are inherited.
presetLabelstring"Main example"Dropdown label of the main example when presets are given.
controlsstring[]all controls shownIds of the hideable controls to show (see the controls registry); core ones always show. Absent = everything. Fitted per page by tooling, not by hand.