Jump to content

Linear Algebra/Definition and Examples of Vector Spaces/Solutions

From Wikibooks, open books for an open world

Solutions

[edit | edit source]
Problem 1

Name the zero vector for each of these vector spaces.

  1. The space of degree three polynomials under the natural operations
  2. The space of 2×4 matrices
  3. The space {f:[0,1]→ℝ|f is continuous}
  4. The space of real-valued functions of one natural number variable
Answer
  1. 0+0x+0x2+0x3
  2. (00000000)
  3. The constant function f(x)=0
  4. The constant function f(n)=0
This exercise is recommended for all readers.
Problem 2

Find the additive inverse, in the vector space, of the vector.

  1. In 𝒫3, the vector −3−2x+x2.
  2. In the space 2×2,
    (1−103).
  3. In {aex+be−x|a,b∈ℝ}, the space of functions of the real variable x under the natural operations, the vector 3ex−2e−x.
Answer
  1. 3+2x−x2
  2. (−1+10−3)
  3. −3ex+2e−x
This exercise is recommended for all readers.
Problem 3

Show that each of these is a vector space.

  1. The set of linear polynomials 𝒫1={a0+a1x|a0,a1∈ℝ} under the usual polynomial addition and scalar multiplication operations.
  2. The set of 2×2 matrices with real entries under the usual matrix operations.
  3. The set of three-component row vectors with their usual operations.
  4. The set
    L={(xyzw)∈ℝ4|x+y−z+w=0}
    under the operations inherited from ℝ4.
Answer

Most of the conditions are easy to check; use Example 1.3 as a guide. Here are some comments.

  1. This is just like Example 1.3; the zero element is 0+0x.
  2. The zero element of this space is the 2×2 matrix of zeroes.
  3. The zero element is the vector of zeroes.
  4. Closure of addition involves noting that the sum
    (x1y1z1w1)+(x2y2z2w2)=(x1+x2y1+y2z1+z2w1+w2)
    is in L because (x1+x2)+(y1+y2)−(z1+z2)+(w1+w2)=(x1+y1−z1+w1)+(x2+y2−z2+w2)=0+0. Closure of scalar multiplication is similar. Note that the zero element, the vector of zeroes, is in L.
This exercise is recommended for all readers.
Problem 4

Show that each of these is not a vector space. (Hint. Start by listing two members of each set.)

  1. Under the operations inherited from ℝ3, this set
    {(xyz)∈ℝ3|x+y+z=1}
  2. Under the operations inherited from ℝ3, this set
    {(xyz)∈ℝ3|x2+y2+z2=1}
  3. Under the usual matrix operations,
    {(a1bc)|a,b,c∈ℝ}
  4. Under the usual polynomial operations,
    {a0+a1x+a2x2|a0,a1,a2∈ℝ+}
    where ℝ+ is the set of reals greater than zero
  5. Under the inherited operations,
    {(xy)∈ℝ2|x+3y=4 and 2x−y=3 and 6x+4y=10}
Answer

In each item the set is called Q. For some items, there are other correct ways to show that Q is not a vector space.

  1. It is not closed under addition; it fails to meet condition 1.
    (100),(010)∈Q(110)∉Q
  2. It is not closed under addition.
    (100),(010)∈Q(110)∉Q
  3. It is not closed under addition.
    (0100),(1100)∈Q(1200)∉Q
  4. It is not closed under scalar multiplication.
    1+1x+1x2∈Q−1⋅(1+1x+1x2)∉Q
  5. It is empty, violating condition 4.
Problem 5

Define addition and scalar multiplication operations to make the complex numbers a vector space over ℝ.

Answer

The usual operations (v0+v1i)+(w0+w1i)=(v0+w0)+(v1+w1)i and r(v0+v1i)=(rv0)+(rv1)i suffice. The check is easy.

This exercise is recommended for all readers.
Problem 6

Is the set of rational numbers a vector space over ℝ under the usual addition and scalar multiplication operations?

Answer

No, it is not closed under scalar multiplication since, e.g., π⋅1 is not a rational number.

