# Nakafa Framework: LLM URL: https://nakafa.com/en/subject/university/bachelor/ai-ds/linear-methods/individual-eigenvalue-calculation Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/university/bachelor/ai-ds/linear-methods/individual-eigenvalue-calculation/en.mdx Output docs content for large language models. --- export const metadata = { title: "Individual Eigenvalue Calculation", description: "Learn 3 powerful eigenvalue calculation methods: inverse iteration with shift, von Mises for dominant eigenvalues, and smallest eigenvalue techniques.", authors: [{ name: "Nabil Akbarazzima Fatih" }], date: "07/17/2025", subject: "Linear Methods of AI", }; ## Inverse Iteration Method with Shift The inverse iteration method with shift is designed to calculate specific eigenvalues that approach initial guesses. This algorithm uses a shift parameter as a guide to search towards particular eigenvalues. Imagine you're searching for a radio station among many frequencies. Without shift, you hear all stations at once (unclear). With shift, you direct the dial to a specific frequency to get one clear station. The algorithm starts with matrix and shift parameter . The initial vector is normalized to and iteration starts from . ### LU Decomposition and Iteration The first step is to compute the LU decomposition of matrix . This decomposition is performed once at the beginning and used repeatedly in each iteration for computational efficiency. In practice, instead of computing the matrix inverse directly, we solve the linear system using LU decomposition ### Normalization and Convergence After obtaining , perform normalization to prevent uncontrolled growth Eigenvalue estimation uses the ratio of vector components. For index with Iteration continues until meeting the convergence criteria . The tolerance parameter is a threshold value that determines how accurate the desired result should be, for example for six decimal digit accuracy. Imagine measuring height with a ruler. Tolerance determines how precise the measurement you accept (whether accurate to centimeters or needing millimeters). The smaller the tolerance value, the more accurate the result, but requires more iterations. The final result provides eigenvalue and eigenvector . ## von Mises Method for Dominant Eigenvalue The von Mises vector iteration method finds the eigenvalue with the largest magnitude (dominant eigenvalue). This algorithm uses a simple iterative process with repeated matrix multiplication. The algorithm starts with initial vector normalized to and iteration starts from . ### Iteration and Convergence Each iteration performs two main operations Eigenvalue estimation uses component ratio for index with Iteration continues until . The tolerance value determines the level of precision needed, typically ranging from to for high-precision calculations. The final result is the dominant eigenvalue and eigenvector . This method succeeds if and the initial vector has non-zero components in the direction of the dominant eigenvector. With these assumptions, iteration converges to the dominant eigenvalue and associated eigenvector. ## Technique for Finding Smallest Eigenvalue For invertible matrices, there is an important relationship between the eigenvalues of a matrix and its inverse. If , then This means the smallest eigenvalue of becomes the largest eigenvalue of . By applying vector iteration on , we obtain the smallest eigenvalue of the original matrix. In practice, each iteration solves the linear system using LU decomposition, avoiding inefficient explicit inverse computation.