πŸ”’ Are Two N-Dimensional Real Subspaces Equal If They Have The Same Dimensions?#

The topic of vector spaces and subspaces came up during a conversation with a dear friend and I could not resist reminiscing the past. They were studying for an upcoming test and I wanted to try and reinforce their intuition in some areas through a couple of examples and counter-examples.

Rephrasing the Original Question#

Despite the title of this post being a question, the original practice problem was presented as an affirmation:

If S1 and S2 are subspaces of Rn of the same dimension, then S1=S2

Both the question in the title and the original affirmation are relatively trivial to understand and disprove when slightly rephrased; that allows us to approach it from the right angle:

Does the dimension of a space S fully determine its properties as to make two spaces S1 and S2 sharing the same dimension equal?

Considering the dimension of a space is simply the cardinality of its basis, we can once again re-write the question as follows:

If two subspaces S1 and S2 have the same number of vectors in their respective bases B1 and B2, are they therefore equal?

We are certainly getting closer, but we can attempt to rephrase the question further in order to arrive to its most absurd variation:

If |B1|=|B2|, are then span(B1) and span(B2) also equal?

Considering the span of a set V is the set of vectors {w1,...,wn} resulting from all possible linear combinations of vi∈V, we can finally rephrase the previous iteration of our question as follows:

Given |B1|=|B2|, the resulting sets L1 and L2 of all possible linear combinations for vectors b1i∈B1 and vectors b2i∈B2 are equal

This is obviously false. Although bases B1 and B2 may have the same number of vectors k in them, that doesn’t mean those vectors are also equal, much less linearly dependent. Therefore, any given pair of linearly independent vectors b1i∈B1 and b2i∈B2 can help us disprove the statement in question.

Consider that βˆ€l1∈L1 we have l1i:=⟨α1β‹…b11,Ξ±2β‹…b12,...,Ξ±nβ‹…b1k⟩ and
βˆ€l2∈L2 similarly l2i:=⟨β1β‹…b21,Ξ²2β‹…b22,...,Ξ²nβ‹…b2k⟩.

Any b2i which cannot be represented as ⟨α1β‹…b11,Ξ±2β‹…b12,...,Ξ±nβ‹…b1k⟩ directly contradicts the original statement.

In Search of b2i#

The conditions under which b2i exists vary, of course, but the fact it’s at all possible shows the initial statement can be falsified. However, it’s helpful to find actual examples showing the above holds true.

Consider the basis B of R2, for which the following holds:

B={[10],[01]}={b11,b21}

Working our way backwards, we group the members of B into two separate bases B1 and B2 such that B1={b11} and B2={b21}.

As we can observe, |B1|=|B2|=1. However, βˆ„l1i:=⟨α1β‹…b11⟩ and l1i=b21 since b11 and b21 are linearly independent coming from the same initial set B. As shown below, βˆ„Ξ±1 such that b21=Ξ±1β‹…b11

Observing S1 and S2 in Action#

The counter-example presented above can be visualized as follows:

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
ax.axhline(0, color="black", linewidth=0.5)
ax.axvline(0, color="black", linewidth=0.5)
ax.plot(0, 0, color="black", marker="o")
ax.grid()

qi = ax.quiver(
    0, 0, 1, 0, angles="xy", scale_units="xy", scale=1, color="r", width=0.012
)
ax.text(1, 0.1, "b11 = i")

mqi = ax.quiver(
    0, 0, -1.5, 0, angles="xy", scale_units="xy", scale=1, color="r", width=0.012
)
ax.text(-1.5, 0.1, "-1.5*b11")

qj = ax.quiver(
    0, 0, 0, 1, angles="xy", scale_units="xy", scale=1, color="b", width=0.012
)
ax.text(0.1, 1, "b21 = j")

ax.axhline(0, color="r", linewidth=5, alpha=0.25, label="S1 = span(b11)")
ax.axvline(0, color="b", linewidth=5, alpha=0.25, label="S2 = span(b21)")

ax.set_xlim([-2, 2])
ax.set_ylim([-2, 2])

ax.legend(shadow=True, loc=(0.65, 0.85))
ax.set_xlabel("S1")
ax.set_ylabel("S2", rotation=0)

plt.show()
../../../../_images/b4c6b9d7e00b612107fb99797a7b1707541b2a0dbd3d9abe5d776dabdd36147e.png

As can be seen, despite |B1| being equal to |B2| we have that subspaces S1 and S2 are clearly very different.

Final Words#

That’s all for now; I managed to scratch the itch of nerding out with them on the geometric implications of the original question and how to intuitively understand the scenario.

Stay in touch by entering your email below and receive updates whenever I post something new:

As always, thank you for reading and remember that feedback is welcome and appreciated; you may contact me via email or social media. Let me know if there's anything else you'd like to know, something you'd like to have corrected, translated, added or clarified further.