Download MAT 305 Fall 2009 Assignment 3: Mean Value Theorem & Min-Max Points - Prof. John Perry and more Assignments Mathematics in PDF only on Docsity! TEAM ASSIGNMENT 3 MAT 305 FALL 2009 1. DIRECTIONS The groups for this assignment are Group 1 Group 2 Group 3 Names deleted Group 4 Group 5 Solve the following problems in a Sage worksheet. Each group should submit one worksheet. Submit the worksheet by sharing the worksheet with my account (mat305_fa2009) at https://sage.st.usm.edu:8000/ If you wish, you may share with all the members of the group who are registered at that website, but this is not necessary. Remember to list all team names on the worksheet, or I will deduct 10% for inconveniencing me to look up your names. Submitted worksheets should include comments at the beginning of each function indicating the function’s purpose, the meaning of the inputs, the intended output, and an example invoca- tion. The due date for this assignment is 2. THE ASSIGNMENT 1. Write a Sage interact that demonstrates: The Mean Value Theorem of Derivatives. For any function f that is differentiable over the closed interval [a, b], there exists some c ∈ (a, b ) such that the slope of the tangent line at x = c is precisely the slope of the secant line connecting (a, f (a)) and (b , f (b )). That is, f ′ (c) = f (b )− f (a) b − a . The Sage interact should: • Offer the user input boxes for a function f and endpoints a and b of the interval. • Compute f ′ (x). • Compute m = f (b )− f (a)b−a . • Use the code one of your teams developed to implement Newton’s Method to approxi- mate a root of the equation f ′ (x) = m for x, thus computing c . • Combine the following plots that represent the Theorem: – a plot of f (x) over the interval [a, b]; – points at (a, f (a)), (b , f (b )), and (c , f (c)); – the secant line joining (a, f (a)) and (b , f (b )); and – the tangent line at (c , f (c)). If all goes well, the two lines displayed should be parallel. You do not need to supply pseudocode for your function. 2. [from the old textbook, p. 138 Ex. 7] Suppose f is a function of two variables defined on a rectangle R= [a, b]× [c , d] in the plane. Write a function to approximate the minimum and maximum values of f on R and return the corresponding points. (Pseudocode appears on the following page.) Write another function that produces a 3d plot of f on R, and vertical line segments connecting the points xmin/max, ymin/max, 0 and xmin/max, ymin/max, zmin/max . Test your functions using • f (x, y) = xe−x2−y2 over [−2,2]× [−2,2], and • g (x, y) = 5 (x + y)/ 1+ x2+ y2 over [−5,5]× [−5,5]. 3. ( Optional Bonus: counts as a free assignment in any category you choose!) In my office, I have a paper published in a recent issue of College Math Journal (or maybe Math Magazine, I forget) on “Sledge-Hammer Integration”. Come to my office, read the paper, and implement Sledge- Hammer Integration in Sage.