Advanced Linear Algebra
Transcript
Hi, so we have reached the advanced topics in linear algebra in this course. So it's probably appropriate at this point to take a look at what we have done so far from a very high vantage point. We started approaching linear algebra from different perspectives, views. One way to think about it was that linear algebra is like a jigsaw puzzle here, and you're picking out some corner piece and then approaching it and trying to build the whole thing.
So we started with the numerical methods in the beginning, and then the algebraic view, another corner piece which was basically about solving equations. Then the geometric piece, another very important corner piece, the geometric view, and that led us to a deeper understanding of what was going on, and then eventually to linear regression. Now we've reached these advanced topics whereby I can actually say that it's more like a three-dimensional structure. It's not like a flat rectangular puzzle. It's more like a three-dimensional, big, beautiful edifice that you can look at from different perspectives, different projections, as it were. And we're probably mature enough in linear algebra that we can see this. What I wanted to tell you is that starting today, every little topic that we have from now on, multiple topics per chapter, will be like a corner piece in its own right.
And that will enhance your understanding of the internal mechanics of linear algebra. And not merely that, also your facility with linear algebra in such a way that you might be able to apply it in computer science and algorithms in a more efficient fashion. So today is eigenvalue decomposition, which is a big portal to a lot of beautiful mathematics applied in all sorts of fields. Like most impressively in quantum mechanics, but also in things like the frequency modes of vibrations in a guitar,
or why soldiers have to stop marching when they cross a bridge. All kinds of stuff, it is there everywhere in physical sciences and also in mathematics, and in computer science, also algorithms. In fact, every topic starting from now on will have its tentacles deeply embedded in all aspects of computer science algorithms, advanced algorithms, including our favorite one, large language models these days. Let's get started. For eigenvalue decomposition, we will start with the fundamentals and computational methods, and then we will move on to the next aspects. First of all, as we know by now, given a matrix of m rows and n columns, A in ℝᵐˣⁿ,
it is a mapping between ℝⁿ and ℝᵐ. ℝⁿ in green here and ℝᵐ the output space. So given a vector x in ℝⁿ, you get a vector b in ℝᵐ. So it's a mapping. And these two spaces, the green one and the red one, they are in entirely different universes. They have nothing to do with each other as far as vectors go, except that there is this connection through this matrix A. But assuming that we start with a square matrix, n×n, not a different number of rows and columns, then of course it's a mapping
between ℝⁿ and ℝⁿ. So green ℝⁿ and red ℝⁿ, given a vector in the green ℝⁿ you get a vector in the red ℝⁿ, that is a mapping too. So it's actually, if you want to be pedantic about it, these are two different ℝⁿs, but we can also think of it as a mapping from one space to itself. Meaning given a vector in ℝⁿ, the green ℝⁿ, you get another vector in the same space. So instead of saying that it's a mapping from one space to another, we can say it's a mapping from one space to itself.
All the vectors in one space are going to get transformed into some of the vectors in the same space. So that is my blue space here, ℝⁿ to ℝⁿ. So it's a mapping from a space to itself. Now we can ask a question whether there are any special vectors in this space that do not change direction as a result of the application of the matrix on that vector. Meaning it merely scales. It becomes a larger vector or a smaller vector without changing direction. And those are the eigenvectors.
That might sound like something that is only of academic interest, but it's actually very, very foundational. So let's take a bunch of examples here. These are the examples that we will go through over and over again in this chapter. Let's take a permutation matrix. So it takes a vector, shuffles the elements in some fashion, and gives it back to you. It's a square matrix. So the input vector is in the same space as the output vector. Now if all the elements are the same, given that these elements are just being shuffled, shuffling will not have an effect if the elements are the same. So a permutation matrix will have that one vector at least as an eigenvector. The second one we want to consider is a projection matrix. It's an operator that takes a vector and finds another vector in a subspace that is closest to it. Again, it's a square matrix. And if the vector that you're starting with is already in the subspace, it's not going to change.
So that is a vector that we will call an eigenvector. It's a vector that doesn't change direction. A shear matrix is another kind of matrix that takes a vector and changes one element of that vector in proportion to another element. That we will have to see a little while later to understand what it does. That also turns out that it has some interesting vectors in the space that don't actually change. Rotation matrix, another class of matrices, it takes a vector and returns
a rotated version of it in the same space. Since it's rotating the vectors, it doesn't look like it will have any vector that doesn't change direction. We'll talk about that in a while. So those are the examples that we will go through. But first of all, let's start with a definition. A formal definition of eigenvectors and eigenvalues. For a matrix A, a square matrix in ℝⁿˣⁿ, a non-zero vector s with n elements is considered an eigenvector if As = λs.
λ being a scalar. That vector s, the green one, is an eigenvector. That scaling factor λ in red is an eigenvalue. So a few things to note here. For a matrix in ℝⁿˣⁿ, meaning real elements, the vector s and the eigenvalue λ are not guaranteed to be real. They may be complex. So we are stepping into this scary field of complex numbers where angels fear to tread, but there we are. Then the second point is if s is an eigenvector with an eigenvalue λ, any scaled version of that vector, say rs, is also an eigenvector with the same eigenvalue. That is very easy to prove, just a one-liner there as you can see. A(rs) = r(As)
because scalar multiplication commutes with matrix multiplication. Then As is λs because s is an eigenvector of A with eigenvalue λ. Then that is the same as λ(rs) because again, multiplication commutes in real numbers also. So you can see that A(rs) is the same as λ(rs), which is the definition of an eigenvector. So rs is an eigenvector with the same eigenvalue λ. In other words, an eigenvector defines only a direction in the space. So for that reason, you might as well give a normalized version as an eigenvector, which is what most applications will do. The next point is that an n×n matrix can have at most n eigenvalues, not more than n. Then associated with those n eigenvalues, you can have at most n
linearly independent eigenvectors. In the second bullet point there, you saw that any scaled version of an eigenvector is still an eigenvector. But eigendirections, or linearly independent eigenvectors, distinct eigenvectors, there can be only n of them at most. The eigenvalue λ can be zero, as in the projection matrix as you shall see. But eigenvectors are not allowed to be zero by definition. We say that a vector is an eigenvector only if it is a non-zero vector. That's because if it is a zero vector, by looking at the eigenvector equation, you can see that it's always an eigenvector. So that doesn't count. So let's take a few examples. A permutation matrix in ℝ². So the only permutation you can do is to shuffle row one and row two. How would you find that operator? As you remember, just apply that to the identity matrix. Shuffle the first row and the second row of the identity matrix.
The matrix that you get will be the operator that does that to any matrix, or any vector for that matter. So if you apply A to [x, y]ᵀ, a general vector, then you will get [y, x]ᵀ. That is easy to see because A[x, y]ᵀ says that the product is a linear combination of the columns of A, scaling the first column by x and the second column by y. So you can see that it's just [y, x]ᵀ. Now obviously, if x and y are the same, then shuffling them will not make any difference. So one possible eigenvector is just [1, 1]ᵀ. Again, it's just [x, x]ᵀ, or [y, y]ᵀ, any scaled version of that. So [1, 1]ᵀ is a perfectly fine eigenvector that we can specify. If you ask an application to compute it, it'll probably give you [1/√2, 1/√2]ᵀ.
It's just a direction. The eigenvalue corresponding to that is 1. But that's not all. If x is -y, then after shuffling it you will get [-y, x]ᵀ, which is -1 times the original vector. So s₂, the second eigenvector, is [1, -1]ᵀ, or any multiple thereof, that comes with an eigenvalue of -1. Projection matrix, let's go to 3D now. So in ℝ³, something that projects onto the xy-plane will have the form [1, 0, 0]ᵀ, [0, 1, 0]ᵀ, [0, 0, 0]ᵀ. It is basically zeroing the third element.
Apply this projection matrix to [x, y, z]ᵀ. The third element z will become zero because it's a linear combination, and you know all those things. Now take any vector in the xy-plane, project it onto the xy-plane, you're going to get the same vector. So the whole plane of vectors, the xy-plane of vectors, would be eigenvectors. That looks like an infinite number of vectors. But what we said was that you can select two linearly independent ones, or maybe even orthonormal ones in the xy-plane. The dimension of the eigenspace corresponding to this eigenvalue is 2. So there are only really two linearly independent vectors there. So what vectors would you choose? [1, 0, 0]ᵀ and [0, 1, 0]ᵀ, x-axis and y-axis. Then there's one more eigenvector with eigenvalue zero. Any vector along the z-axis, when you project onto the xy-plane, you will get a zero vector. So any non-zero vector on the z-axis is an eigenvector with eigenvalue 0. Eigenvalues are allowed to be zero,
but eigenvectors are not. Then the shear matrix. A shear matrix is a matrix that returns a vector with one element changed by some constant times the second element. We're talking ℝ² now. So my matrix A is [1, 0]ᵀ, [0.5, 1]ᵀ column-wise. That means if I apply A on the vector [x, y]ᵀ, what I'll get back will be... let's do this carefully. Linear combinations of the columns of A. The first column times x plus the second column times y.
The first column times x will give me [x, 0]ᵀ. The second column times y will give me [0.5y, y]ᵀ. So the first element becomes x + 0.5y. And the second element becomes y. So the first element is changed by a term that is proportional to the second element, and that is a shear matrix. Now what's an eigenvector of this one? What's the vector that will not change? If the second element is already zero, then the first element will not change, because it's changing in proportion to the second element, and the second element never changes anyway. So that means anything that has a zero component for the second element is an eigenvector. So in particular we can take [1, 0]ᵀ, that is a perfectly fine eigenvector. The eigenvalue is 1 because this doesn't change at all. Is there a second eigenvector, though? Can you think of a second eigenvector? There isn't any. There's only one. So that is a problematic case,
as we shall see soon. But let me explain the shear matrix once more. In order to understand what a matrix does to any vector, you just have to look at what it does to the coordinate basis vectors, q₁ and q₂, [1, 0]ᵀ and [0, 1]ᵀ. The first unit vector [1, 0]ᵀ will not change. The transformed version of [1, 0]ᵀ is still [1, 0]ᵀ. That is q₁′ in bright red. But the second vector, that changes, because that has a component along the second direction, y direction,
and that adds to the x direction, and that becomes [0.5, 1]ᵀ. And that's why it's called a shear matrix. Because if you think of the unit square, then that gets sheared into a parallelogram. So the shear matrix would be just what the matrix does to the unit vectors, and you just stack them side by side, you get the matrix. Now, the rotation matrix. This is something that we've seen before. A matrix that rotates by θ in ℝ² has this form: [cos θ, sin θ]ᵀ, [-sin θ, cos θ]ᵀ.
Rotation in ℝ² is something that we did in a different video, so what I'm going to do is to splice that video and put it here for you to see. In ℝ², one angle will completely specify the rotation, so it is Q with the angle θ. So you can write it as a Q_θ. So as we know, if you take a vector, a unit vector in ℝ²... So along the x-axis you have q₁, along the y-axis you have q₂. And you can take any vector on the unit circle, and that will have components cos θ along x, which is this guy here. If you complete the right angle triangle, this is the adjacent side. So that's cos θ. And the hypotenuse is 1. That's why it's 1 × cos θ. sin θ will be the vertical direction. So that's the general unit vector in ℝ². And if you were to take the vector q₁ to q₁′,
then the same matrix will take q₂ to q₂′. Everything is getting rotated by angle θ. So if you do the trigonometry there, that will turn out to be -sin θ. So this will have a component -sin θ. And the vertical component, the second component is going to be cos θ, because θ happens to be the angle between the vertical axis and q₂′. So once you know what the unit vectors transform to, you can write down the matrix that does the transformation. So the rotation matrix Q parameterized by θ is [cos θ, sin θ]ᵀ in the first column, and [-sin θ, cos θ]ᵀ in the second column. If you think of a rotation by 90°, or π/2, just plug in θ = π/2. You get [0, 1]ᵀ, [-1, 0]ᵀ. So this looks like all vectors are changed. Every vector will move. So there are no eigenvectors. I'll say there are no real eigenvectors. Turns out that the eigenvectors are going to be in the scary field of complex numbers. And the eigenvalue also is going to be
a complex number. There are other examples of eigen-like operations. They're not really matrix operations. But let's take a couple of examples. Now, differentiation. d/dx of an exponential function e^(ax). You know that the exponent doesn't change. So you can think of e^(ax) as an eigenvector of this operation, and the eigenvalue, of course, is a. If you think of a second order differentiation of a trigonometric function, then it comes back with a minus sign.
So sin(x) is an eigenvector of d²/dx² with an eigenvalue -1. So it's probably kind of hard to understand why you would want to consider these things eigenvectors, because there's no vector here, just a function. Let's make it explicit that you can think of these things as vectors, too. Let's take sin(x), for instance, between say 0 and π. So that's got a shape. For each value along this horizontal axis, you have a value for the function.
So if you were to stack those values in a column vector, that is a vector. And if you can think of some operator, a matrix that would apply on this one to give you -sin(x) by its application, that would be something like this differential operator of second order. But of course the so-called vector that we created here has an infinite number of elements. Because the number of points between 0 and π would be infinite, but it's still a vector nonetheless. Thinking along those lines, people have created things like Fourier transforms and all of quantum mechanics really based on these ideas. Now let's look at a few visualizations on the website of the book. Scroll down to visualizations, and for chapter 11, let's look at the first one here. What we have is a matrix. You can select any matrix that you want. The blue vector is a candidate eigenvector. When the blue vector becomes the red vector, which is the transformed version, meaning A times the blue vector,
if those two things become collinear, if they fall on the same line, then you have an eigenvector. The thing is, you can move the blue vector, and there, when it gets all excited and becomes green, that's when an eigenvector is found. [3, 3]ᵀ is an eigenvector. Could be [1, 1]ᵀ, [2, 2]ᵀ, etc. It's just that the mouse resolution is such that I may not be able to line up these two vectors perfectly, unless it's like [3, 3]ᵀ or something. So that's the permutation matrix. As you know for a permutation, if those two elements are the same, then the shuffling implemented by the permutation matrix will not have an effect. But that's not all. If I move in some other direction, say [-4, 4]ᵀ, then you get the permuted one, which is [4, -4]ᵀ. So eigenvalue of -1, that is the permutation matrix. Then let's take a projection onto y = x. So again, let's start with some vector like this. Along the x-axis, my blue vector is a candidate eigenvector.
The moment that lines up with my red vector, which is the output of the operation on the blue vector, that's when I have an eigenvector. I'm trying to project onto y = x, which means I'm trying to project onto the red vector at 45° to my axis. So that vector doesn't change as I get closer and closer. The moment I hit it, then I have an eigenvector with eigenvalue 1. If I keep scanning, the projection becomes closer and closer to zero. The moment I am at 135°,
or when my input vector is [-x, x]ᵀ, that's when the projection is zero. So that is an eigenvector, too, but with an eigenvalue 0. Now let's look at a horizontal shear. Take any vector along the y-axis, that gets sheared to the red vector there. And if I try to get closer and closer, nothing happens until I hit the x-axis. And that vector doesn't change. That is an eigenvector with eigenvalue 1. There's only one of them. Keep scanning.
But there's nothing else that will line up other than the one along the opposite direction. But that doesn't count. As you know, it's just a scaled version of the original vector. No other eigenvector that we can find. Now let's take rotation by 90°. So if I start with my blue vector, it gets rotated. So I cannot catch up with my red vector because it keeps running away. There's no eigenvector. I cannot align this blue vector with my red vector. Then let's take a general symmetric matrix just to see this. I have my transformed version of the blue vector along the red vector. And if I get closer and closer to that, try to catch up with it, at some point I might be able to. There, my input vector is [2, 2]ᵀ and that gives me [6, 6]ᵀ. Obviously that is 3 × [2, 2]ᵀ. So that is an eigenvector with eigenvalue 3. If I keep going to the other side, there, [-3, -3]ᵀ, I get [-9, -9]ᵀ. So that is another eigenvector,
and I can keep scanning, of course. I'll find another one here, which is just the reflection of the one with eigenvalue 3. That doesn't count because it's just scaling by -1. And there will be one more on this side, that also doesn't count. So there are two eigenvectors and two eigenvalues. So you can play with it to see what exactly it means to say that something is an eigenvector and what eigenvalue means, etc. Moving on, let's see how we would compute stuff, meaning eigenvalues and eigenvectors. So what we will do is we will start from the definition of eigenvalues and eigenvectors. So given a matrix, a square matrix in ℝⁿˣⁿ. The eigenvector, as we saw, or at least as I asserted, can be in the complex field. Both the eigenvector and the eigenvalues. The eigenvector is not supposed to be a zero vector. So let's start with As = λs.
That is the definition of the eigenvalue equation. A applying on the vector s gives me a scaled version of the same vector. And in that case s is an eigenvector and λ is an eigenvalue. Now I collect these terms to the right-hand side. It's a vector equation. As - λs is a zero vector. So we don't really know how to solve it. But we can try to pull out this common factor, which is the vector s, out of this mess. So I get (A - λ).
If I just say A - λ, that doesn't work because A is a matrix, λ is a number. So you know that λs is the same as λIs. That is a matrix. So (A - λI) will work, and then s comes out. That is equal to 0. What's that telling you? Something that is multiplying a matrix... (A - λI) is a matrix... is going to give me a zero vector, and I know that that vector that is multiplying is a non-zero vector. So the columns of this matrix (A - λI) are linearly dependent.
That is what it's telling me. In other words, that matrix is singular. And the eigenvector really is the null space of (A - λI). So the null space that we learned a couple of weeks ago is making its presence felt. Good. In fact, the eigenvectors are just the basis vectors of the null space. But we know from this equation, from the fact that there is a non-trivial null space, we know that (A - λI) is singular. Which we know means the determinant of that matrix has to be zero. Now, it is a number.
And what's this determinant? You can use Laplace expansion. A is a square matrix that we started with. So we know the numbers there. I is just 1s along the diagonal of a square matrix. And then λ is the only unknown. And this expansion gives you a polynomial. What's the order of the polynomial? What's the highest power in the polynomial? That's going to be λⁿ, where n is the size of the matrix. Because λ's will appear only along the diagonal. And there will be at least one product from the Laplace expansion that will be the product of the diagonal elements. So λ will come with a power of n from that particular product. And with a coefficient. What's the coefficient of that? It's going to be -λ everywhere, and there are n of them. So it's (-1)ⁿλⁿ. Think about it. Now in this equation you just have a polynomial equal to zero. So that's an equation that we have some chance of solving,
because it's not a vector equation anymore. It's just a polynomial equation. Well, you know from computer science that this also is not an easy problem to solve, finding the roots of an nᵗʰ order polynomial. But at least we have a chance. And this polynomial, the expansion of the determinant of (A - λI), that is called the characteristic polynomial for the eigenvalues. And then that equation, that polynomial being equal to zero, is the characteristic equation. You're trying to find the solutions to that equation. And when you find the solution, the roots of that polynomial... if you plug in those roots in this equation here, you will get the zero vector when you multiply with the right vector. So that's what we want to find. In other words, we will find λ's from the characteristic polynomial, plug each one of them in (A - λI), and then find that vector s which will make the product the zero vector. The characteristic polynomial for eigenvalues
is just the determinant equation, (A - λI) has a determinant of zero. The eigenvectors are all in the null space of that matrix. That means we just have to find the vectors that will make (A - λI) times that vector zero. So let's take an example. Permutation matrix: [0, 1]ᵀ, [1, 0]ᵀ. If you take (A - λI)... remember λI is the identity matrix scaled by λ. So λ is along the diagonal subtracted away from zero. So you get 0 - λ, 0 - λ along the diagonal. Nothing happens to the off-diagonal elements.
So you get -λ, 1, 1, -λ. Expand the determinant, you get λ² - 1 = 0. You get λ = ±1. So two λ's: λ = 1, λ = -1. So with λ₁ = 1, just plug in the value here. You get [-1, 1]ᵀ, [1, -1]ᵀ. Can you see that that matrix is singular? The second column is just -1 times the first column. Are you surprised that it's singular? No. Because we actually looked for those λ's that will make this matrix singular. That's how we solved for λ. Now what kind of s will multiply with this
(A - λI) and give me zero? I just have to add these two columns. That means scale the first one by 1, second one by 1. So s₁ is [1, 1]ᵀ, or any scaled version of that one. So for our purposes we can take [1, 1]ᵀ as s₁. With the second eigenvalue of λ, λ₂ = -1. Again, we get (A - λI), just plugging in the stuff here. [1, 1]ᵀ and [1, 1]ᵀ. Equal columns. So the combination that will give me zero would be 1 times the first column
minus 1 times the second column. So s₂, the second eigenvector, is [1, -1]ᵀ. Which is what we found by just thinking about it a while ago. So two eigenvectors in ℝ². Now we can see that s₁ is orthogonal to s₂. Can you see that? Let's just take the dot product: 1 × 1 + 1 × (-1), that is zero. So it is orthogonal. That's not an accident. Any real symmetric matrix will have a full set of orthogonal eigenvectors. Full set means n of them.
So if it is a 2×2 matrix, you will have two orthogonal eigenvectors. If it is n×n, you will have n orthogonal eigenvectors if the matrices are real and symmetric. So real symmetric matrices are good matrices to have. Do you remember a good real symmetric matrix that came out of data matrices? The Gram matrix, AᵀA. It's square, it's symmetric, it's full rank. So that will have a full set of orthogonal eigenvectors. And that's the reason why it is an important matrix in data science and machine learning. Then let's look at the projection matrix, which we saw in our foray into linear regression. So this is a matrix that will project onto my xy-plane.
By cranking the wheel, (A - λI), λ being subtracted from the diagonal elements: 1 - λ, 1 - λ, and -λ. Expand it out as a determinant, as the product of the diagonal elements. You get λ = 0 or λ = 1 as a solution. But for our purposes, let's think of this as λ(1 - λ)(1 - λ). So that we can say that there are three eigenvalues: 0, 1, and 1. The fact that 1 appears twice, thanks to the fact that this factor comes to the power of 2, indicates that the algebraic multiplicity
of that eigenvalue is 2. I'm defining algebraic multiplicity as a concept here. It is the number of times an eigenvalue is repeated in the characteristic polynomial as a root. So λ = 0, 1, 1. So the eigenvalue of 1 has an algebraic multiplicity of 2. It is a property of an eigenvalue. 0 in this case has an algebraic multiplicity of 1. Now, with eigenvalue equal to 0, you can see that if you take any vector s₁ of the form [0, 0, z]ᵀ, and any number,
the product here will give me [0, 0, 0]ᵀ. Which is what we expect because the vector is in the null space of (A - λI). So a perfectly fine eigenvector that you can select is [0, 0, 1]ᵀ, normalized and everything. Now if I take λ = 1, I get [0, 0, 0]ᵀ, [0, 0, 0]ᵀ, [0, 0, -1]ᵀ. So if I scale the first column by anything, second column by anything, but the last column by zero, I get the zero vector. So my s₂, the second eigenvector, is of the form [t₁, t₂, 0]ᵀ. t₁ and t₂ being any number.
So that indicates that my s₂ is not just one vector. It's a plane of vectors, and we will call that plane or the subspace, an eigenspace. So there's an eigenspace corresponding to the eigenvalue λ = 1. The dimension of that space is 2. That means you can choose any two orthogonal vectors as the basis vectors, and those we will call the eigenvectors. Even though there are an infinity of them, they're not linearly independent. There are only two that would be linearly independent because the dimension of the subspace is 2. The best ones that you can select, of course, would be the x-axis and the y-axis, [1, 0, 0]ᵀ and [0, 1, 0]ᵀ. The dimension of the subspace corresponding to λ = 1 is 2 because it's the xy-plane. So there are two eigenvectors, that is what we will call the geometric multiplicity. The number of linearly independent eigenvectors you can find for a particular eigenvalue. Again, that's a property of the eigenvalue.
So λ = 1 comes with a geometric multiplicity of 2. Good thing that the algebraic multiplicity is the same as the geometric multiplicity. We like that. Can you see that this matrix also is real and symmetric? So we do expect a full set of orthogonal eigenvectors. They're not given to us. We had to select the second and third vectors such that they were orthogonal, but we at least could. Now let's look at the shear matrix. Here the matrix is [1, 0]ᵀ, [0.5, 1]ᵀ. If I create the characteristic polynomial for (A - λI), the determinant of it becomes 1 - λ on the diagonal, and 0.5 and 0 along the off-diagonal. So it just gives me (1 - λ)². That means my eigenvalues are 1 and 1. Algebraic multiplicity is 2. For λ = 1, I plug in 1 in this matrix, the determinant of which we computed. Then it becomes 1 - 1 = 0, 1 - 1 = 0. And 0, and 0.5. So [0, 0]ᵀ and [0.5, 0]ᵀ. And for that, the only eigenvector you can find is [1, 0]ᵀ.
Because the moment you take anything other than zero for the second column... the linear combination of the columns of that matrix... you start getting something other than the zero vector. So this one, in its null space, you will have only one, [1, 0]ᵀ. So a null space of dimension 1, that means the geometric multiplicity is 1. That is a situation that we have a problem with. Algebraic multiplicity not being the same as geometric multiplicity.
The geometric multiplicity can never be more than the algebraic multiplicity, but it can be less. Rotation. Look at this matrix. Rotation matrix. So far for permutation and for projection, we saw symmetric matrices. Now this is skew-symmetric, diametrically opposite. Now if you form the eigenvalue equation, the characteristic polynomial, etc., you get -λ, -λ (that is 0 - λ, 0 - λ), and 1 and -1 along the off-diagonal. And you can see that the determinant is λ² + 1.
That being equal to 0 is the characteristic equation. And that has a solution ±i. That is not a real number, it is a complex number. Now for those of you who are not so familiar with complex numbers, I had created a video some time ago, and that video I'm going to link in the description, and if possible on this location in the video also, so that you can take a look at it. And that also has some extra algebra there that will help you understand the proofs that are coming up.
In any case, with λ = i, you get [-i, 1]ᵀ, [-1, -i]ᵀ. Now you can compute the eigenvector that, when multiplied by this matrix, will give you the zero vector. And you can see that that is [1, i]ᵀ. 1 multiplying the first column will give me -i and 1. i multiplying the second column will give me -i in the first element, and the second one will become -i × i which is -i², which is 1. Wait, [1, i]ᵀ with [-i, 1]ᵀ and [-1, -i]ᵀ... 1 × [-i, 1]ᵀ + i × [-1, -i]ᵀ = [-i - i, 1 + 1].
Let me correct that calculation. The eigenvector is [1, i]ᵀ for λ = -i, and [1, -i]ᵀ for λ = i. Let's use [1, -i]ᵀ for λ = i. 1 × [-i, 1]ᵀ - i × [-1, -i]ᵀ = [-i + i, 1 - 1] = [0, 0]ᵀ. So adding them up, we'll get a zero vector. So that indeed is an eigenvector. Similarly, you will find the second eigenvector to be [1, i]ᵀ corresponding to the second eigenvalue, -i. So these guys are not in the field of real numbers. They are indeed in ℂ². So I can make the statement, which indeed is a property. Real antisymmetric or skew-symmetric matrices have purely imaginary eigenvalues. So this is like the opposite end of the spectrum compared to real symmetric matrices. And the properties seem to be kind of near the opposite end of the spectrum, too. And the shear matrix, if you think about it, is kind of in between. So that brings us to the end of this section, the first video. Now we will move on to the mathematical properties of eigenvalues and eigenvectors.
And in order to understand those things, you might need a little bit of algebra. And that's the extra video that I have linked to in the description. So take a look at that one if you're not completely sure about your footing in complex numbers, etc. But in any case, next video we'll continue with the mathematical properties of eigenvalue decomposition.

Ask anything
We've read this whole study set, so questions about it get the best answers.