Linear-Algebra-Done-Right · Unit 2 · Video 1 · Interactive Practice

Definition of a Vector Space: Fⁿ, F^∞ and Function Spaces

IKey Formulas

FormulaNameWhat it says
a(u+v)=au+ava(u + v) = au + av,  (a+b)v=av+bv\ (a + b)v = av + bvDistributive propertiesIn (a+b)v(a + b)v the left ++ adds scalars in F\mathbf{F}; the right ++ is the addition on VV
(x1,x2,… )+(y1,y2,… )=(x1+y1,x2+y2,… )(x_1, x_2, \dots) + (y_1, y_2, \dots) = (x_1 + y_1, x_2 + y_2, \dots),  λ(x1,x2,… )=(λx1,λx2,… )\ \lambda(x_1, x_2, \dots) = (\lambda x_1, \lambda x_2, \dots)Operations on F∞\mathbf{F}^\inftyCoordinate by coordinate; the additive identity is (0,0,0,… )(0, 0, 0, \dots)
(f+g)(x)=f(x)+g(x)(f + g)(x) = f(x) + g(x),  (λf)(x)=λf(x)\ (\lambda f)(x) = \lambda f(x)Operations on FS\mathbf{F}^SPoint by point, for all x∈Sx \in S
0(x)=00(x) = 0,  (−f)(x)=−f(x)\ (-f)(x) = -f(x)Identity and inverse in FS\mathbf{F}^SThe zero function and the negative of ff, for all x∈Sx \in S

Key Insight: A vector space is a set VV with an addition and a scalar multiplication on VV satisfying six properties (commutativity, associativity, additive identity, additive inverse, multiplicative identity, distributive properties) and nothing more, so its vectors may be lists, sequences or functions.

IIVisualization 1 — Testing the Six Properties

A set with two operations is a vector space only if all six properties hold for every choice of vectors and scalars.

💡 A check at chosen values can refute a property but never prove it; a proof must cover all u,v,w∈Vu, v, w \in V and all a,b∈Fa, b \in \mathbf{F}.

IIIVisualization 2 — Pointwise Operations in R[0,1]\mathbf{R}^{[0,1]}

In R[0,1]\mathbf{R}^{[0,1]} the vectors are functions, and sums and scalar multiples are computed one point xx at a time.

IVVisualization 3 — Lists as Functions

A list x∈Fnx \in \mathbf{F}^n is the function k↦xkk \mapsto x_k on {1,…,n}\{1, \dots, n\}, so coordinate addition is pointwise addition.

VQuiz Questions

Problem 1 · A Coordinate in R^∞

Given: x=(1,2,3,… )x = (1, 2, 3, \dots) with xk=kx_k = k, and y=(1,−1,1,−1,… )y = (1, -1, 1, -1, \dots) with yk=(−1)k+1y_k = (-1)^{k+1}, both in R∞\mathbf{R}^\infty — find the fourth coordinate of 2x+3y2x + 3y.

✅ Correct! Operations on R∞\mathbf{R}^\infty act coordinate by coordinate: 2x4+3y4=2⋅4+3⋅(−1)=52x_4 + 3y_4 = 2 \cdot 4 + 3 \cdot (-1) = 5.
❌ Check the sign of y4y_4. y4=(−1)4+1=(−1)5=−1y_4 = (-1)^{4+1} = (-1)^5 = -1, not 11.
❌ That is the third coordinate. 2x3+3y3=6+3=92x_3 + 3y_3 = 6 + 3 = 9; the fourth uses x4=4x_4 = 4 and y4=−1y_4 = -1.
❌ The scalars do not combine like that. 15=(2+3)(4−1)15 = (2 + 3)(4 - 1), but the coordinate is 2x4+3y42x_4 + 3y_4: each scalar multiplies its own sequence.
❌ Not quite. Compute 2x42x_4 and 3y43y_4 separately, then add.
Show solution

Scalar multiplication and addition in R∞\mathbf{R}^\infty work coordinate by coordinate, so the kthk^\text{th} coordinate of 2x+3y2x + 3y is 2xk+3yk2x_k + 3y_k.

x4=4,y4=(−1)5=−1x_4 = 4, \qquad y_4 = (-1)^{5} = -1 2x4+3y4=2⋅4+3⋅(−1)=8−3=52x_4 + 3y_4 = 2 \cdot 4 + 3 \cdot (-1) = 8 - 3 = 5

