Function composition in finite differences

fmilano
Messages
7
Reaction score
0
Hi. I am trying to express the following in finite differences:

[ 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 news on Phys.org
I think your LaTex expressions would show up correctly if you omit the space between the brackets around the tex tags and what is inside the tag.
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top