The heat equation is a Partial Differential equation that explains how temperature behaves in space and time.
About
The heat equation can be written on many forms:
Where is the temperature as a function of time and position. And is a diffusivity constant. It can also be written on the form
Where is known as the Laplace operator.
In one dimension is a function dependent on time and the position along a line .
For each added dimension, an extra variable is added. In two dimensions, the equation changes to the following:
Derivation
Heat equation in two dimensions
Solving
Before solving the heat equation, we need a few parameters.
Lets assume we have a plate with height and length , that we want to track the temperature over.
We will need to know of the temperature distribution at . This is referred to as an initial condition. In this case, we can set the initial condition to a generic function.
We also need a boundary condition. This gives information about how the temperature should act on the boundaries. In this case, lets assume we have isolated edges, so that the temperature on the edges can not be changed:
To start of, we assume that we can use separation of variables:
We then plug this into the heat equation
If we then divide both sides by :
If you stare at this for a while, you notice that each side of this equation contains functions that are dependent on each independent variable. This means that if the value of changes, and will remain the same, and the expression on the right side of the equals sign will stay the same. For this equation to then be fulfilled, both sides has to stay constant:
Moving around on this equation to separate the functions dependent on and gives:
All of this can now be separated into three equations:
We will start by solving equation (2):
We then guess that the solution is the following:
Plugging this in and solving for gives the actual solution;
The solution is then given on the following form:
When we have come to this stage, we three different situations depending on :
Lets see what happens when
This is not an interesting solution, as it states that is just a constant.
Using the boundary condition.
This is not an interesting solution.
By using Eulers formula we end up with the following:
We now merge and into two complex constants and :
Now we want to use the boundary condition again.
, this means that we only need the for the next check.
We are not interested in the solution where , can never be zero as is a negative number. Therefore, we need to find a solution where the sine function gives zero.
Where .
We add a subscript to the constant in the equation as the constant might change based on what the number is. We have now found a solution for equation (2).
Next we can find a solution for equation (3):
This equation is very similar to equation (2). Finding the solution will be identical up until we get to adding the boundary condition:
TODO:
- Legg inn informasjon om å løse varmelikningen med fourier transform,
- Ender opp med varmelikningens fundamentalløsning: løsning av varmelikningen over hele R uten rand og initialkrav.