Problem 7

Show that the set of linear combinations of the variables x,y,z is a vector space under the natural addition and scalar multiplication operations.

Answer

The natural operations are (v1x+v2y+v3z)+(w1x+w2y+w3z)=(v1+w1)x+(v2+w2)y+(v3+w3)z and r⋅(v1x+v2y+v3z)=(rv1)x+(rv2)y+(rv3)z. The check that this is a vector space is easy; use Example 1.3 as a guide.

Problem 8

Prove that this is not a vector space: the set of two-tall column vectors with real entries subject to these operations.

(x1y1)+(x2y2)=(x1−x2y1−y2)r⋅(xy)=(rxry)
Answer

The "+" operation is not commutative (that is, condition 2 is not met); producing two members of the set witnessing this assertion is easy.

Problem 9

Prove or disprove that ℝ3 is a vector space under these operations.

  1. (x1y1z1)+(x2y2z2)=(000)andr(xyz)=(rxryrz)
  2. (x1y1z1)+(x2y2z2)=(000)andr(xyz)=(000)
Answer
  1. It is not a vector space.
    (1+1)⋅(100)≠(100)+(100)
  2. It is not a vector space.
    1⋅(100)≠(100)
This exercise is recommended for all readers.
Problem 10

For each, decide if it is a vector space; the intended operations are the natural ones.

  1. The diagonal 2×2 matrices
    {(a00b)|a,b∈ℝ}
  2. This set of 2×2 matrices
    {(xx+yx+yy)|x,y∈ℝ}
  3. This set
    {(xyzw)∈ℝ4|x+y+z+w=1}
  4. The set of functions {f:ℝ→ℝ|df/dx+2f=0}
  5. The set of functions {f:ℝ→ℝ|df/dx+2f=1}
Answer

For each "yes" answer, you must give a check of all the conditions given in the definition of a vector space. For each "no" answer, give a specific example of the failure of one of the conditions.

  1. Yes.
  2. Yes.
  3. No, it is not closed under addition. The vector of all 1/4's, when added to itself, makes a nonmember.
  4. Yes.
  5. No, f(x)=e−2x+(1/2) is in the set but 2⋅f is not (that is, condition 6 fails).
This exercise is recommended for all readers.
Problem 11

Prove or disprove that this is a vector space: the real-valued functions f of one real variable such that f(7)=0.

Answer

It is a vector space. Most conditions of the definition of vector space are routine; we here check only closure. For addition, (f1+f2)(7)=f1(7)+f2(7)=0+0=0. For scalar multiplication, (r⋅f)(7)=rf(7)=r0=0.

This exercise is recommended for all readers.
Problem 12

Show that the set ℝ+ of positive reals is a vector space when "x+y" is interpreted to mean the product of x and y (so that 2+3 is 6), and "r⋅x" is interpreted as the r-th power of x.

Answer

We check Definition 1.1.

First, closure under "+" holds because the product of two positive reals is a positive real. The second condition is satisfied because real multiplication commutes. Similarly, as real multiplication associates, the third checks. For the fourth condition, observe that multiplying a number by 1∈ℝ+ won't change the number. Fifth, any positive real has a reciprocal that is a positive real.

The sixth, closure under "⋅", holds because any power of a positive real is a positive real. The seventh condition is just the rule that vr+s equals the product of vr and vs. The eight condition says that (vw)r=vrwr. The ninth condition asserts that (vr)s=vrs. The final condition says that v1=v.

Problem 13

Is {(x,y)|x,y∈ℝ} a vector space under these operations?

  1. (x1,y1)+(x2,y2)=(x1+x2,y1+y2) and r⋅(x,y)=(rx,y)
  2. (x1,y1)+(x2,y2)=(x1+x2,y1+y2) and r⋅(x,y)=(rx,0)
Answer
  1. No: 1⋅(0,1)+1⋅(0,1)≠(1+1)⋅(0,1).
  2. No; the same calculation as the prior answer shows a condition in the definition of a vector space that is violated. Another example of a violation of the conditions for a vector space is that 1⋅(0,1)≠(0,1).
