Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
diff Examples

Differentiate.

Syntax

Description

diff(S) differentiates a symbolic expression S with respect to its free variable as determined by findsym.

diff(S,'v') or diff(S,sym('v')) differentiates S with respect to v.

diff(S,n), for a positive integer n, differentiates S n times.

diff(S,'v',n) and diff(S,n,'v') are also acceptable.

Examples

Assume

Then

returns

and

returns

See also

int, jacobian, findsym



[ Previous | Help Desk | Next ]