Skip to content
LoveToCalc

Theorem — what does that mean?

Basis and dimension

A basis gives every vector in the space exactly one set of coordinates. The number of vectors in a basis is the dimension.

In Swedish: Bas och dimension

Basis and dimension

The relation

(c₁, c₂)=(x₁v₁x₂v₂u₁v₁u₂v₂, u₁x₁u₂x₂u₁v₁u₂v₂)

A basis is a set of vectors that is linearly independent and spans the space; every basis of a space has the same number of vectors, the dimension. The coordinates of x relative to a basis (u, v) of ℝ² are c₁ = det[x v]/det[u v] and c₂ = det[u x]/det[u v].

Solved for c

c=(x₁v₁x₂v₂u₁v₁u₂v₂, u₁x₁u₂x₂u₁v₁u₂v₂)

c=(1, 2)

c equals the vector (((the determinant with rows (4, 1) and (7, 3)) divided by (the determinant with rows (2, 1) and (1, 3))), ((the determinant with rows (2, 4) and (1, 7)) divided by (the determinant with rows (2, 1) and (1, 3)))), equals the vector ((5 divided by 5), (10 divided by 5)), equals the vector (1, 2)

Working3 steps

Practice questions

You are given

  • x₁=16
  • v₁=2
  • x₂=7
  • v₂=1
  • u₁=5
  • u₂=2
Your answer: Coordinates of x relative to the basis (u, v) c

Basis, coordinates and dimension

A set of vectors is a basis of a vector space V if it is linearly independent and spans V, meaning every vector in V is a combination of them. Then every vector x can be written as a combination in exactly one way,

for a basis (u, v), and the numbers c₁ and c₂ are the coordinates of x relative to the basis. The number of vectors in a basis is the same for every basis of V. It is the dimension of V, written dim V.

For a basis (u, v) of ℝ² the coordinates are given by the determinants of the vectors as columns:

This is Cramer’s rule for the system c₁u + c₂v = x. The card above gives the pair (c₁, c₂).

Holds when det[u v] is not 0, which is exactly when u and v form a basis of ℝ²: two vectors in the plane are a basis when they are not parallel.

Worked example

u = (2, 1) and v = (1, 3) are not parallel, and det[u v] = 2·3 − 1·1 = 5. For x = (4, 7):

Check: 1·(2, 1) + 2·(1, 3) = (4, 7). The coordinates of x relative to (u, v) are (1, 2). They are not the components of x, which are (4, 7) relative to the standard basis.

A second example

u = (1, 1) and v = (1, −1) give det[u v] = −1 − 1 = −2. For x = (1, 5):

Check: 3·(1, 1) − 2·(1, −1) = (3 − 2, 3 + 2) = (1, 5).

For u = (1, 2) and v = (2, 4) the determinant is 1·4 − 2·2 = 0. The vectors are parallel, they span only a line, and are no basis for the plane.

Dimension

Space Dimension A basis
ℝⁿ n the standard basis e₁, …, eₙ
Polynomials of degree at most n n + 1 1, x, x², …, xⁿ
m×n matrices m·n the matrices with one entry 1 and the rest 0
The plane x + y + z = 0 in ℝ³ 2 (1, −1, 0) and (0, 1, −1)
The space 0, the zero vector alone 0 the empty set

In a space of dimension n, any n linearly independent vectors are a basis, and any n vectors that span the space are a basis. More than n vectors are always dependent, and fewer than n vectors do not span. Whether vectors are independent is decided as on the page on linear independence; the dimension of a subspace given by equations is n minus the rank of the coefficient matrix, see rank.

Common mistakes

Frequently asked questions

Is a basis unique? No. Every space of dimension 1 or more has infinitely many bases. What is the same for all of them is the number of vectors.

How do I go back from coordinates to the vector? Multiply out: x = c₁u + c₂v. As a matrix, x = Pc with u and v as the columns of P; see change of basis.

What is the dimension of the set of solutions of Ax = 0? n − rank A, where n is the number of columns. A basis for it comes from the free variables of the echelon form, which the matrix calculator lists as the null space.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
c₁x₁v₁x₂v₂u₁v₁u₂v₂417321131
c₂u₁x₁u₂x₂u₁v₁u₂v₂241721132

Last reviewed November 7, 2026 ·How pages are reviewed

Calculate it in practice

Linear algebraAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.