Cylindrical Shell Calculator
Volume of a solid of revolution using the shell method: V = 2π ∫ab x · f(x) dx, about the y-axis.
The region under f(x) from x = a to x = b is revolved around the y-axis. Requires 0 ≤ a < b and f(x) ≥ 0 on [a, b].
Some of the most interesting volumes in calculus come from spinning a flat region around an axis: vases, bowls, domes, and machine parts that no box formula can describe. When you revolve the area under a curve around the y-axis, the natural tool is the method of cylindrical shells — you slice the region into thin vertical strips, roll each strip into a hollow tube, and add up the tubes. The Cylindrical Shell Calculator does exactly that: pick a function, set your limits, and it evaluates V = 2π ∫ x · f(x) dx with a high-precision numeric integration, showing the formula, the intermediate sums, and the final volume.
This is the calculator students reach for when homework asks for a volume “using the shell method,” and the one engineers use for a quick sanity check on a revolved part before committing to CAD. Doing the integral by hand means finding an antiderivative, which is not always possible in closed form — and even when it is, the arithmetic is error-prone. Numeric integration with Simpson’s rule and 1,000 subintervals gives an answer accurate to many decimal places in a fraction of a second, and the step-by-step breakdown shows how the number was built so you can learn from it, not just copy it.
What This Calculator Does
This calculator computes the volume of the solid you get by revolving the region under f(x), between x = a and x = b, around the y-axis — using cylindrical shells. You choose one of six built-in functions (√x, x, x², x³, 2x + 1, or 4 − x²) and enter the lower and upper limits. It then evaluates the shell integral V = 2π ∫[a,b] x · f(x) dx numerically with Simpson’s rule (n = 1,000 subintervals). The result panel shows the volume to four decimals, a sample table of x, f(x), and the shell integrand x · f(x) at the endpoints and midpoint, and a “Formula & breakdown” section with the subinterval width, the Simpson sums, the integral value, and the final multiplication by 2π.
How to Use the Calculator
Select your function from the dropdown — the box starts with f(x) = √x and limits a = 1, b = 4, so you can press Calculate immediately. Type the lower limit a and the upper limit b; the calculator requires 0 ≤ a < b and that the function stay non-negative on the interval (it checks this at 21 sample points). Press Calculate to see the volume, the sample table, and the full breakdown. Press Reset to restore the defaults. Because the integration is numeric, any of the six functions works on any valid interval — you are not limited to functions with tidy antiderivatives.
The Shell Method, Explained Simply
Picture the region under the curve between x = a and x = b. Cut it into thin vertical strips. Take one strip at position x with tiny width dx: its height is f(x). Now revolve that strip around the y-axis — it sweeps out a thin hollow cylinder (a “shell”) with radius x, height f(x), and thickness dx. Unroll the shell and it is approximately a rectangular slab with volume (circumference) × (height) × (thickness) = 2πx · f(x) · dx. Add up all the shells from a to b and you get V = 2π ∫[a,b] x · f(x) dx. The x in the integrand is the radius of each shell — that is why the method is natural for rotation about the y-axis, and why intervals must stay at x ≥ 0, where “radius” makes sense.
How the Numeric Integration Works
Instead of hunting for an antiderivative, the calculator evaluates the integral with Simpson’s rule, a classic numerical method. It divides [a, b] into n = 1,000 equal subintervals of width h = (b − a)/1000, evaluates g(x) = x · f(x) at every grid point, and combines them with the weights 1, 4, 2, 4, 2, …, 4, 1: integral ≈ h/3 × [g(a) + g(b) + 4·(odd sum) + 2·(even sum)]. With 1,000 subintervals, the error is negligible for smooth functions — typically far below the fourth decimal place shown. The breakdown section displays h, both sums, the integral, and the final 2π multiplication, so every digit is traceable.
Worked Example 1: f(x) = √x from 1 to 4
Revolve the region under √x from x = 1 to x = 4 around the y-axis. By hand: the integrand is x · √x = x^(3/2), whose antiderivative is (2/5)x^(5/2). Evaluate from 1 to 4: (2/5)(4^(5/2) − 1^(5/2)) = (2/5)(32 − 1) = (2/5)(31) = 62/5 = 12.4. Multiply by 2π: V = 2π × 12.4 = 77.9115 cubic units. The calculator agrees exactly: with a = 1, b = 4, it reports h = 0.003, odd-index sum 2066.6663, even-index sum 2062.1674, integral 12.400000, and volume 77.9115. The sample table shows the integrand x · f(x) growing from 1.0000 at x = 1, through 3.9528 at the midpoint x = 2.5, to 8.0000 at x = 4 — you can see each shell getting bigger as the radius grows.
Worked Example 2: f(x) = x² from 0 to 2
Now revolve the parabola y = x² from x = 0 to x = 2 around the y-axis — this makes a bowl-like solid. The integrand is x · x² = x³, with antiderivative x⁴/4. Evaluate 0 to 2: (16/4) − 0 = 4. Multiply by 2π: V = 2π × 4 = 8π ≈ 25.1327 cubic units. Enter f(x) = x², a = 0, b = 2 in the calculator and it returns 25.1327, matching 8π to four decimals. This example is a favorite in textbooks because the antiderivative is trivial, which makes it perfect for checking that you (or the calculator) set up the shell integral correctly: radius x, height x², dx, from 0 to 2.
Worked Example 3: f(x) = x from 1 to 3
Revolve the region under the line y = x from x = 1 to x = 3 around the y-axis. The integrand is x · x = x², antiderivative x³/3. Evaluate 1 to 3: (27/3) − (1/3) = 26/3 ≈ 8.6667. Multiply by 2π: V = 2π × 8.6667 ≈ 54.4543 cubic units. Notice the lower limit is 1, not 0 — the region starts away from the axis, so the solid is a “hollow” shape with a cylindrical hole of radius 1 down the middle, and the shell method handles it with no extra work: the integral simply starts at x = 1. Washers would need an outer-minus-inner setup here; shells just integrate.
Shells vs. Washers: When to Use Which
Both methods compute volumes of revolution, and they always agree — they are two ways of slicing the same solid. Use shells when revolving around the y-axis with x as the variable (vertical strips become natural tubes), especially when the region is described as “under y = f(x)”. Use washers when revolving around the x-axis (horizontal slices become disks with holes). The classic trap is revolving around the y-axis but setting up washers, which forces you to invert the function to x = g(y) — often messy or impossible. If the problem says “about the y-axis” and gives y as a function of x, shells are almost always the easier path, and this calculator is built for exactly that case.
Reading Your Results
The headline number is the volume in cubic units — “units” because the calculator does not know whether your x is inches, meters, or abstract units; the volume unit is whatever your length unit is, cubed. The sample table (x, f(x), x · f(x) at a, the midpoint, and b) lets you verify the integrand behaves sensibly across the interval — a sudden jump or negative value would signal a bad interval choice. The breakdown’s five steps then show the complete numerical recipe: the shell formula with your numbers, Simpson’s h, the two weighted sums, the integral, and the final 2π multiplication. If your instructor asks to “show your work,” these steps are the numeric counterpart of the analytic setup.
Common Mistakes to Avoid
First, forgetting the x in the integrand — the shell volume is 2π ∫ x·f(x) dx, not 2π ∫ f(x) dx; dropping the radius factor is the single most common setup error. Second, using a < 0: shell "radius" x must be non-negative, so intervals crossing the y-axis are invalid here (split the region or use washers instead). Third, revolving around the wrong axis — this calculator always revolves around the y-axis; a problem about the x-axis needs washers. Fourth, letting f(x) go negative on the interval, which would subtract volume instead of adding it; the calculator rejects such intervals. Fifth, mixing up shells and washers when the region touches the axis: with shells, a region starting at x = 0 is fine and automatic — no "inner radius" bookkeeping needed.
Frequently Asked Questions
1. What is the cylindrical shell formula?
For a region under y = f(x) from x = a to x = b revolved about the y-axis: V = 2π ∫[a,b] x · f(x) dx. Each shell contributes circumference 2πx times height f(x) times thickness dx.
2. When should I use the shell method instead of washers?
Use shells when revolving around the y-axis (or a vertical line) with y given as a function of x — vertical strips become natural tubes. Use washers when revolving around the x-axis, where horizontal slices become disks.
3. Why is there an x multiplied in the integrand?
The x is the shell’s radius. A shell at position x has circumference 2πx, so its volume is 2πx · f(x) · dx. Shells farther from the axis are bigger around, and the x factor captures exactly that.
4. What functions can this calculator handle?
Six built-ins: √x, x, x², x³, 2x + 1, and 4 − x². Because the integration is numeric (Simpson’s rule), any of them works on any valid interval — no antiderivative required.
5. What are the requirements for a and b?
You need 0 ≤ a < b, and f(x) must stay non-negative on [a, b]. The calculator validates both and explains which rule failed. For f(x) = 4 − x², for example, b must not exceed 2.
6. How accurate is Simpson’s rule here?
With n = 1,000 subintervals, the error for smooth functions is far below the displayed fourth decimal — the √x example matches the exact value 77.9115 to all shown digits.
7. What does “revolved around the y-axis” mean?
Take the flat region under the curve and spin it a full 360° around the vertical y-axis, like a vase on a potter’s wheel. The calculator always uses the y-axis as the axis of rotation.
8. Can the region start away from the axis?
Yes — set a > 0, as in Example 3 (x = 1 to 3). The solid then has a cylindrical hole down the middle, and the shell integral handles it automatically with no extra setup.
9. What are “cubic units”?
The volume unit corresponding to whatever unit your x and f(x) are measured in, cubed. If x is in inches, read the answer as cubic inches; if in meters, cubic meters.
10. Why do shells beat washers for y-axis rotation?
Washers for y-axis rotation require solving y = f(x) for x = g(y), which is often difficult or impossible. Shells integrate in x directly, so you never invert the function.
11. What is Simpson’s rule in simple terms?
It approximates the area under a curve by fitting parabolas through triplets of points instead of straight lines (trapezoids). The 1-4-2-4-…-1 weighting pattern makes it remarkably accurate with modest effort.
12. Can f(x) touch zero at an endpoint?
Yes. Endpoints where f(x) = 0 are fine — only negative values inside the interval are rejected, since they would subtract volume rather than add it.
13. How do I check my hand calculation?
Compute the antiderivative of x · f(x), evaluate it from a to b, and multiply by 2π. Example 1 shows the full hand computation for √x from 1 to 4 giving 77.9115, matching the calculator.
14. Does the calculator show intermediate steps?
Yes — the “Formula & breakdown” section lists the shell formula with your numbers, Simpson’s subinterval width h, the odd and even weighted sums, the integral value, and the final 2π multiplication.
15. What if my function is not in the list?
The six built-ins cover the most common textbook cases (powers, roots, lines, and a downward parabola). For anything else, the same Simpson’s-rule recipe applies — evaluate x · f(x) on a fine grid and combine with the 1-4-2 pattern.
Final Thoughts
The shell method turns an intimidating volume problem into one clean idea: every vertical strip becomes a tube, and the tubes add up to 2π ∫ x · f(x) dx. Whether you are checking calculus homework or estimating a revolved part, the Cylindrical Shell Calculator pairs that idea with a thousand-subinterval Simpson integration and a transparent step-by-step breakdown. Pick your function, set your limits, and read off a volume you can trust — then use the worked examples above to make sure the setup behind it makes sense, not just the number in front of you.