Question: Consider the function f(x) Vx+Vx+ Vr and Xo = 4. We numerically estimate f'(20) and f(20). 1 (a) Using differentiation rules, compute f'(X). (b) Write

 Consider the function f(x) Vx+Vx+ Vr and Xo = 4. We

Consider the function f(x) Vx+Vx+ Vr and Xo = 4. We numerically estimate f'(20) and f"(20). 1 (a) Using differentiation rules, compute f'(X). (b) Write a matlab function FpVector=MP3 (hVector,f, x0) for the three-point midpoint formula that takes different h values as a vector hVector, a function f, and x0 and outputs several estimates of the derivative of f at 20 as a vector FpVector. (C) Apply (b) using h = [0.5, 0.1, 0.01) to estimate f'(20). Compare this results with the exact result in (a). (d) Write a matlab function FppVector=SecondDMP (hVector,f,x0) for the second derivative midpoint formula that takes different h values as a vector hVector, a function f, and x0 and outputs several estimates of the second derivative of f at xo as a vector FpVector (e) Apply (d) using h = [0.5, 0.1, 0.01] to estimate f"(30). Consider the function f(x) Vx+Vx+ Vr and Xo = 4. We numerically estimate f'(20) and f"(20). 1 (a) Using differentiation rules, compute f'(X). (b) Write a matlab function FpVector=MP3 (hVector,f, x0) for the three-point midpoint formula that takes different h values as a vector hVector, a function f, and x0 and outputs several estimates of the derivative of f at 20 as a vector FpVector. (C) Apply (b) using h = [0.5, 0.1, 0.01) to estimate f'(20). Compare this results with the exact result in (a). (d) Write a matlab function FppVector=SecondDMP (hVector,f,x0) for the second derivative midpoint formula that takes different h values as a vector hVector, a function f, and x0 and outputs several estimates of the second derivative of f at xo as a vector FpVector (e) Apply (d) using h = [0.5, 0.1, 0.01] to estimate f"(30)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!