Exercise · ZW-BISECTION-METHOD-009 · ★★☆ Intermediate

For f(x) = cos(x) − x on [0, 1], what signs do f(0) and f(1) have?

Choose one option.

Show answer
  • D. f(0) > 0 and f(1) < 0

Explanation

f(0) = 1 > 0 and f(1) = cos(1) − 1 < 0, so there is a sign change. The option that reverses the signs confuses cos(0) with cos(1).

Study Numerical methods in ZWMath →

Review the concept: Bisection method

The bisection method is an iterative algorithm that approximates a root of a continuous function \( f(x) \) on an interval \( [a, b] \) with a sign change, halving the interval at each step.

\[c_n = \frac{a_n + b_n}{2},\quad |c_n - r| \le \frac{b-a}{2^{n+1}}\]

More practice problems: bisection method

← ZW-BISECTION-METHOD-008 ZW-BISECTION-METHOD-010 →