Log In Start studying!

Select your language

Suggested languages for you:
StudySmarter - The all-in-one study app.
4.8 • +11k Ratings
More than 3 Million Downloads
Free
|
|
Euler's Method

Given the complex nature of differential equations, these equations often cannot be solved exactly. However, there are numerous approximation algorithms for solving differential equations. One such algorithm is known as Euler's Method. Euler's Method relies on linear approximation as it uses a few small tangent lines derived based on a given initial value.Katherine Johnson, one of the first African-American women…

Content verified by subject matter experts
Free StudySmarter App with over 20 million students
Mockup Schule

Explore our app and discover over 50 million learning materials for free.

Euler's Method

Euler's Method

Save the explanation now and read when you’ve got time to spare.

Save
Illustration

Lerne mit deinen Freunden und bleibe auf dem richtigen Kurs mit deinen persönlichen Lernstatistiken

Jetzt kostenlos anmelden

Nie wieder prokastinieren mit unseren Lernerinnerungen.

Jetzt kostenlos anmelden
Illustration

Given the complex nature of differential equations, these equations often cannot be solved exactly. However, there are numerous approximation algorithms for solving differential equations. One such algorithm is known as Euler's Method. Euler's Method relies on linear approximation as it uses a few small tangent lines derived based on a given initial value.

Katherine Johnson, one of the first African-American women to work as a scientist for NASA, used Euler's Method in 1961 to capacitate the first United States human space flight. Euler's Method allowed Johnson to estimate when the spacecraft should slow down to begin its descent into the atmosphere and resulted in a successful flight and landing!

The formula behind Euler's Method

Linear Approximation Review

The formula behind Euler's Method should be familiar to you. Recall the formula for linear approximation (can be found in the article Linear Approximations and Differentials) for f(x):

f(x)f(a)+f'(a)(x-a)

where f(x) is the value of the function f at point x and a is a known initial value point.

Euler's Method linear approximation tangent line visualization VaiaThe tangent line is formed from an initial point (a, f(a)) then the slope of the tangent line is used to approximate the value of f(y); here, the point (x, y) is the approximation while the point (x, f(y)) is the actual value - Vaia Original

Euler's Method Formula

Similarly, the general formula for Euler's Method for a differential equation of the form y'=f(x, y). The only difference between Euler's method and linear approximation is that Euler's method uses multiple approximation iterations to find a more exact value. Using Euler's method, we use x0 and y0, which are typically given as initial values, to estimate the slope of the tangent at x1. It looks like this:

yi+1yi+hf(xi, yi)

whereyi+1is the next solution value approximation,yiis the current value,his the interval between steps, and f(xi, yi) is the value of the differential equation evaluated at (xi, yi).

Let's break this formula down further.

Derivation of Euler's Method

Consider the picture below.

Euler's Method approximation graph VaiaEuler's Method General Formula Intuition - Vaia Original

With an initial point (x0, y0), we can find a tangent line with a slope of f(x0, y0). We can use these values to approximate the point (x1, y1) where x1=x0+h andy1y0+hf(x0, y0) according to basic coordinate geometry. This operation can be done as many times as need be. However, it's important to mention that using a smaller step size h will produce a more accurate approximation. A larger step size h will produce a less accurate approximation.

If y1 is a good approximation, then using Euler's method will give us a good estimate of the actual solution. However, if y1 is not a good approximation, then the solution using this method will be off as well!

Importance of Euler's Method

Differential equations are commonly used to describe natural phenomena in the natural world with applications ranging in simplicity from the movement of a car to spacecraft trajectory models. Unfortunately, these equations cannot be solved directly given their complexity. This is where Euler's Method and other differential equation approximation algorithms come in. We can use differential equation approximation algorithms, like Euler's Method, to find an approximate solution. An approximate solution is much better than no solution at all!

Limitations of Euler's Method

Though Euler's Method is a simple and direct algorithm, it is less accurate than many algorithms like it. As previously mentioned, using a smaller step size h can increase accuracy but it requires more iterations and thus an unreasonably larger computational time. For this reason, Euler's Method is rarely used in practice. However, Euler's Method forms a basis for more accurate and useful approximation algorithms.

Euler's Method Examples

A step-by-step method

Consider the differential equation dydx=6-2yx with an initial value ofy(3)=1. Use h=0.2 to approximate y(4).

Step 1: Find the slope of the tangent line at the initial point

To find the tangential slope at (3, 1), we simply plug it into the differential equation to get

dydx=6-213=163

Step 2: Find our new x-value

To find our next x-value, we add h to the initial x-value to get

x1=3+15=165

Step 3: Plug in our values to obtain our new y-value approximation

So, we have:

  • Step size, h=0.2=15
  • Initial y-value, y0 = 1
  • The slope of the tangent line at the initial value, f(x0,y0) = 163

