You are on page 1of 8

Differentiation

Math Command
2 2

MATLAB Command
diff(f) or diff(f, x) diff(f, a) diff(f, b, 2)

Examples: Differentiate the following functions:

1.

3 3

sin 2
6

2.

2 3. 2

2 + 3 2

Limit of a Function
Math Command lim
0

MATLAB Command limit(f) limit(f, x, a) or limit(f, a)


limit(f, x, a, right)

lim
lim+

lim

limit(f, x, a, left)

Example: Evaluate the following: 1.


2.
210 lim 3 125 5
sin lim 0

3.
4.

3 lim 2 9 3
sin + sin lim 0

5.

sin + sin lim 0

6.

1 lim+ 0

and

1 lim 0

7.

2 1 lim 1+ sin 1 2

Integration
Math Command ,

MATLAB Command int(f) or int(f, x) int(f, y)


int(f, a, b) or int(f, x, a, b)

int(f, y, a, b)

Examples: Evaluate the following:

1.
2. 3.

5
sin2 cos cos +
21 1

4.

5.

1 0

ln

6.

2 0

You might also like