int or Int - definite and indefinite integration
|
Calling Sequence
|
|
int(expression, x)
|
|
Int(expression, x)
|
|
int(expression, x=a..b)
|
|
Int(expression, x=a..b)
|
|
|
|
int(expression, [x, y])
int(expression, x=a..b, opt)
int(expression, [x=a..b, y=c..d, ...], opt)
Int(expression, x=a..b, opt)
int(f, a..b, opt)
int(f, [a..b, c..d, ...], opt)
Int(f, a..b, opt)
|
|
Parameters
|
|
expression
|
-
|
algebraic expression; integrand
|
x,y
|
-
|
name; variable of integration
|
a, b, c, d
|
-
|
endpoints of interval on which integral is taken
|
f
|
-
|
operator; integrand
|
opt
|
-
|
(optional) a sequence of one or more of the options listed below
|
|
|
|
|
Options
|
|
•
|
The following options, which are described in more detail in the sections below, apply to definite integrals only. Where indicated, some options take their default value from environment variables. An option has a default value of false if its corresponding environment variable is not set.
|
Specifies whether int considers all possible real values for any symbols in the limits of integration. The default value is taken from _EnvAllSolutions.
Specifies whether int looks for discontinuities. The default value is taken from _EnvContinuous.
•
|
CauchyPrincipalValue=truefalse
|
Specifies whether a principal value integral is computed, that is, whether infinities are allowed to cancel in some cases. The default value is taken from _EnvCauchyPrincipalValue.
Specifies which internal integration routine(s) to use. See int/methods for more details.
Specifies whether numeric integration methods are used instead of symbolic methods. If numeric=true is specified, other numeric integration options can be specified. See evalf/Int for more details.
|
|
Basic Information
|
|
•
|
This help page contains complete information about the int and Int commands. For basic information, see the int help page.
|
|
|
Description
|
|
•
|
The int command computes an indefinite or definite integral of the expression expression with respect to the variable x. The name integrate is a synonym for int.
|
•
|
You can enter the command int using either the 1-D or 2-D calling sequence. For instance, int(f,x) is equivalent to .
|
•
|
Indefinite integration is performed if the second argument x is a name. Note that no constant of integration appears in the result. Definite integration is performed if the second argument is of the form x=a..b where a and b are the endpoints of the interval of integration.
|
|
If a and b are finite complex numbers, the int routine computes the definite integral over the straight line from a to b.
|
•
|
If the integrand is specified as a Maple operator f, then the second argument must be a range a..b and not an equation, that is, a variable of integration must not be specified.
|
•
|
If Maple cannot find a closed form expression for the integral, the function call itself is returned.
|
•
|
The capitalized function name Int is the inert version of the int function, which simply returns unevaluated. It appears gray so that it is easily distinguished from a returned int calling sequence. In this form, expression can be a procedure, which can be integrated numerically.
|
•
|
For numerical integration, use the option numeric. For more information on numerical integration, see evalf/Int.
|
•
|
If the second argument is a list, an iterated integration is performed on the variables or ranges in the order given. For definite integration, the list can be omitted and the ranges can be given as a sequence. For indefinite integration, the variables can be given as a sequence instead of a list if all variables appear in the expression being integrated. Otherwise, there may be confusion between variables and option names.
|
|
Handling Discontinuities
|
|
•
|
Note that the indefinite integral in Maple is defined up to a piecewise constant. Hence, the results returned by int may be discontinuous at some points. In many cases, you can ensure continuity by replacing an indefinite integration problem by the corresponding definite integral.
|
| (1) |
>
|
int( floor(t), t = 0..x ) assuming x > 0;
|
| (2) |
•
|
For symbolic definite integration, two options control how discontinuities are handled. By default, int checks for discontinuities, and computes the integral as a sum of independent definite integrals, each of which involves an integrand which has no discontinuities in the interior of the interval of integration.
|
•
|
The 'continuous' option instructs int not to look for discontinuities.
|
•
|
The 'CauchyPrincipalValue' option instructs int to consider the limits from the left and right at each interior discontinuity as a single limit (so that the independent variable approaches the discontinuity at the same rate from the right and the left). This allows for positive and negative infinite limits to cancel.
|
|
|
Returning the Entire Set of Solutions
|
|
•
|
The 'AllSolutions' option, if set, forces int to return the entire set of solutions for the specified definite integral. This applies only to parameters in the endpoints of the interval, not to parameters in the integrand.
|
|
Note: The results returned with the 'AllSolutions' option may not be valid for some non-real parameter values. The results are always valid for all real parameter values.
|
|
|
|
Notes
|
|
•
|
The Maple series function may be invoked on an unevaluated integral to compute a series expansion of the integral (when possible).
|
•
|
When int is applied to a series structure, the internal function `int/series` is invoked to compute the integral efficiently.
|
|
|
Examples
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
>
|
|
| (12) |
The inert version of the int function simply returns unevaluated.
>
|
|
>
|
|
| (13) |
Inert objects can be evaluated with the value command.
>
|
|
| (14) |
A double integral
>
|
|
| (15) |
>
|
|
| (16) |
>
|
|
| (17) |
>
|
|
| (18) |
>
|
|
| (19) |
>
|
|
| (20) |
An Elliptic integral
>
|
|
| (21) |
Integrating algebraic functions (only for RootOf notation)
>
|
|
| (22) |
>
|
|
>
|
|
| (23) |
>
|
|
| (24) |
Define a Maple operator using the unapply command.
>
|
|
| (25) |
>
|
|
| (26) |
Specify the 'AllSolutions' option.
>
|
|
| (27) |
>
|
|
| (28) |
>
|
|
| (29) |
>
|
|
| (30) |
>
|
|
| (31) |
>
|
|
| (32) |
>
|
|
|
|
See Also
|
|
DEtools[integrate_sols], diff, elliptic_int, evalf, evalf/Int, int, IntegrationTools, inttrans[fourier], inttrans[laplace], inttrans[mellin], iscont, limit, series, symbolic order integration, unapply, VectorCalculus, VectorCalculus[int]
|
|