Matrices and Vectors
High School Math · Pre-CalculusPreview
1. Introduction
Vectors and matrices are the language of everything that has direction or structure: forces in physics, velocities in navigation, pixels and rotations in computer graphics, and the systems of equations at the heart of economics and engineering. A vector packages several numbers into a single object that carries both magnitude (size) and direction. A matrix packages numbers into a rectangular grid that can represent a system of equations, a data table, or — most powerfully — a transformation that moves vectors around the plane.
Why bundle numbers this way? Because it lets us compute with whole collections at once. Adding two displacements, scaling a velocity, projecting one direction onto another, rotating a shape, or solving two equations in two unknowns all become single, clean operations. Matrices and vectors are also your bridge into linear algebra, the most widely applied branch of modern mathematics and the foundation of machine learning and 3D graphics.
This article builds both ideas from scratch: vector components, addition, scaling, magnitude, and the all-important dot product (with the angle-between-vectors interpretation), then matrices — addition, scalar and matrix multiplication, the identity, the determinant, and the inverse — finishing with how a system is solved with matrices and how matrices encode geometric transformations.
Vectors answer "which way and how far?"; matrices answer "what happens when we transform every direction at once?" In two dimensions, a single matrix can rotate, reflect, stretch, or shear the entire plane. Multiplying that matrix by a column vector applies the transformation to one point. This is the same mathematics that drives video-game graphics, GPS navigation, and robotics — but at the precalculus level, mastering component arithmetic and algebra is the essential foundation.
2. Core Concepts
2.1 Vectors and Component Form
A vector in the plane is written in component form as , meaning "move in the -direction and in the -direction." Geometrically it's an arrow; its tail can sit anywhere, but its components (the change in and from tail to head) are what define it. A vector from point to has components .
Equivalently, vectors appear as column vectors . The two notations carry the same information; column form pairs naturally with matrix multiplication.
2.2 Vector Addition and Scalar Multiplication
To add vectors, add corresponding components: Geometrically this is the tip-to-tail rule: place the tail of the second arrow at the head of the first; the sum runs from the first tail to the last head. To scale a vector by a number (a scalar) , multiply each component: A positive stretches or shrinks the arrow; a negative also reverses its direction. Subtraction is addition of a negative: .
2.3 Magnitude and Unit Vectors
The magnitude (length) of comes straight from the Pythagorean theorem, since the components are perpendicular legs: A unit vector has magnitude ; to make one in the direction of , divide by the magnitude: . This separates a vector's direction (the unit vector) from its size (the magnitude).
2.4 The Dot Product
The dot product of two vectors multiplies corresponding components and adds: The result is a single number (a scalar), not a vector. It measures how much two vectors point the same way, via the geometric formula where is the angle between them. Two consequences are vital: the vectors are perpendicular exactly when their dot product is (because ), and you can find the angle between vectors by solving .
2.5 Projection onto a Vector
The scalar projection of onto is . The vector projection is this scalar times the unit vector in the direction of : Projection answers "how much of lies along ?" — essential in physics (work ) and graphics.
2.6 Linear Combinations
A linear combination of vectors with scalars is . Every vector in the plane can be written as a combination of the standard basis vectors and : .
2.7 Matrices and Basic Operations
A matrix is a rectangular array of numbers with rows and columns; an matrix has rows and columns. An entry is named by its position, e.g. is row , column . You add (or subtract) matrices of the same size entry-by-entry, and multiply a matrix by a scalar by multiplying every entry. For example,
2.8 Matrix Multiplication
Matrix multiplication is not entry-by-entry. To multiply , you dot each row of with each column of . The entry in row , column of the product is the dot product of row of with column of . This requires the number of columns of to equal the number of rows of ; an times product is .
Crucially, matrix multiplication is not commutative: in general , and sometimes only one order is even defined. The reason is that a matrix represents a transformation, and "rotate then stretch" generally differs from "stretch then rotate."
2.9 Identity, Determinant, and Inverse
The identity matrix has s on the main diagonal and s elsewhere; it acts like the number : . For a matrix the determinant is The determinant tells you whether the matrix has an inverse: an inverse exists exactly when . Geometrically, is the factor by which the matrix scales area, and a determinant of means the transformation collapses the plane (no inverse). The inverse of a matrix is obtained by swapping and , negating and , and dividing by the determinant. The inverse undoes the matrix: .
2.10 Solving Linear Systems with Matrices
A system like is the matrix equation with , , . If , multiply both sides by to get — a single formula for the solution.
2.11 Matrices as Transformations
Multiplying a column vector by a matrix transforms it. The matrix sends to . The rotation matrix for angle is A dilation by is . Matrix multiplication composes transformations: applying then is the matrix product .
2.12 Augmented Matrices and Row Operations (Preview)
An augmented matrix encodes the same system.
2.13 Magnitude Properties and the Triangle Inequality
For vectors, (triangle inequality) — the direct path is never longer than the detour. Equality holds when and point the same direction. Also : scaling changes length by the absolute value of the scalar. These properties mirror ordinary distance on the number line and justify why unit vectors normalize by dividing by magnitude. Row operations (swap rows, multiply a row by a nonzero constant, add a multiple of one row to another) preserve the solution set and lead to Gaussian elimination — an alternative to the inverse method for larger systems.
Continue reading with Premium
Upgrade to read the full article and unlock all Premium features.
Free
- Unlimited practice — all difficulties
- 3 hints / day
- Community solutions
- 2 timed mocks / month
Premium
- ✓Full article + all 57+ theory guides
- ✓Unlimited hints on practice problems
- ✓Unlimited timed mock exams & PDF worksheets