Computer Science/Numerical Methods/ Finite difference method( backward difference)

Computer Science/Numerical Methods/ Finite difference method( backward difference)

play-rounded-fill play-rounded-outline play-sharp-fill play-sharp-outline
pause-sharp-outline pause-sharp-fill pause-rounded-outline pause-rounded-fill
00:00

Finite Difference Method: Backward Difference

The Finite Difference Method (FDM) is a numerical technique used for approximating derivatives. The backward difference method is a commonly used approach when calculating derivatives at a given point using previous data points.



 Definition of Backward Difference

The backward difference of a function f(x)f(x) at a point xix_i with step size hh is given by:

Δbf(xi)=f(xi)−f(xi−1)\Delta_b f(x_i) = f(x_i) – f(x_{i-1})

For higher-order differences, we define:

Δb2f(xi)=Δbf(xi)−Δbf(xi−1)\Delta^2_b f(x_i) = \Delta_b f(x_i) – \Delta_b f(x_{i-1}) Δb3f(xi)=Δb2f(xi)−Δb2f(xi−1)\Delta^3_b f(x_i) = \Delta^2_b f(x_i) – \Delta^2_b f(x_{i-1})

 Backward Difference Approximation for Derivatives

The first derivative using backward difference is approximated as:

f′(xi)≈f(xi)−f(xi−1)hf'(x_i) \approx \frac{f(x_i) – f(x_{i-1})}{h}

For the second derivative:

f′′(xi)≈f(xi)−2f(xi−1)+f(xi−2)h2f”(x_i) \approx \frac{f(x_i) – 2f(x_{i-1}) + f(x_{i-2})}{h^2}

 Example Calculation

Given Data Points:

xx 1.0 1.2 1.4
f(x)f(x) 2.718 3.320 4.055

Step Size: h=0.2h = 0.2

Using the backward difference formula:

f′(1.4)≈f(1.4)−f(1.2)hf'(1.4) \approx \frac{f(1.4) – f(1.2)}{h} f′(1.4)≈4.055−3.3200.2=3.675f'(1.4) \approx \frac{4.055 – 3.320}{0.2} = 3.675

Final Answer: f′(1.4)≈3.675f'(1.4) \approx 3.675

 When to Use Backward Difference?

 When you have data points and want to approximate derivatives using previous values.
 When solving numerical PDEs like heat equations and wave equations.
 In finite difference schemes for boundary conditions in numerical simulations.

Would you like a Python code to implement this?

Computer Science/Numerical Methods/ Finite difference method( backward difference)

18MAT21 Module 5 NUMERICAL METHOD CONTENTS: • …

B.Tech 4th Semester MATHEMATICS- …

The finite difference method

The Finite Difference Method (FDM) is a numerical technique used to approximate derivatives. One important type is the Backward Difference Method, which is especially useful for solving differential equations when data is given at the end of an interval or for time-stepping in numerical simulations.


🔹 Backward Difference Formula

For a function f(x)f(x), the backward difference approximation of the first derivative is:

f′(xn)≈f(xn)−f(xn−1)hf'(x_n) \approx \frac{f(x_n) – f(x_{n-1})}{h}

Where:

  • hh = step size (i.e., xn−xn−1x_n – x_{n-1})

  • xnx_n = current point

  • xn−1x_{n-1} = previous point


🔹 General Backward Differences

We define:

  • ∇fn=fn−fn−1\nabla f_n = f_n – f_{n-1}

  • ∇2fn=∇fn−∇fn−1\nabla^2 f_n = \nabla f_n – \nabla f_{n-1}

  • ∇3fn=∇2fn−∇2fn−1\nabla^3 f_n = \nabla^2 f_n – \nabla^2 f_{n-1}

These are used to build polynomial approximations for f(x)f(x).


🔹 First Derivative using Backward Difference:

f′(xn)≈fn−fn−1hf'(x_n) \approx \frac{f_n – f_{n-1}}{h}

Second Derivative:

f′′(xn)≈fn−2fn−1+fn−2h2f”(x_n) \approx \frac{f_n – 2f_{n-1} + f_{n-2}}{h^2}


🔹 Applications of Backward Difference:

  • Numerical solutions of ODEs (Ordinary Differential Equations)

  • Time-stepping problems where future values are based on past values

  • Suitable for implicit methods, which are often more stable


✅ Advantages:

  • Useful when forward values aren’t available

  • More stable in some implicit schemes (e.g., backward Euler)


Let me know if you’d like solved numerical examples, derivation steps, or a comparison with forward/central differences.

Computer Science/Numerical Methods/ Finite difference method( backward difference)

B.Tech 4th Semester MATHEMATICS- …

numerical methods



Leave a Reply

Your email address will not be published. Required fields are marked *

error: