Solving system of first order linear differential equations with matrix exponential method
I will teach the general theory of how to solve first order linear differential equations in this tutorial.
Content |
The problem
In this tutorial, the type of problem that we would like to solve is of the form:
.................(1)
Notation
Let's denote:
And equation (1) can be written as:
Notice that the matrix A need to be invertible, otherwise the system of equations cannot be solved.
Therefore we can multiple A inverse to both side, and we can consider the following equation instead.
.......................(2)
Of course here, A and g will be different from the original definition.
The method
If we treat the matrix A, vector x and g as scalar, (2) can be solved in a simple way using integrating factor. (I have written another tutorial about differential equation, and it teaches integrating factor as well if you need references.)
In short, the solution of equation (2) is given by:
...................(3)
However, since we are dealing with matrices and vectors, we need to check if the solution is indeed valid. Now I will explain the meaning of exponential of matrix A in the next session.
Exponential of Matrix
Here we will use the following power series for exponential function:
Therefore, for exponential of a matrix A,
The infinity sum of matrix seems impossible to evaluate, but once we have diagonalize A, it's exponential can be found easily.
If A can be diagonalized, it can be written as:
And D is a diagonal matrix. Powers of A can be found very easily since:
Therefore:
Differentiating exponential of matrix
What if we need to differentiate ?
We will get back to the power series expansion:
In general, if A is a function of t, it's derivative cannot be found easily in this way. Since:
Since does not communte with
generally, therefore we cannot simplify it into
. So the above derivation won't work in general.
Verifying the solution
Given (3), we would like to show that it indeed satisfies (2).
Therefore I have verified that, (3) is solution to (2).
Example
Please refer to A worked example of solving system of first order linear differential equation for example.
Please login to post comment.