Lab05_06
Lab05_06
Lab 4 & 5
CALCULUS FOR IT - 501031
1 Exercises
Exercise 1: Write a computer program to find the derivative of functions
Exercise 2: Find the equation of the line tangent of the following functions, then draw the graph.
Exercise 3: Find the slope of the curve at the point indicated, and then find the equation of the corre-
sponding tangent.
Hint:
f (x0 + ∆x) − f (x0 )
• f 0 (x0 ) = lim∆x→0
∆x
• Calculate function value at a point.
Exercise 5: Using the definition formula of derivatives f to find the values of the derivatives as specified.
1 0 √
(a) f (x) = 4 − x2 , f 0 (−3), f 0 (0), f 0 (1) (c) g(t) = , g (−1), g 0 (2), g 0 ( 3)
t 2
1−z 0 √
(b) F (x) = (x − 1)2 + 1, F 0 (−1), F 0 (0), F 0 (2) (d) k(z) = , k (−1), k 0 (1), k 0 ( 2)
2z
Anh H. Vo - [email protected] 1
Ton Duc Thang University
Faculty of Information Technology
f (z) − f (x)
f 0 (x) = limz→x
z−x
1 x
(a) f (x) = (c) f (x) =
x+2 x−1
√
(b) f (x) = x2 − 3x + 4 (d) f (x) = 1 + x
• Step 1: Plot y = f (x) over the interval (x0 − 1/2 ≤ x ≤ (x0 + 3))
• Step 2: Holding x0 fixed, the difference quotient
f (x0 + h) − f (x0 )
q(h) =
h
at x0 becomes a function of the step size h.
• Step 3: Find the limit of q as h → 0.
• Step 4: Define the tangent lines y = f (x0 ) + q(x − x0 ) for h = 3, 2 and 1. Graph them together
with f and the tangent line over the interval in step 1.
Evaluate program by the functions
Exercise 8: Given f (x) = x3 − 3x + 1 (C). Find the tangent line of (C) in the cases:
(a) At a point x0 = 3
(b) The tangent line is parallel to y = 9x + 2
2
(c) The tangent line at A = ( , −1)
3
Exercise 9: Find f 0 (x) and use it to find equations of the tangent lines to curve f (x) = 4x2 − x3 at points
(2, 8) and (3, 9). Illustrate your result by graphing the curve and the tangent lines on the same graph.
Anh H. Vo - [email protected] 2
Ton Duc Thang University
Faculty of Information Technology
x2 sin 1 , if x 6= 0
(b) f (x) = x
0 if x = 0
Anh H. Vo - [email protected] 3
Ton Duc Thang University
Faculty of Information Technology
Anh H. Vo - [email protected] 4