The bisection method starts on an interval of length 4. Every step halves the interval. How many steps n are needed at least before the interval is shorter than 0.005?
Numerical methods worksheet with answers
1.Easy
b − a = 4ε = 0.005
n =
2.Easy
The bisection method starts on an interval of length 1. Every step halves the interval. How many steps n are needed at least before the interval is shorter than 0.01?
b − a = 1ε = 0.01
n =
3.Medium
Approximate ∫01.5 sin(x²) dx with the trapezoid rule using n = 5 strips. Give T.
f(x) = sin(x²)[a, b] = [0, 1.5]n = 5
T =
4.Medium
Approximate ∫14 1/x dx with Simpson's rule, n = 2, and compare it with the exact value. Find the absolute error |E| = |S − I|.
f(x) = 1/x[a, b] = [1, 4]n = 2
|E| =
5.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.5 for y′ = cos t − y, y(0) = 2. Find y₁ ≈ y(0.5).
y′ = cos t − yy(0) = 2h = 0.5
y1 =
6.Hard
Take one step of the classical Runge–Kutta method (RK4) with h = 0.1 for y′ = 1 + sin(ty), y(0) = 0.5. Find y₁ ≈ y(0.1).
y′ = 1 + sin(ty)y(0) = 0.5h = 0.1
y1 =
Answer key
- 1. n = 10
- 2. n = 7
- 3. T = 0.7641
- 4. |E| = 0.03871
- 5. y1 = 1.588
- 6. y1 = 0.6028
Full step-by-step solutions: practise this topic on examproblems.com.