1st order ODE with sampled function

  • Thread starter Thread starter tamzam
  • Start date Start date
  • Tags Tags
    Function Ode
tamzam
Messages
1
Reaction score
0
Hello,

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...
 
Physics news on Phys.org
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.
 
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...
Back
Top