Salta al contenuto
Note per Studenti Vector Spaces Report

Vector Spaces

In questa pagina 6

1. R2\mathbb{R}^2, R3\mathbb{R}^3 and Rn\mathbb{R}^n

Definition. For n≥1n\ge1, an ordered nn-tuple of real numbers is a collection of nn real numbers in a fixed order, written (r1,r2,…,rn)(r_1,r_2,\dots,r_n). For n=2n=2 it is an ordered pair, for n=3n=3 an ordered triple; an ordered 1-tuple is just a real number. The order matters: (2,3)≠(3,2)(2,3)\ne(3,2). (If a pair records "weight of a parcel in kg, price in euro", then (3,10)(3,10) and (10,3)(10,3) are different pieces of information.)

Definition. For n≥1n\ge 1, Rn:={(r1,r2,…,rn) ∣ r1,…,rn∈R}.\mathbb{R}^n:=\{(r_1,r_2,\dots,r_n)\ \mid\ r_1,\dots,r_n\in\mathbb{R}\}. So R1=R\mathbb{R}^1=\mathbb{R}, R2={(x1,x2)}={(x,y)}\mathbb{R}^2=\{(x_1,x_2)\}=\{(x,y)\} is the set of ordered pairs, etc. The elements of Rn\mathbb{R}^n are called vectors; the numbers x1,…,xnx_1,\dots,x_n of x=(x1,…,xn)x=(x_1,\dots,x_n) are its components; (0,…,0)(0,\dots,0) is the zero vector, written 00.

Vectors of R,R2,R3\mathbb{R},\mathbb{R}^2,\mathbb{R}^3 can be pictured as points on a line, in the plane, in space; often they are drawn as arrows (a movement, or in physics a force with strength and direction), e.g. (3,0)(3,0), (3,4)(3,4), (3,−2)(3,-2) in the plane and (4,4,6)(4,4,6) in space.

1.1 Addition of vectors

Definition. For x=(x1,…,xn)x=(x_1,\dots,x_n) and y=(y1,…,yn)y=(y_1,\dots,y_n) in the same Rn\mathbb{R}^n, x+y:=(x1+y1, x2+y2, …, xn+yn).x+y:=(x_1+y_1,\ x_2+y_2,\ \dots,\ x_n+y_n). The sum is only defined for vectors in the same Rn\mathbb{R}^n: (1,2)+(3,4,5)(1,2)+(3,4,5) is meaningless.

Lemma. For x,y,z∈Rnx,y,z\in\mathbb{R}^n:

  • x+y=y+xx+y=y+x (commutativity);
  • x+0=xx+0=x;
  • x+(y+z)=(x+y)+zx+(y+z)=(x+y)+z (associativity).

These reduce to the same identities for real numbers, component by component. Geometric intuition for commutativity is the parallelogram law: e.g. for x=(3,1)x=(3,1), y=(2,4)y=(2,4) one gets x+y=y+x=(5,5)x+y=y+x=(5,5), the far corner of the parallelogram spanned by xx and yy.

1.2 Scalar multiplication

Definition. For x∈Rnx\in\mathbb{R}^n and r∈Rr\in\mathbb{R}, r⋅x:=(rx1,…,rxn)(often written rx).r\cdot x:=(rx_1,\dots,rx_n)\qquad(\text{often written }rx). Geometrically this stretches xx by the factor rr: for r>1r>1 it is stretched, for 0<r<10<r<1 compressed, for r<0r<0 it is additionally flipped. For example 4⋅(1,3)=(4,12)4\cdot(1,3)=(4,12) and 14(1,3)=(14,34)\tfrac14(1,3)=(\tfrac14,\tfrac34).

Unlike the sum, scalar multiplication combines two different kinds of objects: a real number and a vector.

Lemma. For r,s∈Rr,s\in\mathbb{R} and x,y∈Rnx,y\in\mathbb{R}^n:

  1. r(x+y)=rx+ryr(x+y)=rx+ry (distributivity);
  2. (r+s)x=rx+sx(r+s)x=rx+sx (distributivity);
  3. (rs)x=r(sx)(rs)x=r(sx);
  4. 1x=x1x=x;
  5. 0x=00x=0.

Again immediate from the corresponding rules for real numbers.

1.3 Definition of a vector space

Definition. A vector space is a set VV equipped with two functions, the sum and the scalar multiplication, +:V×V→V, (v,w)↦v+w,⋅:R×V→V, (r,v)↦rv,+:V\times V\to V,\ (v,w)\mapsto v+w,\qquad \cdot:\mathbb{R}\times V\to V,\ (r,v)\mapsto rv, satisfying the following conditions, for all r,s∈Rr,s\in\mathbb{R} and u,v,w∈Vu,v,w\in V (elements of VV are called vectors):

  1. v+w=w+vv+w=w+v (commutativity of addition);
  2. u+(v+w)=(u+v)+wu+(v+w)=(u+v)+w;
  3. there is a vector 0∈V0\in V, the zero vector, with 0+v=v0+v=v for all v∈Vv\in V;
  4. r(v+w)=rv+rwr(v+w)=rv+rw (distributive law);
  5. (r+s)v=rv+sv(r+s)v=rv+sv;
  6. (rs)v=r(sv)(rs)v=r(sv);
  7. 1v=v1v=v;
  8. 0v=00v=0 (on the left the real number zero, on the right the zero vector).

The notation +:V×V→V+:V\times V\to V means that ++ is a function whose input is a pair of elements of VV and whose output is again an element of VV; likewise ⋅:R×V→V\cdot:\mathbb{R}\times V\to V takes a pair (real number, element of VV) and returns an element of VV. (Some authors write v⃗\vec v for vectors; these notes do not.)

Example. R=R1\mathbb{R}=\mathbb{R}^1, R2\mathbb{R}^2 and in general Rn\mathbb{R}^n are vector spaces: the eight conditions are exactly the properties of the two lemmas above.

Example (sets that are not vector spaces). In each case draw the set and find the failing condition:

  • {(x1,x2)∈R2∣x1≥0}\{(x_1,x_2)\in\mathbb{R}^2\mid x_1\ge0\} (a half-plane): closed under addition, but (−1)⋅(1,0)=(−1,0)(-1)\cdot(1,0)=(-1,0) leaves the set, so closure under scalar multiplication fails;
  • {(x1,x2)∈R2∣x1>0}\{(x_1,x_2)\in\mathbb{R}^2\mid x_1>0\}: the zero vector is missing (and scalar multiples by negative numbers leave the set);
  • the solution set of 3x1+2x2=33x_1+2x_2=3 (a line not through the origin): (0,0)(0,0) is not a solution, so no zero vector; also the sum of two solutions has right-hand side 6≠36\ne3;
  • {(x1,x2)∈R2∣x1=0 or x2=0}\{(x_1,x_2)\in\mathbb{R}^2\mid x_1=0\text{ or }x_2=0\} (the union of the two axes): (1,0)+(0,1)=(1,1)(1,0)+(0,1)=(1,1) lies on neither axis, so the sum is not in the set.

2. Solution sets of homogeneous linear systems

Recall that a homogeneous linear system has all constant terms 00: a11x1+a12x2+⋯+a1nxn=0  ⋮am1x1+am2x2+⋯+amnxn=0(H)\begin{aligned}a_{11}x_1+a_{12}x_2+\dots+a_{1n}x_n&=0\\&\ \,\vdots\\a_{m1}x_1+a_{m2}x_2+\dots+a_{mn}x_n&=0\end{aligned}\tag{H} The solution sets of such systems are vector spaces, an extremely important class of examples. First a single equation.

Example. The equation 3x+4y−2z=03x+4y-2z=0 has solution set {(x, y, 3x+4y2) ∣ x,y∈R},\Bigl\{\Bigl(x,\ y,\ \tfrac{3x+4y}{2}\Bigr)\ \Bigm|\ x,y\in\mathbb{R}\Bigr\}, since (x,y,z)(x,y,z) is a solution precisely if z=3x+4y2z=\frac{3x+4y}2 with x,yx,y arbitrary. Concrete elements: (0,0,0)(0,0,0), (2,0,3)(2,0,3), (0,1,2)(0,1,2). Triples (0,y,2y)(0,y,2y) and (x,0,32x)(x,0,\tfrac32x) give two lines through the origin (in the yzyz-plane and in the xzxz-plane); the whole solution set is a plane through the origin.

The converse question is also natural: given a plane through the origin in R3\mathbb{R}^3 (drawn as extending in all directions), find a homogeneous equation in x,y,zx,y,z whose solution set it is. We will want to say: such a plane is a vector space inside the larger ambient vector space R3\mathbb{R}^3.

Definition (subspace). A subspace (sub-vector space) VV of Rn\mathbb{R}^n is a subset that is, in its own right, a vector space, i.e.

  1. VV contains the zero vector;
  2. for all v,w∈Vv,w\in V the sum v+wv+w is in VV;
  3. for all v∈Vv\in V and r∈Rr\in\mathbb{R} the multiple rvrv is in VV.

More generally, a subset VV of another vector space WW is a subspace if it satisfies these three conditions.

So the solution set of 3x1+2x2=33x_1+2x_2=3 is not a vector space because (0,0)(0,0) is not a solution: the equation is not homogeneous. This is the only obstruction:

Proposition. The solution set SS of a homogeneous linear system (H) in nn variables and mm equations is a subspace of Rn\mathbb{R}^n.

