Determine conditions on parameters (for consistency) on RK method $y_{n+1} = y_n + ha_1f(t_n,y_n) + ha_2f(t_n...
$begingroup$
I'm asked to find the conditions on the coefficients $a_1,a_2,b_1,b_2$ in the RK method
$$y_{n+1} = y_n + ha_1f(t_n,y_n) + ha_2f(t_n + b_1h, y_n + b_2hf(t_n,y_n))$$
such that is consistent of (a) first order and (b) second order.
The first assumption I make is that $b_1 = b_2 := b$ otherwise I have no idea how to solve it. I know it should be like this, but why is this reasonable? I know it follows if you look at the butcher tablaeu, but why is a method with $b_1 neq b_2$ "impossible"?
I taylor expand $y(t_{n+1})$,
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + O(h^2).$$
The order of consistency is $p$ if $l = O(h^{p+1})$ where $l$ is the local residual.
The local residual takes the form
$$y(t_n) + hy'(t_n) + O(h^2) - y(t_n) - ha_1f(t_n,y_n) - ha_2f(t_{n+b}, y_{n+b}) $$
$$= hy'(t_n) - ha_1y'(t_n) - ha_2y'(t_{n+b}) + O(h^2).$$
So I need to find $a_1,a_2,b$ so that every term except the $O(h^2)$ remains. I get for (a)
$$a_1 + a_2 = 1, b=0.$$
For (b) I expand one term more
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3)$$
The local residual becomes
$$y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3) - y(t_n) - ha_1y(t_n) - ha_2y(t_{n+b}) $$
But here I am stuck. How am I supposed to choose the coefficients as to remove the $frac{h^2y''(t_n)}{2}$ term?
How do I solve (b)? And is my answer on (a) correct?
numerical-methods taylor-expansion runge-kutta-methods
$endgroup$
add a comment |
$begingroup$
I'm asked to find the conditions on the coefficients $a_1,a_2,b_1,b_2$ in the RK method
$$y_{n+1} = y_n + ha_1f(t_n,y_n) + ha_2f(t_n + b_1h, y_n + b_2hf(t_n,y_n))$$
such that is consistent of (a) first order and (b) second order.
The first assumption I make is that $b_1 = b_2 := b$ otherwise I have no idea how to solve it. I know it should be like this, but why is this reasonable? I know it follows if you look at the butcher tablaeu, but why is a method with $b_1 neq b_2$ "impossible"?
I taylor expand $y(t_{n+1})$,
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + O(h^2).$$
The order of consistency is $p$ if $l = O(h^{p+1})$ where $l$ is the local residual.
The local residual takes the form
$$y(t_n) + hy'(t_n) + O(h^2) - y(t_n) - ha_1f(t_n,y_n) - ha_2f(t_{n+b}, y_{n+b}) $$
$$= hy'(t_n) - ha_1y'(t_n) - ha_2y'(t_{n+b}) + O(h^2).$$
So I need to find $a_1,a_2,b$ so that every term except the $O(h^2)$ remains. I get for (a)
$$a_1 + a_2 = 1, b=0.$$
For (b) I expand one term more
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3)$$
The local residual becomes
$$y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3) - y(t_n) - ha_1y(t_n) - ha_2y(t_{n+b}) $$
But here I am stuck. How am I supposed to choose the coefficients as to remove the $frac{h^2y''(t_n)}{2}$ term?
How do I solve (b)? And is my answer on (a) correct?
numerical-methods taylor-expansion runge-kutta-methods
$endgroup$
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30
add a comment |
$begingroup$
I'm asked to find the conditions on the coefficients $a_1,a_2,b_1,b_2$ in the RK method
$$y_{n+1} = y_n + ha_1f(t_n,y_n) + ha_2f(t_n + b_1h, y_n + b_2hf(t_n,y_n))$$
such that is consistent of (a) first order and (b) second order.
The first assumption I make is that $b_1 = b_2 := b$ otherwise I have no idea how to solve it. I know it should be like this, but why is this reasonable? I know it follows if you look at the butcher tablaeu, but why is a method with $b_1 neq b_2$ "impossible"?
I taylor expand $y(t_{n+1})$,
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + O(h^2).$$
The order of consistency is $p$ if $l = O(h^{p+1})$ where $l$ is the local residual.
The local residual takes the form
$$y(t_n) + hy'(t_n) + O(h^2) - y(t_n) - ha_1f(t_n,y_n) - ha_2f(t_{n+b}, y_{n+b}) $$
$$= hy'(t_n) - ha_1y'(t_n) - ha_2y'(t_{n+b}) + O(h^2).$$
So I need to find $a_1,a_2,b$ so that every term except the $O(h^2)$ remains. I get for (a)
$$a_1 + a_2 = 1, b=0.$$
For (b) I expand one term more
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3)$$
The local residual becomes
$$y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3) - y(t_n) - ha_1y(t_n) - ha_2y(t_{n+b}) $$
But here I am stuck. How am I supposed to choose the coefficients as to remove the $frac{h^2y''(t_n)}{2}$ term?
How do I solve (b)? And is my answer on (a) correct?
numerical-methods taylor-expansion runge-kutta-methods
$endgroup$
I'm asked to find the conditions on the coefficients $a_1,a_2,b_1,b_2$ in the RK method
$$y_{n+1} = y_n + ha_1f(t_n,y_n) + ha_2f(t_n + b_1h, y_n + b_2hf(t_n,y_n))$$
such that is consistent of (a) first order and (b) second order.
The first assumption I make is that $b_1 = b_2 := b$ otherwise I have no idea how to solve it. I know it should be like this, but why is this reasonable? I know it follows if you look at the butcher tablaeu, but why is a method with $b_1 neq b_2$ "impossible"?
I taylor expand $y(t_{n+1})$,
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + O(h^2).$$
The order of consistency is $p$ if $l = O(h^{p+1})$ where $l$ is the local residual.
The local residual takes the form
$$y(t_n) + hy'(t_n) + O(h^2) - y(t_n) - ha_1f(t_n,y_n) - ha_2f(t_{n+b}, y_{n+b}) $$
$$= hy'(t_n) - ha_1y'(t_n) - ha_2y'(t_{n+b}) + O(h^2).$$
So I need to find $a_1,a_2,b$ so that every term except the $O(h^2)$ remains. I get for (a)
$$a_1 + a_2 = 1, b=0.$$
For (b) I expand one term more
$$y(t_{n+1}) = y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3)$$
The local residual becomes
$$y(t_n) + hy'(t_n) + frac{h^2y''(t_n)}{2} + O(h^3) - y(t_n) - ha_1y(t_n) - ha_2y(t_{n+b}) $$
But here I am stuck. How am I supposed to choose the coefficients as to remove the $frac{h^2y''(t_n)}{2}$ term?
How do I solve (b)? And is my answer on (a) correct?
numerical-methods taylor-expansion runge-kutta-methods
numerical-methods taylor-expansion runge-kutta-methods
asked Dec 15 '18 at 20:16
HeuristicsHeuristics
470211
470211
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30
add a comment |
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
Apply the method to $f(t,x)=1$, $f(t,x)=2t$ and $f(t,x)=x$ at $(t_0,x_0)=(0,1)$ to get
begin{align}
f(t,x)=1&:& 1+h &= 1+ha_1+ha_2 &implies& a_1+a_2=1\
f(t,x)=2t&:& 1+h^2 &= 1+ha_2(2(b_1h)) &implies& 2a_2b_1=1\
f(t,x)=x&:& e^h &= 1+ha_1+ha_2(1+b_2h)) + O(h^3)&implies& a_2b_2=frac12
end{align}
so one gets necessarily $a_1=1-a_2$ and $b_1=b_2=frac1{2a_2}$. Now insert these conditions into the Taylor expansion to find that they are also sufficient for all continuously differentiable $f$.
$endgroup$
add a comment |
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%2f3041902%2fdetermine-conditions-on-parameters-for-consistency-on-rk-method-y-n1-y-n%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$
Apply the method to $f(t,x)=1$, $f(t,x)=2t$ and $f(t,x)=x$ at $(t_0,x_0)=(0,1)$ to get
begin{align}
f(t,x)=1&:& 1+h &= 1+ha_1+ha_2 &implies& a_1+a_2=1\
f(t,x)=2t&:& 1+h^2 &= 1+ha_2(2(b_1h)) &implies& 2a_2b_1=1\
f(t,x)=x&:& e^h &= 1+ha_1+ha_2(1+b_2h)) + O(h^3)&implies& a_2b_2=frac12
end{align}
so one gets necessarily $a_1=1-a_2$ and $b_1=b_2=frac1{2a_2}$. Now insert these conditions into the Taylor expansion to find that they are also sufficient for all continuously differentiable $f$.
$endgroup$
add a comment |
$begingroup$
Apply the method to $f(t,x)=1$, $f(t,x)=2t$ and $f(t,x)=x$ at $(t_0,x_0)=(0,1)$ to get
begin{align}
f(t,x)=1&:& 1+h &= 1+ha_1+ha_2 &implies& a_1+a_2=1\
f(t,x)=2t&:& 1+h^2 &= 1+ha_2(2(b_1h)) &implies& 2a_2b_1=1\
f(t,x)=x&:& e^h &= 1+ha_1+ha_2(1+b_2h)) + O(h^3)&implies& a_2b_2=frac12
end{align}
so one gets necessarily $a_1=1-a_2$ and $b_1=b_2=frac1{2a_2}$. Now insert these conditions into the Taylor expansion to find that they are also sufficient for all continuously differentiable $f$.
$endgroup$
add a comment |
$begingroup$
Apply the method to $f(t,x)=1$, $f(t,x)=2t$ and $f(t,x)=x$ at $(t_0,x_0)=(0,1)$ to get
begin{align}
f(t,x)=1&:& 1+h &= 1+ha_1+ha_2 &implies& a_1+a_2=1\
f(t,x)=2t&:& 1+h^2 &= 1+ha_2(2(b_1h)) &implies& 2a_2b_1=1\
f(t,x)=x&:& e^h &= 1+ha_1+ha_2(1+b_2h)) + O(h^3)&implies& a_2b_2=frac12
end{align}
so one gets necessarily $a_1=1-a_2$ and $b_1=b_2=frac1{2a_2}$. Now insert these conditions into the Taylor expansion to find that they are also sufficient for all continuously differentiable $f$.
$endgroup$
Apply the method to $f(t,x)=1$, $f(t,x)=2t$ and $f(t,x)=x$ at $(t_0,x_0)=(0,1)$ to get
begin{align}
f(t,x)=1&:& 1+h &= 1+ha_1+ha_2 &implies& a_1+a_2=1\
f(t,x)=2t&:& 1+h^2 &= 1+ha_2(2(b_1h)) &implies& 2a_2b_1=1\
f(t,x)=x&:& e^h &= 1+ha_1+ha_2(1+b_2h)) + O(h^3)&implies& a_2b_2=frac12
end{align}
so one gets necessarily $a_1=1-a_2$ and $b_1=b_2=frac1{2a_2}$. Now insert these conditions into the Taylor expansion to find that they are also sufficient for all continuously differentiable $f$.
answered Dec 16 '18 at 10:42
LutzLLutzL
57.1k42054
57.1k42054
add a comment |
add a comment |
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%2f3041902%2fdetermine-conditions-on-parameters-for-consistency-on-rk-method-y-n1-y-n%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
$begingroup$
Please indicate cross posts of the same problem: scicomp.stackexchange.com/q/30721/6839
$endgroup$
– LutzL
Dec 16 '18 at 10:26
$begingroup$
Related with partial solution: math.stackexchange.com/questions/2715967/…
$endgroup$
– LutzL
Dec 16 '18 at 10:30