Solving erf(1.00) with Trapezoid Rule (n=6)

  • Context: Graduate 
  • Thread starter Thread starter elemental_d
  • Start date Start date
  • Tags Tags
    Trapezoid
Click For Summary
SUMMARY

The discussion focuses on approximating the value of erf(1.00) using the trapezoid rule with n=6. The integral to evaluate is \(\frac{2}{\sqrt{\pi}}\int_0^1 e^{-x^2} dx\), which is approximated by constructing six trapezoids, each with a width of 1/6. The heights of the trapezoids are determined by evaluating the function \(e^{-x^2}\) at the endpoints of each subinterval. This method provides a systematic approach to estimating the area under the curve of the error function.

PREREQUISITES
  • Understanding of the error function (erf)
  • Familiarity with numerical integration techniques, specifically the trapezoid rule
  • Basic knowledge of calculus, particularly definite integrals
  • Ability to evaluate exponential functions, such as \(e^{-x^2}\)
NEXT STEPS
  • Study the trapezoidal rule in detail, including error analysis
  • Learn about other numerical integration methods, such as Simpson's rule
  • Explore the properties and applications of the error function in statistics
  • Practice evaluating definite integrals using numerical methods in Python or MATLAB
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are interested in numerical methods for integration and the applications of the error function.

elemental_d
Messages
2
Reaction score
0
http://en.wikipedia.org/wiki/Error_function

If you have erf(1.00) and are asked to solve for the approximate value by using the trapezoid rule with n=6, how would you go about doing so?

Since the function is erf(x) the 'x' goes into the limits of integration but a 't' is used as a variable in the actula function. How do you know what to use for 'u'. Do you simply treat the function as an integral from 0 to 1 and evauluate 'u' from 0 to 1 as well?

thanks for any help?
 
Physics news on Phys.org
Basically the question is asking to approximate the definite integral:

\frac{2}{\sqrt{\pi}}\int_0^1 e^{-x^2} dx

They want you to do it with the trapezoidal rule. Basically construct 6 trapeziums, each with a width of 1/6. The height of the left side of the trapezium should be the same as e^{-x^2} at that point, and the height of the right side should do the same for its point.

Eg The First trapezium Will have a base from 0 to 1/6. At 0, e^{-x^2}=1. So the height at that point should be 1. At the other side of the trapezium, 1/6, sub in 1/6 into e^{-x^2}, and that's the height at that point. You have the two heights of the trapezium, and a base length, now you can find the area.

Repeat for the other 5 trapeziums.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K