Use Euler's method to find approximate values for the solution of the initial value − problem dy/dx=x−y (0)=1 on the interval [0,1] using five steps of size h=0.2.

lunja55

lunja55

Answered question

2022-09-26

Use Euler's method to find approximate values for the solution of the initial value − problem
d y d x = x y
y ( 0 ) = 1
on the interval [0,1] using five steps of size h=0.2.

My attempts:
I know that the recurrence relation y n + 1 = y n + h f ( x n , y n ) however I am unable to see how the interval comes into play.An idea I had was to consider the bounds of the interval and approximate y(0) and y(1) however this does not include h so I am extremely skeptical.

Answer & Explanation

ticotaku86

ticotaku86

Beginner2022-09-27Added 12 answers

Make a little table -- I've filled in the first couple of rows for you:
x y Δ x d y d x = x y Δ y d y d x Δ x 0 1 0.2 1 0.2 0.2 0.8 0.2 0.6 0.12 0.4 0.68 0.2 0.6 0.2 0.8 0.2 1 0.2
You are done when you get to the bottom left.
Wevybrearttexcl

Wevybrearttexcl

Beginner2022-09-28Added 2 answers

You compute step-by-step approximations of y ( 0.2 ), y ( 0.4 ), y ( 0.6 ), y ( 0.8 ) and then y ( 1.0 ). Or in other words, x n = x 0 + n h and y n is the approximation of y ( x n ).

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?