Calculating the constants for Runge-Kutta order 4 in other form












0












$begingroup$


I know why Runge-Kutta order 4 can be written in the below form I guess. But I don't know how I should go about to calculate the constants required.

Runge-Kutta order 4 can also be written in the below form:
$$w_0 = alpha_{0}$$
$$
w_{i+1} = w_i + frac{h}{6}f(t_i, w_i)+frac{h}{3}f(t_i+alpha_1h,w_i+delta_1f(t_i,w_i))+frac{h}{3}f(t_i+alpha_2h,w_i+delta_2hf(t_i+gamma_2h,w_i+gamma_3hf(t_i,w_i)))+frac{h}{6}f(t_i+alpha_3h,w_i+delta_3hf(t_i+gamma_4h,w_i+gamma_5hf(t_i+gamma_6h,w_i+gamma_7hf(t_i,w_i))))
$$

How should I find out the constants $alpha_1$, $alpha_2$, $alpha_3$, $delta_1$, $delta_2$, $delta_3$, $gamma_2$, $gamma_3$, $gamma_4$, $gamma_5$, $gamma_6$, $gamma_7$ ?

I tried to somehow write the taylor expansion for the function and compare the coefficients but my solution leaded some unsolvable equations.










share|cite|improve this question











$endgroup$












  • $begingroup$
    en.wikipedia.org/wiki/…
    $endgroup$
    – caverac
    Dec 29 '18 at 23:45










  • $begingroup$
    @caverac But the one in the wikipedia is not in the form I have posed the question.
    $endgroup$
    – FreeMind
    Dec 29 '18 at 23:46










  • $begingroup$
    This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:47










  • $begingroup$
    Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:54






  • 1




    $begingroup$
    @FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
    $endgroup$
    – Christoph
    Jan 1 at 9:15


















0












$begingroup$


I know why Runge-Kutta order 4 can be written in the below form I guess. But I don't know how I should go about to calculate the constants required.

Runge-Kutta order 4 can also be written in the below form:
$$w_0 = alpha_{0}$$
$$
w_{i+1} = w_i + frac{h}{6}f(t_i, w_i)+frac{h}{3}f(t_i+alpha_1h,w_i+delta_1f(t_i,w_i))+frac{h}{3}f(t_i+alpha_2h,w_i+delta_2hf(t_i+gamma_2h,w_i+gamma_3hf(t_i,w_i)))+frac{h}{6}f(t_i+alpha_3h,w_i+delta_3hf(t_i+gamma_4h,w_i+gamma_5hf(t_i+gamma_6h,w_i+gamma_7hf(t_i,w_i))))
$$

How should I find out the constants $alpha_1$, $alpha_2$, $alpha_3$, $delta_1$, $delta_2$, $delta_3$, $gamma_2$, $gamma_3$, $gamma_4$, $gamma_5$, $gamma_6$, $gamma_7$ ?

I tried to somehow write the taylor expansion for the function and compare the coefficients but my solution leaded some unsolvable equations.










share|cite|improve this question











$endgroup$












  • $begingroup$
    en.wikipedia.org/wiki/…
    $endgroup$
    – caverac
    Dec 29 '18 at 23:45










  • $begingroup$
    @caverac But the one in the wikipedia is not in the form I have posed the question.
    $endgroup$
    – FreeMind
    Dec 29 '18 at 23:46










  • $begingroup$
    This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:47










  • $begingroup$
    Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:54






  • 1




    $begingroup$
    @FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
    $endgroup$
    – Christoph
    Jan 1 at 9:15
















0












0








0





$begingroup$


I know why Runge-Kutta order 4 can be written in the below form I guess. But I don't know how I should go about to calculate the constants required.

Runge-Kutta order 4 can also be written in the below form:
$$w_0 = alpha_{0}$$
$$
w_{i+1} = w_i + frac{h}{6}f(t_i, w_i)+frac{h}{3}f(t_i+alpha_1h,w_i+delta_1f(t_i,w_i))+frac{h}{3}f(t_i+alpha_2h,w_i+delta_2hf(t_i+gamma_2h,w_i+gamma_3hf(t_i,w_i)))+frac{h}{6}f(t_i+alpha_3h,w_i+delta_3hf(t_i+gamma_4h,w_i+gamma_5hf(t_i+gamma_6h,w_i+gamma_7hf(t_i,w_i))))
$$

How should I find out the constants $alpha_1$, $alpha_2$, $alpha_3$, $delta_1$, $delta_2$, $delta_3$, $gamma_2$, $gamma_3$, $gamma_4$, $gamma_5$, $gamma_6$, $gamma_7$ ?

I tried to somehow write the taylor expansion for the function and compare the coefficients but my solution leaded some unsolvable equations.










share|cite|improve this question











