Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 0.5. Find x2.
Numerical methods worksheet with answers
The bisection method starts on an interval of length 0.5. Every step halves the interval. How many steps n are needed at least before the interval is shorter than 0.0001?
The trapezoid rule is used for ∫13 1/x dx. The error is at most (b − a)³·M/(12n²) with M = max|f″| on [1, 3]. Find the smallest number of strips n that guarantees an error below 0.001.
Approximate ∫01.5 √(1 + x³) dx with the trapezoid rule using n = 3 strips. Give T.
Solve y′ = t + y, y(0) = 1 with Euler's method and step h = 0.1 up to t = 0.4. The exact solution is y = −t − 1 + (y₀ + 1)eᵗ. Find the global error |E| = |y(0.4) − y4|.
Solve y′ = y − t², y(0) = −1 with Euler's method and step h = 0.25 up to t = 1. The exact solution is y = t² + 2t + 2 + (y₀ − 2)eᵗ. Find the global error |E| = |y(1) − y4|.
Answer key
- 1. x2 = 0.7391
- 2. n = 13
- 3. n = 37
- 4. T = 2.01
- 5. |E| = 0.05545
- 6. |E| = 0.4703
Full step-by-step solutions: practise this topic on examproblems.com.