English translation
Define matrix A
AI Article Decision Snapshot
Turn the lesson into workflow, model, budget, and security checks before choosing tools.
Use this quick snapshot before leaving the article. It keeps the next search tied to practical AI software, model/API, cost, privacy, and implementation questions.
Workflow fit
Identify the real job behind the article: coding, research, document review, support, analytics, content, or internal automation.
Model or tool decision
Decide whether the next step is a software shortlist, an AI tool comparison, an API platform choice, or a model benchmark.
Budget and usage signal
Estimate seats, API calls, prompt volume, retries, review time, and fallback work before assuming the workflow is cheap.
Security and privacy review
Check whether source code, customer data, private documents, prompts, logs, or embeddings will enter the AI workflow.
Eigen decomposition breaks down a complex matrix into two intuitive components: direction (encoded in eigenvectors) and scaling (encoded in eigenvalues). When applicable, many matrix operations become significantly more transparent.
We’ll first verify whether a given matrix is diagonalizable. Not all matrices admit a full eigen decomposition.
In the previous article, we introduced the fundamental definitions of eigenvalues and eigenvectors. This article delves deeper into eigen decomposition—a powerful technique that expresses a matrix as a product of its intrinsic building blocks: eigenvectors and eigenvalues.
Review: Eigenvalues and Eigenvectors
Let’s begin by recalling several core concepts. For a square matrix ( A ), an eigenvalue ( \lambda ) and its corresponding eigenvector ( \mathbf{v} ) satisfy:
Here, applying ( A ) to ( \mathbf{v} ) results purely in scaling—no rotation or shearing—by the scalar factor ( \lambda ).
What Is Eigen Decomposition?
Eigen decomposition expresses a square matrix ( A ) as a product involving its eigenvectors and eigenvalues. Specifically, if ( A ) has ( n ) linearly independent eigenvectors, it can be written as:
where
- ( V ) is the matrix whose columns are the eigenvectors of ( A ), and
- ( \Lambda ) is a diagonal matrix whose entries are the corresponding eigenvalues of ( A ).
This representation is called the eigen decomposition of ( A ).
Conditions for Eigen Decomposition
Eigen decomposition is only possible when ( A ) is diagonalizable. A necessary and sufficient condition is that ( A ) possesses ( n ) linearly independent eigenvectors (i.e., a full basis of eigenvectors in ( \mathbb{R}^n )).
Step-by-Step Eigen Decomposition
Let’s walk through eigen decomposition using a concrete example. Consider the matrix:
Step 1: Compute the Eigenvalues
Eigenvalues are found by solving the characteristic equation:
where ( I ) is the identity matrix. Compute:
Its determinant is:
Solve the quadratic:
Using the quadratic formula yields:
Step 2: Compute the Eigenvectors
For each eigenvalue ( \lambda_i ), solve the homogeneous system ( (A - \lambda_i I)\mathbf{v} = \mathbf{0} ).
- For ( \lambda_1 = 5 ):
The row-reduced system gives:
So one eigenvector is:
- For ( \lambda_2 = 2 ):
The system reduces to:
So a corresponding eigenvector is:
Step 3: Assemble the Eigen Decomposition
We now have:
When interpreting eigen decomposition, first assess: Is the matrix diagonalizable? Are eigenvalues distinct (or at least sufficiently many)? Are eigenvectors linearly independent? And finally—does the reconstructed product match the original matrix?
- Eigenvalues: ( \lambda_1 = 5 ), ( \lambda_2 = 2 )
- Eigenvectors (choosing ( k = 1 )):
Construct:
You can verify that ( A = V \Lambda V^{-1} ) holds.
Code Example
Using Python and NumPy, eigen decomposition is straightforward:
Before reading “Eigen Decomposition of Eigenvalues and Eigenvectors”, preview the visual path from problem → computation → result shown above. After reading, revisit this diagram to confirm you can reproduce each step.
import numpy as np
# Define matrix A
A = np.array([[4, 1],
[2, 3]])
# Compute eigenvalues and eigenvectors
eigenvalues, eigenvectors = np.linalg.eig(A)
print("Eigenvalues:", eigenvalues)
print("Eigenvectors:\n", eigenvectors)
# Reconstruct A
V = eigenvectors
Lambda = np.diag(eigenvalues)
A_reconstructed = V @ Lambda @ np.linalg.inv(V)
print("Reconstructed A:\n", A_reconstructed)
Running this code yields a matrix numerically identical to the original ( A ), confirming correctness of the decomposition.
When reviewing “Eigen Decomposition of Eigenvalues and Eigenvectors”, consolidate key concepts, procedural steps, and observable outcomes on a single page for efficient revision.
When practicing “Eigen Decomposition of Eigenvalues and Eigenvectors”, explicitly list input conditions, computational actions, and expected outputs side-by-side—this supports accurate self-checking and future review.
Summary
Eigen decomposition is a foundational tool in linear algebra, widely used in machine learning and data analysis. It reveals how a matrix acts geometrically—by stretching space along specific directions (eigenvectors), scaled by corresponding magnitudes (eigenvalues). This insight is essential for understanding data structure, performing dimensionality reduction (e.g., Principal Component Analysis), and solving systems of differential equations.
In the next article, we’ll explore inner products and orthogonality, focusing on the definition, properties, and geometric interpretation of inner products. Stay tuned!
Apply This Lesson
Turn this article into AI software, model, API, and security decisions.
English Article FAQ
Use this article as evidence before choosing AI tools
How should I use this AI Tutorials article?
Use it as the implementation or learning layer, then connect the idea to AI software buyer guides, tool comparisons, benchmarks, API choices, and security checks before making a production decision.
Is this English article different from the Chinese original?
The English edition is localized for global AI readers while preserving the original diagrams, screenshots, prompts, code examples, and source context from the Chinese article.
What should I read after Define matrix A?
Continue with AI Software Buyer Guides, AI Tools Workbench, Best AI Coding Agents, AI Model Benchmarks, OpenAI vs Anthropic API, or LLM Security Tools depending on the decision you need to make.
Can this article alone choose an AI product or model?
No. Treat the article as evidence and context, then validate fit with pricing, privacy requirements, integration effort, benchmark results, workflow tests, and fallback planning.
Continue