Numerical Methods Questions
(i) Define 'error' and 'relative error' as applied in numerical methods.
(ii) The length and width of a rectangular sheet are 2.29m and 1.2m respectively. If the estimation of the length and width are 2.3m and 1m respectively. Evaluate the absolute and relative error of the products of the sides.
The region enclosed by the curve y = e^(-x/2), the axes, the line x = 3 and x = -3 is rotated completely about x-axis. Use Simpson's rule with 6 intervals to find an estimate volume of solid formed in terms of e and π.
Find the positive solution of the transcendental equation 2 sin x = x, using Newton-Raphson method with three iterations, starting with x₀ = 2.
By using Newton-Raphson method find the root of x⁴ - x - 10 = 0 which is near to x = 2 correct to 5 decimal places.
State five applications of numerical methods.
Evaluate ∫0.10.5 e^(-x) dx using Simpson's rule with 5 ordinates.
(i) Why do we need numerical methods? (state three reasons)
(ii) State three sources of errors in numerical computation.
Show that the equation eˣ = 3 - x has a root in the interval [0,1] also find the root correct to two decimal places in three iterations by using Newton-Raphson method.
State four applications of Newton-Raphson method.
State 3 advantages and 3 disadvantages of Newton-Raphson method.
The pressure P is calculated from the relation P = F/(Ï€R²), where F is the force and R is the radius. If the percentage possible errors are ±2% for F and ±1% for R. Calculate the possible percentage error for P.
Verify that the equation x² = 2x + 1 has the roots between x = 2 and x = 3 and hence apply the secant method in four iterations to obtain the approximation of the root correct to 3 decimal places.
Estimate the area of the quadrant of a circle of radius 8cm by dividing into 8 intervals by using Simpson's rule. Use the result obtained to approximate the value of π.
The equation x³ - 3x - 20 = 0 has a single real root inside the interval [3,4]. Approximate the root in four iterations using the Secant formula.
(i) Explain with the aid of example why the two numerical methods, Trapezoidal rule and Simpson's rule are useful in evaluating definite integrals.
(ii) Using Numerical integration methods mentioned in part (b)(i) above and where the interval [0,1] is divided into four equal parts evaluate ∫01 (1 + x²)^(-1) dx correct to four decimal places.
Numerical Methods Complete Solutions
(a)(i) Define 'error' and 'relative error'
(a)(ii) Calculate absolute and relative error
(b) Volume using Simpson's rule
x | -3 | -2 | -1 | 0 | 1 | 2 | 3 |
---|---|---|---|---|---|---|---|
y | e^(1.5) | e^1 | e^0.5 | 1 | e^-0.5 | e^-1 | e^-1.5 |
(c) Newton-Raphson for 2 sin x = x
(a) Newton-Raphson for x⁴ - x - 10 = 0
(b)(i) Five applications of numerical methods
- Solving engineering problems (structural analysis, fluid dynamics)
- Financial modeling and option pricing
- Computer graphics and animation
- Weather prediction and climate modeling
- Machine learning algorithms and optimization
(b)(ii) Simpson's rule for ∫e⁻Ë£dx from 0.1 to 0.5
x | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 |
---|---|---|---|---|---|
y=e⁻Ë£ | 0.9048 | 0.8187 | 0.7408 | 0.6703 | 0.6065 |
(a)(i) Three reasons we need numerical methods:
- Many real-world problems cannot be solved analytically
- Provides approximate solutions when exact solutions are impossible
- Essential for computer simulations and modeling complex systems
(a)(ii) Three sources of errors in numerical computation:
- Truncation errors: From approximating infinite processes
- Round-off errors: Due to finite precision arithmetic
- Modeling errors: Inaccuracies in the mathematical model
(b) Newton-Raphson for eˣ = 3 - x
(a) Four applications of Newton-Raphson method:
- Finding roots of polynomials and transcendental equations
- Optimization problems (finding maxima/minima)
- Computer graphics for inverse kinematics
- Machine learning for logistic regression
(b) Advantages and disadvantages of Newton-Raphson:
Advantages:
- Quadratic convergence when near the root
- Generally faster than bisection method
- Works well for both polynomials and transcendental equations
Disadvantages:
- Requires knowledge of the derivative
- May diverge if initial guess is poor
- Fails at inflection points or when derivative is zero
(a) Percentage error calculation for P = F/(Ï€R²)
(b) Secant method for x² = 2x + 1 (root between 2 and 3)
(c) Area of quadrant using Simpson's rule (8 intervals)
x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
---|---|---|---|---|---|---|---|---|---|
y | 8 | √63 | √60 | √55 | √48 | √39 | √28 | √15 | 0 |
(a) Secant method for x³ - 3x - 20 = 0 (root in [3,4])
(b)(i) Why Trapezoidal and Simpson's rules are useful:
These numerical integration methods are essential when:
- The function cannot be integrated analytically
- Only discrete data points are available
- Quick approximations are needed for complex functions
(b)(ii) Evaluate ∫(1+x²)⁻¹dx from 0 to 1 using both methods (4 intervals)
x | 0 | 0.25 | 0.5 | 0.75 | 1 |
---|---|---|---|---|---|
y=1/(1+x²) | 1 | 0.9412 | 0.8 | 0.64 | 0.5 |
Trapezoidal Rule:
Simpson's Rule:
Trapezoidal ≈ 0.7828
Simpson's ≈ 0.7854 (more accurate)
No comments
Post a Comment