Let be $f(x) = x_1 - 2x_2 +x_3, x_1 \approx x_2 \approx x_3 $
Find out (by using forward stability analysis) which of those following algorithms is the most stabil one:
a) $ \tilde{f} (x) := ( x_1 \ominus 2x_2) \oplus x_3$
b) $ \tilde{g} (x) := ( x_1 \ominus x_2) \ominus (x_2 \ominus x_3) $
c) $ \tilde{h} (x) := ( x_1 \oplus x_3) \ominus 2x_2$
The forward stability analysis we defined as $ \frac{ || \tilde{f} (x) - f(x) ||} {||f(x) ||} \leq \sigma k_{rel} (f, x) \epsilon + o( \epsilon), ( \epsilon \rightarrow 0) $
Hello dearest people, I struggle already with the first algorithm. My attempt:
$ \frac{ || \tilde{f} (x) - f(x) ||} {||f(x) ||} = |\frac{(x_1 \ominus 2x_2) \oplus x_3 - ((x_1 -2x_2)+x_3)} {((x_1 -2x_2)+x_3)} | = | \frac{ ((x_1 -2x_2)(1+ \delta) + x_3)) (1+\delta) -((x_1-2x_2)+x_3}{(x_1 - 2 x_2) +x_3} |$
From here on I am not sure how to estimate right..
(Oh and by the way $ \o (x) = x(1+ \delta) $ and those circles are actually supposed to be squares, I apologize)
Would appreciate any help, because I couldn't find any good examples which could help me solving this task.