For a differential equation say \(\displaystyle{y}'={t}{y}^{{{3}}}\) with

Ean Hughes

Ean Hughes

Answered question

2022-04-06

For a differential equation say y=ty3 with y(0)=1 how would we know if the sequence from Euler's method exists or not?

Answer & Explanation

llevochalecoiozq

llevochalecoiozq

Beginner2022-04-07Added 15 answers

Step 1
The Euler method for this example reads as
yn+1=yn+htnyn3.
According to the nature of the ODE, consider yn2. Then the iteration is approximately
yn+12=yn2(1+htnyn2)2
=yn2(12htnyn2+3h2tn2yn4+O(h3))
yn22htn,
as long as hyn2 remains small, yn2ggh. As tn=nh this can be solved as
yn2y02n(n1)h2=y02tn(tnh).
This means that at tn1, n=1h, the Euler iteration will reach a value yn1h, and thus yn+12h, and from that moment on the second term will dominate,
hyn+k+1(hyn+k)3yn+k1h23k1,
k1
Normal 64bit floating point numbers go up to 21024, that range gets exceeded before k=7
While in theory the Euler sequence can be indefinitely prolonged, in praxis there is no computer that can do this, the (observable, estimated) universe gets exhausted before k=200

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?