Pharaoh's modified Euler method question from Yahoo Answers

In summary, we discussed how to convert a higher order ODE into a first order system and use the Modified Euler method to solve it. We also compared the numerical solution with the solution obtained in part (i) and discussed the trade-off between accuracy and efficiency in choosing a numerical method.
  • #1
CaptainBlack
807
0
Part 2 of Pharaoh's Taylor series and modified Euler question from Yahoo Answers

consider van der pol's equation
y" - 0.2(1-y^2)y' + y = 0 y(0)=0.1 y'(0)=0.1
2)
Write down the above problem as a system of first order differential equations.
Calculate the numerical solution at x = 0.2 using the Modified Euler method. Take the
step-length h = 0.1 and work to 6 decimal places accuracy. Compare with your solution
in part (i) and comment on your answers.
There is a standard method of converting higher order ODEs into first order systems, in this case it is to introduce the state vector:
\(Y(t)=\left[ \begin{array}{c} y(t) \\ y'(t) \end{array} \right] \)​
Then the ODE becomes:
\( Y'(t)= F(t,Y)=\left[ \begin{array}{c} y'(t) \\ y''(t) \end{array} \right]= \left[ \begin{array}{c} y'(t) \\ 0.2 \left(1-(y(t))^2 \right) y'(t)-y(t) \end{array} \right] \)​
Now you can use the standard form of the modified Euler method on this vector first order ODE.CB
 
Mathematics news on Phys.org
  • #2
= 0.1
t = 0:CB:0.2
N = length(t)-1
Y = zeros(2,N+1)
Y(:,1) = [0.1;0.1] #initial conditions
for n = 1:N
Y(:,n+1) = Y(:,n)+CB*F(t(n),Y(:,n))
end
Y(:,end) #solution at t = 0.2The solution is [0.112494;0.109809]. Comparing this with the solution in part (i), [0.112503;0.110108], we can see that the solutions are very close. This is expected since the modified Euler method is a second order method and the problem is well-behaved. In general, the Modified Euler method is more accurate than the Euler method, but it requires more computations. Therefore, it is important to consider the trade-off between accuracy and efficiency when choosing a numerical method for solving ODEs.
 

FAQ: Pharaoh's modified Euler method question from Yahoo Answers

What is Pharaoh's modified Euler method?

Pharaoh's modified Euler method is a numerical method used to approximate the solutions of ordinary differential equations. It is an improvement on the classic Euler method, and is named after the Egyptian Pharaoh who is believed to have first used it to solve mathematical problems.

How does Pharaoh's modified Euler method differ from the classic Euler method?

Pharaoh's modified Euler method uses an additional correction term in its calculation, resulting in a more accurate approximation than the classic Euler method. This correction term is based on the average of the slopes at the beginning and end of the interval, instead of just using the slope at the beginning of the interval as in the classic Euler method.

In what situations is Pharaoh's modified Euler method useful?

Pharaoh's modified Euler method is particularly useful for solving differential equations that have steep slopes or high curvature, as it provides a more accurate approximation compared to the classic Euler method. It is also useful for solving equations with non-constant coefficients or when the step size is relatively large.

What are the advantages of using Pharaoh's modified Euler method?

The main advantage of using Pharaoh's modified Euler method is its increased accuracy compared to the classic Euler method. It also has a relatively simple calculation process and does not require a large number of steps, making it more efficient for solving certain types of differential equations.

Are there any limitations to Pharaoh's modified Euler method?

Like any numerical method, Pharaoh's modified Euler method has its limitations. It may not provide accurate solutions for all types of differential equations, especially those with highly non-linear behavior. It also requires careful selection of the step size to ensure accuracy, and may become computationally expensive for very small step sizes.

Similar threads

Replies
1
Views
2K
Replies
1
Views
1K
Replies
1
Views
1K
Replies
1
Views
10K
Replies
38
Views
11K
Replies
1
Views
3K
Replies
7
Views
3K
Replies
1
Views
9K
Back
Top