Salta al contenuto
Note per Studenti Bases and Dimension Report

Bases and Dimension

In questa pagina 3

This note combines spanning and linear independence from Vector SpacesVector spaces are sets with a sum and a scalar multiplication satisfying eight rules, with R^n, polynomials, direct sums and quotients as examples; subspaces, spans, linear combinations and linear independence are the tools to describe them.Vector Spaces → into the notion of a basis, and uses it to define dimension.

1. Bases

Definition. A collection of vectors v1,…,vm∈Vv_1,\dots,v_m\in V is a basis of VV if they span VV and are linearly independent.

Example (standard basis). The vectors e1=(1,0,…,0),e2=(0,1,0,…,0),…,en=(0,…,0,1)∈Rne_1=(1,0,\dots,0),\quad e_2=(0,1,0,\dots,0),\quad\dots,\quad e_n=(0,\dots,0,1)\in\mathbb{R}^n form a basis, the standard basis: they span Rn\mathbb{R}^n (each x=x1e1+⋯+xnenx=x_1e_1+\dots+x_ne_n) and are linearly independent.

Modify it slightly and see what happens:

  • Omit one vector, say keep only e2,…,ene_2,\dots,e_n: still linearly independent, but they no longer span Rn\mathbb{R}^n, so not a basis.
  • Add an arbitrary vector vv: e1,…,en,ve_1,\dots,e_n,v still span Rn\mathbb{R}^n, but are not independent. Indeed v=a1e1+⋯+anenv=a_1e_1+\dots+a_ne_n for suitable aia_i (the eie_i span), so by the dependence lemma ("one vector is a combination of the others") e1,…,en,ve_1,\dots,e_n,v are linearly dependent.

Example (another basis of R3\mathbb{R}^3). The vectors v1=(0,2,1)v_1=(0,2,1), v2=(1,0,−2)v_2=(1,0,-2), v3=(1,1,1)v_3=(1,1,1) form a basis of R3\mathbb{R}^3. Apply the independence and the spanning method to the matrix with these rows (swap rows 1 and 2; subtract row 1 from row 3; subtract 12\tfrac12 row 2 from row 3; scale): (02110−2111)→(10−2021111)→(10−2021013)→(10−20210052)→(10−20112001).\begin{pmatrix}0&2&1\\1&0&-2\\1&1&1\end{pmatrix}\to\begin{pmatrix}1&0&-2\\0&2&1\\1&1&1\end{pmatrix}\to\begin{pmatrix}1&0&-2\\0&2&1\\0&1&3\end{pmatrix}\to\begin{pmatrix}1&0&-2\\0&2&1\\0&0&\tfrac52\end{pmatrix}\to\begin{pmatrix}1&0&-2\\0&1&\tfrac12\\0&0&1\end{pmatrix}. Three leading ones: the vectors are linearly independent and span R3\mathbb{R}^3, so they form a basis. This is a different basis from e1,e2,e3e_1,e_2,e_3.

Proposition (a basis gives coordinates). Let v1,…,vmv_1,\dots,v_m be a basis of VV. Then every v∈Vv\in V can be written uniquely as v=a1v1+⋯+amvm.v=a_1v_1+\dots+a_mv_m . For another vector w=b1v1+⋯+bmvmw=b_1v_1+\dots+b_mv_m one has v+w=(a1+b1)v1+⋯+(am+bm)vmv+w=(a_1+b_1)v_1+\dots+(a_m+b_m)v_m.

Proof. Existence holds because the viv_i span VV; uniqueness is the proposition on unique representation for linearly independent vectors. □\square

This says that a basis gives rise to a coordinate system in VV: v↔(a1,…,am)v\leftrightarrow(a_1,\dots,a_m), and adding vectors means adding coordinates.

2. The dimension of a vector space

We call space "3-dimensional" and a plane "2-dimensional"; the following makes this precise.

Theorem. If VV has a basis v1,…,vnv_1,\dots,v_n, then every other basis of VV also consists of nn vectors. (The number of vectors in a basis does not depend on the basis, although the vectors themselves may, cf. the two bases of R3\mathbb{R}^3 above.)

Definition. VV has dimension nn, written dim⁡V=n\dim V=n, if there is a basis of VV with nn elements.

