Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

1st order ODE with sampled function

  1. Apr 11, 2010 #1

    My question seems to be simple. I would like to numerically solve the following first order ODE to obtain v(x):

    v'(x) = b.[v(x) - f(x)] , given boundary condition v(+infinity) = 0 [b is a known constant]

    The problem is that f(x) is not known explicitly (f(x) is sampled at a dense x grid).

    Can you please help me? any hints will be appreciated...
  2. jcsd
  3. Apr 11, 2010 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    Welcome to Physics Forums :smile:

    What is your application? Is this a homework or self-study problem?

    The standard 4th order Runge-Kutta method should work here. For details see practically any text on numerical solutions, or try google.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook