Linear algebra is the mathematics of vectors, matrices, and linear transformations. It underpins computer graphics, machine learning, quantum mechanics, signal processing, and countless other fields. This guide covers the essentials you need to get started.
A vector is an ordered list of numbers. In two dimensions, a vector (a, b) represents a point or displacement in the plane. In three dimensions, (a, b, c) represents a point in space. Vectors support addition (component-wise), scalar multiplication (multiply each component by a number), and dot products (sum of component-wise products).
The dot product of two vectors measures their similarity. If the dot product is zero, the vectors are perpendicular (orthogonal). The dot product also relates to the angle between vectors: a dot b equals the magnitude of a times the magnitude of b times cosine theta. This gives cosine theta equals (a dot b) divided by the magnitudes.
The cross product applies only to three-dimensional vectors. It produces a vector perpendicular to both input vectors, with magnitude equal to the area of the parallelogram they span. Our vector operations calculator computes dot products, cross products, magnitudes, and angles.
A matrix is a rectangular array of numbers. Matrix addition and subtraction work component-wise, but matrix multiplication follows a row-column dot product pattern: element (i,j) of AB equals the dot product of row i of A and column j of B. Our matrix calculator handles multiplication, addition, transposes, determinants, and inverses.
The determinant of a matrix is a scalar that encodes information about the transformation. A zero determinant means the matrix is singular (non-invertible). For a 2x2 matrix [[a,b],[c,d]], the determinant is ad minus bc. The inverse of a 2x2 matrix is (1/det) times [[d,-b],[-c,a]].
Eigenvalues and eigenvectors are arguably the most important concepts in linear algebra. An eigenvector of a matrix A is a nonzero vector v such that Av equals lambda times v, where lambda is the eigenvalue. The eigenvalue calculator finds eigenvalues for 2x2 and 3x3 matrices.
Applications are vast. In computer graphics, matrices represent rotations, scaling, and translations. In machine learning, data is stored as matrices, and algorithms like PCA use eigenvectors. In physics, quantum states are vectors, and observables are matrices. Linear algebra is not just a theoretical subject; it is the computational backbone of modern science and technology.