Euler's Method for Solving Differential Equations with Non-Uniform Step Sizes

  • Context: Undergrad 
  • Thread starter Thread starter que
  • Start date Start date
  • Tags Tags
    Euler's method Method
Click For Summary

Discussion Overview

The discussion revolves around the application of Euler's method for solving the differential equation dy/dx = ycos(x) with the initial condition y(0) = 1, specifically focusing on the choice of step size h = 0.25 and the corresponding x-values over the interval from 0 to π/4. Participants seek clarification on the appropriate x-values to use and the implications of using a non-uniform step size.

Discussion Character

  • Homework-related
  • Mathematical reasoning

Main Points Raised

  • One participant asks for clarification on whether the x-values should be π/12, π/6, π/4 or 0.25, 0.50, 0.75.
  • Another participant outlines the calculation of x-values starting from x_0 = 0 and incrementing by h until exceeding π/4.
  • A different participant notes the peculiarity of using a step size that does not divide evenly into the length of the interval and questions the correctness of the problem reading.
  • One participant calculates the first few points using Euler's method and questions whether to stop at x = 0.75 since the next step would exceed π/4.
  • Another participant confirms their understanding of the problem and expresses confusion regarding the use of non-uniform step sizes in textbook problems.

Areas of Agreement / Disagreement

Participants express confusion regarding the appropriate x-values and the implications of using a non-uniform step size. There is no consensus on the correct interpretation of the problem or the method of proceeding with the calculations.

Contextual Notes

Participants highlight the potential issue of using a step size that does not evenly divide the interval length, which may affect the application of Euler's method.

que
Messages
3
Reaction score
0
I need some clarification please the question is:
-Using Euler's method with h = .25 given dy/dx = ycosx ,y(0) = 1 on the interval 0 <= x =< pi/4.

are the X's : pi/12, pi/6, pi/4 OR .25, .50, .75 ??

some help please

que.
 
Physics news on Phys.org
[tex]x_0=0[/tex]
[tex]x_1 = x_0 +h[/tex]
[tex]x_3 = x_0 + 2*h[/tex]

Continue until

[tex]x_n > \frac { \pi } 4[/tex]
 
Start at 0 and go by steps of h:
0, .25, .50, .75, 1, 1.25, 1.50.

It's a bit peculiar to use an h that does not divide evenly into the length of the interval. Are you sure you have read the problem correctly?
 
ok so what i get.
(x0,y0) = (0,1)
X1 = .25
Y1 = 1 + .25(1*cos(0)) = 1.25
i do this until x3,y3 where x3 = .75, and y3 = 1.8935
do i stop there since doing one more step will be > pi/4?

thanx.
 
yes HallsofIvy i read the problem correctly that why i was confused since all the book problems use an h that is divide evenly into the length of the intervals.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
22K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 5 ·
Replies
5
Views
10K
Replies
20
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 36 ·
2
Replies
36
Views
8K