Problem 14

Prove or disprove that this is a vector space: the set of polynomials of degree greater than or equal to two, along with the zero polynomial.

Answer

It is not a vector space since it is not closed under addition, as (x2)+(1+x−x2) is not in the set.

Problem 15

At this point "the same" is only an intuition, but nonetheless for each vector space identify the k for which the space is "the same" as ℝk.

  1. The 2×3 matrices under the usual operations
  2. The n×m matrices (under their usual operations)
  3. This set of 2×2 matrices
    {(a0bc)|a,b,c∈ℝ}
  4. This set of 2×2 matrices
    {(a0bc)|a+b+c=0}
Answer
  1. 6
  2. nm
  3. 3
  4. To see that the answer is 2, rewrite it as
    {(a0b−a−b)|a,b∈ℝ}
    so that there are two parameters.
This exercise is recommended for all readers.
Problem 16

Using +→ to represent vector addition and ⋅→ for scalar multiplication, restate the definition of vector space.

Answer

A vector space (over ℝ) consists of a set V along with two operations "+→" and "⋅→" subject to these conditions. Where v→,w→∈V,

  1. their vector sum v→+→w→ is an element of V. If u→,v→,w→∈V then
  2. v→+→w→=w→+→v→ and
  3. (v→+→w→)+→u→=v→+→(w→+→u→).
  4. There is a zero vector 0→∈V such that v→+→0→=v→ for all v→∈V.
  5. Each v→∈V has an additive inverse w→∈V such that w→+→v→=0→. If r,s are scalars, that is, members of ℝ), and v→,w→∈V then
  6. each scalar multiple r⋅v→ is in V. If r,s∈ℝ and v→,w→∈V then
  7. (r+s)⋅v→=r⋅v→+→s⋅v→, and
  8. r⋅→(v→+w→)=r⋅→v→+r⋅→w→, and
  9. (rs)⋅→v→=r⋅→(s⋅→v→), and
  10. 1⋅→v→=v→.
This exercise is recommended for all readers.
Problem 17

Prove these.

  1. Any vector is the additive inverse of the additive inverse of itself.
  2. Vector addition left-cancels: if v→,s→,t→∈V then v→+s→=v→+t→ implies that s→=t→.
Answer
  1. Let V be a vector space, assume that v→∈V, and assume that w→∈V is the additive inverse of v→ so that w→+v→=0→. Because addition is commutative, 0→=w→+v→=v→+w→, so therefore v→ is also the additive inverse of w→.
  2. Let V be a vector space and suppose v→,s→,t→∈V. The additive inverse of v→ is −v→ so v→+s→=v→+t→ gives that −v→+v→+s→=−v→+v→+t→, which says that 0→+s→=0→+t→ and so s→=t→.
Problem 18

The definition of vector spaces does not explicitly say that 0→+v→=v→ (it instead says that v→+0→=v→). Show that it must nonetheless hold in any vector space.

Answer

Addition is commutative, so in any vector space, for any vector v→ we have that v→=v→+0→=0→+v→.

This exercise is recommended for all readers.
Problem 19

Prove or disprove that this is a vector space: the set of all matrices, under the usual operations.

Answer

It is not a vector space since addition of two matrices of unequal sizes is not defined, and thus the set fails to satisfy the closure condition.

Problem 20

In a vector space every element has an additive inverse. Can some elements have two or more?

Answer

Each element of a vector space has one and only one additive inverse.

For, let V be a vector space and suppose that v→∈V. If w→1,w→2∈V are both additive inverses of v→ then consider w→1+v→+w→2. On the one hand, we have that it equals w→1+(v→+w→2)=w→1+0→=w→1. On the other hand we have that it equals (w→1+v→)+w→2=0→+w→2=w→2. Therefore, w→1=w→2.

Problem 21
  1. Prove that every point, line, or plane thru the origin in ℝ3 is a vector space under the inherited operations.
  2. What if it doesn't contain the origin?
