Tomorrow I have an exam about Numerical Methods, and I came up with the following question. Let $$-\frac{d}{dr} \left ( \frac{1}{r} \frac{dy}{dr} \right ) = 1 $$with $r\in [1,2], y(1) = 1 \mbox{ and }y(2)=10$. Take $h = \frac{1}{n+1}$ and $r_i = ih + 1$. (We have made a grid of n+1 points). Now I need to give the equation for the $i^{th}$ point on the grid, which is (according to my book) $$-\frac{1}{h^2}(\frac{1}{r_{i+0.5}}(u_{i+1}-u_i) - \frac{1}{r_{i-0.5}}(u_i - u_{i-1}) = 1$$
Sorry if my terms are not correct, I don't follow this course in English, so I don't know all the correct English terms.