How is the solution for y[n+1] obtained using Euler's forward method?

  • Thread starter Thread starter ChickenChakuro
  • Start date Start date
  • Tags Tags
    Euler
ChickenChakuro
Messages
31
Reaction score
0
Hi all, I'm having trouble understanding a basic concept introduced in one of my lectures. It says that:

To solve the DE
y(t) + \frac{dy(t)}{dt} = 1 where y(t) = 0,

using the Euler (forward) method, we can approximate to:

y[n+1] = T + (1-T)y[n] where T is step size and y[0] = 0.

I have no idea how this result is obtained, the only thing they say is that in general for

\frac{dx_1}{dt} = \frac{x_1[n+1] - x_1[n]}{T} for t = nT.

Can anyone please help me understand how they arrived at the solution for y[n+1]? Thanks!
 
Physics news on Phys.org
Bah, it is simple plug-and-chug. Should have known! Thanks!
 
Four minutes! You didn't even give us a chance to explain!
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...

Similar threads

Back
Top