Examples.

  • The standard basis has nn elements, so dim⁡Rn=n\dim\mathbb{R}^n=n.
  • The polynomials of degree at most dd have the basis 1,x,x2,…,xd1,x,x^2,\dots,x^d (d+1d+1 polynomials), so dim⁡R[x]≤d=d+1\dim\mathbb{R}[x]_{\le d}=d+1.

Remark (direct sums). If v1,…,vnv_1,\dots,v_n is a basis of VV and w1,…,wmw_1,\dots,w_m a basis of WW, then (v1,0),…,(vn,0),(0,w1),…,(0,wm)(v_1,0),\dots,(v_n,0),(0,w_1),\dots,(0,w_m) is a basis of V⊕WV\oplus W, so dim⁡(V⊕W)=dim⁡V+dim⁡W\dim(V\oplus W)=\dim V+\dim W.

Theorem. Every vector space has a basis. (In this course only vector spaces with a basis of finitely many vectors are considered: finite-dimensional spaces. An infinite-dimensional space is R[x]\mathbb{R}[x], with the basis 1,x,x2,x3,…1,x,x^2,x^3,\dots.)

Theorem (completing and shrinking). Let VV be a vector space.

  1. If VV is spanned by mm vectors v1,…,vmv_1,\dots,v_m, then a basis of VV is obtained by removing certain of the viv_i. In particular VV has a basis, is finite-dimensional, and dim⁡V≤m\dim V\le m.
  2. Every linearly independent set can be enlarged to a basis by adding suitable vectors from any given basis of VV: if v1,…,vnv_1,\dots,v_n are linearly independent and w1,…,wmw_1,\dots,w_m is any basis, then v1,…,vnv_1,\dots,v_n together with certain wjw_j form a basis. In particular, if v1,…,vnv_1,\dots,v_n are independent then dim⁡V≥n\dim V\ge n.
  3. If W⊆VW\subseteq V is a subspace then dim⁡W≤dim⁡V\dim W\le\dim V (so WW is finite-dimensional if VV is), and dim⁡W=dim⁡V\dim W=\dim V precisely if W=VW=V.
  4. For a subspace W⊆VW\subseteq V, every basis of WW can be extended to a basis of VV.

(The source does not prove this theorem; it refers to linear algebra textbooks.)

Example. In V=R3V=\mathbb{R}^3 take v1=(1,1,1)v_1=(1,1,1), v2=(2,0,−1)v_2=(2,0,-1), v3=(1,−1,−2)v_3=(1,-1,-2), v4=(1,2,−1)v_4=(1,2,-1). Form the matrix with these rows and reduce: (11120−11−1−212−1)→(1110−2−30−2−301−2)→(111013200000−72)→(1110132000001).\begin{pmatrix}1&1&1\\2&0&-1\\1&-1&-2\\1&2&-1\end{pmatrix}\to\begin{pmatrix}1&1&1\\0&-2&-3\\0&-2&-3\\0&1&-2\end{pmatrix}\to\begin{pmatrix}1&1&1\\0&1&\tfrac32\\0&0&0\\0&0&-\tfrac72\end{pmatrix}\to\begin{pmatrix}1&1&1\\0&1&\tfrac32\\0&0&0\\0&0&1\end{pmatrix}. (First step: add multiples of row 1 to the others. Second step: multiply row 2 by −12-\tfrac12 and add multiples to the last two rows. Third step: divide the last row by −72-\tfrac72.) Swapping the last two rows gives a row-echelon matrix with three leading ones. So the four vectors generate R3\mathbb{R}^3 but are not linearly independent (also clear from dim⁡R3=3\dim\mathbb{R}^3=3 and part 2 of the theorem).

By part 1 a basis is obtained by removing vectors, but one may not remove just any one:

  • v1,v2,v3v_1,v_2,v_3 do not form a basis: dropping the last row leaves a zero row (indeed v3=−v1+v2v_3=-v_1+v_2), so they neither are independent nor span R3\mathbb{R}^3;
  • v1,v2,v4v_1,v_2,v_4 do form a basis: dropping the third row leaves the rows (1,1,1),(0,1,32),(0,0,1)(1,1,1),(0,1,\tfrac32),(0,0,1) with three leading ones.

