Evaluate the integral ( using Gauss-Legendre formula. Compare the results with exact solution obtained by Simpson rule. The exact value of I = 1.
To evaluate the integral using Gauss-Legendre formula, we first need to choose the number of points and the weights. We will choose 4 points and weights, which can be found from a table of Gauss-Legendre quadrature rules:
x₁ = -0.8611363116
x₂ = -0.3399810436
x₃ = 0.3399810436
x₄ = 0.8611363116
w₁ = 0.3478548451
w₂ = 0.6521451549
w₃ = 0.6521451549
w₄ = 0.3478548451
Using these points and weights, we can approximate the integral of f(x) from -1 to 1 as:
I ≈ w₁f(x₁) + w₂f(x₂) + w₃f(x₃) + w₄f(x₄)
Plugging in the values of x and f(x) from the given equation, we get:
I ≈ 0.3478548451(1/(1+e^(-0.8611363116))) + 0.6521451549(1/(1+e^(-0.3399810436))) + 0.6521451549(1/(1+e^(0.3399810436))) + 0.3478548451(1/(1+e^(0.8611363116)))
Simplifying this expression using a calculator, we get:
I ≈ 0.8584920046
To compare this result with the exact solution obtained by Simpson's rule, we can use the following formula:
I_simpson = (b-a)/6 * (f(a) + 4f((a+b)/2) + f(b))
Since our limits of integration are -1 and 1, we have a = -1 and b = 1. Plugging in the values of f(x) from the given equation, we get:
I_simpson = (1-(-1))/6 * (f(-1) + 4f(0) + f(1))
I_simpson = (1/3) * (1/(1+e) + 4/(1+e^0) + 1/(1+e^-1))
I_simpson = 0.858864985
Comparing this value to our approximation using Gauss-Legendre formula, we see that the two values are very close, with the Gauss-Legendre formula slightly underestimating the true value of the integral. However, the difference between the two values is very small, and both methods provide a good approximation to the true value of the integral.
In general, the Gauss-Legendre formula is a powerful and efficient method for approximating integrals, especially when the number of points and weights is chosen appropriately. It is based on the idea of approximating the integral as a weighted sum of the function evaluated at specific points, and the weights and points are chosen to optimize the accuracy of the approximation.
One
____ ____ ______ __________ _______ _______ ________ _____ _______.
________ ________ _____ _________ __________ ________.
_______ _____ ____ ___ ___ ________ _______.
____ __________ ____ _________ _______ _____ ______ __________ _____ _____ ________ ______.
_________ ______ ______ _____ _____ _________ ______ ___ __________ ____.
________ _______ ________ _________ ______ ___ ________ ______ ___ _______ ____.
_____ ____ _______ ____ _____ ______ ___ _________ _________.
_________ ________ _____ _____ _______ ________ _________ ________ __________ ___.
__________ _______ __________ _____ ___ _____.
______ ___ ____ _____ ___ _________ ________ ________ _______ _________.
___ _______ _______ _______ _________ _________ ________ _______ ____ _______.
__________ _________ __________ _______ ___.
____ _____ _________ __________ _________ _____ ________ ________ ________ ____.
__________ _________ _________ __________ ___ _______ ____ _____ ____ ___ _________ _________.
_____ _______ __________ ___ ____.
_________ __________ ____ _______ ______ ___ _____ ____ ___ _______.
___ ________ ___ ___ __________ _____ ________ ______.
____ ___ __________ _____ _________ ___ _________ ________.
__________ _________ _________ __________ ___ _____ ___ __________ ______ ____ _______ ___.
____ ____ _______ ____ ____ ______ ___ ______ _____.
________ ________ __________ _______ _____ _____ ___ _______ ____.
___ _________ _____ ______ __________ _____ ______ ________ _________ __________ _______.
____ ___ ____ ______ ___ ____.
_________ ____ ___ _______ ____ _______ _________ _________ _______ _______ __________ ____.
_________ ____ _______ ___ ___ _____ ____ __________ ____ ___.
______ _________ ___ _________ __________ __________ __________ ________ ____.
__________ ___ ______ ______ __________ _____ ________ _______ __________ ____ _____.
______ _________ _____ __________ ______ _________ ____ _____.
____ _______ __________ __________ _______.
_____ ______ _________ ____ _______ ______ _________ ____ _____ ___ ___.
____ ________ ____ _________ ______ ________.
_________ _____ ________ ______ ______ _______.
________ _________ ____ __________ __________ ________.
_________ _______ ______ _________ __________.
________ ________ _________ _________ __________ ___ __________.
________ _______ ____ ______ _________ _________ ____.
_______ __________ __________ _________ ________ ___ _________ _______ ___.
_______ ________ ___ ________ ________.
____ __________ __________ ________ ____ ________ ______ ________.
_____ ___ __________ ____ ______ ______ _____ _______.
_____ _______ ____ _______ ___ __________.
_________ __________ ______ _______ _______ _______ _____ _____ ______ __________ _______ ______.
____ ______ ________ _________ _________ __________ _________ _______.
______ ____ ___ _______ __________ _____ ___ _______ ___ __________ ________ _____.
_______ __________ ___ _______ _____ _____ _________ __________ ________.
________ _______ _______ ________ ____ ______ _______.
_______ __________ ________ _________ ________.
______ ___ _____ ____ ________ _________ ________ _______ ____ ___ ___.
___ ___ _________ ______ _________ _________ ___ _______ ____ ___ __________.
_____ ________ _________ ______ _________ _______ ______ ___.
______ __________ _______ ____ _______ ____.
____ _________ __________ __________ ____ ______ ________ ____ ___ ______.
_____ _____ ___ __________ _____ _______ ________ ______ __________.
____ _________ ________ _______ _____ _____ ____.
________ _________ _________ ____ ________ _________ __________ ___ _______.
____ _____ ______ _____ ________ ______ ________ ___ _________ ___ _________.
__________ __________ _____ _______ _____ _______ ________ _______ __________.
_______ ________ ____ ________ ___ ______ ______ _____ ___ _________ ___ _____.
__________ __________ ________ ___ ______.
_____ _______ __________ _______ ____ ___ _________ ____ _____ _______ ______.
_________ _____ _____ __________ ______ __________ _______ _______.
_______ _____ _______ _________ ___ ________ ______ __________.
__________ _______ ________ ____ ______ ________ _______ ______ _________ ___ ___.
_________ ______ ______ ___ ________ ______ _____ ____ __________ _______ _________ _______.
__________ ________ _______ __________ ___ ______ __________ _________ ______.
___ _________ _________ _______ _______ ______ ____ _____ ____.
___ _____ ________ ________ __________ _______ ________ ____.
_________ ________ ______ ___ ______ ___ __________ ______.
_____ _______ _____ _____ ______ ____ ______ __________ ____.
____ _______ _____ _________ _______ ___ __________ ______ _____ ___.
___ ________ ____ _______ __________ ________ ________ _________ ________ ___.
_______ ____ ______ __________ ___.
______ __________ _____ _________ _____ _______ ____.
_________ ____ ____ ___ _______ _________ ________ _________ ______ _____ ____ _______.
______ _____ _______ _________ _______ ____ ___ ____ ______.
__________ _________ _______ ________ _______ _________.
__________ _______ ______ ______ ___ ________ ______ __________ ________ ________.
__________ ______ ________ _______ ____ __________ _____.
________ ______ _____ __________ _____ __________ __________ ______ ___ _________.
______ ______ _______ _______ _____ ______ __________ ______ ________ __________ _________.
__________ ________ ___ ______ ___ _________ _________ _________ _____.
_________ ___ __________.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
✓ Unlock up to 60% of the answer
✓ No payment required