Vectors and Matrices in a Brutal Love Triangle—Eigenvalues λ and Eigenvectors x
“I’ll have a plate of vectors smothered in rich matrix sauce, and a large glass of scalar multiplication.” “Oh, sir, that will kill quite a few brain cells.” “I know.”
A bunch of numbers arranged in a rectangular table.
What is a vector?
A pile of numbers lined up in a list.
By definition, to multiply two matrices A and B, we take the dot product of each row of A with each column of B. In other words,
AB=(acbd)(egfh)=(ae+bgce+dgaf+bhcf+dh)
For a matrix multiplied by a vector, this becomes
Ax=(acbd)(ef)=(ae+bfce+df)
It is that simple.
But at what cost?
Zero: The Geometry Behind Matrix Multiplication
We know that in two-dimensional space, any nonzero vector can be expressed as a linear combination of two linearly independent vectors. These two linearly independent vectors are called basis vectors.
Linearly independent: neither vector can be expressed as a scalar multiple of the other.
In other words, for vectors x=(ab) and y=(cd), if x and y are linearly independent, then kx=y for every constant k.
For example, the vector y=(23) can be expressed using e1=(10) and e2=(01) as y=2e1+3e2. This is our familiar Cartesian coordinate system.
Now suppose a matrix P=(11−11) suddenly barges in. What happens if we multiply y by it? Working through the calculation gives us
Py=(11−11)(23)=(1×2−1×31×2+1×3)=(−15)
We can view P as two two-dimensional column vectors placed side by side: P=(p1,p2), where p1=(11) and p2=(−11).
The expression above can therefore be read as
Py=(p1,p2)(23)=2p1+3p2
Look familiar? Exactly! We have built a vector using p1 and p2 as the basis vectors, with the same coefficients as before. Multiplying y by P replaces the basis vectors e1 and e2 with p1 and p2 while keeping those coefficients.
One: A Matrix and That Special Someone
Back to the topic. Generally, when a matrix acts on vectorsa.k.a. when we multiply them on the left by a matrix, replacing their basis vectors, most of them will change direction. What a bunch of fickle creatures!
But one kind of vector is different. When the matrix acts on it, it stays along the same line, merely stretching, shrinking, or reversing direction.
She is different. She is special.
We call these vectors the matrix’s eigenvectors. For example, consider the matrix multiplication
Ax1=(30−12)(10)=(30)
After A acts on it, the vector x1 simply stretches to three times its original length along the same direction. This makes x1 an eigenvector of A. We denote its scale factor by λ1 and call it an eigenvalue of the matrix. Thus,
Ax1=λ1x1
And this is the root of all evil.
More generally, every eigenvector xn of A satisfies
Ax=λx
where λ is the corresponding eigenvalue.
Now comes the question: given a matrix, how do we find its eigenvectors?
1. Finding a Matrix’s Eigenvectors and Eigenvalues
From the definition, we know that
Ax=λx(x=0)
Rearranging gives us
Ax−λx=0
Factoring out x gives
(A−λE)x=0
Nothing suspicious yet? With our astonishing powers of observation, we notice an n×n matrix multiplying an n×1 vector on the left-hand side. Let us write out what this looks like in two dimensions:
(acbd)(x1x2)=0
Multiplying gives us
(ax1+bx2cx1+dx2)=0
We know that a matrix being 0 means every entry is 0, so we have
⎩⎨⎧ax1+bx2=0cx1+dx2=0
What? It was a homogeneous system of linear equations all along?!
We know that, for this square homogeneous system, if all the equations are linearly independent, the only solution is the zero solution. But we have one crucial condition: (x=0).
For a nonzero solution to exist, the equations must therefore be linearly dependent. This means the determinant of the coefficient matrix must be zero:
acbd=0Why?
We need one equation to be expressible in terms of the other. In this two-equation system, that means the coefficients of one equation are all the same scalar multiple of the corresponding coefficients of the other.
Extracting the coefficients gives us the matrix
(acbd)
Suppose a and b are k times c and d, respectively. Then the determinant of this square matrix is
acbd=kcckdd=kccdd
We know that a determinant with two identical rows or columns is zero.
Therefore,
acbd=0
Returning to our original expression, the goal is now clear. We want
A−λE=0
This lets us solve for λ.
For a simple example, suppose A=(3−1−13). Then
A−λE=3−λ−1−13−λ=(3−λ)2−1=(λ−2)(λ−4)
We can then find the two eigenvalues of A: λ1=2,λ2=4.
Now we know that A has two distinct eigenvalues, with two corresponding families of eigenvectors. Note that, in this example, the vectors within each family are scalar multiples of one another.
Next, substitute λ1=2 into the original equation:
(A−2E)x=0
After row reduction, this becomes
(10−10)(x1x2)=0
We obtain
x1−x2=0
Let x1=k1. Then the vector is x=k1(11).
Similarly, when λ2=4, we obtain x=k2(−11).
2. Diagonalizing a Matrix (A Major Matrix Makeover?!)
Suppose we have a 3×3 matrix A with three eigenvectors x1,x2,x3. Time for some super assembly: combine the three eigenvectors into one matrix!
P=(x1,x2,x3)
Multiply P on the left by A:
AP=(Ax1,Ax2,Ax3)
Recall that when A multiplies one of its eigenvectors, we have Ax−λx=0. Therefore,
Pretty magical, right? We get a diagonal matrix whose diagonal entries are the eigenvalues. We denote it by Λ; it is a diagonal matrix similar to A. Thus,
AP=PΛ
Multiplying both sides on the left by P−1 gives us
P−1AP=P−1PΛ=Λ
Similar matrices:
By definition, if there exists an invertible matrix P such that P−1AP=B, then B is similar to A.
From The Geometry Behind Matrix Multiplication, we can see what similarity means geometrically: the two matrices describe the same linear transformation using different coordinate systems (bases).
We can break the transformation y=Bx into a sequence of steps.
The formula can therefore be broken down as follows:
Matrix in the new basisB=Back to the new basisP−1Apply the transformationATo the original basisP
From this expression, we can observe that
∣A∣=∣P−1∣∣Λ∣∣P∣=∣P−1P∣∣Λ∣=∣Λ∣
Therefore, the product of all eigenvalues of a matrix is equal to the determinant of the matrix.
3. The Trace of a Matrix
The trace of a matrix is simple: add up all the entries on the main diagonal of a square matrix. For example, for A=(acbd), its trace is
tr(A)=a+d
If A is similar to a diagonal matrix Λ, then tr(A) equals tr(Λ): the sum of all the eigenvalues.
Here is a quick proof:
A=PΛP−1
Then
tr(A)=tr(PΛP−1)=tr(ΛPP−1)=tr(Λ)Why?
Let us prove it using two 2×2 matrices:
A=(acbd),B=(egfh)
First, calculate AB:
AB=(ae+bgce+dgaf+bhcf+dh)
So,
tr(AB)=ae+bg+cf+dh
Next, calculate BA:
BA=(ea+fcga+hceb+fdgb+hd)
So,
tr(BA)=ea+fc+gb+hd
Since multiplication of ordinary numbers is commutative,
ae=ea,bg=gb,cf=fc,dh=hd
Therefore,
tr(AB)=tr(BA)
This result holds for any two square matrices of the same size.
4. Eigenvalues of Related Matrices
Suppose we know the eigenvalues of A.
1. The eigenvalues of aA+bE are aλ+b
Here is a quick proof:
(aA+bE)x=aAx+bEx=aλx+bx=(aλ+b)x
2. The eigenvalues of An are λn
Anx=An−1Ax=An−1λx=An−2λ2x...=λnx
3. The eigenvalues of A−1 are λ−1
Since
AA−1=E
We obtain
A−1AxA−1λxA−1x=x=x=λ−1x
4. The eigenvalues of the adjugate A∗ are λ∣A∣
Since
A∗A=∣A∣E
Therefore,
A∗AxA∗λxA∗x=∣A∣x=∣A∣x=λ∣A∣x
5. The eigenvalues of AT are still λ
We start from the characteristic equation
∣A−λE∣=0
And since
AT−λE=AT−λET=(A−λE)T
it follows that
∣AT−λE∣=∣(A−λE)T∣=∣A−λE∣
The two matrices have exactly the same characteristic equation, so naturally they have the same eigenvalues.
Comments
Feel free to leave your thoughts here. 💭💡
After signing in, click “Subscribe by Email” in the comment box to receive updates by email.
Loading comments…
Comments are temporarily unavailable. Please refresh to retry.
Comments
Feel free to leave your thoughts here. 💭💡
After signing in, click “Subscribe by Email” in the comment box to receive updates by email.
Loading comments…
Comments are temporarily unavailable. Please refresh to retry.