Proof. Check the three conditions.

  • (0,…,0)∈S(0,\dots,0)\in S: plugging 00 into every xix_i gives 0=00=0 in all mm equations.
  • Let v=(v1,…,vn)v=(v_1,\dots,v_n), w=(w1,…,wn)∈Sw=(w_1,\dots,w_n)\in S. Then v+w=(v1+w1,…,vn+wn)v+w=(v_1+w_1,\dots,v_n+w_n). The ii-th equation reads ai1x1+⋯+ainxn=0a_{i1}x_1+\dots+a_{in}x_n=0; inserting vj+wjv_j+w_j for xjx_j: ai1(v1+w1)+⋯+ain(vn+wn)=(ai1v1+⋯+ainvn)⏟=0+(ai1w1+⋯+ainwn)⏟=0=0+0=0.a_{i1}(v_1+w_1)+\dots+a_{in}(v_n+w_n)=\underbrace{(a_{i1}v_1+\dots+a_{in}v_n)}_{=0}+\underbrace{(a_{i1}w_1+\dots+a_{in}w_n)}_{=0}=0+0=0 . This holds for i=1,…,mi=1,\dots,m, so v+w∈Sv+w\in S.
  • Similarly, for r∈Rr\in\mathbb{R} and v∈Sv\in S: ai1(rv1)+⋯+ain(rvn)=r⋅0=0a_{i1}(rv_1)+\dots+a_{in}(rv_n)=r\cdot0=0, so rv∈Srv\in S. □\square

3. Intersection of subspaces

Lemma. If A,B⊆VA,B\subseteq V are subspaces of a vector space VV, then the intersection A∩B:={v∈V∣v∈A and v∈B}A\cap B:=\{v\in V\mid v\in A\text{ and }v\in B\} is again a subspace of VV. More generally the same holds for any finite number of subspaces: A1∩⋯∩An={v∈V∣v∈A1,…,v∈An}A_1\cap\dots\cap A_n=\{v\in V\mid v\in A_1,\dots,v\in A_n\}.

Proof. We check the conditions of the definition of a subspace. The zero vector 0∈A∩B0\in A\cap B because 0∈A0\in A (AA is a subspace) and 0∈B0\in B. If x,y∈A∩Bx,y\in A\cap B, then x+y∈Ax+y\in A (both lie in AA) and x+y∈Bx+y\in B (both lie in BB), so x+y∈A∩Bx+y\in A\cap B. The scalar multiples are treated in the same way. □\square

(Picture: two planes A,BA,B through the origin in R3\mathbb{R}^3 meet in a line A∩BA\cap B; sums of vectors of that line stay on the line.)

Why this matters. Consider again (H). Each individual homogeneous equation has a solution set Si⊆RnS_i\subseteq\mathbb{R}^n which is a subspace (by the proposition applied to one equation). A vector (r1,…,rn)(r_1,\dots,r_n) solves the whole system precisely if it solves each equation, so the solution set of the system is S1∩S2∩⋯∩Sm.S_1\cap S_2\cap\dots\cap S_m .

Question. For subspaces A,BA,B of VV, how much smaller can A∩BA\cap B be than AA and BB? In R3\mathbb{R}^3 ("3-dimensional") with A,BA,B planes ("2-dimensional"), A∩BA\cap B is a line ("1-dimensional") --- unless A=BA=B, when A∩B=AA\cap B=A is again 2-dimensional. Similarly two lines in R2\mathbb{R}^2 meet in a line if A=BA=B, otherwise only in the origin. In larger ambient spaces (e.g. R4\mathbb{R}^4) there are too many constellations to list; the answer is given by the dimension formula in Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →.

4. Further examples of vector spaces

4.1 Polynomials

A function f:R→Rf:\mathbb{R}\to\mathbb{R} is a polynomial if f(x)=anxn+an−1xn−1+⋯+a1x+a0=∑i=0naixif(x)=a_nx^n+a_{n-1}x^{n-1}+\dots+a_1x+a_0=\sum_{i=0}^na_ix^i with real numbers an,…,a0a_n,\dots,a_0, the coefficients. Its degree is the largest exponent nn with an≠0a_n\ne0. A constant function f(x)=af(x)=a has degree 00 (as a=ax0a=ax^0); a1x+a0a_1x+a_0 is a linear polynomial (degree 11 if a1≠0a_1\ne0); a2x2+a1x+a0a_2x^2+a_1x+a_0 is quadratic (degree 22 if a2≠0a_2\ne0).

For example with f(x)=2x+1f(x)=2x+1 and g(x)=x3−2x2−1g(x)=x^3-2x^2-1 one has (f+g)(x)=x3−2x2+2x(f+g)(x)=x^3-2x^2+2x.

Definition and Lemma. The set R[x]:={f:R→R∣f is a polynomial}\mathbb{R}[x]:=\{f:\mathbb{R}\to\mathbb{R}\mid f\text{ is a polynomial}\} is a vector space with the sum and the scalar multiple (f+g)(x):=f(x)+g(x),(rf)(x):=r⋅f(x).(f+g)(x):=f(x)+g(x),\qquad(rf)(x):=r\cdot f(x). The set R[x]≤d:={∑i=0daixi∣a0,…,ad∈R}\mathbb{R}[x]_{\le d}:=\{\sum_{i=0}^da_ix^i\mid a_0,\dots,a_d\in\mathbb{R}\} of polynomials of degree at most dd is a subspace of R[x]\mathbb{R}[x].