Corollary. Let dim⁡V=n\dim V=n and let v1,…,vnv_1,\dots,v_n be nn vectors in VV. Then they are linearly independent if and only if they span VV.

Proof. Suppose they span VV but are not independent. Then some viv_i lies in the span of the others, so VV is spanned by the n−1n-1 vectors other than viv_i, whence n−1≥dim⁡V=nn-1\ge\dim V=n by part 1 of the theorem, a contradiction. The converse implication is proved similarly (an independent set of nn vectors can be extended to a basis by part 2, which cannot add vectors since every basis has nn). □\square

Remark (in Rn\mathbb{R}^n). For V=RnV=\mathbb{R}^n and nn vectors, the matrix AA with rows v1,…,vnv_1,\dots,v_n and its echelon form BB are n×nn\times n. The vectors span Rn\mathbb{R}^n iff BB has nn leading ones, which happens iff they are independent: the two methods agree.

Example (powers of x−ax-a). Fix a∈Ra\in\mathbb{R}. In R[x]≤d\mathbb{R}[x]_{\le d} the polynomials v0(x)=(x−a)0=1,v1(x)=x−a,…,vd(x)=(x−a)dv_0(x)=(x-a)^0=1,\quad v_1(x)=x-a,\quad\dots,\quad v_d(x)=(x-a)^d are linearly independent. Suppose 0=a0v0+a1v1+⋯+advd0=a_0v_0+a_1v_1+\dots+a_dv_d. Only vdv_d has degree dd, all others degree ≤d−1\le d-1, so the coefficient of xdx^d gives ad=0a_d=0. Then 0=a0v0+⋯+ad−1vd−10=a_0v_0+\dots+a_{d-1}v_{d-1} and the coefficient of xd−1x^{d-1} gives ad−1=0a_{d-1}=0. Repeating, all ai=0a_i=0. Since dim⁡R[x]≤d=d+1\dim\mathbb{R}[x]_{\le d}=d+1, the corollary shows v0,…,vdv_0,\dots,v_d form a basis. By the coordinate proposition every polynomial of degree ≤d\le d can be written uniquely as f(x)=a0+a1(x−a)+⋯+ad(x−a)d,f(x)=a_0+a_1(x-a)+\dots+a_d(x-a)^d, i.e. as a sum of powers of x−ax-a (a polynomial is by definition a sum of powers of x=x−0x=x-0). The values of the aia_i are closely related to the Taylor series from analysis.

3. Dimensions of sums and intersections

We now answer the questions left open in Vector SpacesVector spaces are sets with a sum and a scalar multiplication satisfying eight rules, with R^n, polynomials, direct sums and quotients as examples; subspaces, spans, linear combinations and linear independence are the tools to describe them.Vector Spaces →: how small is A∩BA\cap B and how big is A+BA+B?

Corollary. For subspaces A,B⊆VA,B\subseteq V with dim⁡A=m\dim A=m and dim⁡B=n\dim B=n, dim⁡(A+B)≤dim⁡A+dim⁡B.\dim(A+B)\le\dim A+\dim B . (Left: the sum of subspaces; right: the sum of numbers.)

Proof. Let v1,…,vmv_1,\dots,v_m be a basis of AA and w1,…,wnw_1,\dots,w_n a basis of BB. They span AA, resp. BB, so A+BA+B is spanned by the m+nm+n vectors v1,…,vm,w1,…,wnv_1,\dots,v_m,w_1,\dots,w_n. By part 1 of the theorem, dim⁡(A+B)≤m+n\dim(A+B)\le m+n. □\square

Theorem (dimension formula). For subspaces A,B⊆VA,B\subseteq V, dim⁡(A∩B)=dim⁡A+dim⁡B−dim⁡(A+B).(D)\dim(A\cap B)=\dim A+\dim B-\dim(A+B).\tag{D} (A special case of the rank-nullity theorem, treated later. The source states it without proof here and illustrates it.)

