Hi. Im trying to express the following in finite differences:(adsbygoogle = window.adsbygoogle || []).push({});

[ tex ] \frac{d}{x}\left[ A(x)\frac{d\, u(x)}{x} \right] [ /tex ]

If I take centered differences I get:

[ tex ] \left{ \frac{d}{x}\left[ A(x)\frac{d\, u(x)}{x} \right] \right}_i = \frac{[A(x)\frac{d\, u(x)}{x}]_{i+1/2} - [A(x)\frac{d\, u(x)}{x}]_{i-1/2}}{h} = [ /tex ]

[ tex ] = \frac{A_{i+1/2}\[\frac{u_{i+1}-u_{i}}{h}\] - A_{i-1/2}\[\frac{u_{i}-u_{i-1}}{h}\]}{h} [ /tex ]

So, if I use centered differences I would have to have values for A at i + 1/2 and A at i - 1/2; is that correct? If I use forward or backward differences I need A values at i, i + 1, i + 2 and at i, i -1, i -2 respectively.

Am I on the correct path?

I would really appreciate any hint.

Thanks in advance,

Federico

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Function composition in finite differences

Loading...

Similar Threads - Function composition finite | Date |
---|---|

I Characteristics of trigonometric function compositions like sin(sin(x)) | Mar 12, 2017 |

Nonlinear transform can separate function composition? | Jan 28, 2015 |

Differential equations involving the function composition | Nov 28, 2013 |

Differentials of Composite Functions | Jan 18, 2012 |

**Physics Forums - The Fusion of Science and Community**