Finite difference approximation for third order partials?

Click For Summary

Discussion Overview

The discussion revolves around the finite difference approximation for third order partial derivatives in three-dimensional interpolation. Participants explore methods to derive the third order approximation based on known values at discrete points, focusing on the application of Taylor series and existing second order approximations.

Discussion Character

  • Technical explanation, Mathematical reasoning, Debate/contested

Main Points Raised

  • One participant presents a formula for the first derivative in one direction and seeks a third order approximation for the mixed partial derivative d3f/dxdydz.
  • Another participant suggests applying Taylor series to derive the third order derivative.
  • A participant points out the limitation of not having the function itself, only its values at discrete points.
  • Further contributions propose applying Taylor's theorem in one dimension to each variable sequentially to derive the needed approximation.
  • A later reply provides a detailed expression for the third order derivative based on the second order approximation and emphasizes the accuracy of the symmetrical representation of the first derivative.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to derive the third order approximation, with some advocating for Taylor series and others providing specific formulas. The discussion remains unresolved regarding the optimal method to achieve the desired approximation.

Contextual Notes

Participants rely on specific values at discrete points, which may limit the applicability of their proposed methods. The discussion does not resolve the assumptions or dependencies on the definitions of the derivatives involved.

swuster
Messages
40
Reaction score
0
I'm attempting to perform interpolation in 3 dimensions and have a question that hopefully someone can answer.

The derivative approximation is simple in a single direction:

df/dx(i,j,k)= [f(i+1,j,k) - f(i-1,j,k)] / 2

And I know that in the second order:

d2f/dxdy(i,j,k)= [f(i+1,j+1,k) - f(i+1,j,k) - f(i,j+1,k) + f(i-1,j-1,k)] / 4

The final item I need is the third order approximation, and I'm not sure how to scale the first two into a third variable.

d3f/dxdydz(i,j,k)= ?

Can anyone shed some light on this?

Thanks in advance!
 
Physics news on Phys.org
can't you just apply Taylor series? You want
<br /> \frac{\partial^{3}f}{\partial x\partial y\partial z}<br />
Right?
 
Yes but I don't have the function itself; I only have its value at various points i-2, i-1, i, i+1, i+2, etc.
 
Just apply Taylors theorem in 1D to each variable in turn.
 
You already have
d2f/dxdy(i,j,k) = [f(i+1,j+1,k) - f(i+1,j,k) - f(i,j+1,k) + f(i-1,j-1,k)] / 4
so you have to do the first order derivation for z, which means for indexes in short-hand
notation

[(k->k+1) - (k->k-1)]/2

By the way, congratulations for having chosen the symetrical representation of the first derivative, it is much more accurate than [(k->k+1) - ()].

So let's do it:
d3f(x,y,z)/dxdydz = {[f(i+1,j+1,k+1) - f(i+1,j,k+1) - f(i,j+1,k+1) + f(i-1,j-1,k+1)]
- [f(i+1,j+1,k-1) - f(i+1,j,k-1) - f(i,j+1,k-1) + f(i-1,j-1,k-1)]}/8 =
[f(i+1,j+1,k+1) - f(i+1,j,k+1) - f(i,j+1,k+1) + f(i-1,j-1,k+1)
- f(i+1,j+1,k-1) + f(i+1,j,k-1) + f(i,j+1,k-1) - f(i-1,j-1,k-1)]/8
That's it.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K