int - Integrate

Syntax

int(S)
int(S,v)
int(S,a,b)
int(S,v,a,b)

Description

int(S) returns the indefinite integral of S with respect to its symbolic variable as defined by findsym.

int(S,v) returns the indefinite integral of S with respect to the symbolic scalar variable v.

int(S,a,b) returns the definite integral from a to b of each element of S with respect to each element's default symbolic variable. a and b are symbolic or double scalars.

int(S,v,a,b) returns the definite integral of S with respect to v from a to b.

Examples

int(-2*x/(1+x^2)^2) returns

1/(1+x^2)

int(x/(1+z^2),z) returns

x*atan(z)

int(x*log(1+x),0,1) returns

1/4

int(2*x, sin(t), 1) returns

1-sin(t)^2

int([exp(t),exp(alpha*t)]) returns

[exp(t), 1/alpha*exp(alpha*t)]

See Also

diff, symsum

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS