Basis and Dimension

A basis is a set that is both spanning and independent, so every vector is a combination of it in exactly one way. Every basis of a given space has the same number of elements, and that number is the dimension, which is what makes dimension a property of the space rather than of a chosen description of it.

Definition

Let V be a vector space. A set B = { v 1 , … , v n } ⊆ V is a basis when it is

  1. spanning: span ⁡ ( B ) = V , and
  2. independent: ∑ j λ j v j = 0 forces every λ j = 0 .

Uniqueness of coordinates. The two conditions are exactly what makes representation unique. Spanning gives at least one expression v = ∑ j c j v j ; independence gives at most one, since two expressions subtract to a vanishing combination whose coefficients must all be zero. The c j are the coordinates of v with respect to B , and they depend on the basis and on the order in which it is listed.

Dimension. If V has a basis of n elements, every basis of V has n elements, and dim ⁡ V = n . The space { 0 } has the empty set as a basis and dimension 0. A space with no finite basis is infinite-dimensional.

The equal-size claim rests on the exchange lemma: in a space spanned by n vectors, any independent set has at most n elements. Applying it to two bases in both directions forces their sizes to agree.

Consequences for a space of known dimension n .

StatementWhy
any n + 1 vectors are dependentexchange lemma against a spanning set of size n
no n − 1 vectors spana spanning set of size n − 1 would bound an independent set of size n
n independent vectors form a basisindependence plus the count forces spanning
n spanning vectors form a basisspanning plus the count forces independence

The last two are what make dimension useful in practice: once the dimension is known, one of the two conditions plus the right count suffices, and the other comes free.

Subspaces. If W ⊆ V is a subspace of a finite-dimensional V then dim ⁡ W ≤ dim ⁡ V , with equality exactly when W = V . Every basis of W extends to a basis of V , which is the step the rank–nullity proof relies on.

Assumptions and scope

  • A basis is a set, but coordinates require an order. Reordering a basis permutes every coordinate vector, so the order is part of the data whenever coordinates are used.

  • The equal-size theorem needs some basis to be finite. Infinite-dimensional spaces have bases in a weaker sense whose existence depends on the axiom of choice, and no counting argument applies.

  • Dimension is relative to the field. The complex numbers have dimension 1 over C and dimension 2 over R , and the same set can therefore carry two different dimensions.

  • The shortcut requires the dimension to be known independently. Verifying n independent vectors in a space you have only assumed is n -dimensional proves nothing about spanning.

  • An independent set need not be a basis and a spanning set need not be a basis. Each becomes one only when its size matches the dimension, or when the missing condition is checked directly.

Worked material

Example

Dimensions away from R n

Polynomials. P n , of degree at most n , has basis { 1 , x , x 2 , … , x n } and dimension n + 1 . Note the off-by-one: P 2 is three-dimensional, because the constant term is a coordinate like any other.

A different basis of P 2 is { 1 , 1 + x , 1 + x + x 2 } . To find the coordinates of 2 + 3 x + 4 x 2 in it, solve

c 1 ( 1 ) + c 2 ( 1 + x ) + c 3 ( 1 + x + x 2 ) = 2 + 3 x + 4 x 2 .

Matching coefficients from the top: c 3 = 4 from x 2 ; then c 2 + c 3 = 3 gives c 2 = − 1 ; then c 1 + c 2 + c 3 = 2 gives c 1 = − 1 . So the coordinates are ( − 1 , − 1 , 4 ) .

Checking: − 1 − ( 1 + x ) + 4 ( 1 + x + x 2 ) = ( − 1 − 1 + 4 ) + ( − 1 + 4 ) x + 4 x 2 = 2 + 3 x + 4 x 2 .

The same polynomial has coordinates ( 2 , 3 , 4 ) in the standard basis and ( − 1 , − 1 , 4 ) in this one.

Matrices. M 2 × 2 ( R ) has basis { E 11 , E 12 , E 21 , E 22 } , the matrices with a single 1, and dimension 4.

The symmetric 2 × 2 matrices form a subspace with basis

( 1 0 0 0 ) , ( 0 0 0 1 ) , ( 0 1 1 0 ) ,

of dimension 3. The constraint a 12 = a 21 removes exactly one degree of freedom from four. In that basis ( 3 − 2 − 2 5 ) has coordinates ( 3 , 5 , − 2 ) , reading the diagonal entries and then the shared off-diagonal one.

Solutions of a differential equation. The real solutions of y ″ + y = 0 form a vector space with basis { sin , cos } and dimension 2. This is why a general solution is written A sin ⁡ x + B cos ⁡ x with two arbitrary constants: the count of constants is the dimension, and a second-order linear equation has a two-dimensional solution space.

Functions, in general. The real-valued functions on [ 0 , 1 ] have no finite basis. Neither do all polynomials, where { 1 , x , x 2 , … } is independent and infinite. Dimension as a number is a finite-dimensional notion, and most function spaces of analytical interest fall outside it.

The common thread. In every finite case the dimension counts degrees of freedom: coefficients you may choose independently. Three for a quadratic, four for a 2 × 2 matrix, three when symmetry ties two entries together, two for the arbitrary constants of a second-order equation.

Non-example

Four ways a basis argument fails

Taking the reduced columns as the basis. After reducing A to find pivots in columns 1 and 3, the learner reports the reduced matrix's columns ( 1 , 0 , 0 ) and ( 0 , 1 , 0 ) . Row operations change the columns; they preserve only which columns depend on which. The answer must be the original vectors in the pivot positions, and the reduced columns generally do not lie in the span at all.

Concluding a basis from independence alone. "These two vectors in R 3 are independent, so they are a basis of R 3 ." Independence caps the count; it does not reach it. Two independent vectors in a three-dimensional space span a plane, and the shortcut applies only when the number of vectors equals the known dimension.

Using the shortcut with an assumed dimension. " W looks two-dimensional, and here are two independent vectors in it, so they are a basis." The count-plus-one-condition rule needs the dimension established beforehand. If W were three-dimensional the two vectors would span only a proper subspace, and nothing in the argument would have detected it.

Treating coordinates as intrinsic. "The vector is ( 3 , 2 ) ." A coordinate list means nothing without its basis: ( 5 , 1 ) in the standard basis and ( 3 , 2 ) in { ( 1 , 1 ) , ( 1 , − 1 ) } name the same vector. Reporting coordinates without naming the basis, or comparing coordinates computed in different bases, produces statements that cannot be checked.

What unites them. The first is a procedural slip with a conceptual cause: not knowing what row reduction preserves. The middle two mistake a necessary condition for a sufficient one. The last forgets that coordinates are a description relative to a choice, which is the same observation that makes change of basis a subject at all.

Common errors

Common misconception

Any linearly independent set of vectors in a space is a basis for it, since independence is the condition that distinguishes a basis from an arbitrary collection.

Related units

Requires

Connected

Learn this topic

Used in

Sources

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.