How to Determine Taylor Order for M2 in Runge Kutta Method?

Click For Summary

Homework Help Overview

The discussion revolves around determining the appropriate Taylor series orders for the terms in the Runge-Kutta method, specifically focusing on M2, M3, and M4, in the context of demonstrating that the local error is of fourth order.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the implications of the error order in relation to the Taylor series expansions for M2, M3, and M4.
  • There is a consideration of whether different orders of Taylor series can be used for M2 and the appropriateness of using a zero-order Taylor series.
  • Some participants question the relationship between the order of the method and the required Taylor series expansions.

Discussion Status

The conversation is ongoing, with participants exploring various interpretations of the Taylor series orders needed for the Runge-Kutta method. Some guidance has been offered regarding the expected orders, but no consensus has been reached on the specifics of M2's Taylor series order.

Contextual Notes

Participants are navigating the constraints of demonstrating a local error of fourth order while discussing the implications of using different Taylor series orders for various terms in the method.

MaxManus
Messages
268
Reaction score
1

Homework Statement


h is the timestep

Y' = F(Y)

Mk,1 = F(Yk)

Mk,2 = F(Yk + 0.5*Mk,1)

Mk,3 = F(Yk + h*Mk,2)

Mk,4 = F(Yk + h*Mk,3)

Yk+1 = Yk + (h/6)*(Mk,1 + 4Mk,2 + Mk,4)

Show that the local error is of fourth order


The Attempt at a Solution



I have written down the fourth order tayler series of Y

and the equation for Runge Kutta k = 0

What I need help with is what order I am supposed to write the tayler series for M4, M3 and M2
 
Physics news on Phys.org
Fourth order means that the error is on the order of h5. What does that tell you about the order of those Taylor series?
 
Thanks, my taylor series for Y has an error of order 4 so then it is of third order and not fourth.

I'm not sure about your question. Are you saying that I'm supposed to write the third order taylor series for M2,M3 and M4?
 
Last edited:
My Taylor series for Y

Y(t1) = Y(to) + Y'(t0)h + 0.5Y''(t0)h^2 + (1/6)*Y'''(t0)h^3 + (1/24)*Y''''(E)h^4

E is between t0 and t1
 
Your Taylor series should be fifth order.
 
If Y(t1) is my tayler series and Y1 is my RungeKutta expression
I thought I should get:
Y1 = Y/t0) + Y'(to)h + 0.5Y''(t0)h^2 + (1/6)Y'''h^3 + Q*h^4

Where Q is a function of Y and its derivatives

To find the local error
abs(Y(t1) - Yt1) = W*h^4

where W is a function of Y and its derivatives.

But this is wrong?
 
An nth order method means that the error is on the order of hn+1. This means your Taylor series should be fourth order plus a fifth order error term to show that the method is fourth order.
 
But I'm supposed to show that the local error is of fourth order. That means that the method is of third order?
And I should use third order Taylor series for Y(t1)?
 
Solved with two questions
My solution:
M4: Second order Taylor
M3: First order Taylor
M2: Here I used second order for the term that stands alone and zero order for the one inside M3

The trick was to do M4 first to see what Taylor order you needed for M3 to keep the error of order four

Am I allowed to use to different Taylor orders for M2. And is zero order allowed?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
51K
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K