Double and Triple Integral Calculator

Type the integrand and the bounds of each level, inner bounds may depend on the outer variables, and get the exact value where a rule applies, a numeric check, the setup, each step and a sketch of the region.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose the type

    Pick double or triple and the coordinate system that fits the region.

  2. 2
    Enter the integrand

    Type f in x, y, z or directly in r, θ, ρ and φ.

  3. 3
    Set the bounds

    Fill one row per level, innermost first; inner bounds may use outer variables.

  4. 4
    Read the result

    See the exact value, the decimal, the numeric check and the average value.

  5. 5
    Follow the steps

    Read each antiderivative and the evaluation at the limits, level by level.

  6. 6
    Check the sketch

    Look at the shaded region or rotate the solid, then export or print the report.

About this tool

A double or triple integral adds up a quantity over a region of the plane or of space: area, volume, mass, charge, probability, or the average height of a surface. In practice almost every such integral is evaluated as an iterated integral, one variable at a time from the inside out, and the hard part for most students is not the antiderivative but the setup: which variable goes inside, which bounds are numbers and which are curves, and what extra factor appears when you leave Cartesian coordinates. This calculator is built around that setup. Each level of the integral gets its own row with a variable and two bounds. The outer bounds must be numbers, while an inner bound may be any expression in the variables outside it, so a region between y = x² and y = x, a triangle under the plane x + y + z = 1 or a cone above r = z can all be entered as they appear in a textbook. Choose polar coordinates for disks, sectors and cardioids, cylindrical coordinates for solids with a vertical axis, and spherical coordinates for balls and cones from the origin. The integrand can be written in x, y and z; the tool substitutes x = r cos θ and friends for you and multiplies by the Jacobian r or ρ² sin φ automatically, with a checkbox to turn that off when your integrand already contains it. Every level is first attempted symbolically with the site's computer algebra engine, using term-by-term integration, constant factors, linear substitutions and u-substitutions where the remaining factor is a multiple of the inner derivative. Independently, the whole integral is always computed numerically with nested ten-point Gauss-Legendre quadrature at two resolutions, so you also see an error estimate. The exact answer is only reported when the symbolic chain and the numeric value agree.

What you see after each change

The result panel gives the value as an exact expression when one was found, such as 3/20, 8π or π − π/e, along with its decimal, the method used and a numeric check. It also reports the area of the region for a double integral or the volume of the solid for a triple integral, computed with the same bounds and Jacobian, and divides to give the average value of the integrand over the region. The setup panel lists the bounds from the outside in, the substitution and the Jacobian, and the final integrand. The step panel shows, for each level, the antiderivative and the rule that produced it, the value at the upper and lower limits, and the simplified difference that becomes the integrand of the next level. The sketch draws the region of a double integral as a shaded shape in the xy-plane, and the solid of a triple integral as a rotatable wireframe of its lower and upper surfaces, which is a quick way to catch a bound typed the wrong way round.

Worked example

Take the example "∬ (x + y) over the region between y = x² and y = x". The inner integral runs in y from x² to x and the outer one in x from 0 to 1. Integrating x + y in y gives xy + y²/2. At y = x this is 3x²/2 and at y = x² it is x³ + x⁴/2, so the first level leaves 3x²/2 − x³ − x⁴/2. Integrating that from 0 to 1 gives 1/2 − 1/4 − 1/10 = 3/20. The numeric check agrees to about fifteen digits. The region has area 1/6, so the average value of x + y over it is (3/20) ÷ (1/6) = 0.9. In spherical coordinates the ball of radius 3 example integrates ρ² sin φ and returns 36π, the familiar 4/3 π r³.

Limits

The symbolic engine does not know every integration technique: integrands such as sqrt(1 − x² − y²) or e^(x²) are integrated numerically, which is clearly labelled. The tool does not change the order of integration of a general region for you; reversing the order is only offered when all bounds are constants. Improper integrals with infinite bounds or singular integrands are not supported and can give inaccurate numbers.

Worked example

∬ (x + y) dy dx with x² ≤ y ≤ x, 0 ≤ x ≤ 1 = 3/20; area 1/6, average 0.9. The ball of radius 3 has volume 36π.

Quick facts

Frequently asked questions

How do I enter a region that is not a rectangle?

Put the variable whose bounds are curves in the inner row and write those curves in terms of the outer variable, for example y from x^2 to x with x from 0 to 1. Only the outermost bounds have to be plain numbers.

Do I have to include the r in polar coordinates myself?

No. With the Jacobian box ticked the tool multiplies by r in polar and cylindrical coordinates and by ρ² sin φ in spherical coordinates. Untick it if your integrand already includes that factor.

Why is my answer shown only as a decimal?

Some level had no symbolic rule, or the symbolic result did not match the numeric integral. In both cases you get the Gauss-Legendre value with an error estimate instead of a possibly wrong formula.

What order should the variables be in?

The first row is the innermost integral. Its bounds may use every variable in the rows below it. The last row is the outermost integral and needs constant bounds.

Can I find areas and volumes?

Yes. Set the integrand to 1 and the value is the area of the region or the volume of the solid. The calculator also shows the area or volume next to every other integral.

How accurate is the numeric value?

Smooth integrands on finite regions are usually right to ten or more digits. The tool computes the integral at two resolutions and shows the difference, so a large estimate warns you about a kink or a singularity.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages