Which expression yields the best approximation to df/dx (h 1)?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 3K views
neelakash
Messages
491
Reaction score
1
Some interesting calculus...

Which of the following expressions yields the best approximation to
df/dx (h<<1)?

A. [tex]\frac{f(x+h)-f(x)}{h}[/tex]

B. [tex]\frac{f(x+\frac{h}{2})-f(x-\frac{h}{2})}{h}[/tex]

C. [tex]\frac{f(x)-f(x-h)}{h}[/tex]

D. [tex]\frac{f(x+h)-f(x-h)}{h}[/tex]

From school days I have been taught A which is almost the same as C

I would like B to be the correct.What do other people think?
 
Physics news on Phys.org
You are correct:

I will go for A now...

It looks that all A,B and C are equivalent.But definition of y' is to find the increment in y at x=x.Say,y changes to y+dy and x changes to x+dx.

My point is that to find df/dx at x,we must take increment f(x+h) from f(x)

Remember,by definition, df/dx is evaluated at x.
 
When going to the limit A,B,C give the same result (as long as the derivative is continuous at x). However if you want an approximation where h is fixed and small then B is the best approximation.

D is just wrong - you need to divide by 2 (then identical to B).
 
Are we supposed to assume that the same h is used in each expression? In that case there would be a unique right answer to the original question, but you would need to know something about f to say which it is...