Estimating Error in a Quadrature

  • Context: Graduate 
  • Thread starter Thread starter Teg Veece
  • Start date Start date
  • Tags Tags
    Error
Click For Summary

Discussion Overview

The discussion revolves around estimating the error in quadrature methods for numerical integration, particularly focusing on how the complexity of the function being integrated affects the accuracy of the quadrature. Participants explore different quadrature methods, such as Gaussian Quadrature and Clenshaw-Curtis quadrature, and their associated error bounds.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant notes that smooth functions yield better performance with low-order quadrature, while more complex functions require higher-order quadrature for similar accuracy.
  • Another participant mentions that Gaussian Quadrature has an error bound related to the function's derivatives, specifically stating that the error is less than a term involving the function's 2n-th derivative.
  • A participant inquires about the error for Clenshaw-Curtis quadrature and shares a found expression indicating its error is bounded by a term involving k-times differentiable integrands.
  • One participant expresses confusion about what constitutes a k-times differentiable integrand and provides examples, suggesting that such a classification might relate to the function's complexity.
  • Another participant suggests that as the parameter L decreases in the function exp(-x^2/L), the quadrature's accuracy worsens, hypothesizing that a higher-order quadrature is needed to accurately sample the narrower function.
  • A side note discusses the difficulty in estimating error for Gaussian Quadrature and suggests a method of estimating error by comparing integrals with different numbers of nodes.
  • There is a clarification regarding the nature of differentiability, with one participant correcting another about the differentiability of polynomial functions.

Areas of Agreement / Disagreement

Participants express various viewpoints on the relationship between function complexity and quadrature accuracy, with no consensus reached on the best approach or specific equations to support their intuitions. Disagreements arise regarding the interpretation of differentiability and its implications for error estimation.

Contextual Notes

Limitations include the dependence on definitions of differentiability and the unresolved nature of how function width impacts quadrature accuracy. The discussion does not resolve the mathematical steps involved in error estimation for different quadrature methods.

Teg Veece
Messages
8
Reaction score
0
Hey,
I'm using a quadrature to estimate the integral of a function.
Intuitively, I know that if the function is a very smooth function, the quadrature will perform well at a low order (few samples).
If however, the function in more complex, I'll need to sample it more frequently for the quadrature to be as accurate.

I'm wondering if there's some equation that expresses this intuition. Something that I can point to and use to explain why more complex functions require a higher order quadrature for the same level of accuracy.

I think the expression should contain some reference to the function's derivative.

Thanks.
 
Last edited:
Physics news on Phys.org
Well, Gaussian Quadrature, is (i'm pretty sure) order 2n accurate, meaning that the error is less than

[tex]\frac{k}{(2n)!}||f^{2n}||_{\infty}[/tex]

where [itex]f[/itex] is the function being interpolated, and [itex]k[/itex] is constant. So, if [itex]f[/itex] is a degree [itex]2n-1[/itex] polynomial, then Gaussian Quadrature is exact.

Does this help?
 
Last edited:
It does actually. Thanks for that.

Do you know what the error is for a Clenshaw-Curtis quadrature?
 
Not off hand, but google probably does :) .
 
I found something on the wikipedia page saying it's error is bounded by
O([2N]^{-k}/k) for a k-times differentiable integrand.

I'm not sure what a k-times differentiable integrand is exactly but, at a guess, is a function like x^2+2x+5 differentiable 3 times and x^9+2 differentiable 10 times so it's a proxy to complexity?The function I'm trying to integrate is exp(-x^2/L) with respect to x between the limits, -1 and 1.
I'm finding though that the smaller I make L, the worse the quadrature gets. I don't think I'm changing the number of times it can be differentiated, so why does the approximation get worse?
My intuition is that by making L smaller, the width of this function (Gaussian) becomes smaller and a higher order quadrature is needed to accurately probe it but I'm not sure if any equation backs this up.
 
Last edited:
As a side note, one of the drawbacks of Gaussian Quadrature is that it is kind of difficult to get a good grasp on the error. For this reason, people estimate the error by [itex]I_m - I_n[/itex] where [itex]m > n[/itex] and [itex]I_n[/itex] is the estimated integral with [itex]n[/itex] nodes.

Now, I think that the problem is that as L gets bigger and bigger, the meaty portion of the function bunches up around [itex]0[/itex], right? So, if you are using a few nodes, you probably aren't getting much sampling from the real "meaty" part of this function.

I'd keep increasing the number of nodes until [itex]I_{n+2} - I_n[/itex] is within your tolerance. This will give you better than necessary accuracy, which isn't all that bad.
 
Teg Veece said:
I found something on the wikipedia page saying it's error is bounded by
O([2N]^{-k}/k) for a k-times differentiable integrand.

I'm not sure what a k-times differentiable integrand is exactly but, at a guess, is a function like x^2+2x+5 differentiable 3 times and x^9+2 differentiable 10 times so it's a proxy to complexity?

You are sort of right. But, [itex]x^9 + 2[/itex] is infinitely times differentiable since the trivial ploynomial [itex]p(x) = 0[/itex] is differentiable.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K