• Support PF! Buy your school textbooks, materials and every day products Here!

Diffusion equation in 1D

  • Thread starter poiuy
  • Start date
  • #1
11
0
The solution to the diffusion equation in 1D may be written as follows:



n'(x,t) = N/sqrt(4piDt) * exp(-x^2/4DT)

where n'(x,t) is the concentration of the particles at position x at time t, N is the total number of particles and D is the diffusion coefficient.

Write down an expression for the number of particles in a slab of thickness dx located at position x.




I assumed it would be the integral of the function between x and x+dx with respect to x.

However exp(-x^2/4Dt) can't be integrated between these values. I have a standard integral for exp(-ax^2) which is 0.5 sqrt (pi/a) but this only applies to integrating between zero and infinity.


If anybody could point me in the right direction it would be greatly appreciated, I think I am missing something obvious here and this is a really simple question.

Thanks
 
Last edited:

Answers and Replies

  • #2
nrqed
Science Advisor
Homework Helper
Gold Member
3,605
206
The solution to the diffusion equation in 1D may be written as follows:



n'(x,t) = N/sqrt(4piDt) * exp(-x^2/4DT)

where n'(x,t) is the concentration of the particles at position x at time t, N is the total number of particles and D is the diffusion coefficient.

Write down an expression for the number of particles in a slab of thickness dx located at position x.


I assumed it would be the integral of the function between x and x+dx with respect to x.

However exp(-x^2/4Dt) can't be integrated between these values. I have a standard integral for exp(-ax^2) which is 0.5 sqrt (pi/a) but this only applies to integrating between zero and infinity.


If anybody could point me in the right direction it would be greatly appreciated, I think I am missing something obvious here and this is a really simple question.

Thanks
Welcome to the forums!

Note that the integrale of any function f(x) between x and x +dx is simply f(x) dx!

[tex] \int_x^{x+dx} f(x') dx' \approx f(x) dx [/tex]
 
  • #3
11
0
Wow thanks, incredible that I could have had 14 years of education and never been taught that, thanks very much.
 
  • #4
11
0
Actually thinking about it, it's incredible that I couldn't work that out for myself.
 

Related Threads on Diffusion equation in 1D

  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
4
Views
567
  • Last Post
Replies
0
Views
4K
Replies
3
Views
1K
Replies
0
Views
2K
  • Last Post
Replies
2
Views
1K
  • Last Post
Replies
1
Views
693
  • Last Post
Replies
2
Views
2K
Replies
9
Views
1K
Top