0% found this document useful (0 votes)
30 views8 pages

Differentiation: Math Command MATLAB Command Diff (F) or Diff (F, X) Diff (F, A) Diff (F, B, 2)

This document provides MATLAB commands and examples for differentiation, limits of functions, and integration. Some key MATLAB commands are diff() for differentiation, limit() for limits, and int() for integration. Examples include differentiating functions like sin(x^2)/6, evaluating limits like lim_(x->5) (3-125/x), and taking integrals like ∫_0^∞ e^{-2x} dx.

Uploaded by

Marian Celeste
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views8 pages

Differentiation: Math Command MATLAB Command Diff (F) or Diff (F, X) Diff (F, A) Diff (F, B, 2)

This document provides MATLAB commands and examples for differentiation, limits of functions, and integration. Some key MATLAB commands are diff() for differentiation, limit() for limits, and int() for integration. Examples include differentiating functions like sin(x^2)/6, evaluating limits like lim_(x->5) (3-125/x), and taking integrals like ∫_0^∞ e^{-2x} dx.

Uploaded by

Marian Celeste
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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