Numerical Integration - Problem

In summary, the conversation is about the process of numerical integration and finding the total area using a defined or calculated value for h. The participants discuss using a specific data set and applying a formula to find the approximate integral between x0 and x4. They also discuss the values for h and N and provide an example calculation. The conversation ends with a question asking for confirmation on the correctness of the method.
  • #1
Hurly
19
0

Homework Statement



Hey I Need Help With Numerical Integration:

I Have Data Sets Which is Shown In The Picture Below

http://imageshack.us/photo/my-images/69/numericalintegration.png/

Could Someone Use One of The Data Sets to Show Hows it Done Then i'll Do The Rest of Them

Needed Answers:

The H Value-
The N Value-
The Total Area-

Homework Equations



Areai = h * (F(Xi)+F(Xi+1) / 2)

With Xi+1 = Xi+hN = (XFinal - XInitial) / h

Total Area = Sum of The Areai values from 0 - N-1
 
Physics news on Phys.org
  • #2
Hey Hurly and welcome to the forums.

The data says b,c,d but doesn't define what they are. Let's assuming that they are 2nd, 3rd and 4th observations corresponding to f(x1), f(x2) and f(x3).

Then as an example the first line corresponds to f(x1) = 1, f(x2) = 4, f(x3) = -6, f(x0) = 3 and f(x4) = 4.

You will have to use some defined or calculated value for h. Using this information, can you find the approximate integral between x0 and x4 with your formula?
 
  • #3
[itex]\frac{Xf-Xi}{2*n}[/itex]* (f(x0)+2*f(x1)+2*f(x2)+2*f(x3)+f(x4))

[itex]\frac{4-3}{2*n}[/itex]* (f(3)+2*f(1)+2*f(4)+2*f(-6)+f(4))

0.13*(f(3)+2*f(1)+2*f(4)+2*f(-6)+f(4))
 
  • #4
Excellent! Now just replace those "f"s with the correct value from your data set and do the arithmetic.
 
  • #5
Data Set Example

x0 = -1 ( X initial)
x1 = 0
x2 = 1
x3 = 2
x4 = 3 ( X Final)

5 data Sets so 4 Traps

N = 4

H = [itex]\frac{xFinal - xInitial}{n}[/itex]

H = [itex]\frac{3 - (-1)}{4}[/itex] = 1

H = 1

Area = [itex]\frac{1}{2}[/itex]*H*(x0+2(x1+x2+x3)+x4)

Area = [itex]\frac{1}{2}[/itex]*1*(-1+2(0+1+2)+3)

Area = 4

- Is This The Correct Way?
 
  • #6
Is This Correct?
 

1. What is numerical integration?

Numerical integration is a method for calculating the area under a curve by dividing it into smaller sections and using mathematical algorithms to approximate the area of each section.

2. What types of problems can numerical integration solve?

Numerical integration can solve a wide range of problems, including finding the area under a curve, calculating the volume of irregular shapes, and estimating the value of a definite integral.

3. How does numerical integration differ from analytical integration?

Numerical integration uses numerical methods to approximate the solution, while analytical integration finds the exact solution through algebraic manipulation. Numerical integration is often used when the function is complex or cannot be integrated analytically.

4. What are some common numerical integration methods?

Some common numerical integration methods include the Trapezoid Rule, Simpson's Rule, and the Midpoint Rule. These methods use different techniques to approximate the area under a curve.

5. What are the advantages of using numerical integration?

Numerical integration can be used to solve problems that would be difficult or impossible to solve analytically. It also allows for more precise calculations and can handle complex functions with ease.

Similar threads

  • Calculus and Beyond Homework Help
Replies
4
Views
687
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
838
  • Calculus and Beyond Homework Help
Replies
3
Views
560
  • Calculus and Beyond Homework Help
Replies
8
Views
937
  • Quantum Physics
Replies
1
Views
572
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
536
Back
Top