IntegrationTools
CollapseNested
collapse a nested integral into a multiple integral
Calling Sequence
Parameters
Description
Examples
CollapseNested(v)
CollapseNested(v, options)
v
-
nested integral expression
options
(optional) specify one or more of the following: stripoptions, intersectoptions, matchtypes, norecurse
The function CollapseNested collapses a nested integral into a multiple integral given as a single Int or int function call.
If v is an expression of nested definite and indefinite integrals, only the matching integrals will be collapsed.
You can control whether options present in the integral v will appear in the output. If the option stripoptions is given, none of the options in the integral v will appear in the output. If the option intersectoptions is given, the options that appear in every integral will appear in the output. Otherwise, all options on any of the integrals will appear in the output.
If the option matchtypes is given, only integrals of the same type will be collapsed. For example, two nested Int integrals will be collapsed, but nested int and Int integrals will not be collapsed.
If the option norecurse if given, only the outermost integrals will be collapsed.
with⁡IntegrationTools:
i1≔Int⁡Int⁡f⁡x,y,x,y
i1≔∫∫f⁡x,yⅆxⅆy
i2≔CollapseNested⁡i1
i2≔∫∫f⁡x,yⅆxⅆy
The display of i1 and i2 look the same but in fact the integrals have different structure:
lprint⁡i2=i1
Int(f(x,y),[x, y]) = Int(Int(f(x,y),x),y)
CollapseNested⁡Int⁡Int⁡f⁡x,y,x=a..b,y=c..d
∫cd∫abf⁡x,yⅆxⅆy
CollapseNested⁡Int⁡Int⁡f⁡x,y,x=a..b,CauchyPrincipalValue,y=c..d
Typesetting:-_Hold⁡Int⁡f⁡x,y,x=a..b,y=c..dCauchyPrincipalValue
CollapseNested⁡Int⁡Int⁡f⁡x,y,x=a..b,CauchyPrincipalValue,y=c..d,stripoptions
CollapseNested⁡Int⁡Int⁡f⁡x,y,x=a..b,AllSolutions,CauchyPrincipalValue,y=c..d,CauchyPrincipalValue,intersectoptions
Collapsing integrals will match the outermost type of integral
CollapseNested⁡Int⁡int⁡f⁡x,y,x,y
∫∫f⁡x,yⅆxⅆy
lprint⁡
Int(f(x,y),[x, y])
CollapseNested⁡Int⁡int⁡f⁡x,y,x,y,matchtypes
Int(int(f(x,y),x),y)
CollapseNested⁡Int⁡Int⁡Int⁡Int⁡f⁡x,y,x=a..b,y=c..d,x,y
∫∫∫cd∫abf⁡x,yⅆxⅆyⅆxⅆy
Int(Int(f(x,y),[x = a .. b, y = c .. d]),[x, y])
CollapseNested⁡Int⁡Int⁡Int⁡Int⁡f⁡x,y,x=a..b,y=c..d,x,y,norecurse
Int(Int(Int(f(x,y),x = a .. b),y = c .. d),[x, y])
See Also
int
IntegrationTools[ExpandMultiple]
Download Help Document