- Asked 3/13
- 2069 Poush · 8 marks
Secant: x e^x - cos x
Short answer
Use secant method with x0=0, x1=1 on f(x)=x e^x - cos x. Iterates converge to 0.5178, so the root is approximately 0.5178.
Find the root of the equation x e^x - cos x = 0 using the secant method correct to four decimal places.
Secant formula: x(n+1) = x(n) − f(x(n))·[x(n) − x(n−1)] / [f(x(n)) − f(x(n−1))].
Step 1: Starting values
f(x) = x·eˣ − cos x f(0) = −1 < 0 and f(1) = 2.7183 − 0.5403 = 2.1780 > 0, so a root lies in (0, 1). Take x0 = 0 and x1 = 1.
Step 2: Iterations
| n | x(n-1) | x(n) | f(x(n-1)) | f(x(n)) | x(n+1) |
|---|---|---|---|---|---|
| 1 | 0.0000 | 1.0000 | -1.0000 | 2.1780 | 0.3147 |
| 2 | 1.0000 | 0.3147 | 2.1780 | -0.5199 | 0.4467 |
| 3 | 0.3147 | 0.4467 | -0.5199 | -0.2035 | 0.5317 |
| 4 | 0.4467 | 0.5317 | -0.2035 | 0.0429 | 0.5169 |
| 5 | 0.5317 | 0.5169 | 0.0429 | -0.0026 | 0.5177 |
| 6 | 0.5169 | 0.5177 | -0.0026 | -0.0000 | 0.5178 |
| 7 | 0.5177 | 0.5178 | -0.0000 | 0.0000 | 0.5178 |
The last two iterates agree to four decimals (both are 0.517757).
Answer: root ≈ 0.5178
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- False position: cos x = x e^x · Numerical Method, chapter 2 · asked 2×
- Secant: x^5 - 3x^3 - 1 · Numerical Method, chapter 2 · asked 2×
- Secant: cos x + e^x - 5 · Numerical Method, chapter 2
- Secant method: explain and derive · Numerical Method, chapter 2 · asked 3×
- Secant method algorithm · Numerical Method, chapter 2 · asked 2×
- False position: e^cos x - sin x - 1 · Numerical Method, chapter 2
- Secant algorithm, versus false position · Numerical Method, chapter 2
- N-R: sin x = e^-x with limitations · Numerical Method, chapter 2
- Pedal equation of r^m = a^m cos mθ · Mathematics I, chapter 1 · asked 2×
- Bernoulli's equation and four applications · Fluid Mechanics, chapter 5
- Ideal central tendency; correct mean and SD · Probability and Statistics, chapter 1