Euler Method with h=0.05 for y'=3+t-y, y(0)=1 at t=0.1, 0.2, 0.3, and 0.4

In summary: The initial condition y(0)=1 tells you that y_0=1. You are asked to calculate y_1, y_2, y_3, and y_4, so:y_1=y_0+hf(y_0,0)y_2=y_1+hf(y_1,h)y_3=y_2+hf(y_2,2h)y_4=y_3+hf(y_3,3h)In summary, using the Euler method with h=0.05 and the given initial
  • #1
Success
75
0

Homework Statement


Use the Euler method with h=0.05 to find approximate values of y'=3+t-y, y(0)=1 at t=0.1, 0.2, 0.3, and 0.4.


Homework Equations


I don't even know what formula and how to use it.


The Attempt at a Solution


The answers are 1.1975, 1.38549, 1.56491, 1.73658.
 
Physics news on Phys.org
  • #2
Euler's method is a recursive method. In general, it is best to understand what you're actually doing than to memorize the equations. In Euler's method, you essentially get an estimate of y' and use that to estimate y at future values.

At t=0, y=1 (given), and thus, y'(0)=3+0-1=2. In the next h seconds, you would expect y to increase by y' * h. Thus, we say y(x+h)=h*y'(x)+y(x). We get that y(0.05)=0.05*y'(0)+y(0)=1.1. our new value of y'(0.05)=3+0.05-y(0.05)=1.95. Keep iterating this method to get future values of y and y'.
 
  • #3
Success said:

Homework Statement


Use the Euler method with h=0.05 to find approximate values of y'=3+t-y, y(0)=1 at t=0.1, 0.2, 0.3, and 0.4.


Homework Equations


I don't even know what formula and how to use it.


The Attempt at a Solution


The answers are 1.1975, 1.38549, 1.56491, 1.73658.

Are you saying that your textbook and/or course notes have nothing at all on Euler's method?
 
  • #4
You are solving a differential equation of the form:
[tex]\frac{dy}{dt}=f(y,t)[/tex]
To solve this equation numerically, you are approximating the derivative on the left hand side by:
[tex]\frac{dy}{dt}≈\frac{y(t+Δt)-y(t)}{Δt}[/tex]
But, what values of y and t do you use to substitute into the function f, the values at time t, y(t) and t, or the values at time t+Δt, y(t+Δt), t+Δt? In Euler's method you use the former, so your algebraic approximation to the differential equation becomes:
[tex]\frac{y(t+Δt)-y(t)}{Δt}=f(y(t),t)[/tex]
or, equivalently,
[tex]y_{n+1}-y_n=Δtf(y_n,nΔt)[/tex]
where n signifies the n'th time step of your calculation. In the terminology that your problem statement uses, h = Δt
 

Related to Euler Method with h=0.05 for y'=3+t-y, y(0)=1 at t=0.1, 0.2, 0.3, and 0.4

1. What is the purpose of using the Euler Method with h=0.05?

The Euler Method with h=0.05 is a numerical method used to approximate solutions to differential equations. It is a first-order method, meaning that the error in the approximation is proportional to the size of the step h. By using a smaller h value, we can get a more accurate approximation of the solution.

2. How do you calculate the values of y at t=0.1, 0.2, 0.3, and 0.4 using the Euler Method with h=0.05?

To calculate the values of y at these specific time points, we first need to determine the value of y at t=0.05. This can be done by using the initial condition y(0)=1 and the given differential equation y'=3+t-y. Once we have the value of y at t=0.05, we can use it to calculate the values at t=0.1, 0.2, 0.3, and 0.4 by using the Euler Method formula: y_n+1 = y_n + hf(t_n, y_n). Here, h=0.05 and t_n and y_n represent the previous time and y values, respectively.

3. How accurate is the approximation obtained by using the Euler Method with h=0.05?

The accuracy of the approximation depends on the value of h and the complexity of the differential equation. In general, using a smaller h value will result in a more accurate approximation. However, the Euler Method is a first-order method, so the error will still be proportional to the size of the step h.

4. Can the Euler Method with h=0.05 be used for any differential equation?

The Euler Method can be used for any first-order differential equation, meaning that the highest derivative in the equation is y'. However, for more complex or higher-order differential equations, other numerical methods may be more appropriate.

5. What are the limitations of using the Euler Method with h=0.05?

One limitation of the Euler Method is that it is a first-order method, meaning that the error in the approximation is proportional to the step size h. This can lead to less accurate approximations for complex or higher-order differential equations. Additionally, the method assumes that the derivative is continuous and does not take into account any variations or fluctuations in the derivative.

Similar threads

  • Differential Equations
Replies
9
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
3K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
3K
  • Calculus and Beyond Homework Help
Replies
2
Views
217
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Differential Equations
Replies
11
Views
3K
  • Calculus and Beyond Homework Help
Replies
3
Views
580
  • Calculus and Beyond Homework Help
Replies
3
Views
9K
Back
Top