Log in Sign up
Back to Discover
🔢

Euler method

math Maturity 7-9

We can guess the shape of a line.

Euler method.svg
Euler method.svg
We take many small steps. Each step follows a path. Small steps help us stay close. This helps us find the right way. Can you draw a curvy line?

43 words

Imagine a curvy line you cannot see.

Euler method.svg
Euler method.svg
You know where it starts. You also know its path.

To find the line, you take small steps. At each step, you look at the slope. The slope tells you which way to go.

Leonhard Euler found this way to work.

Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg
You can use many tiny steps to stay close.

Small steps make the line more correct. Large steps can make mistakes. If steps are too big, the line might go the wrong way.

This method helps us guess the shape of unknown curves.

97 words

Imagine you want to draw a curvy line. You cannot see the whole line yet.

Euler method.svg
Euler method.svg
You only know where the line starts. You also know a rule for its slope. The slope tells you how steep the line is at any point.

Leonhard Euler found a way to use this rule.

Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg
You start at your first point. You look at the slope to see which way to go. Then, you take a small step in that direction. This step lands you at a new point. You repeat this many times to build a path.

This path is an approximation. An approximation is a close guess. If your steps are tiny, your guess is very good. If your steps are large, you might make big mistakes.

Numerical integration illustration, step=1.svg
Numerical integration illustration, step=1.svg
Large steps can make the line drift far from the real path. Sometimes, the path can even go the wrong way. This is called being unstable. To get a very exact answer, you might need many steps. This can take a lot of work for a computer. Because of this, people often use even better methods for hard math.

194 words

Imagine you want to draw a curvy line on a piece of paper. You cannot see the whole line yet, but you do know where it begins. You also have a special rule called a differential equation. This rule tells you the slope, or the steepness, of the line at any point.

Euler method.svg
Euler method.svg
The Euler method is a way to use this rule to guess the shape of the curve. It is a very basic tool used in math and science. It helps us find an answer when we only know the starting point and the rule for the slope.

To use this method, you start at your known starting point. First, you use your rule to find the slope at that exact spot. Next, you choose a small size for a step. You move along the slope for that small distance to find a new point.

Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg
You then repeat this same process from your new point. You keep taking steps to build a path made of short, straight lines. This path is called a polygonal approximation because it looks like many small connected segments. If your steps are tiny, your path will stay very close to the real curve.

This idea was named after a famous mathematician named Leonhard Euler. He first shared this method in his book called Institutionum calculi integralis. This book was published between the years 1768 and 1770. Euler's work provided a simple way to solve problems through numerical integration. Even though it is a simple method, it is very important. It serves as the base for much more complex ways of solving math puzzles. Many harder methods are built using the ideas that Euler first proposed.

There are important facts to know about how accurate this method is. We call it a first-order method because of how its errors work. The error in a single step is related to the square of the step size. However, the total error at the end is related to the step size itself.

Numerical integration illustration, step=1.svg
Numerical integration illustration, step=1.svg
If you make the step size smaller, the error usually gets smaller too. For example, if you cut the step size in half, the error also becomes about half as big. But there is a catch to using very tiny steps. To get a very exact answer, a computer might need 400,000 steps. This can take a lot of time and power.

Sometimes the Euler method can run into trouble. This happens when the method becomes unstable. An unstable method can make the path swing wildly or grow too large. This can happen even if the real curve is supposed to stay small or go to zero. There is even a special shape called a stability region that shows when the method will work well.

Euler method.svg
Euler method.svg
Because of these limits, people often use better tools like the Runge–Kutta methods. These newer methods can find the right path much faster and more accurately.

508 words

The Euler method is a fundamental numerical procedure used in mathematics and computational science. It is specifically designed to solve ordinary differential equations (ODEs) that have a given initial value. An ordinary differential equation is a formula that relates a function to its own derivatives. In many real-world scenarios, we cannot find an exact algebraic solution for these equations. Instead, we use the Euler method to find a numerical approximation. This method is considered a first-order explicit method for numerical integration. It is also recognized as the simplest form of the Runge–Kutta methods.

Euler method.svg
Euler method.svg

To understand how the mechanism works, imagine you are trying to trace an unknown curve. You know the starting point, which is called the initial value. You also have a differential equation that acts as a rule for the slope. This rule allows you to calculate the slope of the tangent line at any specific point. The process begins by taking a small step along this tangent line from your starting position. Because the step is small, the slope does not change significantly over that short distance. This allows you to land at a new point that is close to the actual curve. You then repeat this exact same process from your new position. By taking many small steps, you create a polygonal approximation made of connected straight lines.

Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg

In technical terms, the Euler method is a first-order process. To implement it, you start with a known value for the variable and its derivative. You must choose a specific value for the size of every step, often called the step size, denoted as $h$. The method is called "explicit" because the next value in the sequence is calculated directly from the current known values. While it is primarily used for first-order ODEs, it can handle higher-order equations as well. Any ODE of a higher order can be rewritten as a system of first-order ODEs. Once converted, these systems can be processed using the standard Euler formulas.

Numerical integration illustration, step=1.svg
Numerical integration illustration, step=1.svg

This mathematical technique is named after the Swiss mathematician Leonhard Euler. He first proposed the method in his influential book, *Institutionum calculi integralis*. This work was published between the years 1768 and 1770. Euler's contributions laid the groundwork for much of modern calculus and numerical analysis. His method remains a vital starting point for students and scientists today. It serves as the conceptual basis for constructing more sophisticated mathematical tools. Many advanced algorithms, such as predictor–corrector methods, are built upon these original ideas.

The accuracy of the Euler method is defined by its error characteristics. It is classified as a first-order method because of how its errors scale. The local truncation error, which is the error made in a single step, is proportional to the square of the step size. However, the global truncation error is the cumulative error at a fixed time. This global error is proportional to the step size itself. For example, if you reduce the step size by half, the total error also becomes approximately half as large. While smaller steps increase accuracy, they also increase the computational cost. To achieve an answer correct to three decimal places in certain cases, a computer might require 400,000 steps.

Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg

Despite its utility, the Euler method can suffer from numerical instability. This occurs most often with "stiff" equations, where the solution changes very rapidly. In an unstable state, the numerical approximation may oscillate or grow much larger than the actual solution. For instance, an equation that should decay toward zero might instead explode toward infinity if the step size is too large. To prevent this, mathematicians study the stability region. This is a specific area that shows which step sizes will result in a stable calculation. If the product of the step size and the equation's constant falls outside this pink disk-shaped region, the method fails.

Euler method.svg
Euler method.svg

The Euler method connects deeply to broader fields like physics and engineering. Many physical models contain terms that represent fast-decaying elements. These elements can force a user to use an exceptionally small timestep to avoid instability. Because of these limitations and the slow rate of convergence, higher-order methods are often preferred. Methods like the Runge–Kutta or linear multistep methods provide much greater precision for the same amount of work. Nevertheless, the Euler method remains a cornerstone of mathematical education and a vital tool for understanding numerical integration.

746 words
🖼️ Images & Media (5)
File:Euler method.svg
Euler method.svg
File:Numerical integration illustration, step=1.svg
Numerical integration illustration, step=1.svg
File:Numerical integration illustration step=0.25.svg
Numerical integration illustration step=0.25.svg
File:Instability of Euler's method.svg
Instability of Euler's method.svg
File:Stability region for Euler method.svg
Stability region for Euler method.svg
Up Next
🔢
Runge–Kutta methods
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.