Plugging in all of our values, we get

y1y0+h·f(x0, y0)y11+151631+16153115

So, the approximation to the solution at x = 3 + 0.2 = 3.2 is 3115 or

y(3.2)3115

Step 4: Repeat the algorithm as many times as needed to obtain y(4)

Given that our step size is 0.2, we will have to repeat the algorithm 4 more times:

  • Using 165, 3115: f165, 3115=6-23115165=11324, x2=175, y23115+1511324=361120
  • Using 175, 361120: f175, 361120=6-2361120175=863204, x3=185, y3361120+15863204=2621680
  • Using f185, 2621680: f185, 2621680=6-22621680185=47231224, x4=195, y42621680+1547231224=3539765
  • Using f195, 3539765: f195, 3539765=6-23539765195=103642907, x5=4, y53539765+15103642907=913171

Finally, we have obtained our approximation at y(4)9131715.339!

When solving multiple iterations of Euler's Method, it may be useful to construct a table for each of your values! In iterative problems such as these, tables can help to our numbers organized.

For this problem, a table might look like:

(xi, yi)dy/dxh = 0.2xi+1yi+1
(3,1)1631653115
165,311511324175361120
175,3611208632041852621680
185,2621680472312241953539765
195,35397651036429074913171

Step 5: Check the error

As this specific example can be solved directly, we can check the global error of our answer.

The direct solution to the differential equation is y=-45x2+2x. Plugging in x = 4, we get

y=-4516+8=8316=5.1875

To check the percent error, we simply compute

% error =|exact-approximation|exact×100%=8316-9131718316×1002.92%

Our error is relatively low!

We use absolute values in the percent error calculation because we don't care if our approximation is above or below the actual value, we just want to know how far away it is!

Lucky for us, all Euler's Method problems follow the same simple algorithm.

Euler's Method - Key takeaways

  • Euler's Method is an approximation tool for differential equation solving based on linear approximation
  • The general Euler's Method formula is yi+1yi+h·f(xi, yi)where
    • yi+1is the next solution value approximation,
    • yiis the current value,
    • his the interval between steps, and
    • f(xi, yi)is the value of the differential equation evaluated at (xi, yi)
  • Euler's Method is rarely used in real-world applications as the algorithm tends to have low accuracy and requires vast computation time

Frequently Asked Questions about Euler's Method

Euler's Method is an approximation tool for differential equation solving based on linear approximation.

The Euler's Method formula is based on the formula for linear approximation. The next approximation is the sum of the old approximation value and the product of the step size and the differential equation at the old point. 

Euler's Method is used for approximating solutions to differential equations that cannot be solved directly.

Euler's Method is important because most differential equations cannot be solved directly and thus must be estimated through approximation.

Euler's Method can be used when the function f(x) does not grow too quickly.

Final Euler's Method Quiz

Euler's Method Quiz - Teste dein Wissen

Question

What is Euler's Method based on?

Show answer

Answer

Linear approximation using a tangent line

Show question

Question

What are the limitations of Euler's Method?

Show answer

Answer

  • Low accuracy
  • Large computational time

Show question

Question

Explain Euler's Method in words.

Show answer

Answer

Euler's Method goes through an arbitrary number of iterations where each iteration uses the slope of an approximated tangent line to estimate where the next point will be.

Show question

Question

A larger step value h produces a ____ accurate approximation while a smaller step value h produces a ____ accurate approximation.

Show answer

Answer

less, more

Show question

More about Euler's Method
60%

of the users don't pass the Euler's Method quiz! Will you pass the quiz?

Start Quiz

How would you like to learn this content?

Creating flashcards
Studying with content from your peer
Taking a short quiz

How would you like to learn this content?

Creating flashcards
Studying with content from your peer
Taking a short quiz

Free math cheat sheet!

Everything you need to know on . A perfect summary so you can easily remember everything.

Access cheat sheet

Discover the right content for your subjects

No need to cheat if you have everything you need to succeed! Packed into one app!

Study Plan

Be perfectly prepared on time with an individual plan.

Quizzes

Test your knowledge with gamified quizzes.

Flashcards

Create and find flashcards in record time.

Notes

Create beautiful notes faster than ever before.

Study Sets

Have all your study materials in one place.

Documents

Upload unlimited documents and save them online.

Study Analytics

Identify your study strength and weaknesses.

Weekly Goals

Set individual study goals and earn points reaching them.

Smart Reminders

Stop procrastinating with our study reminders.

Rewards

Earn points, unlock badges and level up while studying.

Magic Marker

Create flashcards in notes completely automatically.

Smart Formatting

Create the most beautiful study materials using our templates.

Sign up to highlight and take notes. It’s 100% free.

Start learning with StudySmarter, the only learning app you need.

Sign up now for free
Illustration