Evaluating Integrals for 5th and 4th order polynomials

In summary, labrat found that their 4th order polynomial approximation was off and that their 5th order polynomial was a better fit for their data.
  • #1
labrat1
2
0
Hi! I have a dataset that I fit to a 5th order and 4th order polynomial -- I was just trying to get the function that best fit the data. However, I realized that when I evaluate the integral for these 2 different functions (between 200 and 400), the answers are vastly different. I assumed since the functions are extremely similar and are describing the same dataset, I should get the same (or very similar) values for these integrals. Is there a reason why they wouldn't be the same?

I have checked the math multiple times and I may be missing something really obvious, but I can't find anything wrong in the basic math of each integral.

I am not sure if this is against the rules of this board (sorry if it is!) -- but since we can't attach excel spreadsheets, I uploaded it to google and the link is below:

https://docs.google.com/spreadsheets/d/1Vm-knOkTM7IH3BTxOngdwvHggsK3SPV0i0wwbhCgQBo/edit?usp=sharing

Thanks!
 
Physics news on Phys.org
  • #2
Hello and welcome to MHB, labrat!

It seems to me that the coefficients of your 4th order polynomial are off. The area you get with your 5th order polynomial makes more sense than the one you get with the 4th order approximation. I can't find any problems with the way you calculated your antiderivatives, so it seems to me that you made a mistake somewhere in the 4th order regression.
You might also want to consider using a logistic function rather than a polynomial to model your data.

[EDIT] Yes, your coefficients seem to be wrong for the 4th order regression. When I run the numbers for x=200, I get about .45-in approximate agreement with the data (the actual value is about .43). But when I plug in x=400, I get 1.29, which is horribly wrong-the actual number is around .93.
 
Last edited:
  • #3
Thank you jacobi!

After looking at both functions again, I realized that I didn't previously check the number of decimal places displayed in excel. Both equations had coefficients rounded to 2 significant figures -- so I had ended up with a lot of rounding error. Easy mistake to fix! Thank you!
 

Related to Evaluating Integrals for 5th and 4th order polynomials

What is the process for evaluating integrals for 5th and 4th order polynomials?

The process for evaluating integrals for 5th and 4th order polynomials involves using integration techniques such as substitution, integration by parts, and partial fractions. These techniques allow you to simplify the polynomial and then integrate it using the power rule.

What are the key factors to consider when evaluating integrals for 5th and 4th order polynomials?

When evaluating integrals for 5th and 4th order polynomials, it is important to consider the degree of the polynomial, the coefficients of each term, and any known values of the variables. These factors will determine which integration technique is most suitable for solving the integral.

Can all 5th and 4th order polynomials be integrated?

Yes, all 5th and 4th order polynomials can be integrated using the appropriate integration techniques. However, some integrals may result in complex or indefinite solutions.

What are some common mistakes to avoid when evaluating integrals for 5th and 4th order polynomials?

Some common mistakes to avoid when evaluating integrals for 5th and 4th order polynomials include forgetting to use the power rule, making errors when simplifying the polynomial, and forgetting to include the constant of integration in the final solution.

How can evaluating integrals for 5th and 4th order polynomials be useful in real-world applications?

Evaluating integrals for 5th and 4th order polynomials is useful in many real-world applications, such as calculating the area under a curve, finding the distance traveled by an object with varying velocity, and solving problems in physics and engineering that involve polynomial functions.

Similar threads

Replies
3
Views
2K
Replies
2
Views
2K
Replies
1
Views
1K
Replies
1
Views
2K
Replies
4
Views
2K
Replies
3
Views
496
Replies
6
Views
1K
  • Calculus
Replies
4
Views
2K
  • Programming and Computer Science
Replies
3
Views
2K
Replies
2
Views
10K
Back
Top