Calculate Area Under Curve: What Function?

In summary, the conversation is about calculating the area under a curve using x and y datapoints. The person is unsure of what function to use and how to proceed. Some suggestions are to use numerical integration techniques such as the trapezoid rule or Simpson's Rule, or to interpolate between the datapoints using stair-steps, straight lines, or a least-squares fit. It is also recommended to plot the data to determine the best method for desired accuracy.
  • #1
henil
18
0
i want to calculate area under the curve but i do no not know what function does it satisfies. how should i proceed ?
 
Technology news on Phys.org
  • #2
I'm not sure what you are asking about. Do you have a known function f(x) which you want to integrate, and wonder how to do it numerically?
 
  • #3
no i don't know f(x) i just have x and y datapoints
 
  • #4
Then you need to decide how to interpolate between the data points. Some possibilities:
  • Use the points to define "stair-steps" (a series of rectangles)
  • Construct straight lines between the points (a series of trapezoids)
  • Do a least-squares fit to a suitable type of function (polynomial, exponential, etc.)
  • Construct a spline curve that passes through all the points exactly.
 
  • #5
The best you can do is:
  1. Sort the data points in ascending order in the xn
  2. The best approximation for the area between (xj, yj) and (xj+1, yj+1) is given by [itex]A_{j}=(x_{j+1}-x_{j})\cdot\frac{y_{j+1}+y_{j}}{2} [/itex] (this is called the trapezoid rule)
  3. Add up these areas.
 
  • #6
henil said:
no i don't know f(x) i just have x and y datapoints
If the x values of the data points occur at regular intervals, you can use a numerical integration technique like Simpson's Rule to perform the calculations. Simpson's Rules are based on using second- and third-order interpolation functions, which is usually more accurate than the simpler trapezoidal rule.

You really should plot your data to see which method would give you the accuracy of result you desire.
 
  • #7
okay i will try all your suggestions.
thank you for your help.
 

Related to Calculate Area Under Curve: What Function?

1. What is the purpose of calculating the area under a curve?

The area under a curve represents the total value or quantity of a function over a given interval. It can provide insights into the behavior and characteristics of a function, such as its rate of change and overall trend.

2. How is the area under a curve calculated?

The area under a curve can be calculated using various methods, such as Riemann sums, integration, or numerical integration. The specific method used will depend on the type of function and the level of accuracy needed.

3. What types of functions can the area under a curve be calculated for?

The area under a curve can be calculated for any continuous function, including polynomial, exponential, logarithmic, and trigonometric functions. It can also be calculated for piecewise functions and functions with discontinuities.

4. How is the area under a curve related to the concept of integration?

The area under a curve is essentially the result of an integration process. Integration is the mathematical operation that calculates the area under a curve by finding the antiderivative of a function. In other words, integration is the reverse of differentiation, which is the process of finding the slope of a function at a given point.

5. What are some practical applications of calculating the area under a curve?

Calculating the area under a curve has many practical applications in various fields, including physics, engineering, economics, and statistics. For example, it can be used to determine the total distance traveled by an object, the work done by a force, the profit or loss of a business, or the probability of an event occurring within a given range.

Similar threads

Replies
2
Views
382
  • Programming and Computer Science
Replies
5
Views
353
Replies
11
Views
1K
Replies
10
Views
1K
  • Introductory Physics Homework Help
Replies
8
Views
1K
  • Classical Physics
Replies
12
Views
1K
Replies
3
Views
444
Replies
2
Views
2K
  • Materials and Chemical Engineering
Replies
4
Views
6K
Replies
1
Views
794
Back
Top