Use Euler method to determine the approximation of given problem

In summary, the Euler method is a numerical technique used to approximate solutions to ordinary differential equations. It involves using a known initial value to iteratively calculate successive values by applying the derivative at each step, allowing for the estimation of the function's behavior over a specified interval. This method is particularly useful for problems where analytical solutions are difficult or impossible to obtain.
  • #1
chwala
Gold Member
2,752
387
Homework Statement
see attached
Relevant Equations
Numerical methods
1712700876019.png


There is a mistake in my opinion on the text. In my working i have,

##y_1= 3 + 0.2 e^{\cos1} = 3+ 0.54357 = 3.54357##
##y_2 = 3.54357 + 0.2 e^{\cos 1.2} = 4.0871##
##y_3 = 4.0871 + 0.2 e^{\cos 1.4} = 4.6305##

I also noted that we do not have an exact solution for this problem.
 
Last edited:
Physics news on Phys.org
  • #2
chwala said:
Homework Statement: see attached
Relevant Equations: Numerical methods

View attachment 343068

There is a mistake in my opinion on the text. In my working i have,

##y_1= 3 + 0.2 e^{\cos1} = 3+ 0.54357 = 3.54357##
##y_2 = 3.54357 + 0.2 e^{\cos 1.2} = 4.0871##
##y_3 = 4.0871 + 0.2 e^{\cos 1.4} = 4.6305##
It's given that ##y_1 = 3## when ##x_1 = 1##
##y_2 = 3 + 0.2e^{\cos(1)} \approx 3.343305## which agrees with the value shown in the image.
 
  • #3
Mark44 said:
It's given that ##y_1 = 3## when ##x_1 = 1##
##y_2 = 3 + 0.2e^{\cos(1)} \approx 3.343305## which agrees with the value shown in the image.
aaaaaaaah hahaha i was using degrees instead of radians. Silly of me :wink: @Mark44 do we have an exact solution to this problem?
 
  • Like
Likes Mark44

FAQ: Use Euler method to determine the approximation of given problem

What is the Euler method?

The Euler method is a numerical technique used to approximate solutions to ordinary differential equations (ODEs). It works by using the derivative at a known point to estimate the value of the function at the next point, effectively creating a series of linear segments that approximate the curve of the solution.

How do I set up the Euler method for a given problem?

To set up the Euler method, you need to identify the initial value of the function and the differential equation governing its behavior. Then, choose a step size (h) for the approximation. The initial point (x0, y0) is used to calculate the next point (x1, y1) using the formula: y1 = y0 + h * f(x0, y0), where f is the derivative of y with respect to x.

What is the significance of the step size in the Euler method?

The step size (h) is crucial in the Euler method as it determines the accuracy of the approximation. A smaller step size generally leads to a more accurate result but requires more computations. Conversely, a larger step size may speed up calculations but can result in significant errors, especially for functions with high curvature.

What are the limitations of the Euler method?

Some limitations of the Euler method include its tendency to accumulate errors, especially for stiff equations or over long intervals. It is also less accurate than higher-order methods, such as the Runge-Kutta methods, and may not converge to the correct solution if the step size is not chosen appropriately.

How can I improve the accuracy of the Euler method?

To improve the accuracy of the Euler method, you can reduce the step size (h) to get more points in the approximation. Alternatively, you can use modified versions of the Euler method, such as the Improved Euler method (or Heun's method), or switch to higher-order methods like Runge-Kutta, which provide better accuracy for the same step size.

Back
Top