Professional Documents
Culture Documents
Lab 1 & 2 Calculus For It - 501031: 1 Exercises
Lab 1 & 2 Calculus For It - 501031: 1 Exercises
Lab 1 & 2 Calculus For It - 501031: 1 Exercises
Lab 1 & 2
CALCULUS FOR IT - 501031
1 Exercises
Exercise 1: Write a computer program to compute the functions in their domain
√
(a) f (x) = x 5x2 + 8x − 3 (k) f (x) = ex
√ (f) f (x) =
(b) f (x) = 3 x 3x2 + 2
2
(c) f (x) = x 3 (g) f (x) = sin(x) (l) f (x) = log2 (x)
x3 x2 1 (h) f (x) = cos(x)
(d) f (x) = − − 2x + (m) f (x) = log10 (x)
3 2 3 (i) f (x) = 3x
2x2 − 3
(e) f (x) = (j) f (x) = 10−x (n) f (x) = ln(x)
7x + 4
√
Note: It notes that the function name is defined by the type of function. For example, f (x) = x
has the function name that will be defined as Exponentialfunction_a(x)
Exercise 2: Write a computer program to find the range of the functions below
x2
(
(a) f (x) = 2 + 2 with x ∈ [−2, 2] x, x ≥ 0
x +4 (e) f (x) = , with x = 3, x = −3
−x, x < 0
√
(b) f (x) = 5x + 10 with x ∈ [0, 5]
−x, x < 0
2 (f) f (x) = x2 , 0 ≤ x ≤ 1 , with x = 3, x = −3,
(c) f (x) = 2 with x ∈ [5, 10]
x − 16 1, x > 1
1
(d) f (x) = x4 + 3x2 − 1 with x ∈ [−3, 3] and x =
2
Exercise 3: Write a computer program to identify the arbitrary function that is categorized as
(a) Even function.
(b) Odd function.
(c) Increasing function.
(d) Decreasing function.
And then, perform to evaluate the below functions that is even, odd, or neither.
Anh H. Vo - vohoanganh@tdtu.edu.vn 1
Ton Duc Thang University
Faculty of Information Technology
Finally, specify the intervals over which the function is increasing and the intervals where it is
decreasing.
Exercise 6: Write a computer program to compute the composites of function f1 (x) and f2 (x). Meanwhile,
f1 = x + 5 and f2 (x) = x2 − 3.
x = 4sin(t)5 + 5
y = 3cos(t) − 1.7cos(2t) − cos(3t) + 1
f1 (x) = −x + 5
1
f2 (x) = + 2
2
Find the appropriate x values for these functions, and mark the intersection point of f1 and f2 .
s r
p |x|
Exercise 9: Write a computer program to plot the functions: f1 (x) = 1 − (| x | −1)2 , f2 (x) = −3 1 − .
2
f1 is drawn with magenta color, f2 is drawn with red color, and x ∈ [−2, 2].
Exercise 10: Write a computer program to show the original and shifted graphs together, labeling each
graph with its equation in these following cases
(a) f (x) = x2 + k, for k = 2, 4, 6, 8, 10, 12, (e) f (x) = x2/3 , right 1, down 1.
and x ∈ [−10, 10]. 1
(f) f (x) = (x + 1) + 5, down 5, right 1.
(b) f (x + k) = (x + k)2 , for k = 2, 4, 6, 8, 10, 12, 2
and x ∈ [−10, 10]. 1
(g) f (x) = 2 , left 2, down 1.
√ 1 x
(c) f (x) = k x, for k = , 1, 3, 6, and x ∈ [1, 50].
3 (h) f (x) = 1 − x3 , stretched horizontally
(d) f (x) = x3 , left 1, down 1. by a factor of 2.
Anh H. Vo - vohoanganh@tdtu.edu.vn 2
Ton Duc Thang University
Faculty of Information Technology
√ √
(i) f (x) = x + 1, compressed horizontally (j) f (x) = x + 1, stretched vertically
by a factor of 4. by a factor of 3.
Anh H. Vo - vohoanganh@tdtu.edu.vn 3