Bc240414378 mth603
Solution Question 1:
Absolute Error = |True Value - Approximate Value|
= |3.1416 - 3.14| = 0.0016
Relative Error = Absolute Error / True Value
= 0.0016 / 3.1416 ≈ 0.0005
Solution Question 2:
Find one iteration of the Bisection method to approximate a root of the equation f(x) = x³
- x - 2 in the interval [1, 2].
f(1) = 1³ - 1 - 2 = -2
f(2) = 2³ - 2 - 2 = 4
Midpoint: x₁ = (1 + 2)/2 = 1.5
f(1.5) = (1.5)³ - 1.5 - 2 = 3.375 - 1.5 - 2 = -0.125
Since f(1) and f(1.5) have opposite signs, the new interval is [1.5, 2]
Solution Q3:
Apply one iteration of the Regula-Falsi method to approximate the root of f(x) = x² - 2,
x₀ = 1, x₁ = 2
f(1) = 1 - 2 = -1
f(2) = 4 - 2 = 2
x₂ = x₁ - f(x₁) * (x₁ - x₀) / (f(x₁) - f(x₀))
x₂ = 2 - (2 * 1) / (3) = 1.3333
Solution Question 4:
Use one iteration of the Newton-Raphson method to approximate the root of f(x) = x² - 5,
x₀ = 2
f(x) = x² - 5, f'(x) = 2x
f(2) = 4 - 5 = -1, f'(2) = 4
x₁ = 2 - (-1 / 4) = 2.2500
Solution Question 5:
Use the Secant method to perform one iteration to approximate the root of f(x) = cos(x) -
x using x₀ = 0.5 and x₁ = 1.0
f(0.5) = cos(0.5) - 0.5 ≈ 0.3776
f(1.0) = cos(1.0) - 1.0 ≈ -0.4597
x₂ = 1.0 - (-0.4597) * (1.0 - 0.5) / (-0.4597 - 0.3776) ≈ 0.7255