Vector Spaces
Why linear maps preserve addition and scaling—and how numbers, arrows, polynomials, and functions can all be vectors.
Some original drawings have corrections. Read the notes on those drawings alongside the worked steps.
If you’re anywhere near a STEM field, you’ve heard the word “linear” approximately one billion times. Linear linear linear linear linear linear linear linear linear linear linear. An insane number of times.
You know what’s funny — when I first really heard the word “linear,” I somehow had no clue it just literally meant “line-shaped.” lol — is it just me?
When is a straight line actually a linear map?
I’d been treating it like some deep, profound abstract math concept hiding behind a heavy academic word—then the everyday meaning finally clicked: “line-shaped.” lol. But there is one mathematical catch: in linear algebra, looking like a straight line is not quite the definition. A linear map preserves addition and scaling.
OK but seriously — linear is important.
Why?
Because no matter how curvy a curve is — as long as it’s smooth — if you zoom in 3849024809290x with some absurd microscope, it looks like a line.
How much zoom is enough depends on the curve and the point—there is no magic 10x setting. For a differentiable function, a sufficiently small change $h$ gives
$$f(x_0+h)\approx f(x_0)+f'(x_0)h.$$So the change is approximately the linear expression $f'(x_0)h$. The whole tangent-line formula includes the starting value $f(x_0)$, so it is generally affine, rather than a linear map of $h$. That’s the first-order Taylor approximation doing its job!
Anyway. “Algebra” is our friend algebra—the thing where we shove around x, y, z all day. Let’s see the simplest linear map first:

something that looks like that is what we call linear,

and meanwhile, in the actual world, there are way more things that look like this — nonlinear — than linear ones.
Nonlinear problems do get studied at the undergrad level, too. But linear approximation is one of the tools we use constantly to get a manageable first picture. Which is exactly why you want to know your linear stuff cold~ (like I said earlier).
Alright. Let me pull out a few characteristics of linear functions. I already scribbled them on the photo above.

Say you’ve got two x values. Plug $x_1$ into the function → $ax_1$ pops out. Plug $x_2$ in → $ax_2$ pops out. OK yeah, obvious.
But here’s the cute part: plug
in, and
comes out.
The function value of the sum equals the sum of the function values — compute each separately, add them up, same answer.
For a map $T:V\to W$ between vector spaces over the same scalar field, the full test is
$$T(u+v)=T(u)+T(v),\qquad T(av)=aT(v)$$for every $u,v$ and scalar $a$. That’s addition and scaling. One lucky pair of inputs is not enough!
For example, $T(x)=3x$ passes both tests. The straight line $g(x)=3x+1$ fails already at zero: $g(0)=1$, whereas a linear map must send zero to zero. And for $q(x)=x^2$, $q(1+1)=4$ but $q(1)+q(1)=2$. So a straight line with an offset is affine, and a curved graph like this quadratic is nonlinear.
OK so now let me reframe all this in the language of ‘sets.’
So, originally, a function is just a thing that takes you from one set to another set — that’s what a function is. Here, the sets will be vector spaces.
(This’ll come back later. Don’t panic.)
So, out of all the many many functions that go from one vector space to another, we’re zeroing in specifically on “linear functions” and their characteristics.
What rules turn a set into a vector space?
Now what’s a vector space in general?
Think of “space” as a set with rules for adding and scaling its elements. We choose a field of scalars, usually real or complex numbers, and the two operations must satisfy the vector-space rules below. The elements are then called vectors; they do not have to arrive looking like little arrows!
![]()
You can picture it like this, I think. Then, for some vector space V,

let’s say this, and lay out the characteristics.

