Linear Algebra Fundamentals- Everything You Need to Know
What Linear Algebra Actually Is
Linear algebra is the study of vectors, matrices, and the operations performed on them. That's it. No mystical revelations or philosophical musings—just mathematical objects and the rules that govern them.
You encounter linear algebra everywhere whether you realize it or not. The photos on your phone, the recommendation algorithms on Netflix, the facial recognition on your laptop—all built on linear algebra foundations.
If you've been putting this off, stop. Here's everything you actually need to know.
Vectors: The Building Blocks
A vector is an ordered list of numbers. That's the whole definition. A vector with two numbers is a 2D vector. Three numbers makes it 3D. You get the pattern.
Think of a vector as a point in space with a direction. The numbers tell you where it points.
Vector Operations
Adding vectors means adding their components together. Subtraction works the same way. Multiplication by a scalar (a regular number) scales the vector up or down.
These operations follow predictable rules. Order doesn't matter for addition. You can group things however you want. This is commutativity and associativity, and yes, you need to know these terms.
The Dot Product
Multiply corresponding components and add them up. That's the dot product. It tells you how much one vector points in the direction of another.
A dot product of zero means the vectors are perpendicular. This matters more than you think right now.
Matrices: Tables That Do Work
A matrix is a rectangular grid of numbers. A vector is just a matrix with one row or one column. The dimensions matter—a 3×2 matrix has 3 rows and 2 columns.
Matrices are how you represent and solve systems of equations efficiently. They're also how transformations happen in computer graphics, machine learning, and physics simulations.
Matrix Multiplication
This is where most people struggle. You don't just multiply corresponding cells. You take the dot product of rows with columns.
The result is a new matrix. If matrix A is m×n and matrix B is n×p, the result is m×p. The inner dimensions must match.
Matrix multiplication is not commutative. AB does not equal BA in general. Remember this. Engineers have lost spacecraft because someone forgot.
Special Matrices
- Identity matrix: 1s on the diagonal, 0s everywhere else. Multiplying by this does nothing. It's the mathematical equivalent of multiplying by 1.
- Zero matrix: All zeros. Adding it does nothing. Multiplying by it gives you a zero matrix.
- Diagonal matrix: Only has values on the main diagonal. Scales axes independently.
- Symmetric matrix: Mirrors across the diagonal. A equals A transpose.
Determinants: What They Actually Measure
The determinant is a single number calculated from a square matrix. It tells you the scaling factor when you apply that matrix as a transformation.
A determinant of zero means the matrix is singular. It squishes space into fewer dimensions. You can't undo it. There is no inverse.
A determinant of 1 means the transformation preserves volume. It's a "pure rotation" with no stretching or squishing.
Negative determinants flip orientation—think mirror image combined with rotation.
Matrix Inverse: Undoing Transformations
If A is a square matrix with non-zero determinant, there exists a matrix A⁻¹ such that AA⁻¹ = I. This is the inverse.
The inverse exists only for invertible (non-singular) matrices. Finding it manually involves methods like Gaussian elimination or adjugate formulas. In practice, you use computational tools.
Inverse matrices solve systems of linear equations. If Ax = b, then x = A⁻¹b. Simple in theory, computationally expensive for large systems.
Linear Transformations
A linear transformation takes vectors and outputs new vectors while preserving two properties: lines remain lines, and the origin stays fixed.
Every linear transformation can be represented by a matrix. Multiplying a vector by that matrix applies the transformation.
Common transformations include:
- Rotation: spinning the coordinate system
- Scaling: stretching or squishing along axes
- Shearing: tilting space sideways
- Reflection: flipping across an axis or plane
You can chain transformations by multiplying matrices. The order matters. Apply the rightmost transformation first, then work your way left.
Systems of Linear Equations
Linear algebra exists largely because of this problem: solve multiple equations with multiple unknowns simultaneously.
Instead of substitution and elimination, represent the system as Ax = b. A is the coefficient matrix, x is the unknown vector, b is the constants.
Solve by:
- Gaussian elimination: row reduction to row echelon form
- Matrix inversion: x = A⁻¹b (when feasible)
- LU decomposition: factor A into lower and upper triangular matrices
For large systems, direct methods break down. You need iterative methods or numerical approximations. This is where computational linear algebra lives.
Eigenvalues and Eigenvectors
This is the part that intimidates people. Don't let it.
An eigenvector of matrix A is a vector that doesn't change direction when you multiply by A. It might get longer or shorter, but it keeps pointing the same way.
Av = λv
λ (lambda) is the eigenvalue. It's how much the eigenvector scales.
Why does this matter? Eigenvalues tell you about system behavior. In physics, they're natural frequencies. In data analysis, they're principal components. In machine learning, they're everywhere.
To find eigenvalues, solve det(A - λI) = 0. This gives you a polynomial. Find the roots. Those are your eigenvalues. Plug them back in to find eigenvectors.
Practical Table: When to Use Eigenvalues
| Application | What Eigenvalues Tell You |
|---|---|
| PCA (data analysis) | Which directions have most variance |
| Stability analysis | System grows or decays over time |
| Quantum mechanics | Measurable quantities (observables) |
| PageRank | Importance scores of web pages |
| Vibration analysis | Natural frequencies of structures |
Linear Independence and Span
A set of vectors is linearly independent if no vector in the set can be written as a combination of the others. If one can be expressed using the rest, it's redundant.
The span of vectors is all possible linear combinations you can make from them. Span covers the space those vectors can reach.
A basis is a set of linearly independent vectors that span the entire space. The standard basis in R³ is (1,0,0), (0,1,0), (0,0,1). Every 3D vector is a combination of these three.
The number of vectors in a basis is the dimension. This is fundamental to understanding vector spaces.
Vector Spaces
A vector space is a collection of vectors that you can add together and multiply by scalars, and the results stay in the space.
Requirements:
- Closed under addition and scalar multiplication
- Contains zero vector
- Has additive inverses
Subspaces are subsets that are also vector spaces. The column space of a matrix is all possible outputs Ax. The null space is all inputs that give zero output.
Orthogonality and Projections
Two vectors are orthogonal if their dot product is zero. They're perpendicular in Euclidean space.
Projecting one vector onto another gives you the component of one vector in the direction of the other. This is how you decompose vectors into perpendicular components.
Orthogonal matrices have columns that are unit vectors and mutually orthogonal. They preserve lengths and angles. Rotations are orthogonal matrices with determinant 1.
Getting Started: How to Actually Learn This
Stop watching videos passively. Do problems. Here's your action plan:
- Master vector arithmetic first. Addition, subtraction, scalar multiplication, dot product. These are the foundation.
- Learn matrix operations. Multiplication by hand for 2×2 and 3×3 matrices until it's automatic.
- Solve systems of equations using Gaussian elimination. Row reduce matrices manually for small systems.
- Understand linear transformations visually. Use tools like Desmos or GeoGebra to see what matrices actually do to space.
- Calculate determinants until you can do 3×3 by hand without thinking.
- Learn eigenvalues and eigenvectors with 2×2 matrices first. The math is manageable and the concept clicks faster.
Best resources: Gilbert Strang's lectures (MIT OpenCourseWare) if you want the theory. 3Blue1Brown's Essence of Linear Algebra for visual intuition. Practice problems from any standard textbook.
You don't need expensive courses. The information is free. What you need is time and consistent practice.
Where Linear Algebra Shows Up
Computer graphics: Every rotation, scaling, and translation is matrix multiplication. 3D rendering is linear algebra in action.
Machine learning: Neural networks are giant matrix multiplications. PCA finds eigenvectors. Regression involves matrix projections.
Data analysis: Dimensionality reduction, recommendation systems, clustering—all linear algebra underneath.
Physics: Quantum mechanics is linear algebra. Classical mechanics uses matrices for coordinate transformations. General relativity uses tensor algebra, which extends linear algebra.
Engineering: Control systems, signal processing, structural analysis. If it involves systems with multiple inputs and outputs, linear algebra is there.
What You Actually Need to Retain
Don't memorize everything. Understand these core concepts deeply:
- Vectors are points or directions in space
- Matrices are linear transformations or systems of equations
- Matrix multiplication is composition of transformations
- Determinant tells you if inversion is possible and how volumes scale
- Eigenvalues reveal intrinsic properties of transformations
- Linear independence determines if you have redundant information
The rest is technique. You can look up the formula for matrix inverse or the steps for Gaussian elimination. You can't look up understanding.
Build the intuition first. The procedures follow naturally.