I have equation: <mtable columnalign="right left right left right left right left right left

Brooke Webb

Brooke Webb

Answered question

2022-05-28

I have equation:
d y d t = 0.04 y
How would I find the expression for Euler's method? I know the general expression is:
y n = y n 1 + h F ( t n 1 , y n 1 )
but I am confused with what to use as x and y and how I could convert 0.04 y into that form.
Edit: increments of 1 second, y ( 0 ) = 3.

Answer & Explanation

Boatein

Boatein

Beginner2022-05-29Added 10 answers

Let's consider the initial condition
y ( 0 ) = y 0 .
Then
y ( 0 ) = F ( 0 , y 0 ) = 0.04 y 0 .
Then assuming a time step Δ t = h we can estimate
y ( h ) y 1 = y ( 0 ) + y ( 0 ) Δ t = y 0 + y 0 h F ( h , y 1 ) = 0.04 y 1 .
Then
y ( 2 h ) y 2 = y 1 + h F ( h , y 0 ) F ( 2 h , y 2 ) = 0.04 y 2
and so on.

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?