Heat Diffusion and Differential Equations
Suppose we have a thin metal rod of length , and let be the temperature at some point in the rod at some particular point in time. Weโll assume that the rod is perfectly insulated for , (so no heat can be lost in the middle).
The function satisfies the Heat Equation
For some physical constant .
This is a partial differential equation!
Additionally, the function must also satisfy some boundary conditions, specifying what the temperature should be at the ends:
- Temperature at and is held fixed.
- The rod is perfectly insulated at the endpoints.
In this class, rather than studying the PDE, we will model the rod differently by discretizing space. Divide the rod into chunks, and assume that for any chunk at a particular time, the temperature is uniform along the entire chunk.
With this simplified setup, each chunk will have its own temperature function only depending on time, .
So instead of trying to solve for , weโll try to solve for the vector-valued function
Which is a lot easier to solve for!
We start in the case where . Weโll assume that outside of the endpoints of the rod, and heat can flow from the rod outside the endpoints.
The main principle is that the rate at which heat flows across a boundary is proportional to the temperature difference of the two regions on either side. Weโll assume the constant proportionality is 1. Then, our regions would have temperature functions given by
This gives us a system of ordinary differential equations! We put the functions in a vector valued function
To solve for , we need an initial condition, say . We ask, how do we solve these general forms of equations?
Let be an matrix and let . Weโd like to be able to solve the problem
For .
Example: Case
What if ? Then, we have
Where is a scalar, and is real-valued. Here, any solution of this has the form , and with our initial value, then our solution is !
Given the above, could it be true that is a solution to our problem? Maybe, but what does this mean?
Recall that for any real number , we have Taylor Series
So, if is an matrix, we can define the matrix exponential as
Proposition
For any matrix, this series converges. Note that as this series is a sum of matrix products, too is a matrix.
Now consider , where is a real variable and is a fixed matrix. is a matrix valued function of . What is its derivative with respect to ?
Proposition
Let be an matrix. Then,
Theorem
Let be . The unique solution to the problem
Is .
Proof
Letโs show that satisfies the differential equation and initial condition.
So to solve our problem, we need to solve the matrix exponential! But how does one actually compute the matrix exponential, or ?
This can be done with diagonalization! This is very easy for a diagonal matrix.
Example: Matrix Exponentials for Diagonal Matrices
What is ?
In general, for any diagonal matrix , the matrix exponential is
What if is diagonalizable ()? Then, our matrix exponential is
We can use this to find the solution to our system!
Theorem: Diagonalizable Matrix Exponentials
Suppose . Then
More generally, if , then .
Example
Suppose we have system
By our theorem, we can find the solution as
So, letโs solve for ! We can diagonalize as
And can then find as
We can multiply this with our vector to obtain the final result!