DGS Studio

Multiple Integrals

Product Surface over a Rectangle

Draw the signed volume of x*y over the rectangle 0 ≤ x ≤ 1, 0 ≤ y ≤ 2. The iterated integral is 1.

Generate Graph draws integrate(integrate(x*y,x,0,1),y,0,2) in the existing 3D viewer. The surface is z = x*y over the rectangle 0 ≤ x ≤ 1, 0 ≤ y ≤ 2, and the signed volume equals the integral 1. The floor is the region in the xy-plane.

Orbit, zoom, pan, and the existing export stay on this viewer. The integrand is not replaced by its inner antiderivative before the surface is sampled.

Equation

integrate(integrate(x*y,x,0,1),y,0,2)

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