MathematicsNEB 2076 (old course)
Compute 0^1 (1+x^2)^ 1 dx , by Simpson's 13 rule. Also compare it with true solution. [6] OR Approximate the value for 1^1 e^x dx using Trapezoidal rule with n = 2 .
6Answer
Solution 1: Compute by Simpson’s Rule and Compare with True Solution
Step 1: Understand Simpson’s Rule
Simpson’s rule approximates the integral of a function over by fitting a quadratic polynomial to the function at three points: , , and . The formula is:
where .
Step 2: Apply Simpson’s Rule to
Given:
- ,
- (since Simpson’s rule requires an even number of subintervals, but here we use the basic form with 2 subintervals, i.e., 3 points).
Compute :
Compute the points:
Compute at these points:
Apply Simpson’s rule:
Step 3: Compare with the True Solution
The true value of the integral is:
Step 4: Comparison Table
| Method | Approximate Value | True Value | Error (True - Approx.) |
|---|---|---|---|
| Simpson’s Rule | 0.7833 | 0.7854 | 0.0021 |
Solution 2: Approximate Using Trapezoidal Rule with
Step 1: Understand the Trapezoidal Rule
The trapezoidal rule approximates the integral of over by dividing the interval into subintervals and summing the areas of trapezoids formed under the curve. The formula is:
where .
Step 2: Apply the Trapezoidal Rule to with
Given:
- ,
Compute :
Compute the points:
Compute at these points:
Apply the trapezoidal rule:
Step 3: Compare with the True Solution
The true value of the integral is:
Step 4: Comparison Table
| Method | Approximate Value | True Value | Error (True - Approx.) |
|---|---|---|---|
| Trapezoidal Rule () | 2.5431 | 2.3504 | 0.1927 |
Final Answers
Simpson’s Rule for :
Trapezoidal Rule for with :
Discussion
Loading…