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

  • Context: Undergrad 
  • Thread starter Thread starter ChickenChakuro
  • Start date Start date
  • Tags Tags
    Euler
Click For Summary
SUMMARY

The discussion focuses on solving the differential equation y(t) + dy(t)/dt = 1 using the Euler forward method. The derived formula for the next step, y[n+1] = T + (1-T)y[n], is established with T as the step size and y[0] = 0. The method applies the finite difference approximation for the derivative, specifically dx_1/dt = (x_1[n+1] - x_1[n])/T, evaluated at t = nT. This approach allows for the iterative calculation of y values based on the initial condition and step size.

PREREQUISITES
  • Understanding of differential equations and initial value problems
  • Familiarity with numerical methods, specifically the Euler method
  • Basic knowledge of finite difference approximations
  • Concept of step size in numerical analysis
NEXT STEPS
  • Study the derivation of the Euler forward method in detail
  • Learn about stability and error analysis in numerical methods
  • Explore higher-order numerical methods for solving differential equations
  • Investigate applications of the Euler method in real-world scenarios
USEFUL FOR

Students and professionals in mathematics, engineering, and computer science who are learning numerical methods for solving differential equations.

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
[tex]y(t) + \frac{dy(t)}{dt} = 1[/tex] where [tex]y(t) = 0[/tex],

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

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

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

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

Can anyone please help me understand how they arrived at the solution for [tex]y[n+1][/tex]? 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!
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 0 ·
Replies
0
Views
4K
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 38 ·
2
Replies
38
Views
12K
Replies
2
Views
2K