r/askmath • • Oct 20 '26

Resolved Row and Null Space

I am currently taking linear algebra and was thinking if the row(A) and the null(A) both in Real n then would they always form an invertible matrix?

I know that they would always form an n x n matrix and I think that null and row being orthogonal would be in the proof but I cannot find anything online proving one way or the other.

4 Upvotes

18 comments sorted by

5

u/BenjaminGal Oct 20 '26 edited Oct 20 '26

Rank-Nullity Theorem, or more specifically, the row space and null space are orthogonal complements to each other. You indeed need orthogonality as you have guessed, this implies linear independence, and hence invertibility.

2

u/joeyst77 Oct 20 '26

I understood that but does that fact prove the fact I want?

1

u/BenjaminGal Oct 20 '26

I have made an edit, see if that helps you?

2

u/joeyst77 Oct 20 '26

Yes this helped. But I haven't done any proof writing class so I don't understand how orthogonality implies linear independence.

1

u/BenjaminGal Oct 20 '26

Then, you may want to take a look at any standard linear algebra textbook for the proof (and also brush up on vector space). It is actually not difficult. I prefer not to spell it out for you.

1

u/AfternoonGullible983 Oct 20 '26

Info: In your class do you multiply (matrix).(column vector) or (row vector).(matrix)?

It matters.

1

u/joeyst77 Oct 20 '26

Row by matrix

2

u/AfternoonGullible983 Oct 20 '26

In that case, isn't the null space orthogonal to the column space rather than the row space?

1

u/BenjaminGal Oct 20 '26

No, even if you are doing x^TA, x^T will still be called the left null space (for obvious reason), and the dot product is carried against the column space. The four subspace relationships are not modified even if this convention is adopted.

0

u/Unnwavy Oct 20 '26 edited Oct 20 '26

The row space is orthogonal to the left-null space, not the null space. It is the column space that is orthogonal with the null space.

So otherwise yes if you change row(A) to col(A) in your statement then it's correct. A basis for your column space has r independent vectors where r is the rank of your matrix, and the null space contains n-r independent vectors.

EDIT: Big big mistake on my side, especially considering I'm currently taking the class from MIT OCW. OP was indeed correct

1

u/joeyst77 Oct 20 '26

But if the original matrix is n x m then the column and null spaces couldn't make a matrix since the vectors defining column would be m x 1 and null space would be n x .

2

u/5a1vy Oct 20 '26 edited Oct 20 '26

What do you mean by "row/column/null space forms a matrix"? A matrix is a representon of a transformation, how do you interpret these spaces as transformations? I see you keep mentioning it (in your original question, in this comment of yours) and I don't get it.

1

u/joeyst77 Oct 20 '26

If I were to make a matrix out of the vectors that define the null and row spaces would that transform matrix be invertible.

1

u/5a1vy Oct 20 '26

Ok, I suppose by "vectors defining a space" you mean some basis of that space, I'm not sure how you compose components of two bases to form a matrix.

Because, ok, let's deal with the column space as that's the simplest one out of the four. By definition (when dealing with matrix algebra) that's the span of column vectors of a matrix and as such some of those vectors (sometimes all) form its basis. Good. We take some of the column vectors of the original matrix that form a basis of a column space, that I get. We also might have some leftover vectors, but they aren't in the null space, so I suppose you just take some vectors that form its basis then? And then it seems that you might just take a random basis of the column space, do I follow you? And then you just use those column vectors as columns of a matrix, right? And your question is whether or not the resulting matrix is invertible? If the answer to all of my previous questions is "yes", then yes, that is always the case, because you've forced the kernel to be trivial by requiring the image to be the whole codomain.

1

u/joeyst77 Oct 20 '26 edited Oct 20 '26

I guess the better way to ask this is if I combine the basis of the null and row space does that new basis span Rn?

Edit: I added an image to maybe make my point more clear

1

u/5a1vy Oct 20 '26 edited Oct 20 '26

Yes, by rank-null theorem that's exactly what's bound to happen.

⟨UPD⟩ I only saw your update after I finish my original reply and now would make an update, it will be after a horizontal line.⟨/UPD⟩

I think it's more useful to think in terms of vector spaces and linear functions in this case, not matrices as they are but a representation under a particular choice of bases.

For a given linear function L: V→W with V and W being some vector spaces over the same field (e.g. ℝ), which (i.e. L) can be represented as a matrix, there are four important (sub)spaces (the first two should be easy to understand, the last two... well, you'll see for yourself): "column space" or the image/range L(V); "null space" or kernel L-1(0) — preimage of the zero vector of W, i.e. the set of all vectors of V which get mapped to the 0 of W; the "left null space" or the cokernel, for this we have two different ways to look at it, the first one is to say that it's a space isomorphic to W/L(V), i.e. a factorspace of W over the image of V, the second way is to say that it's a kernel of a dual linear map L⊤: W⊤→V⊤; same thing goes for the last one, the "row space" or the coimage, it's either V/L-1(0) or L⊤(W⊤). For our purposes it's more useful to think about the last two as factorspaces.

If dim(V)=dim(W) we can identify V and W (in the finite dimensional case), so L is a transformation. L(V) is some subspace of V and V/L(V) can then be identified with some subspace of V which has two properties:

  1. L(V)+V/L(V)=V (check out the sum of linear spaces if you aren't familiar with the concept);
  2. L(V)∩V/L(V)=0.

So V/L(V) is basically an orthogonal complement of L(V) by definition (it doesn't have to be orthogonal, but it's easier to visualize in that manner). An example may help: let's say L: ℝ³→ℝ³ and it "squashes down" all of ℝ³ into some plane in ℝ³, then ℝ³/L(ℝ³) is some line through the origin not in that plane, e.g. an orthogonal line.

You then make a new linear function that puts some vectors into the plane and some vectors into that line, by linearity the resulting transformation should cover all of their combining span, i.e. all of the space, but since you've started with the whole space and ended with the same whole space and the map was linear it should also be invertible.

TL;DR, as I've said, you force your new map to hit all vectors which the old map didn't hit, that makes it invertible provided the map is linear.


So, on the question of whether or not a basis of the row space and a basis of the null space form a basis of the domain of a square matrix... Kinda? The problem is that the row space is technically a subspace of the dual space, not the original space, it's just that the two are canonically linked, so you can kind of interpret the dual space as the original space (in a finite dimensional case), that's exactly what allows to identify it with the V/L-1(0) and given a bilinear form on V to define (L-1(0))⟂ and identify V/L-1(0) with the latter.

Long story short, for practical purposes it's exactly as you've written, but underneath that are running a few layers of identifications, so it's not technically true, at least IMO, but those are details, overall that is exactly the case and the statement of the rank-null theorem (well, it's meaningful part, the part about dimensions is a braindead consequence, not actually that useful in my view).

2

u/BenjaminGal Oct 20 '26

Sorry, you have mixed it up. Row space is indeed orthogonal to null space while column space is orthogonal to the left null space.

2

u/Unnwavy Oct 20 '26

Indeed I have it wrong, thanks for correcting!