In that picture, $u,v,w$ mean any vectors in $V$, and $a,b$ mean any scalars from our chosen field. Also, both operations have to stay inside the set:
$$u+v\in V,\qquad av\in V.$$This is called closure. The zero vector is one fixed element that works for every vector: $0+v=v$ for all $v$. With ordinary coordinate operations, for instance, all of $\mathbb R^2$ works. The set $\{(x,y):x+y=1\}$ does not: it misses $(0,0)$, and adding $(1,0)$ to itself lands outside it. A collection of arrows is not automatically a vector space.
Let me decode the alien-runes for you.
— exists (“there exists”)
— for all (“for all ~”)
— such that (“the property is: ~”)
Stupidly simple, right? Looks like I just said a bunch of completely obvious stuff.
But here’s the trick — instead of reading it as “a vector space has these properties~,” think of it this way: later on, when you run into some weird set you don’t recognize, and that set happens to have “these properties” → “boom, we define that thing as a vector space.” That’s why I bothered writing all this out even though it’s annoying!!!!
How can numbers, polynomials, and functions be vectors?
OK now actual concrete examples of vector spaces.
First—there’s this thing called a field. Roughly, it is a number system with addition and multiplication obeying the usual associative, commutative and distributive laws, distinct 0 and 1, additive inverses, and a multiplicative inverse for every nonzero element. That is what makes subtraction and division by nonzero elements available.
So what are some examples of fields?!
First — the set of natural numbers
isn’t even closed under subtraction. The set of integers
isn’t closed under division. But the set of rational numbers
, the set of real numbers
, the set of complex numbers
— these can be called fields. Each field is also a vector space over itself, using its own numbers as scalars. The scalar choice matters: real numbers with their usual operations form a real vector space, but multiplying a real number by the complex scalar $i$ need not give another real number.
(You’d already know these from way back, but in proper set notation — natural numbers
, integers
, rationals
, reals
, complex numbers
— this is how you’re supposed to write them, but the formula editor doesn’t have those blackboard-bold letters T_T — so I’ll just go with regular alphabet letters!)

Every point on the coordinate plane can be written as a vector. A vector’s coordinates show up as a pair of two real numbers — x and y!!!! So that set gets written as
apparently — that’s what the books say anyway. These obviously satisfy the vector space properties, and

3D coordinate space runs on the exact same idea:
. These too satisfy the vector space properties!!!!
For n-dimensional space that we can’t even draw, we just say it’s
, apparently~~~ This also satisfies the vector space properties…. So it counts as a vector space.
Here’s another one. “All polynomials with real coefficients”
— this is how it’s written.
![]()
Add a polynomial to a polynomial — still a polynomial. Multiply a polynomial by a number — still a polynomial. There’s a 0 in there… This also counts as a vector space!!!!
— also a vector space!!!!
And there’s more, more: {f :
→
} = {all functions defined on the real numbers} = {f, g, h, …}. This too —
![]()
The missing set in that little picture is $V=\{f:\mathbb R\to\mathbb R\}$. Addition and scaling are defined point by point:
$$(f+g)(x)=f(x)+g(x),\qquad (af)(x)=a f(x).$$For example, $f(x)=x$ and $g(x)=x^2$ have the sum $h(x)=x+x^2$, still a real-valued function on $\mathbb R$. Multiplying a function by a real number also stays in this set. The zero vector is the zero function, and the negative of $f$ is the function $-f$.
Wait, hold up?! Commutative law, associative law, all that good stuff—pointwise arithmetic gives us the rules, so this set of functions also gets to be called a vector space!!!!
The whole reason I’m hammering on this section is to head off future brain-meltdowns…. I want to drill it in: just because the word ‘vector’ shows up, do NOT keep picturing a little arrow → floating above your head.
A polynomial can be a vector, a function can be a vector, and even just a plain old number can be a vector!!
Can you test a new set yourself?
Pause before reading the answer. Over the real scalars, with ordinary polynomial addition and scaling, compare these two sets:
$$A=\{a+bt+ct^2:a,b,c\in\mathbb R,\ c\ne0\},\qquad B=\{a+bt+ct^2:a,b,c\in\mathbb R\}.$$$A$ contains polynomials of exactly degree two. $B$ contains polynomials of degree at most two, including the zero polynomial. Which set is a vector space? Find a decisive failure before trying to check every rule.
Check your answer. $A$ fails: it excludes zero, and multiplying $t^2$ by the scalar zero leaves the set. Addition can fail too: $t^2+(-t^2)=0$. Both summands belong to $A$, but their sum does not.
$B$ works. Adding or scaling its coefficient triples keeps the result in $B$, the zero triple is included, and the other vector-space rules are inherited from ordinary real-polynomial arithmetic. The operations and the chosen scalars matter just as much as what the elements look like.
Heads-up. The figures here are the original notes, slips and all. A few things to watch for:
- In the list of vector-space rules, $u, v, w$ stand for any vectors in $V$ and $a, b$ for any scalars. The zero vector has to satisfy $0 + v = v$ for every $v$, and both operations must keep their results inside $V$.
- In the picture with $f + g = h$, the set after $\in$ is missing: $f, g \in \{f : \mathbb{R} \to \mathbb{R}\}$.
For the formal linear-map test, see Georgia Tech, Linear Transformations . MIT’s linear algebra notes also connect ordinary vectors, functions and closure under linear combinations.
Questions or corrections?
Did a step lose you, or does a number look off? Email me or use the contact page. Include the note title and the step or figure you mean.
Feedback goes to me privately by email; it is not posted as a public comment.