English subtitles

← 03-38 A Zoo of Methods

Get Embed Code
1 Language

Showing Revision 2 created 10/24/2012 by Amara Bot.

  1. Now, let's have a look at the zoo of methods that we've seen so far
  2. and then let's add one further method to that collection.
  3. The forward Euler method work by starting from the current value
  4. and then incrementing that by step size h times the rate of change at the current point.
  5. I'm writing f for the rate of change here.
  6. Heun method also known as the improved or the modified Euler method
  7. advances by the time step times the average of the rate of change at the beginning
  8. plus the rate of change at the position predicted by the forward Euler method.
  9. With the forward Euler method, the error of a numerical solution grows linearly with step size.
  10. If you double the step size, the global error also doubles approximately at least.
  11. The forward Euler method is a method of order 1. This function, the error grows like h¹.
  12. Heun method, however, is the solver of order 2. The error grows like h squared.
  13. If you take half the step size, the error is shrinking to one quarter, which is much more efficient.
  14. For the backward Euler method, you advance by the rate of change at the new position,
  15. which makes this equation difficult--it's an implicit equation.
  16. To complete our zoo of methods, we add a method that looks like Heun method
  17. but is implicit like the backward Euler method.
  18. This new rule is called the trapezoidal rule. Like Heun method, it's a method of order 2.
  19. And if you compare these equations, they look pretty similar.
  20. The trapezoidal rule advances by the average of the rate of change at the beginning
  21. and the rate of change at the end, which means that this is an implicit equation.