How to Apply the Composite Trapezoidal Rule When Integrating y dx?

  • Context: Undergrad 
  • Thread starter Thread starter VooDoo
  • Start date Start date
  • Tags Tags
    Composite
Click For Summary
SUMMARY

The discussion focuses on applying the Composite Trapezoidal Rule for numerical integration of the function y with respect to x, specifically for the integral from -1 to 14. Participants clarify that in this context, y represents the function values corresponding to given x values, confirming that f(x1) equals y(x1). The Composite Trapezoidal Rule involves calculating the area of multiple trapezoids formed between pairs of points, with the total area being the sum of these individual trapezoidal areas.

PREREQUISITES
  • Understanding of the Composite Trapezoidal Rule
  • Basic knowledge of numerical integration techniques
  • Familiarity with function notation and evaluation
  • Ability to interpret and manipulate pairs of data points (x, y)
NEXT STEPS
  • Study the derivation and application of the Composite Trapezoidal Rule
  • Learn about numerical integration methods in Python using libraries like NumPy
  • Explore error analysis in numerical integration techniques
  • Investigate the differences between the Trapezoidal Rule and Simpson's Rule
USEFUL FOR

Students, mathematicians, and engineers involved in numerical analysis or anyone looking to enhance their understanding of integration techniques and numerical methods.

VooDoo
Messages
58
Reaction score
0
Hey guys,

Im a bit baffled on this one.

I have been told to perform the following integration:
[tex]\int y dx[/tex] from -1 to 14. I have been given some values of x and the corresponding values of y.

I just have one question, the fact that it is y dx is throwing me off. The trapazoidal rule is: I = h* [f(x1)-f(x2)]/2. This is probably really simple and a dumb question, but I assume that f(x1) corresponds to the value of y that I have been given for x1?
 
Physics news on Phys.org
Yes, that is what the standard notation y= f(x) means. Now I notice that you title this "composite" trapezoidal rule. The trapezoidal rule you give is for just two points: one trapezoid. If you are given a number of x and y values, you will want to do a different trapezoid for each pair of points, the "right" side of one trapezoid being the "left" side of the other. If, for example, you had 3 points (x1,y1), (x2,y2),(x3,y3), then the "trapezoid" between x1 and x2 has area (y2- y1)/2(x2-x1) and the "trapezoid" between x2 and x3 has area (y3- y2)/2(x3-x2). The total area, of course, would be the sum of those.
 
VooDoo said:
I just have one question, the fact that it is y dx is throwing me off. The trapazoidal rule is: I = h* [f(x1)-f(x2)]/2. This is probably really simple and a dumb question, but I assume that f(x1) corresponds to the value of y that I have been given for x1?

Hi VooDoo! :smile:

Yes, y is a function of x, just like any old f, but we don't normally write y(x), so you have to imagine the "(x)" :wink:

So f(x1) = y(x1) = the value of y at x = x1. :smile:
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K