One Dimensional Diffusion Equation

In summary, the given problem involves solving a partial differential equation with non-homogeneous boundary conditions and an initial condition. The initial condition can be expressed as a Fourier series to make the problem easier to solve. To account for the non-homogeneous boundary conditions, a new function is introduced and the boundary conditions are "homogenized". The solution to the problem can then be written as a purely sine series.
  • #1
NeoDevin
334
2

Homework Statement


Solve:

[tex] \frac{\partial u}{\partial t} = k\frac{\partial^2 u}{\partial x^2}, 0<x<\pi, t>0 [/tex]

with initial condition

[tex] u(x,0)=f(x)=\left\{\begin{array}{cc} 1,& 0\leq x< \pi/2 \\ 0, &\pi/2 \leq x < \pi \end{array}\right [/tex]

and with non-homogeneous boundary conditions

[tex] u(0,t) = 1, u(\pi,t)=0[/tex]

The Attempt at a Solution



I've tried this one a couple different ways, I tried separation of variables, and Fourier series. I can get a solution (or infinitely many) to the equation, but I can't seem to make them fit the boundary/initial conditions both.

My solution for the Fourier series method is:

[tex]u(x,0)=\frac{A_0}{2} + \sum^{\infty}_{n=1} e^{-kn^2t}(A_n \cos(nx) + B_n \sin(nx) [/tex]

Any ideas how to make this (or any other solution) match both the boundary and initial conditions? Or is the problem incosistent?
 
Physics news on Phys.org
  • #2
it would be easier to see this if you express the function f(x), the initial condition, as a Fourier series.
 
  • #3
There is a standard way of handling problems with non-homogeneous boundary conditions: "homogenize" them!

The simple linear function [itex]1- \frac{1}{\pi}x[/itex] satisfies the boundary conditions. Now let [itex]v(x,t)= u(x,t)- 1+ \frac{1}{\pi}x[/itex]
It is easy to see that v(x,t) also satisfies
[tex] \frac{\partial v}{\partial t} = k\frac{\partial^2 v}{\partial x^2} [/tex]
but the boundary conditions for v are v(0, t)= 0, [itex]v(\pi,t)= 0[/itex].
Of course, you have to change the initial condition to
[tex] v(x,0)=\left\{\begin{array}{cc} \frac{1}{\pi}x,& 0\leq x< \pi/2 \\ \frac{1}{\pi}x-1, &\pi/2 \leq x < \pi \end{array}\right [/tex]

Now you can write v in a purely sine series:
[tex]v(x,t)=\sum^{\infty}_{n=1} e^{-kn^2t}B_n \sin(nx) [/tex]

Of course, as mjsd said, you will eventually have to write the initial condition as a Fourier series in order to find the Bn
 

What is the one dimensional diffusion equation?

The one dimensional diffusion equation is a mathematical equation that describes the process of diffusion in a one dimensional system. It is commonly used in physics, chemistry, and other fields to model the movement of particles or substances from areas of high concentration to areas of low concentration.

What is the physical interpretation of the one dimensional diffusion equation?

The one dimensional diffusion equation can be interpreted as describing the flow of a substance or particles down a concentration gradient, where the rate of flow is proportional to the concentration gradient. This can be seen in many real-life examples such as the diffusion of perfume in a room or the movement of ions in a battery.

What are the main assumptions of the one dimensional diffusion equation?

The one dimensional diffusion equation assumes that the diffusion process is occurring in a one dimensional system, meaning that the substance or particles are only moving in one direction. It also assumes that the diffusion is happening in a uniform medium with a constant diffusion coefficient, and that there are no external forces acting on the particles.

What are the boundary conditions for the one dimensional diffusion equation?

The two main boundary conditions for the one dimensional diffusion equation are the initial condition and the boundary condition. The initial condition specifies the initial concentration or distribution of particles at time t=0, while the boundary condition specifies the behavior of the particles at the boundaries of the system. These conditions are necessary for solving the diffusion equation.

What are some applications of the one dimensional diffusion equation?

The one dimensional diffusion equation has many applications in various fields such as physics, chemistry, biology, and engineering. It is used to model diffusion processes in gases, liquids, and solids, and is also used in studying heat transfer, mass transfer, and chemical reactions. It is also used in the development of computer models for predicting diffusion in various systems.

Similar threads

Replies
0
Views
444
  • Calculus and Beyond Homework Help
Replies
5
Views
261
  • Calculus and Beyond Homework Help
Replies
6
Views
356
  • Calculus and Beyond Homework Help
Replies
1
Views
425
  • Calculus and Beyond Homework Help
Replies
3
Views
258
  • Calculus and Beyond Homework Help
Replies
5
Views
608
  • Calculus and Beyond Homework Help
Replies
2
Views
900
  • Calculus and Beyond Homework Help
Replies
3
Views
236
  • Calculus and Beyond Homework Help
Replies
1
Views
326
  • Calculus and Beyond Homework Help
Replies
16
Views
548
Back
Top