int
Definite and indefinite integrals
Syntax
Description
specifies additional options using one or moreF
= int(___,Name,Value
)Name,Value
pair arguments. For example,'IgnoreAnalyticConstraints',true
specifies thatint
applies additional simplifications to the integrand.
Examples
Input Arguments
提示s
In contrast to differentiation, symbolic integration is a more complicated task. If
int
cannot compute an integral of an expression, check for these reasons:The antiderivative does not exist in a closed form.
The antiderivative exists, but
int
不能鳍d it.
If
int
cannot compute a closed form of an integral, it returns an unresolved integral.Try approximating such integrals by using one of these methods:
For indefinite integrals, use series expansions. Use this method to approximate an integral around a particular value of the variable.
For definite integrals, use numeric approximations.
For indefinite integrals,
int
does not return a constant of integration in the result. The results of integrating mathematically equivalent expressions may be different. For example,syms x; int((x+1)^2)
returns(x+1)^3/3
, whilesyms x; int(x^2+2*x+1)
returns(x*(x^2+3*x+3))/3
, which differs from the first result by1/3
.For indefinite integrals,
int
implicitly assumes that the integration variablevar
is real. For definite integrals,int
restricts the integration variablevar
to the specified integration interval. If one or both integration boundsa
andb
are not numeric,int
assumes thata <= b
unless you explicitly specify otherwise.
Algorithms
When you useIgnoreAnalyticConstraints
,int
applies some of these rules:
log(a) + log(b) = log(a·b)for all values ofaandb. In particular, the following equality is valid for all values ofa,b,c:
(a·b)c=ac·bc.
log(ab) =b·log(a)for all values ofaandb. In particular, the following equality is valid for all values ofa,b,c:
(ab)c=ab·c.
Iffandgare standard mathematical functions andf(g(x)) =xfor all small positive numbers, thenf(g(x)) =xis assumed to be valid for all complex valuesx. In particular:
log(ex) =x
asin(sin(x)) =x,acos(cos(x)) =x,atan(tan(x)) =x
asinh(sinh(x)) =x,acosh(cosh(x)) =x,atanh(tanh(x)) =x
Wk(x·ex) =xfor all branch indiceskof the LambertWfunction.