Proof. One must check the eight conditions. The notable point (as often) is that the sum and scalar multiple are again elements of the space. For f(x)=anxn+⋯+a0f(x)=a_nx^n+\dots+a_0 and g(x)=bnxn+⋯+b0g(x)=b_nx^n+\dots+b_0 (pad with zero coefficients to the same length) (f+g)(x)=(an+bn)xn+(an−1+bn−1)xn−1+⋯+(a0+b0)=cnxn+⋯+c0,ci:=ai+bi,(f+g)(x)=(a_n+b_n)x^n+(a_{n-1}+b_{n-1})x^{n-1}+\dots+(a_0+b_0)=c_nx^n+\dots+c_0,\quad c_i:=a_i+b_i, again a polynomial. Likewise rfrf is a polynomial with coefficients raira_i. The remaining conditions are checked in a comparatively uninsightful way and are skipped. For R[x]≤d\mathbb{R}[x]_{\le d}: the zero polynomial has degree at most dd, and sums and scalar multiples of polynomials of degree ≤d\le d have degree ≤d\le d. □\square

Remarks. The product of two polynomials is again a polynomial, but this plays no role for vector spaces. More generally, {f:R→R∣f differentiable}\{f:\mathbb{R}\to\mathbb{R}\mid f\text{ differentiable}\}, {f∣f continuous}\{f\mid f\text{ continuous}\} and {f∣f any function}\{f\mid f\text{ any function}\} are increasingly large vector spaces (the space of differentiable functions is a key player in analysis).

4.2 Direct sums

Definition and Lemma. For vector spaces V,WV,W the direct sum is V⊕W:={(v,w)∣v∈V, w∈W}V\oplus W:=\{(v,w)\mid v\in V,\ w\in W\} with addition (v,w)+(v′,w′):=(v+v′,w+w′)(v,w)+(v',w'):=(v+v',w+w') and scalar multiplication r⋅(v,w):=(rv,rw)r\cdot(v,w):=(rv,rw). These operations make V⊕WV\oplus W a vector space. The same works for finitely many (or even infinitely many) spaces, giving V1⊕⋯⊕VnV_1\oplus\dots\oplus V_n.

Checking the eight axioms for V⊕WV\oplus W reduces to the same axioms for VV and for WW. The zero vector is (0V,0W)(0_V,0_W).

Examples. R2=R⊕R\mathbb{R}^2=\mathbb{R}\oplus\mathbb{R}, and in general Rn=R⊕⋯⊕R⏟n summands\mathbb{R}^n=\underbrace{\mathbb{R}\oplus\dots\oplus\mathbb{R}}_{n\text{ summands}} (clear from the definitions of sum and scalar multiplication in Rn\mathbb{R}^n). Also R2⊕R={((x,y),w)}\mathbb{R}^2\oplus\mathbb{R}=\{((x,y),w)\}, and identifying ((x,y),w)((x,y),w) with the triple (x,y,w)(x,y,w) gives R2⊕R=R3\mathbb{R}^2\oplus\mathbb{R}=\mathbb{R}^3, with the usual operations.

Note that VV sits inside V⊕WV\oplus W via v↦(v,0W)v\mapsto(v,0_W) and WW via w↦(0V,w)w\mapsto(0_V,w), so V⊕WV\oplus W contains both.

4.3 Quotient spaces (a special case)

All examples so far were subspaces of some Rn\mathbb{R}^n; not all vector spaces embed naturally into one. A quotient space illustrates this.

Definition. Let V=R2V=\mathbb{R}^2 and L⊂VL\subset V a line through the origin. Set V/L:={all lines parallel to L}(read "V modulo L").V/L:=\{\text{all lines parallel to }L\}\qquad(\text{read "}V\text{ modulo }L\text{"}). Sum: for L1,L2∈V/LL_1,L_2\in V/L pick any x1∈L1x_1\in L_1, x2∈L2x_2\in L_2 and let L1+L2L_1+L_2 be the unique line through x1+x2x_1+x_2 parallel to LL. Scalar multiple: r⋅L1r\cdot L_1 is the line through rx1r x_1 parallel to LL.

