Error bound explanation (answer given)











up vote
1
down vote

favorite












I have been able to derive the interpolation polynomial $P_2(x)$ of degree two which interpolates $f(x) = sin x$, given the points $(0,0), left(frac{pi}{2}, 1right), (pi, 0).$



Solution:
$$P_2(x) = frac{4}{pi ^2}x(pi - x)$$



**Here is the question below I am having trouble with. I have the solution below I am just looking for some help with understanding it. **




Calculate $P_2left(frac{pi}{4}right)$, an approximation for $fleft( frac{pi}{4}right) = sin left( frac{pi}{4} right)$ and determine the error bound for the interpolation error at $x = frac{pi}{4}.$




Solution:



For the error bound we know that



$$E(f) = frac{(x-0)(x-frac{pi}{2})(x-pi)}{3!}f'''(z)$$
Using $f''' =-cos (x)$ and this the bound $|cos(z)|leq 1$ we obtain at $x = frac{pi}{4}$"



$$|E(f)|leq frac{pi ^3}{128}$$



How did they get:



$$|E(f)|leq frac{pi ^3}{128}$$



where is the $128$ coming from?










share|cite|improve this question






















  • Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
    – xbh
    Nov 12 at 17:13










  • @xbh why don't you calculate $f'''(z)$ in that calculation?
    – user123
    Nov 12 at 17:15










  • You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
    – xbh
    Nov 12 at 17:18






  • 1




    Yeah, that is what I meant.
    – xbh
    Nov 12 at 17:26






  • 1




    You are welcome. Glad to help.
    – xbh
    Nov 12 at 17:27















up vote
1
down vote

favorite












I have been able to derive the interpolation polynomial $P_2(x)$ of degree two which interpolates $f(x) = sin x$, given the points $(0,0), left(frac{pi}{2}, 1right), (pi, 0).$



Solution:
$$P_2(x) = frac{4}{pi ^2}x(pi - x)$$



**Here is the question below I am having trouble with. I have the solution below I am just looking for some help with understanding it. **




Calculate $P_2left(frac{pi}{4}right)$, an approximation for $fleft( frac{pi}{4}right) = sin left( frac{pi}{4} right)$ and determine the error bound for the interpolation error at $x = frac{pi}{4}.$




Solution:



For the error bound we know that



$$E(f) = frac{(x-0)(x-frac{pi}{2})(x-pi)}{3!}f'''(z)$$
Using $f''' =-cos (x)$ and this the bound $|cos(z)|leq 1$ we obtain at $x = frac{pi}{4}$"



$$|E(f)|leq frac{pi ^3}{128}$$



How did they get:



$$|E(f)|leq frac{pi ^3}{128}$$



where is the $128$ coming from?










share|cite|improve this question






















  • Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
    – xbh
    Nov 12 at 17:13










  • @xbh why don't you calculate $f'''(z)$ in that calculation?
    – user123
    Nov 12 at 17:15










  • You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
    – xbh
    Nov 12 at 17:18






  • 1




    Yeah, that is what I meant.
    – xbh
    Nov 12 at 17:26






  • 1




    You are welcome. Glad to help.
    – xbh
    Nov 12 at 17:27













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have been able to derive the interpolation polynomial $P_2(x)$ of degree two which interpolates $f(x) = sin x$, given the points $(0,0), left(frac{pi}{2}, 1right), (pi, 0).$



Solution:
$$P_2(x) = frac{4}{pi ^2}x(pi - x)$$



**Here is the question below I am having trouble with. I have the solution below I am just looking for some help with understanding it. **




Calculate $P_2left(frac{pi}{4}right)$, an approximation for $fleft( frac{pi}{4}right) = sin left( frac{pi}{4} right)$ and determine the error bound for the interpolation error at $x = frac{pi}{4}.$




Solution:



For the error bound we know that



$$E(f) = frac{(x-0)(x-frac{pi}{2})(x-pi)}{3!}f'''(z)$$
Using $f''' =-cos (x)$ and this the bound $|cos(z)|leq 1$ we obtain at $x = frac{pi}{4}$"



$$|E(f)|leq frac{pi ^3}{128}$$



How did they get:



$$|E(f)|leq frac{pi ^3}{128}$$



where is the $128$ coming from?










share|cite|improve this question













I have been able to derive the interpolation polynomial $P_2(x)$ of degree two which interpolates $f(x) = sin x$, given the points $(0,0), left(frac{pi}{2}, 1right), (pi, 0).$



Solution:
$$P_2(x) = frac{4}{pi ^2}x(pi - x)$$



**Here is the question below I am having trouble with. I have the solution below I am just looking for some help with understanding it. **




Calculate $P_2left(frac{pi}{4}right)$, an approximation for $fleft( frac{pi}{4}right) = sin left( frac{pi}{4} right)$ and determine the error bound for the interpolation error at $x = frac{pi}{4}.$




Solution:



For the error bound we know that



$$E(f) = frac{(x-0)(x-frac{pi}{2})(x-pi)}{3!}f'''(z)$$
Using $f''' =-cos (x)$ and this the bound $|cos(z)|leq 1$ we obtain at $x = frac{pi}{4}$"



$$|E(f)|leq frac{pi ^3}{128}$$



How did they get:



$$|E(f)|leq frac{pi ^3}{128}$$



where is the $128$ coming from?







calculus linear-algebra numerical-methods






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Nov 12 at 17:08









user123

46319




46319












  • Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
    – xbh
    Nov 12 at 17:13










  • @xbh why don't you calculate $f'''(z)$ in that calculation?
    – user123
    Nov 12 at 17:15










  • You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
    – xbh
    Nov 12 at 17:18






  • 1




    Yeah, that is what I meant.
    – xbh
    Nov 12 at 17:26






  • 1




    You are welcome. Glad to help.
    – xbh
    Nov 12 at 17:27


















  • Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
    – xbh
    Nov 12 at 17:13










  • @xbh why don't you calculate $f'''(z)$ in that calculation?
    – user123
    Nov 12 at 17:15










  • You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
    – xbh
    Nov 12 at 17:18






  • 1




    Yeah, that is what I meant.
    – xbh
    Nov 12 at 17:26






  • 1




    You are welcome. Glad to help.
    – xbh
    Nov 12 at 17:27
















Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
– xbh
Nov 12 at 17:13




Direct computation by plug $x =pi/4$ into $E(f)$… seems like that.
– xbh
Nov 12 at 17:13












@xbh why don't you calculate $f'''(z)$ in that calculation?
– user123
Nov 12 at 17:15




@xbh why don't you calculate $f'''(z)$ in that calculation?
– user123
Nov 12 at 17:15












You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
– xbh
Nov 12 at 17:18




You can do that, but all that asked is a general bound for $E(f)$, so you could just use $1$ to bound the derivative $f'''$. If you like, you can explicitly calculate $f'''(pi/4)$ to get a more accurate bound. The answer is not unique, I think.
– xbh
Nov 12 at 17:18




1




1




Yeah, that is what I meant.
– xbh
Nov 12 at 17:26




Yeah, that is what I meant.
– xbh
Nov 12 at 17:26




1




1




You are welcome. Glad to help.
– xbh
Nov 12 at 17:27




You are welcome. Glad to help.
– xbh
Nov 12 at 17:27















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%2f2995573%2ferror-bound-explanation-answer-given%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%2f2995573%2ferror-bound-explanation-answer-given%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

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?