Using the Euler's method (with h=10^(−n)) to find y(1) y′=sin(x)/x

Nelson Jennings

Nelson Jennings

Answered question

2022-07-21

Using the Euler's method (with h = 10 n ) to find y ( 1 )
y = sin ( x ) x
Since
y ( x ) = sin ( x ) x
then
f ( x , y ) = sin ( x ) x
I know
y n + 1 = y n + h f ( x n , y n )
and given y ( 0 ) = 0, so
x 0 = y 0 = 0
Therefore,
x 1 = x 0 + h = 0 + 10 0 = 1 y 1 = y ( x 1 ) = y ( 1 )
Then,
y 1 = 0 + 10 0 f ( x 0 , y 0 )
y 1 = f ( 0 , 0 )
But
f ( 0 , 0 ) = sin ( 0 ) 0 = 0 0
How am I supposed to do it?

Answer & Explanation

Alden Holder

Alden Holder

Beginner2022-07-22Added 15 answers

You have to use boundary condition y ( 0 ) = 1 (i.e. consistent boundary condition) to keep the right hand side continuous. In other words, you have to solve a bit different problem
y ( x ) = {       1                 if   x = 0 sin x x             otherwise
Otherwise it is not solvable. (The right hand side must be defined in the starting point 0, where sin x x is not.)

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?