Illustration in V=R2V=\mathbb{R}^2. A subspace A⊆R2A\subseteq\mathbb{R}^2 is of exactly one of three kinds:

  • dim⁡A=0\dim A=0: A={0}A=\{0\};
  • dim⁡A=1\dim A=1: a basis consists of one vector vv. It is ≠0\ne0 (otherwise 1⋅v=01\cdot v=0 would be a non-trivial combination giving 00), and since vv spans, A={av∣a∈R}A=\{av\mid a\in\mathbb{R}\} is the line through the origin spanned by v≠0v\ne0;
  • dim⁡A=2\dim A=2: then A=R2A=\mathbb{R}^2 by part 3 of the theorem.

The same holds for BB. If A={0}A=\{0\} then A∩B={0}A\cap B=\{0\} and A+B=BA+B=B, so (D) reads dim⁡{0}=dim⁡B+dim⁡{0}−dim⁡B\dim\{0\}=\dim B+\dim\{0\}-\dim B: nothing interesting. If A=R2A=\mathbb{R}^2 then A∩B=BA\cap B=B, A+B=R2A+B=\mathbb{R}^2 and (D) reads dim⁡B=dim⁡R2+dim⁡B−dim⁡R2\dim B=\dim\mathbb{R}^2+\dim B-\dim\mathbb{R}^2: tautological. The interesting case is dim⁡A=dim⁡B=1\dim A=\dim B=1: two lines through the origin.

  • A=BA=B: A∩B=AA\cap B=A and A+B=AA+B=A, so (D) reads 1=1+1−11=1+1-1, true.
  • A≠BA\ne B: the distinct lines meet only in the origin, A∩B={0}A\cap B=\{0\}, and (D) says 0=1+1−dim⁡(A+B)0=1+1-\dim(A+B), hence dim⁡(A+B)=2\dim(A+B)=2, so A+B=R2A+B=\mathbb{R}^2 (part 3 of the theorem).

Definition. For subspaces A,B⊆VA,B\subseteq V we say "the sum A+BA+B is a direct sum" if dim⁡(A+B)=dim⁡A+dim⁡B\dim(A+B)=\dim A+\dim B, i.e. if dim⁡(A+B)\dim(A+B) is as large as possible; by (D) this means dim⁡(A∩B)=0\dim(A\cap B)=0, i.e. A∩B={0}A\cap B=\{0\}. For two lines in R2\mathbb{R}^2 the sum is direct precisely if A≠BA\ne B, i.e. A+B=R2A+B=\mathbb{R}^2.

Example (a line and a plane in R3\mathbb{R}^3). Let dim⁡A=1\dim A=1 (a line through the origin) and dim⁡B=2\dim B=2 (a plane through the origin). Since A∩B⊆AA\cap B\subseteq A, 0≤dim⁡(A∩B)≤dim⁡A=1.0\le\dim(A\cap B)\le\dim A=1 .

  • If A⊆BA\subseteq B: A∩B=AA\cap B=A, dim⁡(A∩B)=1\dim(A\cap B)=1.
  • If A⊈BA\not\subseteq B: A∩B≠AA\cap B\ne A is a subspace of AA of strictly smaller dimension, so A∩B={0}A\cap B=\{0\}, dim⁡(A∩B)=0\dim(A\cap B)=0.

So a line and a plane through the origin in R3\mathbb{R}^3 meet either in the single point 00 or in the whole line.

Example (two planes in R3\mathbb{R}^3). Let dim⁡A=dim⁡B=2\dim A=\dim B=2. Then (D) reads dim⁡(A∩B)=4−dim⁡(A+B)\dim(A\cap B)=4-\dim(A+B). Since A,B⊆A+B⊆R3A,B\subseteq A+B\subseteq\mathbb{R}^3, we have 2≤dim⁡(A+B)≤32\le\dim(A+B)\le3.

  • A=BA=B: A∩B=AA\cap B=A and A+B=AA+B=A, both of dimension 22.
  • A≠BA\ne B: A∩B≠AA\cap B\ne A has dimension <2<2, so dim⁡(A+B)=3\dim(A+B)=3 and dim⁡(A∩B)=1\dim(A\cap B)=1.

