Skip to main content

False position: cos x = x e^x

Short answer

Use regula falsi with f(x)=cos x - x e^x on (0,1), updating the endpoint that keeps opposite signs. The successive c values stabilize at 0.5178, so the root is approximately 0.5178.

Find a root of the equation cos x = x e^x using the regula-falsi method correct up to four decimal places.

False Position (Regula Falsi) formula: for f(a)·f(b) < 0, c = (a·f(b) − b·f(a)) / (f(b) − f(a)). If f(a)·f(c) < 0 set b = c, otherwise set a = c.

Step 1: Bracket the root

f(x) = cos x − x·eˣ (radians) f(0) = 1 > 0 and f(1) = 0.5403 − 2.7183 = −2.1780 < 0, so a root lies in (0, 1). Take a = 0, b = 1.

Step 2: Iterations

Because the end b = 1 never moves, the method converges slowly here, so six decimals are shown for a, f(a), c and f(c).

nabf(a)f(b)cf(c)
10.0000001.00001.000000-2.17800.3146650.519871
20.3146651.00000.519871-2.17800.4467280.203545
30.4467281.00000.203545-2.17800.4940150.070802
40.4940151.00000.070802-2.17800.5099460.023608
50.5099461.00000.023608-2.17800.5152010.007760
60.5152011.00000.007760-2.17800.5169220.002539
70.5169221.00000.002539-2.17800.5174850.000829
80.5174851.00000.000829-2.17800.5176680.000271
90.5176681.00000.000271-2.17800.5177280.000088
100.5177281.00000.000088-2.17800.5177480.000029
110.5177481.00000.000029-2.17800.5177540.000009
120.5177541.00000.000009-2.17800.5177560.000003
130.5177561.00000.000003-2.17800.5177570.000001

The last three values of c (0.517754, 0.517756, 0.517757) all round to 0.5178, and f(c) is practically zero, so the root is fixed to four decimals.

Answer: root ≈ 0.5178

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 2 questions →