Mth517 WK 11 Matlab: Integral Calculus
Mth517 WK 11 Matlab: Integral Calculus
Mth517 WK 11 Matlab: Integral Calculus
Integral Calculus
Commands on Integral Calculus
• int (exp, var) - Computes the indefinite integral of exp with respect to the symbolic variable
var. If you do not specify var, int uses the default variable x.
• int (exp, var, a, b) or int (exp, var, [a b]) - Computes the definite integral of exp with respect to var
from a to b.
Exercises on Integration
1. Find the indefinite integral of the following functions.
ˆ ˆ
2
a.) x dx b.) x3 dx
ˆ ˆ
1 √
c.) 2
dx d.) xdx
x
ˆ ˆ
−1
e.) x dx f.) 4 cos xdx
ˆ ˆ
2
3x6 − 2x2 + 7x + 1 dx
g.) x + x dx h.)
ˆ 2
t − 2t4
i.) dt
t4
2. Find the definite integral of the following functions.
ˆ 3 ˆ 1
a.) x dx b.) x dx
0 −2
ˆ 1 ˆ π
1
c.) (1 − x) dx d.) cos x dx
−1 2 0
ˆ 3 ˆ 2
e.) x−1 dx f.) |2x − 3| dx
0.1 −1
ˆ 1 √ ˆ π/3
g.) 1 − x2 dx h.) sin x dx
−1 −π/3
ˆ 3 ˆ 2√
i.) |x − 2|dt j.) 4 − x2 dx
0 0
3. Evaluate the following integrals (indicated u-substitutions are for your manual calculations).
1
ˆ
a.) 2x(x2 + 1)23 dx; (Hint : u = x2 + 1)
ˆ
b.) cos3 x sin xdx; (Hint : u = cos x)
ˆ
1 √ √
c.) √ sin xdx; (Hint : u = x)
x
ˆ
3xdx
d.) √ ; (Hint : u = 4x2 + 5)
4x 2+5
ˆ
e.) sec2 (4x + 1)dx; (Hint : u = 4x + 1)
ˆ p
f.) y 1 + 2y 2 dy; (Hint : u = 1 + 2y 2 )
4. Evaluate the following integrals. (For manual calculations, utilise the method of Integration
by Parts.)
ˆ ˆ
−2x
a.) xe dx b.) xe3x dx
ˆ ˆ
2
c.) x sin 3xdx d.) x2 cos 2xdx
ˆ ˆ
√
e.) x ln xdx f.) x ln xdx
ˆ
g.) ex sin xdx h.)e3x cos 2xdx
5. Evaluate the following integrals. (For manual calculations, utilise decomposition by Partial
Fractions.)
ˆ ˆ
dx dx
a.) b.)
x2 − 3x − 4 x2 − 6x − 7
ˆ ˆ
2x2 − 9x − 9 dx
c.) dx d.)
x3 − 9x x(x2 − 1)
ˆ ˆ
3x2 − 10 x2
e.) 2
dx f.) 2
dx
x − 4x + 4 x − 3x + 2
ˆ ˆ
x5 + x2 + 2 x5 − 4x3 + 1
g.) dx h.) dx
x3 − x x3 − 4x
ˆ ˆ
6x − 5 2x2 − 1
i.) dx j.) dx
(x − 4)(x2 + 1) (4x − 1)(x2 + 1)