Two planes through the origin in R3\mathbb{R}^3 therefore meet either in a plane (iff A=BA=B) or in a line (iff A≠BA\ne B). In an ambient space of dimension ≥4\ge4 with dim⁡A,dim⁡B≥2\dim A,\dim B\ge2 the possible values of dim⁡(A∩B)\dim(A\cap B) and dim⁡(A+B)\dim(A+B) are more varied and are not listed.

Versione ripasso

Basis. v1,…,vmv_1,\dots,v_m is a basis of VV if they span VV and are linearly independent.

  • Standard basis e1,…,ene_1,\dots,e_n of Rn\mathbb{R}^n. Dropping a vector: no longer spans. Adding a vector: no longer independent (v=∑aieiv=\sum a_ie_i).
  • Example: (0,2,1),(1,0,−2),(1,1,1)(0,2,1),(1,0,-2),(1,1,1) is a basis of R3\mathbb{R}^3 (three leading ones after elimination).
  • Coordinates: each v∈Vv\in V is uniquely v=a1v1+⋯+amvmv=a_1v_1+\dots+a_mv_m (existence from spanning, uniqueness from independence); v+wv+w adds coordinates.

Dimension. All bases of VV have the same number nn of vectors; dim⁡V=n\dim V=n.

  • dim⁡Rn=n\dim\mathbb{R}^n=n; dim⁡R[x]≤d=d+1\dim\mathbb{R}[x]_{\le d}=d+1 (basis 1,x,…,xd1,x,\dots,x^d); dim⁡(V⊕W)=dim⁡V+dim⁡W\dim(V\oplus W)=\dim V+\dim W; R[x]\mathbb{R}[x] is infinite-dimensional (basis 1,x,x2,…1,x,x^2,\dots).
  • Every vector space has a basis; this course treats finite-dimensional spaces.

Theorem (shrinking and completing).

  1. VV spanned by mm vectors: a basis is obtained by removing some of them; dim⁡V≤m\dim V\le m.
  2. Independent v1,…,vnv_1,\dots,v_n extend to a basis (using vectors of any given basis); dim⁡V≥n\dim V\ge n.
  3. W⊆VW\subseteq V subspace: dim⁡W≤dim⁡V\dim W\le\dim V, with equality iff W=VW=V.
  4. Any basis of a subspace extends to a basis of VV.

Corollary. If dim⁡V=n\dim V=n, then nn vectors are independent   ⟺  \iff they span VV (so for nn vectors it suffices to check one of the two). In Rn\mathbb{R}^n: nn vectors, echelon form has nn leading ones.

Example. (x−a)0,(x−a)1,…,(x−a)d(x-a)^0,(x-a)^1,\dots,(x-a)^d are independent (compare coefficients from the top degree downward), hence a basis of R[x]≤d\mathbb{R}[x]_{\le d}; every polynomial of degree ≤d\le d is uniquely ∑ai(x−a)i\sum a_i(x-a)^i.

Sums and intersections.

  • dim⁡(A+B)≤dim⁡A+dim⁡B\dim(A+B)\le\dim A+\dim B.
  • Dimension formula: dim⁡(A∩B)=dim⁡A+dim⁡B−dim⁡(A+B)\dim(A\cap B)=\dim A+\dim B-\dim(A+B).
  • A+BA+B is a direct sum if dim⁡(A+B)=dim⁡A+dim⁡B\dim(A+B)=\dim A+\dim B, i.e. A∩B={0}A\cap B=\{0\}.
  • In R3\mathbb{R}^3: two different planes through 00 meet in a line; a line not in a plane meets it only in 00; in R2\mathbb{R}^2 two different lines meet only in 00 and A+B=R2A+B=\mathbb{R}^2.

Typical mistakes.

  • Removing an arbitrary vector from a spanning set: it must be a vector that is a combination of the others (e.g. from v1,v2,v3,v4v_1,v_2,v_3,v_4 above, removing v4v_4 fails, removing v3v_3 works).
  • Using the corollary without knowing dim⁡V\dim V or with a number of vectors different from dim⁡V\dim V.
  • Forgetting that a subspace W≠VW\ne V has strictly smaller dimension (used to conclude A∩B={0}A\cap B=\{0\}).
  • Confusing the dimension of the intersection with the dimension of the sum: they move in opposite directions in the formula.

Teoria collegata