Numerical Methods
![Question 51, GATE 2015: A root-finding procedure stores successive estimates xa, xb and fb=f(xb). Each iteration computes xt, then sets xa=xb, xb=xt, fb=f(xb). Identify the secant update among the displayed alternatives. The correct candidate C is xb−(xb−xa)fb/[fb−f(xa)]. Options: A xb−(fb−f(xa))fb/(xb−xa); B xa−(fa−f(xa))fa/(xb−xa); C xb−(xb−xa)fb/(fb−f(xa)); D xa−(xb−xa)fa/(fb−f(xa)). The procedure does not define fa.](../../assets/questions/CS-2015-S2-Q51-1.webp)
Answer & solution
Official answer: C
The secant through(xa, f(xa)) and(xb, fb) has slope(fb−f(xa))/(xb−xa). Setting its linear approximation to zero gives xt=xb−(xb−xa)*fb/(fb−f(xa)), option C. This uses quantities defined by the procedure and requires a nonzero denominator. An equivalent formula anchored at xa would require fa=f(xa), but fa is not initialized in the displayed procedure.
The secant line through (xa, f(xa)) and (xb, fb) has slope (fb−f(xa))/(xb−xa). Its x-intercept solves 0=fb+slope·(xt−xb). Rearranging gives xt=xb−fb(xb−xa)/(fb−f(xa)), exactly C. The stored fb is the current endpoint value, so replacing its numerator by an unrelated function value would not describe this line. The denominator must be nonzero; as with ordinary secant iteration, convergence is not guaranteed for arbitrary starting points.