Bounds for the error of this approximation to the Bessel function











up vote
1
down vote

favorite
1












I found a nice explicit approximation to the Bessel function today, using the integral:



$$J_0(x)=frac{2}{pi} int_0^1 frac{cos x u}{sqrt{1-u^2}}du$$



With Chebyshev-Gauss quadrature we can see that the following approximation works:



$$J_0(x) approx frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$



Here's an example for $n=20$, which shows that the approximation is very good for small $x$.



enter image description here





However, for large arguments the quadrature quickly loses the accuracy, because of strong oscillatory behavior of the integrand.



Numerically for $ x gg n$ the error quickly blows up and starts oscillating.




Because I want to implement this approximation in an algorithm, I would like to know if we can derive explicit bounds for the error:




$$E(n,x)=J_0(x)- frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$










share|cite|improve this question
























  • One more interesting question from you ! Cheers.
    – Claude Leibovici
    Nov 19 at 9:53










  • @ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
    – Yuriy S
    Nov 19 at 10:05















up vote
1
down vote

favorite
1












I found a nice explicit approximation to the Bessel function today, using the integral:



$$J_0(x)=frac{2}{pi} int_0^1 frac{cos x u}{sqrt{1-u^2}}du$$



With Chebyshev-Gauss quadrature we can see that the following approximation works:



$$J_0(x) approx frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$



Here's an example for $n=20$, which shows that the approximation is very good for small $x$.



enter image description here





However, for large arguments the quadrature quickly loses the accuracy, because of strong oscillatory behavior of the integrand.



Numerically for $ x gg n$ the error quickly blows up and starts oscillating.




Because I want to implement this approximation in an algorithm, I would like to know if we can derive explicit bounds for the error:




$$E(n,x)=J_0(x)- frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$










share|cite|improve this question
























  • One more interesting question from you ! Cheers.
    – Claude Leibovici
    Nov 19 at 9:53










  • @ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
    – Yuriy S
    Nov 19 at 10:05













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I found a nice explicit approximation to the Bessel function today, using the integral:



$$J_0(x)=frac{2}{pi} int_0^1 frac{cos x u}{sqrt{1-u^2}}du$$



With Chebyshev-Gauss quadrature we can see that the following approximation works:



$$J_0(x) approx frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$



Here's an example for $n=20$, which shows that the approximation is very good for small $x$.



enter image description here





However, for large arguments the quadrature quickly loses the accuracy, because of strong oscillatory behavior of the integrand.



Numerically for $ x gg n$ the error quickly blows up and starts oscillating.




Because I want to implement this approximation in an algorithm, I would like to know if we can derive explicit bounds for the error:




$$E(n,x)=J_0(x)- frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$










share|cite|improve this question















I found a nice explicit approximation to the Bessel function today, using the integral:



$$J_0(x)=frac{2}{pi} int_0^1 frac{cos x u}{sqrt{1-u^2}}du$$



With Chebyshev-Gauss quadrature we can see that the following approximation works:



$$J_0(x) approx frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$



Here's an example for $n=20$, which shows that the approximation is very good for small $x$.



enter image description here





However, for large arguments the quadrature quickly loses the accuracy, because of strong oscillatory behavior of the integrand.



Numerically for $ x gg n$ the error quickly blows up and starts oscillating.




Because I want to implement this approximation in an algorithm, I would like to know if we can derive explicit bounds for the error:




$$E(n,x)=J_0(x)- frac{1}{n} sum_{k=1}^n cos left(x cos left( frac{2k-1}{2n} pi right) right)$$







integration numerical-methods approximation bessel-functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 2 days ago

























asked Nov 16 at 21:21









Yuriy S

15.5k433115




15.5k433115












  • One more interesting question from you ! Cheers.
    – Claude Leibovici
    Nov 19 at 9:53










  • @ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
    – Yuriy S
    Nov 19 at 10:05


















  • One more interesting question from you ! Cheers.
    – Claude Leibovici
    Nov 19 at 9:53










  • @ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
    – Yuriy S
    Nov 19 at 10:05
















One more interesting question from you ! Cheers.
– Claude Leibovici
Nov 19 at 9:53




One more interesting question from you ! Cheers.
– Claude Leibovici
Nov 19 at 9:53












@ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
– Yuriy S
Nov 19 at 10:05




@ClaudeLeibovici, thank you! Your expertise is always appreciated. I never had a numerical methods course, so I learn them as I go along. As for this, I already found the explicit expression for the remainder term, so I will probably answer the question myself
– Yuriy S
Nov 19 at 10:05















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3001655%2fbounds-for-the-error-of-this-approximation-to-the-bessel-function%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3001655%2fbounds-for-the-error-of-this-approximation-to-the-bessel-function%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

Npm cannot find a required file even through it is in the searched directory