Indeed 2x+3y=(5,1,9,5,13,… )2x + 3y = (5, 1, 9, 5, 13, \dots), whose fourth coordinate is 5\mathbf{5}.

Problem 2 · A Hidden Failure

Given: V=R2V = \mathbf{R}^2 with the usual addition but the scalar multiplication λ(x1,x2)=(λx1,x2)\lambda(x_1, x_2) = (\lambda x_1, x_2) — which property fails?

✅ Correct! (a+b)v=((a+b)x1,x2)(a + b)v = ((a + b)x_1, x_2) but av+bv=((a+b)x1,2x2)av + bv = ((a + b)x_1, 2x_2): the second coordinate is counted twice.
❌ That one holds. 1(x1,x2)=(1⋅x1,x2)=(x1,x2)1(x_1, x_2) = (1 \cdot x_1, x_2) = (x_1, x_2).
❌ That one holds. Both sides equal (abx1,x2)(abx_1, x_2), since the second coordinate is never touched.
❌ That one holds. a(u+v)=(a(u1+v1),u2+v2)a(u + v) = (a(u_1 + v_1), u_2 + v_2) and au+av=(au1+av1,u2+v2)au + av = (au_1 + av_1, u_2 + v_2) agree.
❌ Not quite. Compute both sides of each property in the second coordinate.
Show solution

Addition is the usual one, so commutativity, associativity of addition, the additive identity (0,0)(0, 0) and additive inverses all hold. Check the properties that involve scalars, with u=(u1,u2)u = (u_1, u_2) and v=(x1,x2)v = (x_1, x_2):

  • 1v=(x1,x2)=v1v = (x_1, x_2) = v ✓
  • (ab)v=(abx1,x2)(ab)v = (abx_1, x_2) and a(bv)=a(bx1,x2)=(abx1,x2)a(bv) = a(bx_1, x_2) = (abx_1, x_2) ✓
  • a(u+v)=(a(u1+x1),u2+x2)=(au1,u2)+(ax1,x2)=au+ava(u + v) = (a(u_1 + x_1), u_2 + x_2) = (au_1, u_2) + (ax_1, x_2) = au + av ✓
  • (a+b)v=((a+b)x1,x2)(a + b)v = ((a + b)x_1, x_2), but av+bv=(ax1,x2)+(bx1,x2)=((a+b)x1,2x2)av + bv = (ax_1, x_2) + (bx_1, x_2) = ((a + b)x_1, 2x_2) ✗

Counterexample: a=b=1a = b = 1, v=(0,1)v = (0, 1) gives 2v=(0,1)2v = (0, 1) but v+v=(0,2)v + v = (0, 2). So VV is not a vector space, and only the second distributive property fails.

Problem 3 · Functions on a Three-Point Set

Given: S={1,2,3}S = \{1, 2, 3\} and f,g∈RSf, g \in \mathbf{R}^S with f(k)=k2−2f(k) = k^2 - 2 and g(k)=3−kg(k) = 3 - k — find the values of h=2f+(−1)gh = 2f + (-1)g and the additive inverse of ff.

What is (h(1),h(2),h(3))(h(1), h(2), h(3))?

Which function is −f-f?

✅ Correct! h=(−4,3,14)h = (-4, 3, 14) point by point, and f(k)+(2−k2)=0f(k) + (2 - k^2) = 0 at every k∈Sk \in S, so −f-f is k↦2−k2k \mapsto 2 - k^2.
❌ That is f−gf - g. The scalar 22 multiplies every value of ff: 2f=(−2,4,14)2f = (-2, 4, 14).
❌ That is 2f+g2f + g. The scalar −1-1 turns g=(2,1,0)g = (2, 1, 0) into (−2,−1,0)(-2, -1, 0).
❌ That is 2(f−g)2(f - g). Only ff is doubled; gg is multiplied by −1-1.
❌ That is a multiplicative inverse. The additive inverse must give f(k)+h(k)=0f(k) + h(k) = 0; at k=1k = 1, −1+(−1)=−2≠0-1 + (-1) = -2 \ne 0.
❌ Check the constant term. (k2−2)+(−k2−2)=−4(k^2 - 2) + (-k^2 - 2) = -4, not 00: negate both terms.
❌ That is the additive identity. f+0=ff + 0 = f, and ff is not the zero function, since f(1)=−1f(1) = -1; the inverse must give f+(−f)=0f + (-f) = 0.
❌ Check hh. Evaluate 2f(k)−g(k)2f(k) - g(k) at k=1,2,3k = 1, 2, 3.
❌ Check −f-f. It is defined by (−f)(k)=−f(k)(-f)(k) = -f(k).
Show solution

