Apply Newton–Raphson to f(x) = cos x − x with the starting value x₀ = 0. Find x2.
Numerical methods worksheet with answers
1.Easy
f(x) = cos x − xf′(x) = −sin x − 1x₀ = 0
x2 =
2.Easy
Apply Newton–Raphson to f(x) = x³ − x − 3 with the starting value x₀ = 2. Find x2.
f(x) = x³ − x − 3f′(x) = 3x² − 1x₀ = 2
x2 =
3.Medium
The trapezoid rule is used for ∫01 eˣ dx. The error is at most (b − a)³·M/(12n²) with M = max|f″| on [0, 1]. Find the smallest number of strips n that guarantees an error below 0.001.
f(x) = eˣ[a, b] = [0, 1]ε = 0.001
n =
4.Medium
Approximate ∫02 sin(x²) dx with the trapezoid rule using n = 3 strips. Give T.
f(x) = sin(x²)[a, b] = [0, 2]n = 3
T =
5.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.2 for y′ = t² + y², y(0) = 0.5. Find y₁ ≈ y(0.2).
y′ = t² + y²y(0) = 0.5h = 0.2
y1 =
6.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.5 for y′ = 1 + sin(ty), y(0) = 0. Find y₁ ≈ y(0.5).
y′ = 1 + sin(ty)y(0) = 0h = 0.5
y1 =
Answer key
- 1. x2 = 0.7504
- 2. x2 = 1.674
- 3. n = 16
- 4. T = 0.6868
- 5. y1 = 0.5584
- 6. y1 = 0.5434
Full step-by-step solutions: practise this topic on examproblems.com.