Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 1263
Image: ubuntu2004
# Ashley Garvey # I comfirm. I understand
%typeset_mode True

(0a) Please type your name at the top of the worksheet as a comment.

(0b) The policy for the exam is as follows: Do your exam independently. Do not engage in consultation with others. (Exception: You are encouraged to ask me questions in the public chat, the private chat, or in a breakout.) During the exam, you may use your class notes, code you wrote previously, Sage and CoCalc, and resources posted on our Blackboard site. You are not permitted to engage with any other resources of any kind anywhere. Please confirm your compliance with the academic honesty policy for this quiz and your understanding of the consequences for violations. You can do this by typing I confirm. I understand.\texttt{I confirm. I understand.}.

(1) Define the function f(x)=ex2{\displaystyle f(x) = e^{-x^2}}, sometimes written equivalently as f(x)=exp(x2)f(x) = \exp(x^2), for use throughout this worksheet. Calculate the second derivative of f(x)f(x) (the derivative of the derivative) using Sage. Call it fpp(x)\texttt{fpp(x)}. (Remember we can differentiate the function h(x)h(x) in Sage using the syntax derivative(h(x), x)\texttt{derivative(h(x), x)} or using the calculus menu.)

f(x) = e**(-x**2)
f(x)
e^(-x^2)
derivative(f(x), x)
-2*x*e^(-x^2)
derivative(derivative(f(x), x))
4*x^2*e^(-x^2) - 2*e^(-x^2)
fpp(x) = 4*x**2*e**(-x**2) - 2*e**(-x**2)
fpp(x)
4*x^2*e^(-x^2) - 2*e^(-x^2)
# Problem (2) # Sorry i do not know where my problem 2 has run to!
plot(fpp(x), xmin=0, xmax= 2)

(3) What is the largest value (an upper bound) MM that the absolute value of fpp(x)(x) could be on the interval 0x20 \le x \le 2 (meaning what is the farthest distance from the xx-axis that the graph of the second derivative of f(x)f(x) can get)? Explain your answer by referring to the graph.

# The largets value M (upperbound), that the absolute value of fpp(x) could be is 1. The reason or this is when you look at the graph the largest value for fpp(x) on the y axis is 1.

(4) When Simpson's Rule is used to estimate the area under a curve given by y=f(x)y = f(x) on an interval [a,b][a, b], the error (difference) between the numerical estimate and the exact area AA is known to be at most E=(ba)312n2ME = {\displaystyle \frac{(b-a)^3}{12 n^2} M}, where MM is any upper bound on f(x)|f''(x)| on [a,b][a, b], and nn is a number of subintervals used in the estimation. For f(x)=ex2f(x) = e^{-x^2} on the interval [0,2][0, 2], where a=0a = 0 and b=2b = 2, find an exact value of EE if n=6n = 6. (Use your work in (3) to help you.) Find a decimal approximation for EE, as well.

E = (((b-a)**3)/ 12*n**2)*M
Error in lines 1-1 Traceback (most recent call last): File "/cocalc/lib/python3.8/site-packages/smc_sagews/sage_server.py", line 1230, in execute exec( File "", line 1, in <module> NameError: name 'b' is not defined
M=1 a=0 b=2 E= 1/54

(5) Consider a numerical estimate for the area under a curve given by y=h(x)y = h(x) on an interval [a,b][a, b]. Suppose the numerical estimate is 0.4788 and the exact area is AA. If we know the error (difference) between the estimate 0.4788 for the area and the exact area AA is at most 0.1, could the exact area be AA = 0.55? Why or why not? What is the biggest the exact area AA could be? What is the smallest it could be?

# Yes the area could be 0.55 becuase the estimate is 0.4788 with an exact at most 0.1, which means the highest area could be either 0.57 and the lowest could be 0.37. Thus 0.37<A<0.57.