Answer
  1. Every such set has the form {r⋅v→+s⋅w→|r,s∈ℝ} where either or both of v→,w→ may be 0→. With the inherited operations, closure of addition (r1v→+s1w→)+(r2v→+s2w→)=(r1+r2)v→+(s1+s2)w→ and scalar multiplication c(rv→+sw→)=(cr)v→+(cs)w→ are easy. The other conditions are also routine.
  2. No such set can be a vector space under the inherited operations because it does not have a zero element.
This exercise is recommended for all readers.
Problem 22

Using the idea of a vector space we can easily reprove that the solution set of a homogeneous linear system has either one element or infinitely many elements. Assume that v→∈V is not 0→.

  1. Prove that r⋅v→=0→ if and only if r=0.
  2. Prove that r1⋅v→=r2⋅v→ if and only if r1=r2.
  3. Prove that any nontrivial vector space is infinite.
  4. Use the fact that a nonempty solution set of a homogeneous linear system is a vector space to draw the conclusion.
Answer

Assume that v→∈V is not 0→.

  1. One direction of the if and only if is clear: if r=0 then r⋅v→=0→. For the other way, let r be a nonzero scalar. If rv→=0→ then 1⋅v→=(r/r)⋅v→=(1/r)⋅rv→=(1/r)⋅0→ shows that v→=0→, contrary to the assumption.
  2. Where r1,r2 are scalars, r1v→=r2v→ holds if and only if (r1−r2)v→=0→. By the prior item, then r1−r2=0.
  3. A nontrivial space has a vector v→≠0→. Consider the set {k⋅v→|k∈ℝ}. By the prior item this set is infinite.
  4. The solution set is either trivial, or nontrivial. In the second case, it is infinite.
Problem 23

Is this a vector space under the natural operations: the real-valued functions of one real variable that are differentiable?

Answer

Yes. A theorem of first semester calculus says that a sum of differentiable functions is differentiable and that (f+g)′=f′+g′, and that a multiple of a differentiable function is differentiable and that (r⋅f)′=rf′.

Problem 24

A vector space over the complex numbers ℂ has the same definition as a vector space over the reals except that scalars are drawn from ℂ instead of from ℝ. Show that each of these is a vector space over the complex numbers. (Recall how complex numbers add and multiply: (a0+a1i)+(b0+b1i)=(a0+b0)+(a1+b1)i and (a0+a1i)(b0+b1i)=(a0b0−a1b1)+(a0b1+a1b0)i.)

  1. The set of degree two polynomials with complex coefficients
  2. This set
    {(0ab0)|a,b∈ℂ and a+b=0+0i}
Answer

The check is routine. Note that "1" is 1+0i and the zero elements are these.

  1. (0+0i)+(0+0i)x+(0+0i)x2
  2. (0+0i0+0i0+0i0+0i)
Problem 25

Name a property shared by all of the ℝn's but not listed as a requirement for a vector space.

Answer

Notably absent from the definition of a vector space is a distance measure.

This exercise is recommended for all readers.
Problem 26
  1. Prove that a sum of four vectors v→1,…,v→4∈V can be associated in any way without changing the result.
    ((v→1+v→2)+v→3)+v→4=(v→1+(v→2+v→3))+v→4=(v→1+v→2)+(v→3+v→4)=v→1+((v→2+v→3)+v→4)=v→1+(v→2+(v→3+v→4))
    This allows us to simply write "v→1+v→2+v→3+v→4" without ambiguity.
  2. Prove that any two ways of associating a sum of any number of vectors give the same sum. (Hint. Use induction on the number of vectors.)
