Linear Dependence and Linear Independence

Breaking down linear combinations, span, and what it actually means for vectors to be linearly independent — all in plain terms.

So picture this. We’ve got some vector space $V$, and floating around inside it are a bunch of elements. And then there’s this subset $W$.

Hand-drawn picture of a big circle labelled V with scattered dots inside it, and a smaller oval labelled W inside, holding v_1 … v_n

The statement that v_1, …, v_n are in W, and W is a subset of V

Is $W$ a vector space?!

OK so for $W$ to actually count as a vector space, whenever vector A and vector B live in $W$, and A + B = C, as vectors, then this thing, vector C, has gotta be in $W$ too.

And also — if some vector vector D is in $W$, then multiplying by any old constant $k$, k times vector D, also has to live in $W$. Only then do we get to call $W$ a vector space.

So basically,

C_1 v_1 + … + c_n v_n is in W

only when this holds, $W$ earns the title.

Now here’s a concept!!

C_1, …, c_n are constants, and c_1 v_1 + … + c_n v_n is built from them

This thing — apparently it’s called a linear combination.

Written out as math,

C_1 v_1 + … + c_n v_n = span(v_1 … v_n)

that’s how it goes. Anyway, when this is the deal, $W$ sits inside $V$, AND $W$ also gets to be called a vector space!!!

Also — the span can get big. Like, big enough that it just becomes $V$ itself. If every single element inside $V$ can be written as a linear combination of v_1 ... v_n?!

For every v in V there are c_1, …, c_n in R (the real numbers) such that v = c_1 v_1 + … + c_n v_n

This idea is gonna come in handy real soon when we hit basis vectors. I’m sure y’all caught that. Moving on.

Let’s get concrete for a sec.

Hand-drawn x-y axes with two red arrows, v_1 = (1, 0) along the x-axis and v_2 = (0, 1) along the y-axis

v_1, v_2 ∈ R

The space spanned by these v_1, v_2 is…

Span(v_1, v_2) = { c_1 v_1 + c_2 v_2 | c_1, c_2 in R } = { (c_1, c_2) | c_1, c_2 in R } = R^2

it just turns into the R^2 space!!!

OK cool, I get linear combinations.

So what’s linear independence?!

Here’s the thing — sometimes there’s exactly one way to write an element of a vector space, and sometimes there are a bunch of ways.

For example,

Hand-drawn x-y axes with red arrows v_1 = (1, 0), v_2 = (0, 1) and v_3 = (-1, 0), plus a blue arrow v pointing up and to the right

if I try to write the vector $v$ using $v_1, v_2, v_3$… there’s gonna be a ton of ways. Honestly just eyeballing it, there are an absurd number of ways to mash those three vectors into $v$. But,

The same axes with only the red arrows v_1 = (1, 0) and v_2 = (0, 1)

with these vectors? There was exactly one way to write $v$!

OK! In a case like this — v_1, v_2 — we call this guy ’linearly independent.’

Let’s say it more generally. Linearly independent means: when you try to express some element $v$ of the vector space using those linearly independent vectors,

V = c_1 v_1 + c_2 v_2 + … + c_n v_n

if you can pull off this linear combination, then the (c_1, c_2, ..., c_n) — that ordered tuple representing it — there’s only ONE such tuple!!!

Two ways of writing the same v, with coefficients c_1 … c_n and d_1 … d_n, subtracted to give 0 = (c_1 - d_1) v_1 + … + (c_n - d_n) v_n

And the fact that the ordered tuple (c_1, c_2, ..., c_n) is unique means

C_1 - d_1, c_2 - d_2, …, c_n - d_n

every single one of these has to be 0!!!

So — to be linearly independent, this condition’s gotta hold!!!

0 = c_1 - d_1 = c_2 - d_2 = … = c_n - d_n

Now let’s push just a tiny bit further into what linear independence actually means!!!

What I just said is: if

0 = c_1 v_1 + c_2 v_2 + … + c_n v_n

this holds, the tuple satisfying it (c_1, c_2, ..., c_n) is all zeros.

Huh?! Does it really have to be all 0?!

OK to see why, let’s flip it. Suppose the tuple is not all 0 — suppose some other tuple exists. Some tuple of coefficients is (d_1, d_2, ..., d_n) — let’s call it that. So it’s a tuple of coefficients that makes the linear combination zero, but they’re not all 0.

Let’s say one of those nonzero coefficients is d_i (and yeah, there might be other nonzero ones in there too).

Derivation: d_1 v_1 + … + d_n v_n = 0, so d_i v_i = -(d_1 v_1 + … + d_n v_n), so v_i = -(d_1/d_i v_1 + … + d_n/d_i v_n)

This is saying that $v_{(i)}$ can be written as a linear combination of the other vectors. This — this is what we mean when we say $v_{(i)}$ is dependent on the others.

Yep. We call it “linearly dependent.” Linear dependence is the flip side of linear independence!!!

In other words, when all the vectors are linearly independent, NO vector can be written as a linear combination of the others!

You’re gonna run into this concept again and again and again, so really chew on it before moving on!!!

I was gonna just barrel right through into basis too, but — I’ll save basis for the next post. Reason being, basis was something I was so so so so curious about back in the day, because I have this memory of being SO hyped about whatever was coming after this???

This one’s a little short,,,, heh heh heh. We’ll roll with it, heh.


Heads-up. The figures here are the original notes, slips and all. A few things to watch for:

  • The picture with $c_1 v_1 + \dots + c_n v_n = \mathrm{span}(v_1, \dots, v_n)$ means the set of all such combinations, over every choice of the $c_i$; one combination is one element of the span.
  • Under the axes with the two red arrows, $v_1 = (1, 0)$ and $v_2 = (0, 1)$ belong to $\mathbb{R}^2$; the small picture after $\in$ shows only $\mathbb{R}$.
  • In the last derivation the sums on the right leave out the $i$-th term: $d_i v_i = -\sum_{j \ne i} d_j v_j$, so $v_i = -\sum_{j \ne i} \frac{d_j}{d_i} v_j$.

Comments

Discussion happens via GitHub Discussions. You'll need a GitHub account to comment.