The first derivative d) of a function f(x) at a point x = x0 can be approximatedwith the

Chapter 7, Problem 38

(choose chapter or problem)

The first derivative d) of a function f(x) at a point x = x0 can be approximatedwith the two-point central difference formula:df(x) =f(x0+h)-f(x0-h)dx 2hwhere h is a small number relative to x0 Write a user-defmed function function(see Section 7.9) that calculates the derivative of a math function f(x) byusing the two-point central difference formula. For the user-defined functionname, use dfdx=Funder (Fun, xO), where Fun is a name for the functionthat is passed into Funder, and xO is the point where the derivative is calculated.Use h = x0/100 in the two-point central difference formula. Use theuser-defmed function Funder to calculate the following:(a) The derivative of f(x) = x3 e2x at x0 = 0.6 (b) The derivative of f(x) = 3: at x0 = 2.5XIn both cases compare the answer obtained from Funder with the analyticalsolution (use format long).

Unfortunately, we don't have that question answered yet. But you can get it answered in just 5 hours by Logging in or Becoming a subscriber.

Becoming a subscriber
Or look for another answer

×

Login

Login or Sign up for access to all of our study tools and educational content!

Forgot password?
Register Now

×

Register

Sign up for access to all content on our site!

Or login if you already have an account

×

Reset password

If you have an active account we’ll send you an e-mail for password recovery

Or login if you have your password back