1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Use the Euler method?

  1. Oct 8, 2013 #1
    1. The problem statement, all variables and given/known data
    Use the Euler method with h=0.05 to find approximate values of y'=3+t-y, y(0)=1 at t=0.1, 0.2, 0.3, and 0.4.

    2. Relevant equations
    I don't even know what formula and how to use it.

    3. The attempt at a solution
    The answers are 1.1975, 1.38549, 1.56491, 1.73658.
  2. jcsd
  3. Oct 8, 2013 #2
    Euler's method is a recursive method. In general, it is best to understand what you're actually doing than to memorize the equations. In Euler's method, you essentially get an estimate of y' and use that to estimate y at future values.

    At t=0, y=1 (given), and thus, y'(0)=3+0-1=2. In the next h seconds, you would expect y to increase by y' * h. Thus, we say y(x+h)=h*y'(x)+y(x). We get that y(0.05)=0.05*y'(0)+y(0)=1.1. our new value of y'(0.05)=3+0.05-y(0.05)=1.95. Keep iterating this method to get future values of y and y'.
  4. Oct 9, 2013 #3

    Ray Vickson

    User Avatar
    Science Advisor
    Homework Helper

    Are you saying that your textbook and/or course notes have nothing at all on Euler's method?
  5. Oct 9, 2013 #4
    You are solving a differential equation of the form:
    To solve this equation numerically, you are approximating the derivative on the left hand side by:
    But, what values of y and t do you use to substitute into the function f, the values at time t, y(t) and t, or the values at time t+Δt, y(t+Δt), t+Δt? In Euler's method you use the former, so your algebraic approximation to the differential equation becomes:
    or, equivalently,
    where n signifies the n'th time step of your calculation. In the terminology that your problem statement uses, h = Δt
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted