DGS Studio

Multiple Integrals

Triangle under x + y

Draw x + y over the triangle 0 ≤ x ≤ 1, 0 ≤ y ≤ x. The iterated integral is 1/2.

Generate Graph draws integrate(integrate(x+y,y,0,x),x,0,1) over the triangle 0 ≤ y ≤ x, 0 ≤ x ≤ 1. The surface is z = x + y. Sample points stay inside that triangle, and the signed volume is 1/2.

The upper wall follows y = x. A rectangle is not substituted for the variable bound. The same viewer is used for the rectangular product example.

Equation

integrate(integrate(x+y,y,0,x),x,0,1)

How an iterated integral is evaluated

A double integral adds a scalar over a plane region, and a triple integral adds it over a solid. DGS reads the nested integrate command from the inside out. The inner integral is evaluated before the outer one, and a bound may depend on a variable that has not yet been integrated. Constant bounds describe a rectangle or a box. A bound such as y = x or z = 1 - x - y describes a triangle or a tetrahedron. Reversing a pair of limits keeps that orientation and changes the sign. An exact antiderivative is preferred. A numerical value is shown only when quadrature stays inside its error tolerance, and the steps call that value an approximation.

Polar, cylindrical, and spherical commands are coordinate transformations, and they are separate from a bare nested integrate command. The polar area factor is r. The cylindrical volume factor is r. The spherical volume factor is rho^2 sin(phi), with phi measured from the positive z-axis and theta around from the positive x-axis. Each of those factors is applied once. If the integrand already contains the factor, it is not multiplied again. A nested integrate command, even one whose variables are named r and theta, uses the integrand as written and does not insert a Jacobian. The picture of a polar region may divide a finite integrand by r so the height is a Cartesian surface. That division is display geometry. It is not a second copy of the Jacobian, and a singular quotient is drawn as the region rather than as an invented volume.

Reading the input

Try a change

Generate Graph draws a double integral as a surface over its region in the existing 3D viewer, including variable bounds and a polar coordinate map. A triple integral draws the solid with transparent faces and the written limits. Orbit, zoom, pan, and the existing export stay on that viewer.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples