Numerical Methods
![Question 28, GATE 2012: The bisection method is applied to compute a zero of the function f(x) = x⁴ – x³ – x² – 4 in the
interval [1,9]. The method converges to a solution after ––––– iterations.
(A) 1 (B) 3 (C) 5 (D) 7](../../assets/questions/CS-2012-Q38-1.webp)
Answer & solution
Official answer: B
Let f(x)=x⁴−x³−x²−4. Initially f(1)=−5 and f(9)>0. The first midpoint is 5 with f(5)=471>0, leaving [1, 5]. The second is 3 with f(3)=41>0, leaving [1, 3]. The third is 2 with f(2)=16−8−4−4=0. Therefore an exact root is found after three midpoint evaluations, B; no unspecified tolerance is needed.
Check: The sign checks select the half-interval containing a root because f is continuous. The successive midpoint sequence is 5,3,2; counting the initial endpoints as iterations would miscount the actual bisection steps.