# Solving Equations

# Forward and backward error

backward error is on the input side . It is the amount we would need to change the function ff to make the equation balance with the output approximation xax_a. This amount is ∣f(xa)∣|f(x_a)|

Forward error is the error on the output side. It is the amount we would need to change the approximate solution to make it correct ,which is ∣r−xa∣|r-x_a|

example

function f(x)=sin⁡x−xf(x) = \sin x - x has a triple root at r=0r = 0.

the forward and backward error of the approximate root xc=0.001x_c = 0.001

the forward error is ∣r−xa∣=10−3|r-x_a| = 10^{-3}
the backward error is ∣f(xa)∣=∣sin⁡(0.001)−0.001∣≈1.6667×10−10|f(x_a)| = |\sin(0.001)-0.001|\approx 1.6667 \times 10^{-10}