Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 0.5. Find x1.
Numerical methods worksheet with answers
1.Easy
f(x) = cos x − xf′(x) = −sin x − 1x₀ = 0.5
x1 =
2.Easy
Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 0. Find x2.
f(x) = cos x − xf′(x) = −sin x − 1x₀ = 0
x2 =
3.Medium
Approximate ∫12 1/x dx with the trapezoid rule, n = 4, and compare it with the exact value. Find the absolute error |E| = |T − I|.
f(x) = 1/x[a, b] = [1, 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
Use Euler's method with h = 0.2 for y′ = t − y, y(0) = 3 to estimate y4 ≈ y(0.8).
y′ = t − yy(0) = 3h = 0.2
y4 =
6.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.2 for y′ = 1 + sin(ty), y(0) = 1. Find y₁ ≈ y(0.2).
y′ = 1 + sin(ty)y(0) = 1h = 0.2
y1 =
Answer key
- 1. x1 = 0.7552
- 2. x2 = 0.7504
- 3. |E| = 0.003877
- 4. |E| = 0.5238
- 5. y4 = 1.438
- 6. y1 = 1.223
Full step-by-step solutions: practise this topic on examproblems.com.