Apply Newton–Raphson to f(x) = ln x + x − 2 with the starting value x₀ = 1.5. Find x1.
Numerical methods worksheet with answers
1.Easy
f(x) = ln x + x − 2f′(x) = 1/x + 1x₀ = 1.5
x1 =
2.Easy
Use the bisection method on f(x) = cos x − x with the starting interval [0, 1]. Find the midpoint c4 of step 4.
f(x) = cos x − x[a, b] = [0, 1]n = 4
c4 =
3.Medium
Approximate ∫01 eˣ dx with Simpson's rule, n = 2, and compare it with the exact value. Find the absolute error |E| = |S − I|.
f(x) = eˣ[a, b] = [0, 1]n = 2
|E| =
4.Medium
A vehicle's speed is measured every 5 s (table). Estimate the distance s travelled from t = 0 to t = 20 s with the trapezoid rule.
h = 5 sn = 4
s = m
5.Hard
Use Euler's method with h = 0.2 for y′ = y(2 − y), y(0) = 1 to estimate y5 ≈ y(1).
y′ = y(2 − y)y(0) = 1h = 0.2
y5 =
6.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.2 for y′ = cos t − y, y(0) = −1. Find y₁ ≈ y(0.2).
y′ = cos t − yy(0) = −1h = 0.2
y1 =
Answer key
- 1. x1 = 1.557
- 2. c4 = 0.6875
- 3. |E| = 0.0005793
- 4. s = 362.5 m
- 5. y5 = 1.801
- 6. y1 = −0.6387
Full step-by-step solutions: practise this topic on examproblems.com.