Respuesta :
Answer:
n = 29 iterations would be enough to obtain a root of [tex]f(x)=2x^2-3x-2[/tex] that is at most [tex]10^{-8}[/tex] away from the correct solution.
Step-by-step explanation:
You can use this formula which relates the number of iterations, n, required by the bisection method to converge to within an absolute error tolerance of ε starting from the initial interval (a, b).
[tex]n\geq \frac{log(\frac{b-a}{\epsilon} )}{log(2)}[/tex]
We know
a = -2, b = 1 and ε = [tex]10^{-8}[/tex] so
[tex]n\geq \frac{log(\frac{1+2}{10^{-8}} )}{log(2)}\\n \geq 29[/tex]
Thus, n = 29 iterations would be enough to obtain a root of [tex]f(x)=2x^2-3x-2[/tex] that is at most [tex]10^{-8}[/tex] away from the correct solution.
You can prove this result by doing the computation as follows:
From the information given we know:
- [tex]f(x)=2x^2-3x-2[/tex]
- [tex]\epsilon = 10^{-8}[/tex]
This is the algorithm for the Bisection method:
- Find two numbers a and b at which f has different signs.
- Define [tex]c=\frac{a+b}{2}[/tex]
- If [tex]b-c\leq \epsilon[/tex] then accept c as the root and stop
- If [tex]f(a)f(c)\leq 0[/tex] then set c as the new b. Otherwise, set c as the new a. Return to step 1.
We know that [tex]f(-2)=2(-2)^2-3(-2)-2=12[/tex] and [tex]f(1)=2(1)^2-3(1)-2=-3[/tex] so we take [tex]a=-2[/tex] and [tex]b=1[/tex] then [tex]c=\frac{-2+1}{2} =-0.5[/tex]
Because [tex]1-(-0.5)\geq 10^{-8}[/tex] we set [tex]c=-0.5[/tex] as the new b.
The bisection algorithm is detailed in the following table.
After the 29 steps we have that [tex]6\cdot 10^{-9}\leq 10^{-8}[/tex] hence the required root approximation is c = -0.50