Solid Volume Builder

The learner turns a plane region about an axis (a Turn slider and a Revolve button) and watches the solid it sweeps, drawn in 3-D next to the region; options cut the solid into n disks, washers or cylindrical shells (or the curve into frustum bands for surface area), whose sum approaches the volume as n grows, with a draggable highlighted element and its radius readouts. Slices mode stacks slabs with square, semicircular or triangular cross-sections on a base region. Readouts add the region's area, the surface area, the centroid for Pappus's theorem and the wrong washer formula.

Used in: Single Variable Calculus

Props

PropTypeDefaultDescription
titlestring"Solid of revolution" ("Volume by slicing" in slices mode)Card title.
modestring"slices" when crossSection or area is given, else "revolution"revolution: a region turned about an axis. slices: a solid whose cross-sections perpendicular to the x-axis (or y-axis for a region given in y) are known shapes standing on a base region.
region{top?, bottom?, x: [a, b]} | {right?, left?, y: [c, d]}{"top": "1 + x^2/4", "bottom": "0", "x": [0, 2]}The plane region: between y = bottom(x) and y = top(x) for a <= x <= b, or between x = left(y) and x = right(y) for c <= y <= d. Curves are expressions (a leading "y =" / "x =" is ignored; missing curves are 0) in x or y and the parameter names; interval ends may be parameter expressions such as "t". In band mode, top (or right) is the curve whose surface is measured. In slices mode it is the base.
axisstring"x-axis"Axis of revolution: "x-axis" (or "x"), "y-axis" (or "y"), "x = h" or "y = k", where h, k are numbers or parameter names ("x = h" with a slider for h).
methodstring"none" (the bare default example: "disk")Elements shown first: none (just the solid), disk or washer (strips perpendicular to the axis; labelled washers when the strip does not reach the axis), shell (strips parallel to the axis), band (frustum bands along the curve, for surface area).
methodsstring[]["none", method] (bare default: ["none", "disk", "shell"])Elements the learner can switch between with the "Build it from" toggle, e.g. ["washer", "shell"] to compare the two methods on one region. disk and washer are one option.
ninteger6Starting number of elements (disks, washers, shells, bands or slabs).
nRange[integer, integer][1, 40]Range of the n slider (upper end capped at 120).
samplestring"mid"Sample point x* of each disk, washer, shell or slab: left end, midpoint or right end of its subinterval (the element uses the radius, height or area there). Use left/right where midpoints happen to be exact (e.g. disks of y = sqrt(x)).
turnnumber360Starting angle in degrees through which the region has turned (0 to 360); the learner drags the Turn slider or presses Revolve.
crossSectionstring"square"Slices mode: shape of each cross-section, whose side s spans the base: square (s^2), semicircle (pi s^2/8), equilateral-triangle (sqrt(3) s^2/4), right-triangle-leg (isosceles right triangle with a leg on the base, s^2/2), right-triangle-hypotenuse (hypotenuse on the base, s^2/4), rectangle (height crossSectionHeight).
crossSectionHeightnumber1Slices mode: the height of rectangle cross-sections.
areastringnoneSlices mode: the cross-section area A(x) as an expression (e.g. "x^2"), used instead of crossSection; sections are drawn as squares of that area. Without curves in region, region.x gives the interval.
parameters{name, min, max, initial?, step?, label?}[][]Named parameters, each with a slider; usable in the curves, the interval ends, the axis ("x = h") and exact.
xRange[number, number]from the region and the axisVisible x range of the region view. Along a horizontal axis it also cuts off the 3-D drawing (for long solids such as y = 1/x on [1, t]).
yRange[number, number]from the region and the axisVisible y range of the region view (cuts off the 3-D drawing along a vertical axis).
exactnumber | stringnoneThe verified exact volume (e.g. "8*pi", "64/15"; may use parameters), shown in TeX next to the computed value; a mismatch is flagged.
showSurfaceAreabooleanfalseAdds the area of the solid's curved surface (swept by top/right) to the readouts.
showPappusbooleanfalseMarks the region's centroid and the circle it travels, with the centroid, its distance r to the axis and A times 2 pi r (Pappus's theorem) in the readouts.
showWrongFormulabooleanfalseWith washers: adds the common wrong formula pi times the integral of (R - r)^2 next to the volume.
presets{label, ...any of the view props}[]noneOther examples offered in an "Example" dropdown; each overrides the props it names (one with its own region drops the base exact, xRange and yRange).
presetLabelstring"Main example"Dropdown name of the configuration given by the props themselves.
controlsstring[]all controls shownRegistry ids of the optional toggles and readouts to show (core controls always show). Fitted per node by tooling; absent shows everything.