Proof by using Taylor's Remainder Term: Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$ for Trapezoidal...
$begingroup$
I am trying to derive Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$ for Trapezoidal rule of integration by using Taylor's Remainder term
My Approach:
In trapezoidal rule of integration, we divide the interval of integration $[a,b]$ into $n$ equal length sub-intervals and then approximate the function as first degree polynomial to connect the intermediate points.
Let $f(x)$ be the given function, then the Taylor series of $f(x)$ is given by:$$f(x)=f(alpha)+ (x-alpha)f'(alpha) + frac{(x-alpha)^2}{2!}f''(alpha) + frac{(x-alpha)^3}{3!}f''(alpha) + dots$$
We know:$$text{Taylor's Remainder Term}: R_{n+1}(x;c)=frac{(x-c)^{n+1}}{(n+1)!}f^{n+1}(z)$$
where $z$ is a point between $c$ and $x$
So, here
$(n+1)=2$ , $x in [a,b]$, $c=(x-h)$and $zin(x-h,x)$ ,where $h= frac{b-a}{n}$
$$implies R_2(x,x-h)=frac{(x-(x-h))^{2}}{(2)!}f''(z)$$
$$=frac{(h)^{2}}{2}f''(z) dots (i)$$
so, the largest possible error $=max|R_2(x,x-h)|$
$$=frac{(h)^{2}}{2} max|f''(z)| dots(ii)$$
But Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$,
so did i missed anything?? please help anyone...
numerical-methods taylor-expansion truncation-error
$endgroup$
add a comment |
$begingroup$
I am trying to derive Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$ for Trapezoidal rule of integration by using Taylor's Remainder term
My Approach:
In trapezoidal rule of integration, we divide the interval of integration $[a,b]$ into $n$ equal length sub-intervals and then approximate the function as first degree polynomial to connect the intermediate points.
Let $f(x)$ be the given function, then the Taylor series of $f(x)$ is given by:$$f(x)=f(alpha)+ (x-alpha)f'(alpha) + frac{(x-alpha)^2}{2!}f''(alpha) + frac{(x-alpha)^3}{3!}f''(alpha) + dots$$
We know:$$text{Taylor's Remainder Term}: R_{n+1}(x;c)=frac{(x-c)^{n+1}}{(n+1)!}f^{n+1}(z)$$
where $z$ is a point between $c$ and $x$
So, here
$(n+1)=2$ , $x in [a,b]$, $c=(x-h)$and $zin(x-h,x)$ ,where $h= frac{b-a}{n}$
$$implies R_2(x,x-h)=frac{(x-(x-h))^{2}}{(2)!}f''(z)$$
$$=frac{(h)^{2}}{2}f''(z) dots (i)$$
so, the largest possible error $=max|R_2(x,x-h)|$
$$=frac{(h)^{2}}{2} max|f''(z)| dots(ii)$$
But Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$,
so did i missed anything?? please help anyone...
numerical-methods taylor-expansion truncation-error
$endgroup$
1
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38
add a comment |
$begingroup$
I am trying to derive Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$ for Trapezoidal rule of integration by using Taylor's Remainder term
My Approach:
In trapezoidal rule of integration, we divide the interval of integration $[a,b]$ into $n$ equal length sub-intervals and then approximate the function as first degree polynomial to connect the intermediate points.
Let $f(x)$ be the given function, then the Taylor series of $f(x)$ is given by:$$f(x)=f(alpha)+ (x-alpha)f'(alpha) + frac{(x-alpha)^2}{2!}f''(alpha) + frac{(x-alpha)^3}{3!}f''(alpha) + dots$$
We know:$$text{Taylor's Remainder Term}: R_{n+1}(x;c)=frac{(x-c)^{n+1}}{(n+1)!}f^{n+1}(z)$$
where $z$ is a point between $c$ and $x$
So, here
$(n+1)=2$ , $x in [a,b]$, $c=(x-h)$and $zin(x-h,x)$ ,where $h= frac{b-a}{n}$
$$implies R_2(x,x-h)=frac{(x-(x-h))^{2}}{(2)!}f''(z)$$
$$=frac{(h)^{2}}{2}f''(z) dots (i)$$
so, the largest possible error $=max|R_2(x,x-h)|$
$$=frac{(h)^{2}}{2} max|f''(z)| dots(ii)$$
But Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$,
so did i missed anything?? please help anyone...
numerical-methods taylor-expansion truncation-error
$endgroup$
I am trying to derive Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$ for Trapezoidal rule of integration by using Taylor's Remainder term
My Approach:
In trapezoidal rule of integration, we divide the interval of integration $[a,b]$ into $n$ equal length sub-intervals and then approximate the function as first degree polynomial to connect the intermediate points.
Let $f(x)$ be the given function, then the Taylor series of $f(x)$ is given by:$$f(x)=f(alpha)+ (x-alpha)f'(alpha) + frac{(x-alpha)^2}{2!}f''(alpha) + frac{(x-alpha)^3}{3!}f''(alpha) + dots$$
We know:$$text{Taylor's Remainder Term}: R_{n+1}(x;c)=frac{(x-c)^{n+1}}{(n+1)!}f^{n+1}(z)$$
where $z$ is a point between $c$ and $x$
So, here
$(n+1)=2$ , $x in [a,b]$, $c=(x-h)$and $zin(x-h,x)$ ,where $h= frac{b-a}{n}$
$$implies R_2(x,x-h)=frac{(x-(x-h))^{2}}{(2)!}f''(z)$$
$$=frac{(h)^{2}}{2}f''(z) dots (i)$$
so, the largest possible error $=max|R_2(x,x-h)|$
$$=frac{(h)^{2}}{2} max|f''(z)| dots(ii)$$
But Truncation Error $=frac{(b-a)h^2}{12} max{|f''(z)|}$,
so did i missed anything?? please help anyone...
numerical-methods taylor-expansion truncation-error
numerical-methods taylor-expansion truncation-error
asked Dec 15 '18 at 5:12
SureshSuresh
307110
307110
1
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38
add a comment |
1
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38
1
1
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
You need to first obtain a local approximation over a subinterval.
The error in approximating the integral on a subinterval $[x_n, x_{n+1}]$ with $h = x_{n+1} - x_n$ using the trapezoidal formula is
$$E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx.$$
Integration by parts shows this to be
$$E_n = int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx,$$
where $c = (x_{n+1}+x_n)/2$ is the midpoint.
To see this, note that
$$x_{n+1} - c = c - x_n = frac{x_{n+1} - x_n}{2} = frac{h}{2},$$
and with $u = (x-c)$ and $dv = f'(x)dx$, integration by parts yields
$$int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx = (x-c)f(x)|_{x_n}^{x_{n+1}} - int_{x_n}^{x_{n+1}} f(x) , dx = E_n.$$
If the second derivative is bounded with $max |f''(x)| = M$, then we can demonstrate $O(h^3)$ local accuracy. Another integration by parts yields
$$E_n = frac1{2} int_{x_n}^{x_{n+1}} [(h/2)^2 - (x-c)^2]f''(x) , dx.$$
Using the bound for $f''$ and integrating we obtain the local error bound
$$|E_n| leqslant frac{M}{12}h^3$$
Summing over $m$ subintervals where $mh = b-a$ we get the global error bound
$$ |GE| leqslant frac{Mmh^3}{12}= frac{(b-a)h^2}{12}M$$
$endgroup$
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
|
show 5 more comments
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',
autoActivateHeartbeat: false,
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3040198%2fproof-by-using-taylors-remainder-term-truncation-error-fracb-ah212%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
You need to first obtain a local approximation over a subinterval.
The error in approximating the integral on a subinterval $[x_n, x_{n+1}]$ with $h = x_{n+1} - x_n$ using the trapezoidal formula is
$$E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx.$$
Integration by parts shows this to be
$$E_n = int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx,$$
where $c = (x_{n+1}+x_n)/2$ is the midpoint.
To see this, note that
$$x_{n+1} - c = c - x_n = frac{x_{n+1} - x_n}{2} = frac{h}{2},$$
and with $u = (x-c)$ and $dv = f'(x)dx$, integration by parts yields
$$int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx = (x-c)f(x)|_{x_n}^{x_{n+1}} - int_{x_n}^{x_{n+1}} f(x) , dx = E_n.$$
If the second derivative is bounded with $max |f''(x)| = M$, then we can demonstrate $O(h^3)$ local accuracy. Another integration by parts yields
$$E_n = frac1{2} int_{x_n}^{x_{n+1}} [(h/2)^2 - (x-c)^2]f''(x) , dx.$$
Using the bound for $f''$ and integrating we obtain the local error bound
$$|E_n| leqslant frac{M}{12}h^3$$
Summing over $m$ subintervals where $mh = b-a$ we get the global error bound
$$ |GE| leqslant frac{Mmh^3}{12}= frac{(b-a)h^2}{12}M$$
$endgroup$
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
|
show 5 more comments
$begingroup$
You need to first obtain a local approximation over a subinterval.
The error in approximating the integral on a subinterval $[x_n, x_{n+1}]$ with $h = x_{n+1} - x_n$ using the trapezoidal formula is
$$E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx.$$
Integration by parts shows this to be
$$E_n = int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx,$$
where $c = (x_{n+1}+x_n)/2$ is the midpoint.
To see this, note that
$$x_{n+1} - c = c - x_n = frac{x_{n+1} - x_n}{2} = frac{h}{2},$$
and with $u = (x-c)$ and $dv = f'(x)dx$, integration by parts yields
$$int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx = (x-c)f(x)|_{x_n}^{x_{n+1}} - int_{x_n}^{x_{n+1}} f(x) , dx = E_n.$$
If the second derivative is bounded with $max |f''(x)| = M$, then we can demonstrate $O(h^3)$ local accuracy. Another integration by parts yields
$$E_n = frac1{2} int_{x_n}^{x_{n+1}} [(h/2)^2 - (x-c)^2]f''(x) , dx.$$
Using the bound for $f''$ and integrating we obtain the local error bound
$$|E_n| leqslant frac{M}{12}h^3$$
Summing over $m$ subintervals where $mh = b-a$ we get the global error bound
$$ |GE| leqslant frac{Mmh^3}{12}= frac{(b-a)h^2}{12}M$$
$endgroup$
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
|
show 5 more comments
$begingroup$
You need to first obtain a local approximation over a subinterval.
The error in approximating the integral on a subinterval $[x_n, x_{n+1}]$ with $h = x_{n+1} - x_n$ using the trapezoidal formula is
$$E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx.$$
Integration by parts shows this to be
$$E_n = int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx,$$
where $c = (x_{n+1}+x_n)/2$ is the midpoint.
To see this, note that
$$x_{n+1} - c = c - x_n = frac{x_{n+1} - x_n}{2} = frac{h}{2},$$
and with $u = (x-c)$ and $dv = f'(x)dx$, integration by parts yields
$$int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx = (x-c)f(x)|_{x_n}^{x_{n+1}} - int_{x_n}^{x_{n+1}} f(x) , dx = E_n.$$
If the second derivative is bounded with $max |f''(x)| = M$, then we can demonstrate $O(h^3)$ local accuracy. Another integration by parts yields
$$E_n = frac1{2} int_{x_n}^{x_{n+1}} [(h/2)^2 - (x-c)^2]f''(x) , dx.$$
Using the bound for $f''$ and integrating we obtain the local error bound
$$|E_n| leqslant frac{M}{12}h^3$$
Summing over $m$ subintervals where $mh = b-a$ we get the global error bound
$$ |GE| leqslant frac{Mmh^3}{12}= frac{(b-a)h^2}{12}M$$
$endgroup$
You need to first obtain a local approximation over a subinterval.
The error in approximating the integral on a subinterval $[x_n, x_{n+1}]$ with $h = x_{n+1} - x_n$ using the trapezoidal formula is
$$E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx.$$
Integration by parts shows this to be
$$E_n = int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx,$$
where $c = (x_{n+1}+x_n)/2$ is the midpoint.
To see this, note that
$$x_{n+1} - c = c - x_n = frac{x_{n+1} - x_n}{2} = frac{h}{2},$$
and with $u = (x-c)$ and $dv = f'(x)dx$, integration by parts yields
$$int_{x_n}^{x_{n+1}}(x-c)f'(x) , dx = (x-c)f(x)|_{x_n}^{x_{n+1}} - int_{x_n}^{x_{n+1}} f(x) , dx = E_n.$$
If the second derivative is bounded with $max |f''(x)| = M$, then we can demonstrate $O(h^3)$ local accuracy. Another integration by parts yields
$$E_n = frac1{2} int_{x_n}^{x_{n+1}} [(h/2)^2 - (x-c)^2]f''(x) , dx.$$
Using the bound for $f''$ and integrating we obtain the local error bound
$$|E_n| leqslant frac{M}{12}h^3$$
Summing over $m$ subintervals where $mh = b-a$ we get the global error bound
$$ |GE| leqslant frac{Mmh^3}{12}= frac{(b-a)h^2}{12}M$$
edited Dec 15 '18 at 19:51
answered Dec 15 '18 at 5:34
RRLRRL
51.6k42573
51.6k42573
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
|
show 5 more comments
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
1
1
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
$begingroup$
@Suresh: You're welcome. You can start by looking at this and I'll see if I can find a better reference or derive it for you.
$endgroup$
– RRL
Dec 15 '18 at 6:32
1
1
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
$begingroup$
I do however think this is the "best" approach and is worth learning.
$endgroup$
– RRL
Dec 15 '18 at 6:33
1
1
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
$begingroup$
That is correct. Now you can write the first term as $-cf(x)|_{x_n}^{x_{n+1}} = -cint_{x_n}^{x_{n+1}} f'(x) , dx$ and you will get $E_n=int_{x_n}^{x_{n+1}} (x-c)f'(x) , dx$.
$endgroup$
– RRL
Dec 15 '18 at 13:14
1
1
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
$begingroup$
+1: Not a criticism of the above, but I would like to see an error analysis that makes the error 'obvious'. The integration by parts twice certainly yields the desired result, but personally I find the (textbook) derivation a bit opaque in terms of intuition.
$endgroup$
– copper.hat
Dec 15 '18 at 20:23
1
1
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
$begingroup$
@copper.hat: Thank you. I agree. I had a more transparent way in mind showing $mathcal{O}(h^3)$ local error but could get the coefficient $1/12$. Not sure if that is important to OP.
$endgroup$
– RRL
Dec 15 '18 at 23:31
|
show 5 more comments
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3040198%2fproof-by-using-taylors-remainder-term-truncation-error-fracb-ah212%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
$begingroup$
Where is your $int$? You are estimating the truncation error of an integral yet no integral appears here.
$endgroup$
– xbh
Dec 15 '18 at 5:32
$begingroup$
Using the Taylor's approximation is messy. An easier way is to apply integration by parts to estimate the local error $E_n = frac{h}{2}[f(x_n) + f(x_{n+1})] - int_{x_n}^{x_{n+1}} f(x) , dx$
$endgroup$
– RRL
Dec 15 '18 at 5:38