definite and indefinite integrals -pg电子麻将胡了
definite and indefinite integrals
description
computes the indefinite integral of f = int(expr)expr.
int uses the default integration variable determined by
(expr,1). if expr is a
constant, then the default integration variable is x.
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.
examples
input arguments
tips
in contrast to differentiation, symbolic integration is a more complicated task. if
intcannot compute an integral of an expression, check for these reasons:the antiderivative does not exist in a closed form.
the antiderivative exists, but
intcannot find it.
if
intcannot 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,
intdoes 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,
intimplicitly assumes that the integration variablevaris real. for definite integrals,intrestricts the integration variablevarto the specified integration interval. if one or both integration boundsaandbare not numeric,intassumes thata <= bunless you explicitly specify otherwise.
algorithms
when you use ignoreanalyticconstraints, int
applies some of 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.