Question on Euler's method - ODE

Click For Summary
SUMMARY

The discussion centers on the application of Euler's Method (EM) for solving the ordinary differential equation (ODE) y' = y - x - 1 with the initial condition y(0) = 1. The user calculates the first two approximations using a step size of h = 0.25, yielding y1 = 1 and y2 = 0.75. However, the user expresses confusion regarding discrepancies between their results and those provided in the textbook, particularly concerning the organization of the answers for different step sizes (h = 0.25 and h = 0.1). The inquiry also includes a question about the choice of x_2 = 1 in the calculations.

PREREQUISITES
  • Understanding of Euler's Method for numerical solutions of ODEs
  • Basic knowledge of ordinary differential equations
  • Familiarity with initial value problems
  • Ability to perform arithmetic operations with step sizes in numerical methods
NEXT STEPS
  • Review the derivation and application of Euler's Method for different step sizes
  • Learn about the error analysis associated with Euler's Method
  • Explore alternative numerical methods for solving ODEs, such as Runge-Kutta methods
  • Investigate the implications of step size selection on the accuracy of numerical solutions
USEFUL FOR

Students studying numerical methods, particularly those tackling ordinary differential equations, as well as educators and tutors looking for clarification on Euler's Method and its applications.

cue928
Messages
129
Reaction score
0

Homework Statement


y' = y - x - 1, y(0) = 1, h = .25


Homework Equations





The Attempt at a Solution


y1 = 1+(.25)*(1-0-1) = 1
y2 = 1+(.25)*(1-1-1) = .75

This is not what the book has, but it is organized weird to me. It asks for EM twice, first w/ step size h=.25, then h=0.1. But the way the answers are listed in the back do not correspond with this so I am not sure what they are getting. Curious if folks agree w/ me here on y1, y2. Thanks in advance.
 
Physics news on Phys.org
cue928 said:

Homework Statement


y' = y - x - 1, y(0) = 1, h = .25


Homework Equations





The Attempt at a Solution


y1 = 1+(.25)*(1-0-1) = 1
y2 = 1+(.25)*(1-1-1) = .75

This is not what the book has, but it is organized weird to me. It asks for EM twice, first w/ step size h=.25, then h=0.1. But the way the answers are listed in the back do not correspond with this so I am not sure what they are getting. Curious if folks agree w/ me here on y1, y2. Thanks in advance.

Why are using using [itex]x_2=1[/itex]?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
Replies
2
Views
2K
  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K