Skip to main content

Bisection: sin x = 1/x

Short answer

With f(x)=sin x -1/x, bracket [1,2]. Biseection yields root 1.114 after 11 iterations (interval width <0.001).

Use bisection method to find a real positive root of sin x = 1/x correct up to three decimal places.

Bisection method: if f(a)·f(b) < 0, the root lies in [a, b]. Take c = (a + b)/2; if f(a)·f(c) < 0 the root is in [a, c], otherwise in [c, b]. Repeat until the interval is shorter than the required accuracy.

Step 1: Bracket the root

f(x) = sin x − 1/x (radians) f(1) = 0.8415 − 1 = −0.1585 < 0 and f(2) = 0.9093 − 0.5 = 0.4093 > 0, so a root lies in (1, 2). Take a = 1, b = 2.

Step 2: Iterations

nabc=(a+b)/2f(c)root lies in
11.00002.00001.50000.3308[a, c]
21.00001.50001.25000.1490[a, c]
31.00001.25001.12500.0134[a, c]
41.00001.12501.0625-0.0676[c, b]
51.06251.12501.0938-0.0259[c, b]
61.09381.12501.1094-0.0060[c, b]
71.10941.12501.11720.0038[a, c]
81.10941.11721.1133-0.0011[c, b]
91.11331.11721.11520.0013[a, c]
101.11331.11521.11430.0001[a, c]
111.11331.11431.1138-0.0005[c, b]

After 11 iterations the interval width is 0.00049 (< 0.001), so the root is fixed to 3 decimals.

Answer: root ≈ 1.114

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 2 questions →