Real life application of Euler's method/numerical method

In summary, the conversation discussed the use of Euler's Method in predicting the trajectory of an object in projectile motion with significant air resistance. It was mentioned that the differential equation involved can easily be separated into different variables, making the use of the method unnecessary. However, suggestions were given for real life situations where differential equations can be given in the form of ##\frac{dy}{dx}=f(x,y)## and where Euler's method could be useful, such as in chemical reaction kinetics and in calculating aerodynamic coefficients for projectiles.
  • #1
ChanYoung Park
Hi! For my math investigation project, I was trying to predict the trajectory of an object in a projectile motion with significant air resistance by using the Euler's Method. But it seems like the differential equation involved there can easily be separated into different variables, and so it seems unnecessary to use the method.
Can anyone suggest me a real life situation(related to physics) where differential equations can be given in the form: $$\frac{dy}{dx}=f(x,y)$$
or any worthwhile idea for investigation using the Euler's method??
 
Physics news on Phys.org
  • #2
You could choose isolines like isobars or isotherms like those: https://en.wikipedia.org/wiki/Contour_line
or the ideal gas law: https://en.wikipedia.org/wiki/Equation_of_state#The_ideal_gas_law_.281834.29

If you like to look out for other examples, then google "implicit function theorem in physics".

On the other hand, the more general concept of the calculus of variations is spread all over physics. If you search for "Lagrangian" only on PF, you will probably get hundreds of hits. This way you could even choose by forum section, aka physical area.
 
  • #3
fresh_42 said:
You could choose isolines like isobars or isotherms like those: https://en.wikipedia.org/wiki/Contour_line
or the ideal gas law: https://en.wikipedia.org/wiki/Equation_of_state#The_ideal_gas_law_.281834.29

If you like to look out for other examples, then google "implicit function theorem in physics".

On the other hand, the more general concept of the calculus of variations is spread all over physics. If you search for "Lagrangian" only on PF, you will probably get hundreds of hits. This way you could even choose by forum section, aka physical area.
I'm not sure how this relates to the OP? Yes, we could consider implicit differential equations, but since it was asked
ChanYoung Park said:
Can anyone suggest me a real life situation(related to physics) where differential equations can be given in the form: $$\frac{dy}{dx}=f(x,y)$$
or any worthwhile idea for investigation using the Euler's method??
I think there may be easier ways towards examples.

Most pieces of text discussing the numerical solution of ODEs will start with Euler. Any such text that includes physics examples (from classical mechanics or circuit theory, for instance) will be worth a look.

By the way, it is not bad (actually: it is typical) to start with an example that can (also) be solved analytically. This way you can assess the quality of the numerical method.
 
  • #4
fresh_42 said:
You could choose isolines like isobars or isotherms like those: https://en.wikipedia.org/wiki/Contour_line
or the ideal gas law: https://en.wikipedia.org/wiki/Equation_of_state#The_ideal_gas_law_.281834.29

If you like to look out for other examples, then google "implicit function theorem in physics".

On the other hand, the more general concept of the calculus of variations is spread all over physics. If you search for "Lagrangian" only on PF, you will probably get hundreds of hits. This way you could even choose by forum section, aka physical area.
Thanks for your reply!
 
  • #5
Krylov said:
I'm not sure how this relates to the OP? Yes, we could consider implicit differential equations, but since it was asked

I think there may be easier ways towards examples.

Most pieces of text discussing the numerical solution of ODEs will start with Euler. Any such text that includes physics examples (from classical mechanics or circuit theory, for instance) will be worth a look.

By the way, it is not bad (actually: it is typical) to start with an example that can (also) be solved analytically. This way you can assess the quality of the numerical method.
Thank you for your advice! I decided to justify the motive behind the project by saying that I would like to evaluate the usefulness of the Euler's method in real life applications.
 
  • #6
ChanYoung Park said:
Hi! For my math investigation project, I was trying to predict the trajectory of an object in a projectile motion with significant air resistance by using the Euler's Method. But it seems like the differential equation involved there can easily be separated into different variables, and so it seems unnecessary to use the method.
Can anyone suggest me a real life situation(related to physics) where differential equations can be given in the form: $$\frac{dy}{dx}=f(x,y)$$
or any worthwhile idea for investigation using the Euler's method??
Hi ChanYoung Park! Welcome to PF! :)

