Numerical Derivative Formula: X's Not Same Distance

  • Context: Undergrad 
  • Thread starter Thread starter ddddd28
  • Start date Start date
  • Tags Tags
    Derivative Numerical
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 1K views
ddddd28
Messages
73
Reaction score
4
Hello,
What is the numerical formula for a derivative, considering the x's are not in the same distance?
 
Physics news on Phys.org
What do you mean by "numerical formula for a derivative" and which "x's" at which distances?

Do you have a discrete approximation for a function and try to approximate its derivative? There are multiple ways to do this, and the best one will depend on the application.Please stop making even more copies of this thread! I deleted the copies.
 
ddddd28 said:
Hello,
What is the numerical formula for a derivative, considering the x's are not in the same distance?
The best you can do is obviously [itex]f'(x_{n})\approx \frac{y_{n+1}-y_{n}}{x_{n+1}-x_{n}}[/itex].

There are better formulas, but then you have to know more about the distribution.

NB! Be very careful with numerical derivation of measurement data! Very often you subtract the significant part of the data and end up with the "noise" inherent in the data.