Definite and indefinite integrals
specifies additional options using one or more F
= int(___,Name,Value
)Name,Value
pair arguments. For example, 'IgnoreAnalyticConstraints',true
specifies that int
applies additional simplifications to the
integrand.
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
cannot find
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
, while
syms x; int(x^2+2*x+1)
returns
(x*(x^2+3*x+3))/3
, which differs from the first result by
1/3
.
For indefinite integrals, int
implicitly
assumes that the integration variable var
is
real. For definite integrals, int
restricts the
integration variable var
to the specified integration
interval. If one or both integration bounds a
and b
are
not numeric, int
assumes that a <=
b
unless you explicitly specify otherwise.
When you use IgnoreAnalyticConstraints
, int
applies
these rules:
log(a) + log(b) = log(a·b) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(a·b)c = ac·bc.
log(ab) = b·log(a) for all values of a and b. In particular, the following equality is valid for all values of a, b, and c:
(ab)c = ab·c.
If f and g are standard mathematical functions and f(g(x)) = x for all small positive numbers, then f(g(x)) = x is assumed to be valid for all complex values x. 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) = x for all branch indices k of the Lambert W function.
changeIntegrationVariable
| diff
| dsolve
| functionalDerivative
| integrateByParts
| release
| symvar
| vpaintegral