WalzoneInterview Prep
πŸ“ž Interviewing soon? Practice with a realistic AI mock phone interview β€” it calls you, then scores you. First 15 min FREE β†’

Wall Street Quant Β· Linear Algebra Β· question 53 of 155

How do you calculate eigenvalues and eigenvectors of a matrix?

πŸ“• Buy this interview preparation book: 155 Wall Street Quant questions & answers β€” PDF + EPUB for $5

Eigenvalues and eigenvectors are fundamental concepts in linear algebra and have numerous applications in various fields, including mathematical finance. To calculate the eigenvalues and eigenvectors of a square matrix A, you need to follow these steps:

**Step 1: Find the Eigenvalues**

1. First, find the characteristic equation of the matrix. The characteristic equation is given by the determinant of (Aβ€…βˆ’β€…Ξ»I), where Ξ» represents the eigenvalue, and I is the identity matrix of the same dimensions as A.

In other words, the characteristic equation is:
det (Aβ€…βˆ’β€…Ξ»I) = 0

2. Solve the equation above for the different values of Ξ». The resulting values are the eigenvalues of the matrix A.

**Step 2: Find the Eigenvectors**

1. For every eigenvalue Ξ»i, from the first step, find the eigenvector by solving the following equation:
(Aβ€…βˆ’β€…Ξ»iI)xi = 0

Note that xi is the eigenvector corresponding to the eigenvalue Ξ»i.

2. If the matrix (Aβ€…βˆ’β€…Ξ»iI) is singular, then it has a non-trivial solution for xi. The null space of (Aβ€…βˆ’β€…Ξ»iI) represents the eigenvectors corresponding to the eigenvalue Ξ»i.

Let’s illustrate these steps with an example.

Consider the following 2x2 matrix:


$$A = \begin{pmatrix} 2 & 1 \\ 1 & 2 \\ \end{pmatrix}$$

**Step 1: Find the Eigenvalues**

First, we need to find the determinant of the matrix (Aβ€…βˆ’β€…Ξ»I):


$$\det \begin{pmatrix} 2-\lambda & 1 \\ 1 & 2-\lambda \\ \end{pmatrix} = (2 - \lambda)^2 - 1 \times 1$$

Now, we need to solve the equation (2β€…βˆ’β€…Ξ»)2β€…βˆ’β€…1 = 0:


(2β€…βˆ’β€…Ξ»)2β€…βˆ’β€…1 = λ2β€…βˆ’β€…4Ξ»β€…+β€…3 = (Ξ»β€…βˆ’β€…1)(Ξ»β€…βˆ’β€…3)

Therefore, the eigenvalues are Ξ»1 = 1 and Ξ»2 = 3.

**Step 2: Find the Eigenvectors**

Now, we need to find the eigenvectors corresponding to the eigenvalues we have just found.

1. For Ξ»1 = 1:

Subtract Ξ»1I from A and solve the equation for x1:


$$\begin{pmatrix} 2-1 & 1 \\ 1 & 2-1 \\ \end{pmatrix} \textbf{x}_1 = 0$$


$$\begin{pmatrix} 1 & 1 \\ 1 & 1 \\ \end{pmatrix} \textbf{x}_1 = 0$$

The null space of the matrix above corresponds to the unit vector $\textbf{x}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix}1 \\ -1\end{pmatrix}$.

2. For Ξ»2 = 3:

Subtract Ξ»2I from A and solve the equation for x2:


$$\begin{pmatrix} 2-3 & 1 \\ 1 & 2-3 \\ \end{pmatrix} \textbf{x}_2 = 0$$


$$\begin{pmatrix} -1 & 1 \\ 1 & -1 \\ \end{pmatrix} \textbf{x}_2 = 0$$

The null space of the matrix above corresponds to the unit vector $\textbf{x}_2 = \frac{1}{\sqrt{2}}\begin{pmatrix}1 \\ 1\end{pmatrix}$.

We have found the eigenvalues and their corresponding eigenvectors:

Ξ»1 = 1, $\textbf{x}_1 = \frac{1}{\sqrt{2}}\begin{pmatrix}1 \\ -1\end{pmatrix}$

Ξ»2 = 3, $\textbf{x}_2 = \frac{1}{\sqrt{2}}\begin{pmatrix}1 \\ 1\end{pmatrix}$

Reading is step one. Saying it out loud is the interview. Our AI interviewer calls your phone and runs a realistic Wall Street Quant interview β€” then scores it.
πŸ“ž Practice Wall Street Quant β€” free 15 min
πŸ“• Buy this interview preparation book: 155 Wall Street Quant questions & answers β€” PDF + EPUB for $5

All 155 Wall Street Quant questions Β· All topics