Numerical differentiation





Numerical differentiation

Let f(x) be a given function which is known at a number of (isolated) points, then numerical differentiation is a process of calculating derivative of f(x) at some point of x. It is an approximation to the derivative f(x). We know that derivative of f(x) at a is
\( f'(a)=\displaystyle \lim_{h \to 0} \frac{f(a+h)-f(a)}{h}\)
Now, Numerical differentiation approximates the derivative of f(x) at a by
\( f'(a)=\frac{f(a+h)-f(a)}{h}\)
This approximation is called Newton’s difference quotient or Newton’s quotient.

Next, why do we need to approximated derivatives? there are several reasons, some of them are as follows
  1. we know values at a sample points but function does not exist
  2. function may exist, but we have a discrete data points only
  3. function exist, but formula are very complicated to compute
To compute the approximated derivative, we use the rules as below.
  1. If values of x are equi-spaced and\( \frac{dy}{dx} \) is required near beginning of the table, we employ Newton’s forward formula
  2. If values of x are equi-spaced and\( \frac{dy}{dx} \) is required near end of the table, we employ Newton’s backard formula
  3. If values of x are equi-spaced and\( \frac{dy}{dx} \) is required near middle of the table, we employ Stirling's or Bessel’s formula
  4. If values of x are not equi-spaced then\( \frac{dy}{dx} \) is calculated by Newton’s divided difference formula



Numerical differentiation: Newton’s forward formula

Solution 👉 Click Here




Numerical differentiation: Newton’s backward formula

Solution 👉 Click Here




Numerical differentiation: Stirling’s central formula

Solution 👉 Click Here




Exercise

  1. The following data gives the velocity of a particle for twenty seconds at an interval of five seconds. Find the initial acceleration using the entire data [answer= 1]
    time t 0 5 10 15 20
    velocity v 0 3 14 69 228
  2. Find solution of f'(10) of an equation \(x^2-x+1\) using a = 2 and b= 10, step value h = 1.
  3. Find solution of f'(3.5) of an equation \(2x^3-4x+1\) using a = 2 and b= 4, step value h = 0.5.
  4. The elevation above a datum line of seven points of a road are given below, Find the gradient of the road at the point x=6.
    x 3 5 7 9 11
    y 3 15 35 63 99

No comments:

Post a Comment