Tabulate: f=(f(1),f(2),f(3))=(−1,2,7)f = (f(1), f(2), f(3)) = (-1, 2, 7) and g=(2,1,0)g = (2, 1, 0). The operations are pointwise, h(k)=2f(k)+(−1)g(k)h(k) = 2f(k) + (-1)g(k):

h(1)=2(−1)−2=−4,h(2)=2(2)−1=3,h(3)=2(7)−0=14h(1) = 2(-1) - 2 = -4, \quad h(2) = 2(2) - 1 = 3, \quad h(3) = 2(7) - 0 = 14

In formula form h(k)=2(k2−2)−(3−k)=2k2+k−7h(k) = 2(k^2 - 2) - (3 - k) = 2k^2 + k - 7, which gives the same three values.

The additive inverse is defined by (−f)(k)=−f(k)=−(k2−2)=2−k2(-f)(k) = -f(k) = -(k^2 - 2) = 2 - k^2. Check: (f+(−f))(k)=(k2−2)+(2−k2)=0=0(k)(f + (-f))(k) = (k^2 - 2) + (2 - k^2) = 0 = 0(k) for every k∈Sk \in S, so f+(−f)f + (-f) is the zero function.

Problem 4 · A Vector Space of Positive Numbers

Given: V=(0,∞)V = (0, \infty) with addition u⊕v=uvu \oplus v = uv and scalar multiplication λ⊙v=vλ\lambda \odot v = v^\lambda for λ∈R\lambda \in \mathbf{R}; with these operations VV is a real vector space — find its additive identity and the additive inverse of 55.

What is the additive identity of VV?

What is the additive inverse of 55?

✅ Correct! v⊕1=v⋅1=vv \oplus 1 = v \cdot 1 = v, so the zero vector of VV is the number 11, and 5⊕15=15 \oplus \tfrac{1}{5} = 1.
❌ 00 is not in V=(0,∞)V = (0, \infty). The zero vector is whatever element z∈Vz \in V satisfies v⊕z=vz=vv \oplus z = vz = v.
❌ The zero vector need not be the number 00. Solve v⊕z=vv \oplus z = v, that is vz=vvz = v, inside VV.
❌ Test it. v⊕e=ev≠vv \oplus e = ev \ne v; for instance 2⊕e=2e2 \oplus e = 2e. The zero vector zz must satisfy v⊕z=vz=vv \oplus z = vz = v.
❌ 00 is not in V=(0,∞)V = (0, \infty). The inverse ww must satisfy 5⊕w=5w=15 \oplus w = 5w = 1, the zero vector of VV.
❌ −5-5 is not in VV. Also 5⊕(−5)=−255 \oplus (-5) = -25, which is not the additive identity.
❌ That is the additive identity. 5⊕1=55 \oplus 1 = 5; the inverse ww must give 5⊕w=15 \oplus w = 1.
❌ Check the identity. Solve vz=vvz = v for zz.
❌ Check the inverse. Solve 5⊕w=5w=15 \oplus w = 5w = 1.
Show solution

Identity. We need z∈Vz \in V with v⊕z=vv \oplus z = v for all v∈Vv \in V, that is vz=vvz = v. Dividing by v>0v > 0 gives z=1∈Vz = 1 \in V.

Inverse. We need w∈Vw \in V with 5⊕w=15 \oplus w = 1 (the zero vector of VV), that is 5w=15w = 1, so w=15∈Vw = \tfrac{1}{5} \in V. In general the additive inverse of vv is 1v\tfrac{1}{v}.

The other properties are laws of exponents: uv=vuuv = vu, (uv)w=u(vw)(uv)w = u(vw), (vb)a=vab\big(v^b\big)^a = v^{ab}, v1=vv^1 = v, (uv)a=uava(uv)^a = u^a v^a and va+b=vavbv^{a + b} = v^a v^b. For instance 2⊙(3⊕4)=122=144=9⋅16=(2⊙3)⊕(2⊙4)2 \odot (3 \oplus 4) = 12^2 = 144 = 9 \cdot 16 = (2 \odot 3) \oplus (2 \odot 4).

Solved: 0 / 4