Results 1 to 3 of 3

Math Help - Euler's Method

  1. #1
    Newbie
    Joined
    Mar 2011
    Posts
    14

    Euler's Method

    -Letís consider the initial-value problem
    Dy/dt = 2-y, y(0)=1
    How can I compute three different approximate solutions corresponding, for an example, to Δt= 1.0, 0.5 and 0.25 over the interval 0 ≤ t ≤ 4 by using Eulerís method. Also how can I graph all three solutions? What predictions can I make about the actual solutions to the initial-value problem? How can I include a table of the approximate values of the dependent variable?
    I know we want to start first by approximating the solution of the initial value problem y'(t)=f(t,y(t)), y(t0)=y0. Is Euler method yn+1=yn+hf(tn,yn)? I know we must first compute f(t0,y0). Because this differential equation depends only on y, so we need only worry about inputting the values for y. After that I get stuck? Or am I right at all?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Mar 2011
    Posts
    14
    I think I'm on the right track

    since we can also say Euler's Method is yk=y0+f(y)t

    therefore, yk=y0+(2-y)t

    So to get y's I plug for each t...(1,.5,.25), 4 times..(y1,y2,y3,y4)
    and for the x's can I use xn+1=xn+h or xn+1=xn+t? therefore I compute the same way as I did for y

    so my table of the approximate values would look like this

    for t=1.0
    y t x
    yk=y0+(2-y)t xn+1=xn+t
    y1=1+(2-1)1=2 1.0 x1=0+1=1
    y2=2+(2-2)1=2 1.0 x2=1+1=2
    y3=2+(2-2)1=2 1.0 x3=2+1=3
    y4=2+(2-2)1=2 1.0 x4=3+1=4

    Then I would do the same for t=0.5 and t=0.25. Am I on the right track?
    The way I would graph, would be x-vs-y


    Now I don't know what the question is trying to ask with "what predictions can I make about the actual solutions to the initial-value problem"?
    Do I have to differentiate? If yes then what?
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Master Of Puppets
    pickslides's Avatar
    Joined
    Sep 2008
    From
    Melbourne
    Posts
    5,236
    Thanks
    28
    Quote Originally Posted by hansbahia View Post

    Now I don't know what the question is trying to ask with "what predictions can I make about the actual solutions to the initial-value problem"?
    Do I have to differentiate? If yes then what?
    Have a read of this article, its very good.

    Pauls Online Notes : Differential Equations - Euler's Method

    Also google "stability of Euler's method". It should be clear that accuracy will improve as you make the change in t smaller.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Euler Method - IVP
    Posted in the Differential Equations Forum
    Replies: 1
    Last Post: May 15th 2010, 01:14 AM
  2. Euler's method
    Posted in the Calculus Forum
    Replies: 0
    Last Post: March 8th 2010, 04:48 PM
  3. Euler's Method
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: November 9th 2009, 07:20 AM
  4. Euler Method
    Posted in the Math Software Forum
    Replies: 5
    Last Post: March 15th 2009, 02:58 PM
  5. Euler's Method
    Posted in the Differential Equations Forum
    Replies: 2
    Last Post: March 11th 2009, 05:33 PM

Search Tags


/mathhelpforum @mathhelpforum