Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Compute Multiple Integrals

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

To compute multiple integrals, use nested calls to int. For example, compute the surface area and the volume of a sphere using spherical coordinates.

Compute the expression for the surface area of a sphere. The distance from the center of a sphere to the surface remains constant, r = R. The angle ϕ changes its value from 0 to π. The angle χ changes its value from 0 to 2 π:

int(int(R^2*sin(phi), phi = 0..PI), chi = 0..2*PI)

Compute the expression for the volume of a sphere. The angles accept the same values, but the distance from the center of any point inside the sphere ranges from 0 to R. To find the volume, compute the following triple integral:

int(int(int(r^2*sin(phi), r = 0..R), phi = 0..PI), chi = 0..2*PI)

Was this topic helpful?