Use Euler's method with h=0.05 to find approximate values?

Click For Summary

Homework Help Overview

The original poster attempts to apply Euler's method with a step size of h=0.05 to approximate values for the solution of the initial-value problem defined by the differential equation y'=2x^2+3y^2-2, with the initial condition y(2)=1, at specific points x=0.1, 0.2, and 0.3.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the application of Euler's method, questioning the correctness of the original poster's calculations and the evaluation points used. There is a focus on understanding the proper setup for the method and the significance of the step size in relation to the initial condition.

Discussion Status

Some participants express concerns regarding the original poster's approach, suggesting that the evaluations at x=0.1, 0.2, and 0.3 may not align with the correct application of Euler's method. Guidance is offered on the need to understand the foundational concepts of the method before proceeding with calculations.

Contextual Notes

There is an indication that the original poster may be misunderstanding the evaluation points in relation to the step size and initial condition, leading to confusion about the application of Euler's method.

Math10
Messages
301
Reaction score
0

Homework Statement


Use Euler's method with h=0.05 to find approximate values for the solution of the initial-value problem y'=2x^2+3y^2-2, y(2)=1 at x=0.1, 0.2, 0.3.

Homework Equations


None.

The Attempt at a Solution


Here's my work:

y'=2x^2+3y^2-2, y(2)=1
f(x, y)=2x^2+3y^2-2, x0=2, y0=1
y(0.1)=y1=y0+f(2, 1)(0.05)=1.45
y(0.2)=y2=y1+f(2.1, 1.45)(0.05)=2.10638
y(0.3)=y3=y2+f(2.3, 2.10638)(0.05)=3.20091
The answers I got are 1.45, 2.10638 and 3.20091. But are my answers right? Please check my answer and correct me if I'm wrong.
 
Physics news on Phys.org
[No, those are not correct.. If dy/dx= 2x^2+3y^2-2, then dy= (2x^2+3y^2-2)dx
y_n(x_n)+ f(x_n, y_n)(dx) is y(x_{n+1)}= y(x_n+ dx).
y_0+ f(2, 1)(0.05) is y(0+ 0.05)= y(0.05) NOT y(0.1).
 
HallsofIvy said:
[No, those are not correct. If dy/dx= 2x^2+3y^2-2, then dy= (2x^2+3y^2-2)dx

y_n(x_n) + f(x_n, y_n)(dx) is y(x_{n+1}) = y(x_n+ dx).

y_0+ f(2, 1)(0.05) is y(0+ 0.05)= y(0.05) NOT y(0.1).
Since you're evaluating f at x=2, that should be y(2.05) = y(2)+f(2,1)(0.05).
 
So how do I start the problem?
y(2.05)=y(2)+f(2, 1)(0.05)=1.45
But where did y(2.05) come from?
 
What's the basic idea of Euler's method? You should understand that before trying to do this problem. It'll make the calculations make much more sense. Right now it seems like you're just plugging in numbers without knowing why.
 
To find approximate values for the solution of the initial-value problem at the given points.
 
That's so general it describes every method for numerically solving a differential equation. What specifically is the idea behind Euler's method?
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
10K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K