You are on page 1of 1

int

Integrate

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

Description
int(S) returns
symvar.
int(S,v)

the indefinite integral of S with respect to its symbolic variable as defined by

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


variable. a and b are symbolic or double scalars.
int(S,v,a,b)

of S with respect to the default symbolic

returns the definite integral of S with respect to v from a to b.

Examples
syms x t z alpha;
int(-2*x/(1+x^2)^2)

returns
1/(x^2 + 1)
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

cos(t)^2
int([exp(t),exp(alpha*t)])

returns

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

You might also like