The remarkable point is that the result does not depend on the choices. If x1′x_1' is another point of L1L_1, then x1′−x1∈Lx_1'-x_1\in L, so (x1′+x2)−(x1+x2)=x1′−x1∈L(x_1'+x_2)-(x_1+x_2)=x_1'-x_1\in L: the points x1′+x2x_1'+x_2 and x1+x2x_1+x_2 differ by a vector of LL and so lie on the same line parallel to LL. With this settled, V/LV/L is indeed a vector space (what is its zero vector? the line LL itself, since L+L1=L1L+L_1=L_1). There is no natural way to regard V/LV/L as a subspace of R2\mathbb{R}^2: assigning to L1L_1 the yy-coordinate of its intersection with the yy-axis is ad hoc (why not the xx-axis? and what if LL is the yy-axis?).

5. Linear combinations

From now on VV is a vector space (for example Rn\mathbb{R}^n).

Definition. A linear combination of v1,…,vm∈Vv_1,\dots,v_m\in V is a vector a1v1+⋯+amvm,a1,…,am∈R.a_1v_1+\dots+a_mv_m,\qquad a_1,\dots,a_m\in\mathbb{R}.

Examples.

  • m=1m=1: the linear combinations of vv are the scalar multiples avav.
  • In R3\mathbb{R}^3 let v1=(1,0,0)v_1=(1,0,0), v2=(0,1,0)v_2=(0,1,0). Then (3,2,0)=3(1,0,0)+2(0,1,0)(3,2,0)=3(1,0,0)+2(0,1,0) is a linear combination. But (0,0,1)(0,0,1) is not: a1v1+a2v2=(a1,a2,0)≠(0,0,1)a_1v_1+a_2v_2=(a_1,a_2,0)\ne(0,0,1) for all a1,a2a_1,a_2, since the third components differ. In fact the linear combinations of v1,v2v_1,v_2 are precisely the vectors (x,y,z)(x,y,z) with z=0z=0 (the xyxy-plane).

The xyxy-plane {(x,y,0)}\{(x,y,0)\} is a subspace of R3\mathbb{R}^3 (it contains 00 and is closed under sums and multiples), also because it is the solution space of the homogeneous equation z=0z=0. We will see that for two vectors v1,v2∈R3v_1,v_2\in\mathbb{R}^3 there is always some (indeed infinitely many) ww that is not a linear combination of them.

Lemma. For any v1,…,vm∈Vv_1,\dots,v_m\in V the set L(v1,…,vm):={a1v1+⋯+amvm∣a1,…,am∈R}L(v_1,\dots,v_m):=\{a_1v_1+\dots+a_mv_m\mid a_1,\dots,a_m\in\mathbb{R}\} is a subspace of VV, called the span (or linear hull) of these vectors.

Proof. Write L=L(v1,…,vm)L=L(v_1,\dots,v_m).

  1. 0∈L0\in L: 0v1+⋯+0vm=0(v1+⋯+vm)=00v_1+\dots+0v_m=0(v_1+\dots+v_m)=0 by properties (4) and (8) of a vector space.
  2. Let w,u∈Lw,u\in L: w=∑i=1maiviw=\sum_{i=1}^ma_iv_i and u=∑i=1mbiviu=\sum_{i=1}^mb_iv_i. Then w+u=∑i=1m(ai+bi)vi∈Lw+u=\sum_{i=1}^m(a_i+b_i)v_i\in L.
  3. For w∈Lw\in L and r∈Rr\in\mathbb{R} one checks similarly that rw=∑(rai)vi∈Lrw=\sum(ra_i)v_i\in L. □\square

Example. L((1,0,0),(0,1,0))={(x,y,0)∣x,y∈R}L\bigl((1,0,0),(0,1,0)\bigr)=\{(x,y,0)\mid x,y\in\mathbb{R}\}.

5.1 Sums of subspaces

Definition. For subspaces A,B⊆VA,B\subseteq V the sum is A+B:={v+w∣v∈A, w∈B},A+B:=\{v+w\mid v\in A,\ w\in B\}, and for subspaces A1,…,AnA_1,\dots,A_n: A1+⋯+An:={v1+⋯+vn∣vi∈Ai}A_1+\dots+A_n:=\{v_1+\dots+v_n\mid v_i\in A_i\}.

Lemma. A+BA+B is again a subspace of VV (the proof is very similar to the one for the span and is omitted in the source).

Remarks.

  • L(v1,…,vn)=L(v1)+⋯+L(vn)L(v_1,\dots,v_n)=L(v_1)+\dots+L(v_n): both sets consist exactly of the vectors a1v1+⋯+anvna_1v_1+\dots+a_nv_n.
  • The sum is completely different from the union A∪BA\cup B, which in general is not even a subspace (just a subset). We have A∪B⊆A+BA\cup B\subseteq A+B: indeed A⊆A+BA\subseteq A+B because 0∈B0\in B and any v∈Av\in A is v=v+0∈A+Bv=v+0\in A+B; similarly B⊆A+BB\subseteq A+B. The two sets are distinct unless AA or BB is {0}\{0\}.
  • A+BA+B is also different from the direct sum A⊕BA\oplus B: the sum uses the ambient space VV, while A⊕BA\oplus B is insensitive to A,BA,B lying in VV and does not see how much A,BA,B overlap.

Question. How much bigger than A,BA,B is A+BA+B? Roughly, A+BA+B gets bigger as A∩BA\cap B gets smaller; making this precise requires dimension (see Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →).

5.2 Generating systems

Definition. A collection v1,…,vnv_1,\dots,v_n is a generating system of VV if L(v1,…,vn)=VL(v_1,\dots,v_n)=V, equivalently if every w∈Vw\in V is a linear combination of them. We also say they span VV.

Example. e1=(1,0,…,0)e_1=(1,0,\dots,0), e2=(0,1,0,…,0)e_2=(0,1,0,\dots,0), \dots, en=(0,…,0,1)e_n=(0,\dots,0,1) generate Rn\mathbb{R}^n: each x=(x1,…,xn)x=(x_1,\dots,x_n) equals x1e1+⋯+xnenx_1e_1+\dots+x_ne_n.

Example. e1,e2∈R3e_1,e_2\in\mathbb{R}^3 do not generate R3\mathbb{R}^3: they span only {(x,y,0)}\{(x,y,0)\}; (0,0,1)(0,0,1) is missing.

Example (three vectors that do not generate R3\mathbb{R}^3). Let v1=e1=(1,0,0)v_1=e_1=(1,0,0), v2=(0,1,1)v_2=(0,1,1), v3=(2,1,1)v_3=(2,1,1). A vector w=(x,y,z)w=(x,y,z) is in the span exactly when w=a1v1+a2v2+a3v3w=a_1v_1+a_2v_2+a_3v_3 is solvable. Compare components: a1+2a3=xa2+a3=ya2+a3=z\begin{aligned}a_1+2a_3&=x\\a_2+a_3&=y\\a_2+a_3&=z\end{aligned} a system in the unknowns a1,a2,a3a_1,a_2,a_3 with parameters x,y,zx,y,z. Augmented matrix and elimination (subtract row 2 from row 3): (102x011y011z)→(102x011y000z−y).\left(\begin{array}{ccc|c}1&0&2&x\\0&1&1&y\\0&1&1&z\end{array}\right)\to\left(\begin{array}{ccc|c}1&0&2&x\\0&1&1&y\\0&0&0&z-y\end{array}\right).

  • If z−y=0z-y=0 (i.e. y=zy=z): already reduced; a3a_3 is free, a1=x−2a3a_1=x-2a_3, a2=y−a3a_2=y-a_3. So every w=(x,y,y)w=(x,y,y) is in the span: w=(x−2a)v1+(y−a)v2+av3w=(x-2a)v_1+(y-a)v_2+av_3 for arbitrary a∈Ra\in\mathbb{R}.
  • If z−y≠0z-y\ne0: divide the last row by z−yz-y to get the row (0 0 0∣1)(0\ 0\ 0\mid1): no solution. So w=(x,y,z)w=(x,y,z) with y≠zy\ne z is not in the span.

Hence L(v1,v2,v3)={(x,y,y)}≠R3L(v_1,v_2,v_3)=\{(x,y,y)\}\ne\mathbb{R}^3.

Method (does v1,…,vm∈Rnv_1,\dots,v_m\in\mathbb{R}^n span Rn\mathbb{R}^n?). Form the matrix AA whose ii-th row is viv_i (A=(vij)A=(v_{ij}) if vi=(vi1,…,vin)v_i=(v_{i1},\dots,v_{in})). Bring it to row-echelon form BB by Gaussian elimination. If BB has nn leading ones, then v1,…,vmv_1,\dots,v_m span Rn\mathbb{R}^n; otherwise they do not. (Proved later in the source, via the theory of matrices.)

Corollary. Fewer than nn vectors can never span Rn\mathbb{R}^n (since BB has at most m<nm<n leading ones).

6. Linear independence

For any v1,…,vm∈Vv_1,\dots,v_m\in V, 0⋅v1+⋯+0⋅vm=0⋅(v1+⋯+vm)=0,(T)0\cdot v_1+\dots+0\cdot v_m=0\cdot(v_1+\dots+v_m)=0,\tag{T} by the distributive law and 0v=00v=0. So there is always a "trivial" way to obtain the zero vector. The question is whether there are others.

Definition. v1,…,vmv_1,\dots,v_m are linearly dependent if there are a1,…,am∈Ra_1,\dots,a_m\in\mathbb{R}, at least one non-zero, with a1v1+⋯+amvm=0.a_1v_1+\dots+a_mv_m=0 . Otherwise they are linearly independent: the trivial combination (T) is the only way to get 00.

Examples.

  • e1,e2,e3∈R3e_1,e_2,e_3\in\mathbb{R}^3 are linearly independent: if a1e1+a2e2+a3e3=(0,0,0)a_1e_1+a_2e_2+a_3e_3=(0,0,0), the left side is (a1,0,0)+(0,a2,0)+(0,0,a3)=(a1,a2,a3)(a_1,0,0)+(0,a_2,0)+(0,0,a_3)=(a_1,a_2,a_3), which forces a1=a2=a3=0a_1=a_2=a_3=0. The same argument shows e1,…,en∈Rne_1,\dots,e_n\in\mathbb{R}^n are linearly independent.
  • v1=(1,0,0)v_1=(1,0,0), v2=(0,1,1)v_2=(0,1,1), v3=(2,1,1)v_3=(2,1,1) are not independent: v3=2v1+v2v_3=2v_1+v_2, so 2v1+v2−v3=02v_1+v_2-v_3=0.
  • The polynomials 1+x, 3x+x2, 2+x−x21+x,\ 3x+x^2,\ 2+x-x^2 are linearly independent in R[x]≤2\mathbb{R}[x]_{\le2}. If 0=a1(1+x)+a2(3x+x2)+a3(2+x−x2)=(a1+2a3)+(a1+3a2+a3)x+(a2−a3)x20=a_1(1+x)+a_2(3x+x^2)+a_3(2+x-x^2)=(a_1+2a_3)+(a_1+3a_2+a_3)x+(a_2-a_3)x^2 (the constant polynomial 00), then since this holds for all xx all three coefficients vanish: a1+2a3=0,a1+3a2+a3=0,a2−a3=0.a_1+2a_3=0,\qquad a_1+3a_2+a_3=0,\qquad a_2-a_3=0 . This homogeneous system has only the trivial solution: a1=−2a3a_1=-2a_3, a2=a3a_2=a_3, and then −2a3+3a3+a3=2a3=0-2a_3+3a_3+a_3=2a_3=0, so a1=a2=a3=0a_1=a_2=a_3=0.

Lemma. v1,…,vmv_1,\dots,v_m are linearly dependent exactly if (at least) one of them is a linear combination of the others: vi=a1v1+⋯+ai−1vi−1+ai+1vi+1+⋯+amvm.(R)v_i=a_1v_1+\dots+a_{i-1}v_{i-1}+a_{i+1}v_{i+1}+\dots+a_mv_m.\tag{R}

Proof. If (R) holds, then a1v1+⋯+ai−1vi−1+(−1)vi+ai+1vi+1+⋯+amvm=0a_1v_1+\dots+a_{i-1}v_{i-1}+(-1)v_i+a_{i+1}v_{i+1}+\dots+a_mv_m=0 is a combination with a non-zero coefficient (−1-1), so the vectors are dependent. Conversely, if a1v1+⋯+amvm=0a_1v_1+\dots+a_mv_m=0 with some ai≠0a_i\ne0, subtract aivia_iv_i and divide by aia_i (non-zero, crucially): vi=−a1aiv1−⋯−ai−1aivi−1−ai+1aivi+1−⋯−amaivm,v_i=-\frac{a_1}{a_i}v_1-\dots-\frac{a_{i-1}}{a_i}v_{i-1}-\frac{a_{i+1}}{a_i}v_{i+1}-\dots-\frac{a_m}{a_i}v_m, which is of the form (R). □\square

So a family is independent when there is no redundancy among its members.

Method (are v1,…,vm∈Rnv_1,\dots,v_m\in\mathbb{R}^n independent?). Form the matrix AA with rows v1,…,vmv_1,\dots,v_m and bring it to row-echelon form BB. If BB has mm leading ones, then v1,…,vmv_1,\dots,v_m are linearly independent; otherwise they are dependent. (A proof uses later results on matrices.)

Corollary. More than nn vectors in Rn\mathbb{R}^n are never linearly independent (for m>nm>n, BB has at most nn leading ones).

Remark. This is the same computation as the spanning test; only the target changes: nn leading ones (spanning) versus mm leading ones (independence).

Example. For v1=(1,0,0)v_1=(1,0,0), v2=(0,1,1)v_2=(0,1,1), v3=(2,1,1)v_3=(2,1,1) the matrix with these rows reduces as (100011211)→(100011011)→(100011000).\begin{pmatrix}1&0&0\\0&1&1\\2&1&1\end{pmatrix}\to\begin{pmatrix}1&0&0\\0&1&1\\0&1&1\end{pmatrix}\to\begin{pmatrix}1&0&0\\0&1&1\\0&0&0\end{pmatrix}. Only two leading ones, so the vectors are dependent.

Proposition (unique representation). Let v1,…,vmv_1,\dots,v_m be linearly independent in VV. If a vector vv can be written as a linear combination of them in two ways, v=a1v1+⋯+amvmv=a_1v_1+\dots+a_mv_m and v=b1v1+⋯+bmvmv=b_1v_1+\dots+b_mv_m, then a1=b1,…,am=bma_1=b_1,\dots,a_m=b_m.

Proof. Subtract the equations (using commutativity and distributivity): 0=v−v=(a1−b1)v1+⋯+(am−bm)vm.0=v-v=(a_1-b_1)v_1+\dots+(a_m-b_m)v_m . By linear independence a1−b1=⋯=am−bm=0a_1-b_1=\dots=a_m-b_m=0. □\square

Continue with Bases and DimensionA basis is a linearly independent generating system; all bases of a vector space have the same number of vectors, the dimension, and the dimensions of intersection and sum of two subspaces are linked by dim(A cap B) = dim A + dim B - dim(A+B).Bases and Dimension →, where independence and spanning are combined.

Versione ripasso

Rn\mathbb{R}^n. Vectors x=(x1,…,xn)x=(x_1,\dots,x_n); x+yx+y and rxrx componentwise. Rules: commutativity and associativity of ++, x+0=xx+0=x, distributivity, (rs)x=r(sx)(rs)x=r(sx), 1x=x1x=x, 0x=00x=0.

Vector space = set VV with +:V×V→V+:V\times V\to V and ⋅:R×V→V\cdot:\mathbb{R}\times V\to V satisfying the 8 rules: v+w=w+vv+w=w+v; u+(v+w)=(u+v)+wu+(v+w)=(u+v)+w; a zero vector with 0+v=v0+v=v; r(v+w)=rv+rwr(v+w)=rv+rw; (r+s)v=rv+sv(r+s)v=rv+sv; (rs)v=r(sv)(rs)v=r(sv); 1v=v1v=v; 0v=00v=0. Non-examples: {x1≥0}\{x_1\ge0\} (fails ⋅(−1)\cdot(-1)), solution set of 3x1+2x2=33x_1+2x_2=3 (no zero vector), union of the two axes (fails ++).

Subspace of VV: contains 00; closed under ++; closed under scalar multiples.

  • Solution set of a homogeneous system ∑jaijxj=0\sum_ja_{ij}x_j=0 is a subspace of Rn\mathbb{R}^n (zero is a solution; sums and multiples of solutions are solutions, by distributivity). A non-homogeneous system's solution set misses 00.
  • Intersection A∩BA\cap B (and finite intersections) of subspaces is a subspace. The solution set of a system is S1∩⋯∩SmS_1\cap\dots\cap S_m.
  • Sum A+B={v+w∣v∈A, w∈B}A+B=\{v+w\mid v\in A,\ w\in B\} is a subspace; A∪B⊆A+BA\cup B\subseteq A+B, but the union is in general not a subspace.

Examples of vector spaces.

  • Polynomials R[x]\mathbb{R}[x] with (f+g)(x)=f(x)+g(x)(f+g)(x)=f(x)+g(x), (rf)(x)=rf(x)(rf)(x)=rf(x); R[x]≤d\mathbb{R}[x]_{\le d} is a subspace.
  • Direct sum V⊕W={(v,w)}V\oplus W=\{(v,w)\} with componentwise operations; zero (0V,0W)(0_V,0_W); Rn=R⊕⋯⊕R\mathbb{R}^n=\mathbb{R}\oplus\dots\oplus\mathbb{R}.
  • Quotient R2/L\mathbb{R}^2/L = lines parallel to LL; operations via representatives, well defined because x1′−x1∈Lx_1'-x_1\in L; zero vector is LL.

Linear combinations and span.

  • Linear combination a1v1+⋯+amvma_1v_1+\dots+a_mv_m; L(v1,…,vm)L(v_1,\dots,v_m) = set of all of them = subspace (the spanalso called the linear hull of the vectors); L(v1,…,vn)=L(v1)+⋯+L(vn)L(v_1,\dots,v_n)=L(v_1)+\dots+L(v_n).
  • Generating system: L(v1,…,vn)=VL(v_1,\dots,v_n)=V. e1,…,ene_1,\dots,e_n generate Rn\mathbb{R}^n.
  • Spanning test in Rn\mathbb{R}^n: rows viv_i, row-echelon form BB; span Rn\mathbb{R}^n iff BB has nn leading ones. Fewer than nn vectors never span Rn\mathbb{R}^n.
  • Example: (1,0,0),(0,1,1),(2,1,1)(1,0,0),(0,1,1),(2,1,1) span only {(x,y,y)}\{(x,y,y)\} (last row becomes 0 0 0∣z−y0\,0\,0\mid z-y).

Linear independence. a1v1+⋯+amvm=0a_1v_1+\dots+a_mv_m=0 forces all ai=0a_i=0. Dependent: some non-trivial combination is 00   ⟺  \iff one vector is a combination of the others (divide by a non-zero coefficient).

  • Independence test in Rn\mathbb{R}^n: rows viv_i, echelon form BB; independent iff BB has mm leading ones. More than nn vectors in Rn\mathbb{R}^n are always dependent.
  • Unique representation: with independent viv_i, a given vv has only one expression ∑aivi\sum a_iv_i (subtract two expressions).
  • Examples: e1,…,ene_1,\dots,e_n independent; (1,0,0),(0,1,1),(2,1,1)(1,0,0),(0,1,1),(2,1,1) dependent since v3=2v1+v2v_3=2v_1+v_2; 1+x, 3x+x2, 2+x−x21+x,\ 3x+x^2,\ 2+x-x^2 independent (homogeneous system has only the trivial solution).

Typical mistakes.

  • Checking only that a candidate set contains 00: all three subspace conditions are needed; the union of two subspaces fails closure under ++.
  • Confusing the sum A+BA+B (inside VV) with the direct sum A⊕BA\oplus B (pairs) and with the union A∪BA\cup B.
  • Mixing up the two tests: spanning needs nn leading ones (number of coordinates), independence needs mm leading ones (number of vectors).
  • In the dependence lemma, forgetting that one must divide by a non-zero coefficient aia_i.

Teoria collegata