Projectile motion with significant air resistance (##\propto v^2##) seems to be a good example, which is not solvable analytically as far as I know.
 
  • #7
Euler's method is not stable, and for that reason it is never recommended. It is often discussed because it gives a lot of insight into the nature of numerical solution of ODEs, but something better must always be used to obtain a usable solution.
 
  • #8
In chemical reaction kinetics, there can be situations where ##c_1 ,c_2## (the concentrations of substances 1 and 2) develop according to coupled equations

##\frac{dc_1}{dt} = f_1 (c_1 ,c_2 )##
##\frac{dc_2}{dt} = f_2 (c_1 ,c_2 )##,

and then you can try a modification of the Euler's method where both ##c_1 (t)## and ##c_2 (t)## are evolved on each timestep. The pair of equations can't be solved analytically in all cases, so a numerical solution is often necessary. The stability problem sometimes causes difficulties and sometimes not.
 
  • Like
Likes Chestermiller
  • #9
ChanYoung Park said:
Hi! For my math investigation project, I was trying to predict the trajectory of an object in a projectile motion with significant air resistance by using the Euler's Method. But it seems like the differential equation involved there can easily be separated into different variables, and so it seems unnecessary to use the method.
Can anyone suggest me a real life situation(related to physics) where differential equations can be given in the form: $$\frac{dy}{dx}=f(x,y)$$
or any worthwhile idea for investigation using the Euler's method??

Euler's method is commonly used in projectile motion including drag, especially to compute the drag force (and thus the drag coefficient) as a function of velocity from experimental data. Keep in mind that the drag coefficient (and other aerodynamic coefficients) are seldom really constant. They vary with velocity over the velocity ranges that most projectiles experience in flight. If one has experimental data for position and velocity vs. time from Doppler radar or for position vs. time from sufficiently fast video, Euler's method is common for inferring the drag force and coefficient.

In real life, one can also use Euler's method to from known aerodynamic coefficients to predicting trajectories. Three degree of freedom (3DOF) models are usually called point mass models, because other than drag acting opposite the velocity vector, they ignore the effects of rigid body motion. These are most amenable to Euler, because computers are fast enough to take small step sizes needed for the method. There are also 4DOF (modified point mass) and 6DOF models for spin stabilized rigid bodies in flight. Knowing the aerodynamic coefficients accurately is actually the harder part of making accurate predictions of the rigid body effects, but better approximations than Euler (such as 4th order Runge-Kutta) are usually used. Computing time can begin to be an issue in 6DOF models, so a method is needed to improve accuracy without just making the time steps smaller and smaller.
 
  • #10
I have a simulation (7 coupled ODEs in 7 unknowns) that I have run many times using a 5th order Runge-Kutta-Feldberg with variable step size, and it runs in about 2 to 3 seconds. Of course, I have the benefit of an antique Dell Optiplex computer, about 12 years old, so I don't have the additional speed of more recent technology. I really cannot fathom why anyone today is considering actually employing Euler's Method which is known to be unstable.
 
  • #11
Dr.D said:
I really cannot fathom why anyone today is considering actually employing Euler's Method which is known to be unstable.

There are cases where it can be unstable, but stability issues are easy to test for when using Euler to solve projectile motion problems including drag. Our typical approach has several components: 1) Vary the step sizes over a factor of 10. If the results are the same, odds are you are not encountering a stability problem. 2) Use the work-energy theorem to double check the final velocities. 3) Check that the solutions are physically reasonable.

Why not use Runge-Kutta or something similar? Many times the students doing the calculations do not know how to program and do not yet know Calculus. But they can employ Euler's method in a spreadsheet simply enough with the above checks.
 
  • #12
Dr.D said:
I have a simulation (7 coupled ODEs in 7 unknowns) that I have run many times using a 5th order Runge-Kutta-Feldberg with variable step size, and it runs in about 2 to 3 seconds. Of course, I have the benefit of an antique Dell Optiplex computer, about 12 years old, so I don't have the additional speed of more recent technology. I really cannot fathom why anyone today is considering actually employing Euler's Method which is known to be unstable.
Only the Forward Euler Method is unstable if the step in the independent variable is too large. The Backward Euler method (which forms the theoretical basis for stiff equation solvers of variable step size and order) is always stable.
 

What is Euler's method and how is it used in real life applications?

Euler's method is a numerical method used to approximate the solution to a differential equation. It is used in real life applications where the exact solution to a differential equation cannot be obtained, but an approximate solution is needed. This method is commonly used in physics, engineering, and other scientific fields to model and predict the behavior of complex systems.

What are the advantages of using Euler's method in real life applications?

One of the main advantages of using Euler's method is its simplicity and ease of implementation. It is also a computationally efficient method, making it useful for solving complex problems in a timely manner. Additionally, this method allows for the estimation of a solution at any desired point, making it a flexible tool for modeling and prediction.

What are the limitations of using Euler's method in real life applications?

Although Euler's method can provide a quick and approximate solution to a differential equation, it has some limitations. One of the main limitations is that it can only provide an approximation and not the exact solution. This method also has a tendency to accumulate errors over multiple iterations, which can lead to significant discrepancies from the actual solution.

How does Euler's method compare to other numerical methods used in real life applications?

Euler's method is a simple and straightforward numerical method, but it is not always the most accurate or efficient. Other numerical methods, such as the Runge-Kutta method, may provide more accurate solutions with fewer iterations. Therefore, the choice of numerical method depends on the specific problem and the desired level of accuracy.

Can Euler's method be applied to any type of differential equation in real life applications?

Euler's method can be applied to a wide range of differential equations, including first-order and higher-order equations. However, it may not be suitable for all types of differential equations, such as stiff equations, where the solution changes rapidly over a small interval. In these cases, other numerical methods may be more effective.

Similar threads

Replies
7
Views
2K
Replies
2
Views
4K
Replies
16
Views
2K
  • Differential Equations
Replies
5
Views
2K
  • Differential Equations
Replies
15
Views
2K
Replies
14
Views
2K
  • Differential Equations
Replies
6
Views
2K
  • Differential Equations
Replies
1
Views
1K
  • Differential Equations
Replies
8
Views
3K
Replies
2
Views
969
Back
Top