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

In summary, the conversation discusses using Euler's method with a step size of 0.05 to approximate the solution of an initial-value problem, y'=2x^2+3y^2-2, y(2)=1, at x=0.1, 0.2, and 0.3. The method involves calculating the value of y at each point by using the previous value and the derivative at that point. The correct calculations for y(0.1), y(0.2), and y(0.3) are y(0.05)=1.45, y(0.1)=2.10638, and y(0.15)=3.20091. It is
  • #1
Math10
301
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
  • #2
[No, those are not correct.. If dy/dx= 2x^2+3y^2-2, then dy= (2x^2+3y^2-2)dx
[itex]y_n(x_n)+ f(x_n, y_n)(dx)[/itex] is [itex]y(x_{n+1)}= y(x_n+ dx)[/itex].
[itex]y_0+ f(2, 1)(0.05)[/itex] is [itex]y(0+ 0.05)= y(0.05)[/itex] NOT [itex]y(0.1)[/itex].
 
  • #3
HallsofIvy said:
[No, those are not correct. If dy/dx= 2x^2+3y^2-2, then dy= (2x^2+3y^2-2)dx

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

[itex]y_0+ f(2, 1)(0.05)[/itex] is [itex]y(0+ 0.05)= y(0.05)[/itex] NOT [itex]y(0.1)[/itex].
Since you're evaluating f at x=2, that should be y(2.05) = y(2)+f(2,1)(0.05).
 
  • #4
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?
 
  • #5
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.
 
  • #6
To find approximate values for the solution of the initial-value problem at the given points.
 
  • #7
That's so general it describes every method for numerically solving a differential equation. What specifically is the idea behind Euler's method?
 

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

What is Euler's method?

Euler's method is a numerical method used to approximate solutions to differential equations. It involves using small time steps (h) to approximate the derivative at a given point and using that value to estimate the next point on the curve.

Why use a step size (h) of 0.05?

The step size (h) in Euler's method represents the interval between each point on the curve. A smaller step size will result in a more accurate approximation, but will also require more calculations. A step size of 0.05 is a common choice as it balances accuracy and efficiency.

How do you use Euler's method with a step size of 0.05?

To use Euler's method with a step size of 0.05, you will need to know the initial value of the function, the derivative function, and the desired number of steps. Then, you can use the formula y_n+1 = y_n + hf(x_n, y_n) to calculate the approximate value at each step.

What is the benefit of using Euler's method?

Euler's method allows us to approximate solutions to differential equations without having to solve them analytically. It is a useful tool in situations where analytic solutions are not possible or too difficult to obtain.

What are the limitations of Euler's method?

While Euler's method is a useful tool, it does have some limitations. It can only provide approximate solutions, and the accuracy decreases as the step size increases. It also may not work well for functions with rapidly changing slopes or for systems of differential equations.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
900
  • Calculus and Beyond Homework Help
Replies
8
Views
3K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
585
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
626
Replies
7
Views
2K
Replies
3
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
Back
Top