Answer
  1. A small rearrangement does the trick.
    (v→1+(v→2+v→3))+v→4=((v→1+v→2)+v→3)+v→4=(v→1+v→2)+(v→3+v→4)=v→1+(v→2+(v→3+v→4))=v→1+((v→2+v→3)+v→4)
    Each equality above follows from the associativity of three vectors that is given as a condition in the definition of a vector space. For instance, the second "=" applies the rule (w→1+w→2)+w→3=w→1+(w→2+w→3) by taking w→1 to be v→1+v→2, taking w→2 to be v→3, and taking w→3 to be v→4.
  2. The base case for induction is the three vector case. This case v→1+(v→2+v→3)=(v→1+v→2)+v→3 is required of any triple of vectors by the definition of a vector space. For the inductive step, assume that any two sums of three vectors, any two sums of four vectors, ..., any two sums of k vectors are equal no matter how the sums are parenthesized. We will show that any sum of k+1 vectors equals this one ((⋯((v→1+v→2)+v→3)+⋯)+v→k)+v→k+1. Any parenthesized sum has an outermost "+". Assume that it lies between v→m and v→m+1 so the sum looks like this.
    (⋯(v→1+(⋯+v→m))⋯)+(⋯(v→m+1+(⋯+v→k+1))⋯)
    The second half involves fewer than k+1 additions, so by the inductive hypothesis we can re-parenthesize it so that it reads left to right from the inside out, and in particular, so that its outermost "+" occurs right before v→k+1.
    =(⋯(v→1+(⋯+v→m))⋯)+(⋯(v→m+1+(⋯+v→k)⋯)+v→k+1)
    Apply the associativity of the sum of three things
    =((⋯(v→1+(⋯+v→m)⋯)+(⋯(v→m+1+(⋯v→k))⋯)+v→k+1
    and finish by applying the inductive hypothesis inside these outermost parenthesis.
Problem 27

For any vector space, a subset that is itself a vector space under the inherited operations (e.g., a plane through the origin inside of ℝ3) is a subspace.

  1. Show that {a0+a1x+a2x2|a0+a1+a2=0} is a subspace of the vector space of degree two polynomials.
  2. Show that this is a subspace of the 2×2 matrices.
    {(abc0)|a+b=0}
  3. Show that a nonempty subset S of a real vector space is a subspace if and only if it is closed under linear combinations of pairs of vectors: whenever c1,c2∈ℝ and s→1,s→2∈S then the combination c1v→1+c2v→2 is in S.
Answer
  1. We outline the check of the conditions from Definition 1.1. Additive closure holds because if a0+a1+a2=0 and b0+b1+b2=0 then
    (a0+a1x+a2x2)+(b0+b1x+b2x2)=(a0+b0)+(a1+b1)x+(a2+b2)x2
    is in the set since (a0+b0)+(a1+b1)+(a2+b2)=(a0+a1+a2)+(b0+b1+b2) is zero. The second through fifth conditions are easy. Closure under scalar multiplication holds because if a0+a1+a2=0 then
    r⋅(a0+a1x+a2x2)=(ra0)+(ra1)x+(ra2)x2
    is in the set as ra0+ra1+ra2=r(a0+a1+a2) is zero. The remaining conditions here are also easy.
  2. This is similar to the prior answer.
  3. Call the vector space V. We have two implications: left to right, if S is a subspace then it is closed under linear combinations of pairs of vectors and, right to left, if a nonempty subset is closed under linear combinations of pairs of vectors then it is a subspace. The left to right implication is easy; we here sketch the other one by assuming S is nonempty and closed, and checking the conditions of Definition 1.1. First, to show closure under addition, if s→1,s→2∈S then s→1+s→2∈S as s→1+s→2=1⋅s→1+1⋅s→2. Second, for any s→1,s→2∈S, because addition is inherited from V, the sum s→1+s→2 in S equals the sum s→1+s→2 in V and that equals the sum s→2+s→1 in V and that in turn equals the sum s→2+s→1 in S. The argument for the third condition is similar to that for the second. For the fourth, suppose that s→ is in the nonempty set S and note that 0⋅s→=0→∈S; showing that the 0→ of V acts under the inherited operations as the additive identity of S is easy. The fifth condition is satisfied because for any s→∈S closure under linear combinations shows that the vector 0⋅0→+(−1)⋅s→ is in S; showing that it is the additive inverse of s→ under the inherited operations is routine. The proofs for the remaining conditions are similar.