Consider the problem of calculating the integral
$$y_n =\int_{0}^{1} \dfrac{x^n}{x+10} \mathrm{d}x $$ for a positive integer $n$.
Observe that $$y_n + 10y_{n-1} = \int_{0}^{1} \dfrac{x^n +10x^{n-1}}{x+10} \mathrm{d}x = \int_{0}^{1} x^{n-1}\mathrm{d}x = \dfrac{1}{n}$$
and that using this relationship in a forward recursion leads to a numerically unstable procedure.
$(a)$ Derive a formula for approximately computing these integrals based on evaluating $y_{n-1}$ given $y_n$.
$(b)$ Show that for any given value $\epsilon > 0$ and positive integer $n_0$, there exists an integer $n_1 \geq n_0$ such that taking $y_{n_1} = 0$ as a starting value will produce integral evaluations $y_n$ with an absolute error smaller than $\epsilon$ for all $0 < n \leqslant n_0$.
$(c)$ Explain why your algorithm is stable.
Here is what I have so far,
for part(a)
$$y_{n-1} = \dfrac{1}{10} \left(\dfrac{1}{n} - y_n\right)$$
and for part $(c)$
The algorithm is stable because the magnitude of roundoff errors gets divided by 10 each time the recursion is applied.
I really don't know how to start on the proof for part $(b)$, any hints and help would be appreciated.
When $y_{n_1} = 0$, $y_{n_1-1} = \dfrac{1}{10n_1} + \alpha_1$, where $\alpha_n$ is the value of the roundoff error at each step (not necessarily the same for each step.) Plugging this back into the formula:
$y_{n_1-2} = \dfrac{1}{10} \left(\dfrac{1}{n_1} - y_{n_1 - 1}\right)$
we get:
$y_{n_1-2} = \dfrac{1}{10} \left(\dfrac{1}{n_1 - 1} - \left(\dfrac{1}{10n_1} + \alpha_1\right)\right) + \alpha_2 = \dfrac{1}{10(n_1 - 1)} - \dfrac{1}{100n_1} - \dfrac{\alpha_1}{100} + \alpha_2$
Repeating, we get:
$y_{n_1-3} = \dfrac{1}{10} \left(\dfrac{1}{n_1 - 2} - y_{n_1 - 2}\right) + \alpha_3 = \dfrac{1}{10(n_1 - 2)} - \dfrac{1}{100(n_1 - 1)} - \dfrac{1}{1000n_1} - \dfrac{\alpha_1}{1000} -\dfrac{\alpha_2}{100} + \alpha_3.$
As you say, the magnitude of the roundoff error from the previous step is divided by 10 each time the recursion is applied, and forms a geometric series. For a given $n_1$, the worst case magnitude of the error at any $n_0 \geq 1, n_1 \geq 2, n_1 > n_0$ is bounded by:
$$|\alpha_{max}|\sum_{k=0}^{n_1 - n_0 - 1} \left(\dfrac{1}{10}\right)^k= |\alpha|\dfrac{1 - {\left(\dfrac{1}{10}\right)}^{n_1 - n_0}}{1 - \dfrac{1}{10}} = \frac{10|\alpha|}{9}(1 - 10^{n_0 - n_1}).$$
For any $n_0$, the magnitude of the roundoff error $\alpha$ at any step is certainly bounded by $y_{n_1 - 1} = \frac{1}{10n_1}$, so this can be substituted for $\alpha$ in the above equation. The problem then is to show that $\exists n_1$ for any $\epsilon \in \mathbb{R}, n_0 \in \mathbb{N}, n_0 < n_1$ such that $|\frac{1}{9n_1}(1 - 10^{n_0 - n_1})| < \epsilon$.