Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 1. Find x2.
Numerical methods worksheet with answers
1.Easy
f(x) = cos x − xf′(x) = −sin x − 1x₀ = 1
x2 =
2.Easy
Apply Newton–Raphson to f(x) = ln x + x − 4 with the starting value x₀ = 4. Find x2.
f(x) = ln x + x − 4f′(x) = 1/x + 1x₀ = 4
x2 =
3.Medium
Approximate ∫02 e−x² dx with Simpson's rule using n = 2 strips. Give S.
f(x) = e−x²[a, b] = [0, 2]n = 2
S =
4.Medium
Approximate ∫02 1/√(1 + x⁴) dx with the trapezoid rule using n = 2 strips. Give T.
f(x) = 1/√(1 + x⁴)[a, b] = [0, 2]n = 2
T =
5.Hard
Solve y′ = t + y, y(0) = 3 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|.
y′ = t + yy(0) = 3h = 0.1
|E| =
6.Hard
Use Heun's method (improved Euler) with h = 0.2 for y′ = e−ty, y(0) = 0 to estimate y2 ≈ y(0.4).
y′ = e−tyy(0) = 0h = 0.2
y2 =
Answer key
- 1. x2 = 0.7391
- 2. x2 = 2.926
- 3. S = 0.8299
- 4. T = 1.328
- 5. |E| = 0.1109
- 6. y2 = 0.3778
Full step-by-step solutions: practise this topic on examproblems.com.