Title: Lecture 4: Diffusion and the Fokker-Planck equation
1Lecture 4 Diffusion and the Fokker-Planck
equation
- Outline
- intuitive treatment
- Diffusion as flow down a concentration gradient
- Drift current and Fokker-Planck equation
2Lecture 4 Diffusion and the Fokker-Planck
equation
- Outline
- intuitive treatment
- Diffusion as flow down a concentration gradient
- Drift current and Fokker-Planck equation
- examples
- No current equilibrium, Einstein relation
- Constant current, out of equilibrium
3Lecture 4 Diffusion and the Fokker-Planck
equation
- Outline
- intuitive treatment
- Diffusion as flow down a concentration gradient
- Drift current and Fokker-Planck equation
- examples
- No current equilibrium, Einstein relation
- Constant current, out of equilibrium
- Goldman-Hodgkin-Katz equation
- Kramers escape over an energy barrier
4Lecture 4 Diffusion and the Fokker-Planck
equation
- Outline
- intuitive treatment
- Diffusion as flow down a concentration gradient
- Drift current and Fokker-Planck equation
- examples
- No current equilibrium, Einstein relation
- Constant current, out of equilibrium
- Goldman-Hodgkin-Katz equation
- Kramers escape over an energy barrier
- derivation from master equation
5Diffusion
Ficks law
6Diffusion
Ficks law
cf Ohms law
7Diffusion
Ficks law
cf Ohms law
conservation
8Diffusion
Ficks law
cf Ohms law
conservation
gt
9Diffusion
Ficks law
cf Ohms law
conservation
gt
diffusion equation
10Diffusion
Ficks law
cf Ohms law
conservation
gt
diffusion equation
initial condition
11Diffusion
Ficks law
cf Ohms law
conservation
gt
diffusion equation
initial condition
solution
12Diffusion
Ficks law
cf Ohms law
conservation
gt
diffusion equation
initial condition
solution
http//www.nbi.dk/hertz/noisecourse/gaussspread.m
13Drift current and Fokker-Planck equation
Drift (convective) current
14Drift current and Fokker-Planck equation
Drift (convective) current
Combining drift and diffusion Fokker-Planck
equation
15Drift current and Fokker-Planck equation
Drift (convective) current
Combining drift and diffusion Fokker-Planck
equation
16Drift current and Fokker-Planck equation
Drift (convective) current
Combining drift and diffusion Fokker-Planck
equation Slightly more generally, D can
depend on x
17Drift current and Fokker-Planck equation
Drift (convective) current
Combining drift and diffusion Fokker-Planck
equation Slightly more generally, D can
depend on x gt
18Drift current and Fokker-Planck equation
Drift (convective) current
Combining drift and diffusion Fokker-Planck
equation Slightly more generally, D can
depend on x gt
First term alone describes probability cloud
moving with velocity u(x) Second term alone
describes diffusively spreading probability cloud
19Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
20Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
21Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
Stationary case
22Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
Stationary case Gas of Brownian particles in
gravitational field u0 µF -µmg
23Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
Stationary case Gas of Brownian particles in
gravitational field u0 µF -µmg µ
mobility
24Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
Stationary case Gas of Brownian particles in
gravitational field u0 µF -µmg µ
mobility Boundary conditions (bottom of
container, stationarity)
25Examples constant drift velocity
http//www.nbi.dk/hertz/noisecourse/gaussspreadmo
ve.m
Solution (with no boundaries)
Stationary case Gas of Brownian particles in
gravitational field u0 µF -µmg µ
mobility Boundary conditions (bottom of
container, stationarity)
drift and diffusion currents cancel
26Einstein relation
FP equation
27Einstein relation
FP equation Solution
28Einstein relation
FP equation Solution But from equilibrium
stat mech we know
29Einstein relation
FP equation Solution But from equilibrium
stat mech we know So D µT
30Einstein relation
FP equation Solution But from equilibrium
stat mech we know So D µT
Einstein relation
31Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
Pumps maintain different inside and outside
concentrations of ions
32Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell
33Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field
34Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field - Question At a given Vm, what current flows
through the channel?
35Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field - Question At a given Vm, what current flows
through the channel?
x0
xd
x
inside
outside
36Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field - Question At a given Vm, what current flows
through the channel?
x0
xd
Vout 0
x
inside
outside
V(x)
Vm
37Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field - Question At a given Vm, what current flows
through the channel?
x0
xd
?out
?in
Vout 0
x
inside
outside
V(x)
Vm
38Constant current Goldman-Hodgkin-Katz model of
an (open) ion channel
- Pumps maintain different inside and outside
concentrations of ions - Voltage diff (membrane potential) between
inside and outside of cell - Can vary membrane potential experimentally by
adding external field - Question At a given Vm, what current flows
through the channel?
x0
xd
?out
?
?in
Vout 0
x
inside
outside
V(x)
Vm
39Reversal potential
If there is no current, equilibrium gt
?in/?outexp(-ßV)
40Reversal potential
If there is no current, equilibrium gt
?in/?outexp(-ßV) This defines the reversal
potential at which J 0.
41Reversal potential
If there is no current, equilibrium gt
?in/?outexp(-ßV) This defines the reversal
potential at which J 0. For Ca, ?outgtgt
?in gt Vr gtgt 0
42 GHK model (2)
Vmlt 0 both diffusive current and drift current
flow in
x0
xd
?out
?
?in
Vout 0
x
inside
outside
V(x)
Vm
43 GHK model (2)
Vmlt 0 both diffusive current and drift current
flow in Vm 0 diffusive current flows in, no
drift current
x0
xd
?out
?
?in
V(x)
Vout 0
x
inside
outside
44 GHK model (2)
Vmlt 0 both diffusive current and drift current
flow in Vm 0 diffusive current flows in, no
drift current Vmgt 0 diffusive current flows in,
drift current flows out
x0
xd
?out
?
Vm
V(x)
?in
Vout 0
x
inside
outside
45 GHK model (2)
Vmlt 0 both diffusive current and drift current
flow in Vm 0 diffusive current flows in, no
drift current Vmgt 0 diffusive current flows in,
drift current flows out At Vm Vr they cancel
x0
xd
?out
?
Vm
V(x)
?in
Vout 0
x
inside
outside
46 GHK model (2)
Vmlt 0 both diffusive current and drift current
flow in Vm 0 diffusive current flows in, no
drift current Vmgt 0 diffusive current flows in,
drift current flows out At Vm Vr they cancel
x0
xd
?out
?
Vm
V(x)
?in
Vout 0
x
inside
outside
47Steady-state FP equation
48Steady-state FP equation
49Steady-state FP equation
Use Einstein relation
50Steady-state FP equation
Use Einstein relation
51Steady-state FP equation
Use Einstein relation
Solution
52Steady-state FP equation
Use Einstein relation
Solution
We are given ?(0) and ?(d). Use this to solve for
J
53Steady-state FP equation
Use Einstein relation
Solution
We are given ?(0) and ?(d). Use this to solve for
J
54Steady-state FP equation
Use Einstein relation
Solution
We are given ?(0) and ?(d). Use this to solve for
J
55Steady-state FP equation
Use Einstein relation
Solution
We are given ?(0) and ?(d). Use this to solve for
J
56Steady-state FP equation
Use Einstein relation
Solution
We are given ?(0) and ?(d). Use this to solve for
J
57GHK current, another way
Start from
58GHK current, another way
Start from
59GHK current, another way
Start from
60GHK current, another way
Start from Note
61GHK current, another way
Start from Note Integrate from 0 to
d
62GHK current, another way
Start from Note Integrate from 0 to
d
63GHK current, another way
Start from Note Integrate from 0 to
d
64GHK current, another way
Start from Note Integrate from 0 to
d
65GHK current, another way
Start from Note Integrate from 0 to
d (as before)
66GHK current, another way
Start from Note Integrate from 0 to
d (as before) Note J 0 at
Vm Vr
67GHK current is nonlinear
(using z, Vr for Ca)
J
V
68GHK current is nonlinear
(using z, Vr for Ca)
J
V
69GHK current is nonlinear
(using z, Vr for Ca)
J
V
70GHK current is nonlinear
(using z, Vr for Ca)
J
V
71GHK current is nonlinear
(using z, Vr for Ca)
J
V
72GHK current is nonlinear
(using z, Vr for Ca)
J
V
73GHK current is nonlinear
(using z, Vr for Ca)
J
V
74Kramers escape
Rate of escape from a potential well due to
thermal fluctuations
P2(x)
P1(x)
V1(x)
V2(x)
www.nbi.dk/hertz/noisecourse/demos/Pseq.mat www.nb
i.dk/hertz/noisecourse/demos/runseq.m
75Kramers escape (2)
V(x)
a b c
76Kramers escape (2)
V(x)
J ?
a b c
77Kramers escape (2)
V(x)
J ?
a b c
Basic assumption (V(b) V(a))/T gtgt 1
78Fokker-Planck equation
Conservation (continuity)
79Fokker-Planck equation
Conservation (continuity)
80Fokker-Planck equation
Conservation (continuity) Use Einstein
relation
81Fokker-Planck equation
Conservation (continuity) Use Einstein
relation Current
82Fokker-Planck equation
Conservation (continuity) Use Einstein
relation Current
If equilibrium, J 0,
83Fokker-Planck equation
Conservation (continuity) Use Einstein
relation Current
If equilibrium, J 0,
84Fokker-Planck equation
Conservation (continuity) Use Einstein
relation Current
If equilibrium, J 0, Here almost
equilibrium, so use this P(x)
85Calculating the current
(J is constant)
86Calculating the current
(J is constant)
integrate
87Calculating the current
(J is constant) (P(c) very small)
integrate
88Calculating the current
(J is constant) (P(c) very small)
integrate
89Calculating the current
(J is constant) (P(c) very small)
integrate
If p is probability to be in the well, J pr,
where r escape rate
90Calculating the current
(J is constant) (P(c) very small)
integrate
If p is probability to be in the well, J pr,
where r escape rate
91Calculating the current
(J is constant) (P(c) very small)
integrate
If p is probability to be in the well, J pr,
where r escape rate
92Calculating the current
(J is constant) (P(c) very small)
integrate
If p is probability to be in the well, J pr,
where r escape rate
93 calculating escape rate
In integral
integrand is peaked near x b
94 calculating escape rate
In integral
integrand is peaked near x b
95 calculating escape rate
In integral
integrand is peaked near x b
96 calculating escape rate
In integral
integrand is peaked near x b
97 calculating escape rate
In integral
integrand is peaked near x b
98 calculating escape rate
In integral
integrand is peaked near x b
99 calculating escape rate
In integral
integrand is peaked near x b
100 calculating escape rate
In integral
integrand is peaked near x b
________
101More about drift current
Notice If u(x) is not constant, the probability
cloud can shrink or spread even if there is no
diffusion
102More about drift current
Notice If u(x) is not constant, the probability
cloud can shrink or spread even if there is no
diffusion (like density of cars on a road where
the speed limit varies)
103More about drift current
Notice If u(x) is not constant, the probability
cloud can shrink or spread even if there is no
diffusion (like density of cars on a road where
the speed limit varies)
Demo initial P Gaussian centered at x 2 u(x)
.00015x
http//www.nbi.dk/hertz/noisecourse/driftmovie.m
104Derivation from master equation
105Derivation from master equation
(1st argument of r starting point 2nd argument
step size)
106Derivation from master equation
(1st argument of r starting point 2nd argument
step size)
107Derivation from master equation
(1st argument of r starting point 2nd argument
step size)
108Derivation from master equation
(1st argument of r starting point 2nd argument
step size)
Small steps assumption r(xs) falls rapidly to
zero with increasing s on the scale on which
it varies with x or the scale on which P varies
with x.
109Derivation from master equation
(1st argument of r starting point 2nd argument
step size)
Small steps assumption r(xs) falls rapidly to
zero with increasing s on the scale on which
it varies with x or the scale on which P varies
with x.
x
s
110Derivation from master equation (2)
expand
111Derivation from master equation (2)
expand
112Derivation from master equation (2)
expand
113Derivation from master equation (2)
expand
114Derivation from master equation (2)
expand
Kramers-Moyal expansion
115Derivation from master equation (2)
expand
Kramers-Moyal expansion Fokker-Planck eqn if drop
terms of order gt2
116Derivation from master equation (2)
expand
Kramers-Moyal expansion Fokker-Planck eqn if drop
terms of order gt2
117Derivation from master equation (2)
expand
Kramers-Moyal expansion Fokker-Planck eqn if drop
terms of order gt2
rn(x)?t nth moment of distribution of step size
in time ?t
118Derivation from master equation (2)
expand
Kramers-Moyal expansion Fokker-Planck eqn if drop
terms of order gt2
rn(x)?t nth moment of distribution of step size
in time ?t