Apply Newton–Raphson to f(x) = e−x − x with the starting value x₀ = 1. Find x2.
Numerical methods worksheet with answers
1.Easy
f(x) = e−x − xf′(x) = −e−x − 1x₀ = 1
x2 =
2.Easy
Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 0.5. Find x1.
f(x) = cos x − xf′(x) = −sin x − 1x₀ = 0.5
x1 =
3.Medium
Approximate ∫02 sin x dx with the trapezoid rule, n = 4, and compare it with the exact value. Find the absolute error |E| = |T − I|.
f(x) = sin x[a, b] = [0, 2]n = 4
|E| =
4.Medium
Approximate ∫02 eˣ dx with the trapezoid rule, n = 2, and compare it with the exact value. Find the absolute error |E| = |T − I|.
f(x) = eˣ[a, b] = [0, 2]n = 2
|E| =
5.Hard
Solve y′ = t − y, y(0) = 0.5 with Euler's method and step h = 0.25 up to t = 1. The exact solution is y = t − 1 + (y₀ + 1)e−t. Find the global error |E| = |y(1) − y4|.
y′ = t − yy(0) = 0.5h = 0.25
|E| =
6.Hard
Use Heun's method (improved Euler) with h = 0.25 for y′ = e−ty, y(0) = 0 to estimate y2 ≈ y(0.5).
y′ = e−tyy(0) = 0h = 0.25
y2 =
Answer key
- 1. x2 = 0.567
- 2. x1 = 0.7552
- 3. |E| = 0.02963
- 4. |E| = 0.5238
- 5. |E| = 0.07721
- 6. y2 = 0.4585
Full step-by-step solutions: practise this topic on examproblems.com.