$endgroup$




I know why Runge-Kutta order 4 can be written in the below form I guess. But I don't know how I should go about to calculate the constants required.

Runge-Kutta order 4 can also be written in the below form:
$$w_0 = alpha_{0}$$
$$
w_{i+1} = w_i + frac{h}{6}f(t_i, w_i)+frac{h}{3}f(t_i+alpha_1h,w_i+delta_1f(t_i,w_i))+frac{h}{3}f(t_i+alpha_2h,w_i+delta_2hf(t_i+gamma_2h,w_i+gamma_3hf(t_i,w_i)))+frac{h}{6}f(t_i+alpha_3h,w_i+delta_3hf(t_i+gamma_4h,w_i+gamma_5hf(t_i+gamma_6h,w_i+gamma_7hf(t_i,w_i))))
$$

How should I find out the constants $alpha_1$, $alpha_2$, $alpha_3$, $delta_1$, $delta_2$, $delta_3$, $gamma_2$, $gamma_3$, $gamma_4$, $gamma_5$, $gamma_6$, $gamma_7$ ?

I tried to somehow write the taylor expansion for the function and compare the coefficients but my solution leaded some unsolvable equations.







ordinary-differential-equations numerical-methods taylor-expansion runge-kutta-methods






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 30 '18 at 1:06







FreeMind

















asked Dec 29 '18 at 23:42









FreeMindFreeMind

9231133




9231133












  • $begingroup$
    en.wikipedia.org/wiki/…
    $endgroup$
    – caverac
    Dec 29 '18 at 23:45










  • $begingroup$
    @caverac But the one in the wikipedia is not in the form I have posed the question.
    $endgroup$
    – FreeMind
    Dec 29 '18 at 23:46










  • $begingroup$
    This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:47










  • $begingroup$
    Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:54






  • 1




    $begingroup$
    @FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
    $endgroup$
    – Christoph
    Jan 1 at 9:15




















  • $begingroup$
    en.wikipedia.org/wiki/…
    $endgroup$
    – caverac
    Dec 29 '18 at 23:45










  • $begingroup$
    @caverac But the one in the wikipedia is not in the form I have posed the question.
    $endgroup$
    – FreeMind
    Dec 29 '18 at 23:46










  • $begingroup$
    This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:47










  • $begingroup$
    Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
    $endgroup$
    – LutzL
    Dec 30 '18 at 11:54






  • 1




    $begingroup$
    @FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
    $endgroup$
    – Christoph
    Jan 1 at 9:15


















$begingroup$
en.wikipedia.org/wiki/…
$endgroup$
– caverac
Dec 29 '18 at 23:45




$begingroup$
en.wikipedia.org/wiki/…
$endgroup$
– caverac
Dec 29 '18 at 23:45












$begingroup$
@caverac But the one in the wikipedia is not in the form I have posed the question.
$endgroup$
– FreeMind
Dec 29 '18 at 23:46




$begingroup$
@caverac But the one in the wikipedia is not in the form I have posed the question.
$endgroup$
– FreeMind
Dec 29 '18 at 23:46












$begingroup$
This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
$endgroup$
– LutzL
Dec 30 '18 at 11:47




$begingroup$
This does not make sense. Where does this problem come from? RK4 requires 4 evaluations of $f$ per step. The form you wrote requires up to $7$ evaluations of $f$, why make this over-general formula?
$endgroup$
– LutzL
Dec 30 '18 at 11:47












$begingroup$
Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
$endgroup$
– LutzL
Dec 30 '18 at 11:54




$begingroup$
Essentially, you are asking about the order equations for the Butcher tableau begin{array}{l|lllllll} 0&\ α_1&δ_1 \ γ_2&γ_3 \ α_2&0&0&δ_1 \ γ_6&γ_7 \ γ_4&0&0&0&0&γ_5 \ α_2&0&0&0&0&0&δ_1 \ hline &frac16&frac13&0&frac13&0&0&frac16 end{array}
$endgroup$
– LutzL
Dec 30 '18 at 11:54




1




1




$begingroup$
@FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
$endgroup$
– Christoph
Jan 1 at 9:15






$begingroup$
@FreeMind: I think you misunderstood the exercise. The task is not to derive these constants from some order conditions, but rather to start with the classical fourth-order Runge-Kutta method for the initial-value problem $w' = f(t,w)$, $w(t_0)=alpha_0$, and to rewrite it in the form above, which gives you the values of the constants.
$endgroup$
– Christoph
Jan 1 at 9:15












0






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',
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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056373%2fcalculating-the-constants-for-runge-kutta-order-4-in-other-form%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056373%2fcalculating-the-constants-for-runge-kutta-order-4-in-other-form%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

Bressuire

Cabo Verde

Gyllenstierna