CalcPath
ProgressProblem setsFeedback
← Question sheet

Linear Algebra · Solutions

Vector Spaces

12 questions · about 107 minutes

Work this sheet on paper, showing every step — the method is what is being tested, and the solutions are written so you can check your route rather than just your answer. Name every result you use (“by the subspace criterion”, “by the counting corollary”, “by the Rank Theorem”) and check its hypotheses; a dimension count only becomes an argument once you have said which theorem turns it into one. No calculator is needed anywhere — every number is a small integer or fraction. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.

  1. 1.Computation

    Let V=R2 as a set, but with the operations

    (x1​,y1​)⊕(x2​,y2​)=(x1​+x2​, y1​+y2​+1),c⊙(x,y)=(cx, cy+c−1).

    It is a fact that V is a vector space over R with these operations.

    1. (a)Find the zero vector of V and the additive inverse of (x,y), working from what the axioms demand. Explain why the answers are not (0,0) and (−x,−y).
    2. (b)Verify axioms 5, 6 and 8 for these operations. (The remaining axioms also hold; you need not check them.)
    3. (c)Find a bijection T:V→R2 with T(u⊕v)=T(u)+T(v) and T(c⊙v)=cT(v), where the right-hand sides use the ordinary operations. Explain why this accounts for all eight axioms at once, and use it to write down a basis of V and dimV.

    Solution

    (a) Solve for the identity. The zero vector is whatever (a,b) satisfies (x,y)⊕(a,b)=(x,y) for every (x,y). That reads (x+a, y+b+1)=(x,y), so a=0 and b=−1:

    0V​=(0,−1).

    The additive inverse of (x,y) is the (a,b) with (x,y)⊕(a,b)=0V​, i.e. (x+a, y+b+1)=(0,−1), so a=−x and b=−y−2:

    −(x,y)=(−x, −y−2).

    Check: (x,y)⊕(−x,−y−2)=(0, y−y−2+1)=(0,−1) ✓.

    The answers are not the familiar ones because the axioms define 0 by its behaviour under ⊕, not by its appearance. The pair (0,0) is an ordinary nonzero vector of V: indeed (x,y)⊕(0,0)=(x,y+1)=(x,y), so it is not an identity. By the elementary-consequences proposition the zero vector is unique, so (0,−1) is the only candidate.

    (b) Axioms 5, 6, 8. Axiom 5: 1⊙(x,y)=(x, y+1−1)=(x,y) ✓.

    Axiom 6: c⊙(d⊙(x,y))=c⊙(dx, dy+d−1)=(cdx, c(dy+d−1)+c−1)=(cdx, cdy+cd−1), and (cd)⊙(x,y)=(cdx, cdy+cd−1). Equal ✓.

    Axiom 8: the left side is (c+d)⊙(x,y)=((c+d)x, (c+d)y+c+d−1). The right side is

    (cx, cy+c−1)⊕(dx, dy+d−1)=(cx+dx, (cy+c−1)+(dy+d−1)+1)=((c+d)x, (c+d)y+c+d−1).

    Equal ✓.

    (c) The disguise. Take T(x,y)=(x, y+1), a bijection with inverse (x,y)↦(x, y−1). Then

    T((x1​,y1​)⊕(x2​,y2​))=T(x1​+x2​, y1​+y2​+1)=(x1​+x2​, y1​+y2​+2)=(x1​,y1​+1)+(x2​,y2​+1)=T(x1​,y1​)+T(x2​,y2​),

    and T(c⊙(x,y))=T(cx, cy+c−1)=(cx, cy+c)=c(x, y+1)=cT(x,y).

    So T converts ⊕ into + and ⊙ into ordinary scaling. Every axiom is an identity between expressions built from the two operations; applying the bijection T to both sides turns it into the same identity in R2 with the usual operations, where it is known to hold, and applying T−1 brings it back. That is why all eight hold — exactly as ln does the work for the positive reals under multiplication. Consistency check: T(0,−1)=(0,0), the zero of R2.

    Because T preserves linear combinations, it carries a basis of V to a basis of R2 and back. The preimages of e1​ and e2​ are T−1(1,0)=(1,−1) and T−1(0,1)=(0,0), so

    ((1,−1), (0,0)) is a basis of V,dimV=2.

    Direct check: a⊙(1,−1)=(a, −a+a−1)=(a,−1) and b⊙(0,0)=(0, b−1), so a⊙(1,−1)⊕b⊙(0,0)=(a, −1+b−1+1)=(a, b−1), which runs through every vector of V exactly once as (a,b) runs through R2. That is the unique-representation theorem, so it is a basis. Note that the nonzero vector (0,0) is a basis vector.

  2. 2.Computation

    Decide whether each set is a subspace of the stated space. For a subspace, verify the subspace criterion or the one-step test in full; for a non-subspace, name the condition that fails and exhibit specific elements that break it.

    1. (a)U1​={p∈P3​:p(0)=p(1)} in P3​.
    2. (b)U2​={A∈M2×2​:A2=A} in M2×2​.
    3. (c)U3​={(x,y,z)∈R3:x+y+z=0  or  x=y=z} in R3.
    4. (d)U4​={f∈F(R,R):there is a constant M with ∣f(x)∣≤M for all x}, the bounded functions, in F(R,R).

    Solution

    (a) Subspace. The zero polynomial has p(0)=0=p(1), so U1​=∅. One-step test: if p(0)=p(1) and q(0)=q(1), then

    (cp+dq)(0)=cp(0)+dq(0)=cp(1)+dq(1)=(cp+dq)(1),

    so cp+dq∈U1​. Hence U1​ is a subspace. In coefficients, p=a0​+a1​x+a2​x2+a3​x3 lies in U1​ exactly when a1​+a2​+a3​=0 — a single homogeneous linear equation, which is the shape a subspace condition always has.

    (b) Not a subspace. The zero matrix satisfies 02=0, so the quick zero-vector test does not disqualify U2​; closure has to be checked. Now I2=I, so I∈U2​, but

    (2I)2=4I=2I,

    so 2I∈/U2​. Closure under scalar multiplication fails (and so does closure under addition, since I+I=2I). The condition A2=A is quadratic in the entries, not linear, which is the underlying reason.

    (c) Not a subspace. U3​=P∪L where P={x+y+z=0} and L={x=y=z}=span{(1,1,1)}. Each is a subspace (a homogeneous linear condition, and a span). Neither contains the other: (1,−1,0)∈P but not in L, and (1,1,1)∈L but not in P since its coordinates sum to 3. By the proposition on unions of subspaces, P∪L is therefore not a subspace.

    Concretely, closure under addition fails:

    (1,−1,0)+(1,1,1)=(2,0,1),

    whose coordinates sum to 3=0 and are not all equal, so the sum lies in neither P nor L.

    (d) Subspace. The zero function is bounded (by M=0). One-step test: suppose ∣f(x)∣≤M and ∣g(x)∣≤N for all x. Then for all x, by the triangle inequality,

    ∣(cf+dg)(x)∣=∣cf(x)+dg(x)∣≤∣c∣∣f(x)∣+∣d∣∣g(x)∣≤∣c∣M+∣d∣N,

    a constant, so cf+dg is bounded. Hence U4​ is a subspace. Note the test only requires that some bound exist; the bound for the combination may depend on c and d, and the bounds for f and g need not be the same.

  3. 3.Proof

    Let V=F(R,R), and let

    E={f∈V:f(−x)=f(x) for all x},O={f∈V:f(−x)=−f(x) for all x}

    be the even and the odd functions.

    1. (a)Show that E and O are subspaces of V.
    2. (b)Prove that V=E⊕O. Quote the direct-sum criterion when you use it.
    3. (c)Write f(x)=(x+1)3 as an even function plus an odd function. Then explain why P3​=(E∩P3​)⊕(O∩P3​), find the dimension of each piece, and check that the dimensions add up correctly.

    Solution

    (a) Subspaces. The zero function satisfies 0(−x)=0=0(x) and also 0=−0(x), so it lies in both E and O. One-step test for E: if f,g∈E then

    (cf+dg)(−x)=cf(−x)+dg(−x)=cf(x)+dg(x)=(cf+dg)(x)

    for every x, so cf+dg∈E. For O the same computation gives (cf+dg)(−x)=−cf(x)−dg(x)=−(cf+dg)(x). Both are subspaces.

    (b) The sum is all of V. Given any f∈V define

    fe​(x)=2f(x)+f(−x)​,fo​(x)=2f(x)−f(−x)​.

    Then fe​(−x)=2f(−x)+f(x)​=fe​(x), so fe​∈E; and fo​(−x)=2f(−x)−f(x)​=−fo​(x), so fo​∈O; and fe​+fo​=f by adding the two fractions. Hence every f is in E+O, i.e. V=E+O.

    The sum is direct. Let f∈E∩O. For every x, f(x)=f(−x) (even) and f(−x)=−f(x) (odd), so f(x)=−f(x), 2f(x)=0, f(x)=0. Thus E∩O={0}, and by the direct-sum criterion V=E⊕O. ■

    (The criterion is what saves work: it replaces checking uniqueness of every decomposition by one intersection computation.)

    (c) Expand: f(x)=(x+1)3=x3+3x2+3x+1 and f(−x)=(1−x)3=−x3+3x2−3x+1. Then

    fe​=26x2+2​=3x2+1,fo​=22x3+6x​=x3+3x,

    and indeed (3x2+1)+(x3+3x)=(x+1)3 ✓. As always, the even part collects the even-degree terms and the odd part the odd-degree ones.

    For P3​: if p∈P3​ then p(−x) is again a polynomial of degree at most 3 (replacing x by −x only changes the signs of the odd coefficients), so pe​ and po​ lie in P3​. Thus P3​=(E∩P3​)+(O∩P3​), and the intersection of the two pieces sits inside E∩O={0}, so the sum is direct.

    Dimensions: p=a+bx+cx2+dx3 is even exactly when p(−x)−p(x)=−2bx−2dx3 is the zero polynomial, and since {x,x3} is independent (a sublist of the monomial basis) that forces b=d=0. So E∩P3​=span{1,x2}, of dimension 2. Likewise O∩P3​=span{x,x3}, of dimension 2. By the dimension formula for a direct sum, 2+2=4=dimP3​ ✓.

  4. 4.Computation

    Every span question below is to be settled by the method of the chapter: write the membership condition as a linear system and row-reduce, or compare coefficients.

    1. (a)Let v1​=(1,2,−1) and v2​=(2,5,1). For which real k is (1,1,k)∈span{v1​,v2​}? For that k give the coefficients and check them. Then row-reduce with a general right-hand side (b1​,b2​,b3​) to find the single equation αx+βy+γz=0 that describes span{v1​,v2​} as a plane through the origin.
    2. (b)Does {1+x2, x+x2, 1+x} span P2​? Decide by attempting to hit an arbitrary a+bx+cx2, and use your formula to write x2 as a combination of the three polynomials.

    Solution

    (a) Row-reduce the augmented matrix [v1​ v2​∣b] with b=(b1​,b2​,b3​) kept general, so that both questions are answered by one reduction:

    ​12−1​251​b1​b2​b3​​​→​100​213​b1​b2​−2b1​b3​+b1​​​→​100​210​b1​b2​−2b1​7b1​−3b2​+b3​​​,

    using R2​−2R1​, R3​+R1​, then R3​−3R2​ (and b3​+b1​−3(b2​−2b1​)=7b1​−3b2​+b3​). The system is consistent exactly when the last entry vanishes, so

    span{v1​,v2​}={(x,y,z):7x−3y+z=0}.

    Sanity check: 7(1)−3(2)+(−1)=0 and 7(2)−3(5)+1=0, so both spanning vectors lie on the plane ✓.

    For b=(1,1,k) the condition is 7−3+k=0, i.e. k=−4. Back-substituting with b=(1,1,−4): c2​=b2​−2b1​=−1 and c1​=b1​−2c2​=3. Check: 3(1,2,−1)−(2,5,1)=(1,1,−4) ✓. For every other k the reduced matrix has a row [0 0∣k+4] with k+4=0 and the vector is not in the span.

    (b) Compare coefficients. A combination is

    α(1+x2)+β(x+x2)+γ(1+x)=(α+γ)+(β+γ)x+(α+β)x2.

    Two polynomials are equal exactly when their coefficients agree, so hitting a+bx+cx2 means solving

    α+γ=a,β+γ=b,α+β=c.

    Add all three: 2(α+β+γ)=a+b+c, so α+β+γ=21​(a+b+c). Subtracting each original equation from this gives

    β=21​(−a+b+c),α=21​(a−b+c),γ=21​(a+b−c).

    The system is solvable for every (a,b,c), so the three polynomials span P2​. (Since dimP2​=3, the counting corollary then says they are also a basis.)

    For x2 take a=b=0, c=1: α=21​, β=21​, γ=−21​. Check:

    21​(1+x2)+21​(x+x2)−21​(1+x)=21​−21​+(21​−21​)x+(21​+21​)x2=x2 ✓.

  5. 5.Computation

    Independence is a statement about the only solution of a linear equation. Exhibit the relation whenever you claim dependence, and check it.

    1. (a)For which real k are the vectors (1,1,k), (1,k,1), (k,1,1) linearly dependent? For each such k write down an explicit dependence relation and verify it.
    2. (b)Show that {sin2x, cos2x, 1} is linearly dependent in F(R,R), and then show that the sublist {sin2x, cos2x} is linearly independent.
    3. (c)Show that {x, ∣x∣} is linearly independent in F(R,R) even though the two functions agree at every x≥0. Then decide whether the same two functions are independent as elements of F([0,∞),R).

    Solution

    (a) Use the determinant test. Put the vectors as the columns of a square matrix; by the independence recipe they are independent exactly when the determinant is nonzero. Expanding along the first row,

    det​11k​1k1​k11​​=1(k⋅1−1⋅1)−1(1⋅1−1⋅k)+k(1⋅1−k⋅k)=(k−1)+(k−1)+k−k3=−k3+3k−2.

    Now k=1 is a root, and dividing out gives −k3+3k−2=−(k−1)(k2+k−2)=−(k−1)2(k+2). (Check by expanding: (k−1)2(k+2)=(k2−2k+1)(k+2)=k3−3k+2 ✓.) So the vectors are dependent exactly for k=1 and k=−2.

    k=1: all three vectors equal (1,1,1), and 1⋅v1​−1⋅v2​+0⋅v3​=0 is a relation with a nonzero coefficient.

    k=−2: the vectors are (1,1,−2), (1,−2,1), (−2,1,1), and

    v1​+v2​+v3​=(1+1−2, 1−2+1, −2+1+1)=(0,0,0) ✓.

    Sanity check on a value that should be independent: at k=0 the determinant is −2=0, and indeed (1,1,0),(1,0,1),(0,1,1) are independent.

    (b) Dependent triple. For every real x, sin2x+cos2x=1, so

    1⋅sin2x+1⋅cos2x+(−1)⋅1=0for all x,

    a dependence relation with coefficients (1,1,−1), not all zero.

    Independent pair. Suppose asin2x+bcos2x=0 for all x. Evaluate at x=0: a⋅0+b⋅1=0, so b=0. Evaluate at x=2π​: a⋅1+b⋅0=0, so a=0. The only relation is trivial, so the pair is independent. This is the linear dependence lemma in action: in the list 1,sin2x,cos2x the last vector lies in the span of its predecessors (cos2x=1−sin2x), and removing it leaves an independent list.

    (c) Suppose ax+b∣x∣=0 for every real x. At x=1: a+b=0. At x=−1: −a+b=0. Adding gives 2b=0, so b=0 and then a=0. Independent.

    Agreement on x≥0 is irrelevant: it shows only that the particular combination x−∣x∣ vanishes on half the domain, whereas a dependence relation must vanish at every point of the domain, and x−∣x∣=2x=0 for x<0.

    On the domain [0,∞) the situation reverses. There ∣x∣=x at every point of the domain, so x and ∣x∣ are the same element of F([0,∞),R), and 1⋅x+(−1)⋅∣x∣=0 is a nontrivial relation: the two functions are dependent. The domain is part of the data of a function space, and changing it can change independence.

  6. 6.Computation

    Both parts use the left-to-right procedure: run through the list, keeping a vector if it lies outside the span of the vectors kept so far and deleting it otherwise.

    1. (a)Let p1​=1+x, p2​=1−x, p3​=2, p4​=x+x2, p5​=1+x2 in P2​. Reduce the list to a basis of its span, saying at each step whether the vector is kept or deleted and why, and writing every deleted vector explicitly as a combination of the vectors kept before it. Then explain why the result is in fact a basis of all of P2​, and confirm your answer by row-reducing the matrix whose columns are the monomial coordinate vectors.
    2. (b)Extend {I, J=(01​10​)} to a basis of M2×2​ by appending the matrix units E11​,E12​,E21​,E22​ in that order and running the procedure. Say at which point the counting corollary lets you stop, and express each discarded matrix unit as a combination of your basis.

    Solution

    (a) Run the procedure.

    p1​=1+x: nonzero, so not in span∅={0}. Keep.

    p2​=1−x: in span{p1​} only if 1−x=c(1+x), which needs c=1 from the constants and c=−1 from the x-coefficients. Impossible. Keep.

    p3​=2: p3​=(1+x)+(1−x)=p1​+p2​. Delete.

    p4​=x+x2: every combination of p1​,p2​ has degree at most 1, and p4​ has degree 2. Not in the span. Keep.

    p5​=1+x2: the kept list p1​,p2​,p4​ is independent (each kept vector was outside the span of the earlier ones, so by the linear dependence lemma no relation is possible), and it has 3 members in the 3-dimensional space P2​. By the counting corollary it is a basis of P2​, so p5​ is certainly in its span: explicitly p5​=(1−x)+(x+x2)=p2​+p4​. Delete.

    Basis of the span: (1+x, 1−x, x+x2). Since a deletion never changes the span (redundancy proposition), the span of the five polynomials equals the span of these three, which is P2​ by the counting argument just made. So the original list did span P2​, and the three kept vectors are a basis of it.

    Confirmation by columns. In the monomial basis the coordinate vectors are (1,1,0), (1,−1,0), (2,0,0), (0,1,1), (1,0,1). Row-reduce:

    ​110​1−10​200​011​101​​R2​−R1​​​100​1−20​2−20​011​1−11​​.

    This is already in echelon form with pivots in columns 1, 2 and 4 — exactly the vectors p1​,p2​,p4​ that were kept. ✓

    (b) In coordinates (a11​,a12​,a21​,a22​) the two given matrices are I↦(1,0,0,1) and J↦(0,1,1,0); neither is a multiple of the other, so the pair is independent and both are kept. A general combination is aI+bJ↦(a,b,b,a).

    E11​↦(1,0,0,0): equal to (a,b,b,a) would need a=1 (first slot) and a=0 (last slot). Not in the span. Keep.

    E12​↦(0,1,0,0): a combination aI+bJ+cE11​↦(a+c, b, b, a) would need b=1 (second slot) and b=0 (third slot). Not in the span. Keep.

    Now the kept list I,J,E11​,E12​ is independent with 4 members, and dimM2×2​=4. By the counting corollary it is already a basis, so the procedure can stop: E21​ and E22​ must lie in the span and would be deleted. Explicitly,

    E21​=J−E12​,E22​=I−E11​,

    both immediate from the entries. Basis: (I, J, E11​, E12​). Sanity check: the extension theorem promised a basis containing I and J, and this one does.

  7. 7.Critique

    A student is asked for the dimension of

    U={p∈P4​:p(1)=0 and p(−1)=0}

    and submits the following.

    Step 1. P4​ is the space of polynomials of degree at most 4, so dimP4​=4.

    Step 2. Each of p(1)=0 and p(−1)=0 is one linear equation in the coefficients of p, and each equation costs one dimension. So dimU=4−2=2.

    Step 3. Check: x2−1 and x3−x both vanish at 1 and at −1, and neither is a multiple of the other, so they are linearly independent. Two independent vectors in U form a basis of U, confirming dimU=2.

    1. (a)Find every error. For each one quote the sentence, say why it is wrong, and name the definition or theorem being misused.
    2. (b)Find dimU correctly: give a basis of U and prove that it is one.
    3. (c)State precisely what the two polynomials of Step 3 do prove about U, and exhibit a vector of U that is not in their span.

    Solution

    (a) There are two errors, and the second is the one that let the first go unnoticed.

    Step 1: “dimP4​=4.” False: the monomial basis 1,x,x2,x3,x4 has five members, so dimP4​=5. The constants count. This is the standard off-by-one, and it feeds a wrong input into Step 2, whose arithmetic then gives 5−2=3 rather than 2 once corrected. (Step 2 itself is a heuristic rather than a proof — two conditions cost two dimensions only if neither is a consequence of the other — but it is not the source of the wrong answer; part (b) shows the count 3 is right.)

    Step 3: “Two independent vectors in U form a basis of U.” This misuses the counting corollary. That corollary says an independent list of exactly dimU vectors is a basis — so it can only be applied once dimU is known, and here it is being used to establish dimU. The argument is circular. What the definition of basis actually requires is independence and spanning, and spanning was never checked. Independence alone gives only a lower bound: by the exchange lemma, an independent list in U is no longer than a basis of U, so dimU≥2. The “confirmation” confirmed nothing, because it silently assumed the conclusion of Step 2.

    (b) Claim: U={(x2−1)q(x):q∈P2​}.

    If p∈U, then p(1)=0, so by the factor theorem p(x)=(x−1)r(x) with degr≤3. Then 0=p(−1)=(−2)r(−1) forces r(−1)=0, so r(x)=(x+1)q(x) with degq≤2, and p=(x2−1)q. Conversely any (x2−1)q with degq≤2 has degree at most 4 and vanishes at ±1. This proves the claim.

    Writing q=a+bx+cx2,

    p=a(x2−1)+b(x3−x)+c(x4−x2),

    so the three polynomials x2−1, x3−x, x4−x2 span U. They are independent: their degrees are 2,3,4, so in a relation a(x2−1)+b(x3−x)+c(x4−x2)=0 the coefficient of x4 is c, forcing c=0; then the coefficient of x3 is b, forcing b=0; then a=0. Independent and spanning, so a basis, and

    dimU=3.

    Sanity check against the corrected heuristic: 5−2=3 ✓. The two conditions really are independent of each other — x−1 satisfies the first and not the second — which is why the heuristic count happens to be right.

    (c) The pair x2−1, x3−x is an independent list in U, which proves exactly that dimU≥2 — nothing more. It does not span: x4−x2=(x2−1)x2 vanishes at ±1, so it lies in U, but every combination a(x2−1)+b(x3−x) has degree at most 3, so x4−x2 is outside their span. Adjoining it gives the basis of part (b) — the extension theorem carried out by hand.

  8. 8.Computation

    Let M=(1, x, x2) be the monomial basis of P2​ and let

    B=(1, x−1, (x−1)2).

    1. (a)Prove that B is a basis of P2​ using the counting corollary, so that you have to check only one of the two basis properties.
    2. (b)Write down PM←B​ and PB←M​ — the second by expressing each monomial in B, not by an inversion algorithm — and verify that their product is I3​.
    3. (c)Find [p]B​ for p(x)=2x2−3x+5 in two independent ways: by multiplying by the appropriate matrix, and by comparing coefficients directly. Say which matrix you used and why that one.
    4. (d)Show that p∈P2​ satisfies p(1)=0 exactly when the first entry of [p]B​ is 0. Deduce a basis and the dimension of U={p∈P2​:p(1)=0}.

    Solution

    (a) dimP2​=3 and B has three members, so by the counting corollary it suffices to show independence. Suppose a⋅1+b(x−1)+c(x−1)2 is the zero polynomial. Expanding,

    a+b(x−1)+c(x2−2x+1)=(a−b+c)+(b−2c)x+cx2,

    and a polynomial is zero exactly when all its coefficients are: c=0, then b−2c=0 gives b=0, then a−b+c=0 gives a=0. Independent, hence a basis. (Equivalently: the three have distinct degrees 0,1,2, so no nontrivial relation can cancel the top-degree term.)

    (b) The columns of PM←B​ are the M-coordinates of the B-vectors: [1]M​=(1,0,0), [x−1]M​=(−1,1,0), [(x−1)2]M​=[x2−2x+1]M​=(1,−2,1). So

    PM←B​=​100​−110​1−21​​.

    For the other direction express each monomial in B: 1=1; x=1+(x−1); x2=((x−1)+1)2=(x−1)2+2(x−1)+1. The columns are therefore (1,0,0), (1,1,0), (1,2,1):

    PB←M​=​100​110​121​​.

    Product, row by row: row 1 of the first against the columns of the second gives (1, 1−1, 1−2+1)=(1,0,0); row 2 gives (0, 1, 2−2)=(0,1,0); row 3 gives (0,0,1). So PM←B​PB←M​=I3​ ✓, as the change-of-coordinates theorem requires.

    (c) [p]M​=(5,−3,2). We have M-coordinates and want B-coordinates, so the matrix is PB←M​ — read the arrow: M in, B out:

    [p]B​=​100​110​121​​​5−32​​=​5−3+2−3+42​​=​412​​.

    Directly: by the expansion in (a), a+b(x−1)+c(x−1)2=(a−b+c)+(b−2c)x+cx2 must equal 5−3x+2x2. Top down: c=2; b−4=−3 so b=1; a−1+2=5 so a=4. Both routes give [p]B​=(4,1,2). Check: 4+(x−1)+2(x−1)2=4+x−1+2x2−4x+2=2x2−3x+5 ✓.

    (d) If [p]B​=(a,b,c) then p(x)=a+b(x−1)+c(x−1)2, and evaluating at x=1 kills every term but the first: p(1)=a. Hence p(1)=0⟺a=0.

    So U={b(x−1)+c(x−1)2}=span{x−1, (x−1)2}. Those two are independent, being a sublist of the basis B, so they form a basis of U and dimU=2. Sanity check: one homogeneous linear condition on a 3-dimensional space costs one dimension, and p=2x2−3x+5 has p(1)=4=0, matching its first B-coordinate 4. This is the point of choosing a basis adapted to the problem: in B the subspace U is visible as a coordinate hyperplane, which it is not in M.

  9. 9.Sketch

    Let A=(13​26​). Every line you draw must be labelled with the subspace it is and justified by a computation.

    1. (a)Find Row(A), Null(A), Col(A) and Null(AT), each as a line through the origin with a direction vector.
    2. (b)On one pair of axes (the input plane) sketch Row(A), Null(A) and the solution set of Ax=(2,6). On a second pair (the output plane) sketch Col(A) and Null(AT), and mark the points (2,6) and (1,1). Say which of Ax=(2,6) and Ax=(1,1) is consistent and how the picture shows it.
    3. (c)Explain why R2=Row(A)⊕Null(A), decompose (1,0) accordingly, and verify that A applied to the row-space part alone already gives A(1,0).

    Solution

    (a) Row 2 is 3 times row 1, so A row-reduces to (10​20​): one pivot, rankA=1.

    Row(A): the nonzero row of the reduced matrix, span{(1,2)} — the line y=2x.

    Null(A): solve x+2y=0; with y=t free, x=t(−2,1), so span{(−2,1)} — the line y=−21​x. (Rank Theorem check: 1+1=2 columns ✓.)

    Col(A): the pivot column of the original matrix, span{(1,3)} — the line y=3x. (The second column (2,6)=2(1,3) adds nothing.)

    Null(AT): AT=(12​36​) reduces to (10​30​), so solve x+3y=0: span{(−3,1)} — the line y=−31​x. Dimension m−r=2−1=1 ✓.

    (b) Input plane. Draw the line through the origin and (1,2), labelled Row(A), and the line through the origin and (−2,1), labelled Null(A). They are perpendicular, as the fundamental theorem predicts: (1,2)⋅(−2,1)=−2+2=0.

    The system Ax=(2,6) is the two equations x+2y=2 and 3x+6y=6, which are the same equation. Its solution set is the line x+2y=2, through (2,0) and (0,1); in parametric form (2,0)+t(−2,1). Draw it dashed: it is parallel to Null(A) (same direction vector) but does not pass through the origin, so it is a translate of the null space and not a subspace — exactly “particular solution plus null space”.

    Output plane. Draw the line through the origin and (1,3), labelled Col(A), and the line through the origin and (−3,1), labelled Null(AT); again perpendicular, since (1,3)⋅(−3,1)=0. Mark (2,6): it equals 2(1,3), so it lies on Col(A). Mark (1,1): it would need (1,1)=c(1,3), impossible (c=1 and c=31​), so it lies off the line.

    Consistency: Ax=b is consistent exactly when b∈Col(A). So Ax=(2,6) is consistent (its solutions are the dashed line in the input plane) and Ax=(1,1) is not. The left null space gives the same verdict by a dot product: (2,6)⋅(−3,1)=−6+6=0 while (1,1)⋅(−3,1)=−2=0, and a vector of Col(A) must be orthogonal to Null(AT).

    (c) The two lines meet only at the origin: a common point satisfies s(1,2)=t(−2,1), so s=−2t and 2s=t, giving −4t=t, t=0=s. So Row(A)∩Null(A)={0} and the sum is direct by the direct-sum criterion. Its dimension is 1+1=2=dimR2 by the direct-sum dimension formula, and a subspace of full dimension is the whole space (subspace-dimension theorem). Hence R2=Row(A)⊕Null(A).

    Decompose (1,0)=α(1,2)+β(−2,1): the equations are α−2β=1 and 2α+β=0. From the second β=−2α, so α+4α=1, α=51​, β=−52​. Check: 51​(1,2)−52​(−2,1)=(51​+54​, 52​−52​)=(1,0) ✓.

    Now A(1,0)=(1,3), the first column. The row-space part alone gives

    A⋅51​(1,2)=51​(1+4, 3+12)=51​(5,15)=(1,3),

    the same answer, because the null-space part −52​(−2,1) is sent to 0. The matrix sees only the row-space component of its input: a rank-1 machine in a 2×2 costume.

  10. 10.Proof

    Throughout, V is a finite-dimensional vector space with dimV=n. Name each theorem as you use it.

    1. (a)Let U and W be subspaces of V with dimU+dimW>n. Prove that U∩W contains a nonzero vector.
    2. (b)Prove that every subspace U of V has a complement: a subspace W with V=U⊕W. Then show that every complement of U has the same dimension, and say what it is.
    3. (c)Show by an explicit example in R2 that a complement is not unique, verifying directly that each of your two candidates is a complement.

    Solution

    (a) U+W is a subspace of V (the sum proposition), so by the subspace-dimension theorem dim(U+W)≤dimV=n. Now apply the dimension formula for a sum:

    dim(U∩W)=dimU+dimW−dim(U+W) ≥ dimU+dimW−n > 0.

    So U∩W is a subspace of dimension at least 1. It therefore has a basis with at least one vector, and a basis vector is nonzero (a list containing 0 is dependent). Hence U∩W={0}. ■

    This is the “two planes in R3 must share a line” fact in general form: 2+2>3. The bound is sharp — with dimU+dimW=n the intersection can be trivial, as two distinct lines through the origin in R2 show.

    (b) Existence. Let k=dimU. By the subspace-dimension theorem U is finite-dimensional, so it has a basis u1​,…,uk​. This list is independent in V, so by the extension theorem there are w1​,…,wr​ such that

    u1​,…,uk​,w1​,…,wr​

    is a basis of V; by the dimension theorem k+r=n. Put W=span{w1​,…,wr​}, a subspace by the span theorem.

    V=U+W: every v∈V is a combination ∑ai​ui​+∑bj​wj​ of the basis; the first sum lies in U and the second in W.

    The sum is direct: let v∈U∩W. Then v=∑ai​ui​ for some scalars (as v∈U) and v=∑bj​wj​ for some scalars (as v∈W). Subtracting,

    ∑ai​ui​−∑bj​wj​=0

    is a relation among the members of a basis of V, so every ai​ and bj​ is zero and v=0. Thus U∩W={0}, and by the direct-sum criterion V=U⊕W. ■

    Dimension of any complement. If W′ is any subspace with V=U⊕W′, the dimension formula for a direct sum gives n=dimV=dimU+dimW′, so

    dimW′=n−k,

    independently of which complement was chosen. (For the W constructed above this is r=n−k, as it should be.)

    (c) Take U=span{(1,0)}, the x-axis, and the two candidates W1​=span{(0,1)} and W2​=span{(1,1)}.

    U∩W1​: a common vector is (s,0)=(0,t), forcing s=t=0. U∩W2​: (s,0)=(t,t) forces t=0 and then s=0. Both intersections are trivial, so both sums are direct by the criterion. Each direct sum has dimension 1+1=2=dimR2, so by the subspace-dimension theorem each equals R2: R2=U⊕W1​=U⊕W2​.

    The complements differ, since (1,1)∈/W1​. In fact every line through the origin other than U itself is a complement of U. The decomposition of a vector depends on the complement: (3,1)=(3,0)+(0,1) using W1​ but (3,1)=(2,0)+(1,1) using W2​ — same vector, different filing system.

  11. 11.Computation

    Let

    A=​12−1​24−2​011​13k​​,

    where k is a real parameter.

    1. (a)Row-reduce A and find rankA and nullityA as functions of k. For the values of k with rankA=3, explain without further computation why Ax=b is consistent for every b∈R3.
    2. (b)Now set k=0. Find a basis for each of Col(A), Row(A), Null(A) and Null(AT), stating for each which recipe you are applying and to which matrix.
    3. (c)Still with k=0: verify by dot products that every basis vector of Null(A) is orthogonal to every basis vector of Row(A), and likewise for Null(AT) against Col(A). Check that the four dimensions satisfy the counts of the four-fundamental-subspaces corollary.
    4. (d)Still with k=0: show that Col(A) is exactly the set of b=(b1​,b2​,b3​) with 3b1​−b2​+b3​=0, using a dimension argument. Then decide, from that equation alone, whether Ax=(1,3,0) and Ax=(1,3,1) are consistent, and confirm the consistent one by finding a solution.

    Solution

    (a) Row-reduce. R2​−2R1​ gives (0,0,1,1); R3​+R1​ gives (0,0,1,k+1); then R3​−R2​ gives (0,0,0,k):

    A→​100​200​010​11k​​.

    If k=0 there are pivots in columns 1,3,4: rankA=3 and, by the Rank Theorem with n=4 columns, nullityA=1. If k=0 the last row vanishes, pivots are in columns 1 and 3: rankA=2 and nullityA=2.

    When rankA=3, Col(A) is a 3-dimensional subspace of R3, hence equal to R3 by the subspace-dimension theorem. Every b lies in Col(A), and Ax=b is consistent exactly when b∈Col(A).

    (b) The four subspaces for k=0. The echelon form is

    R=​100​200​010​110​​,

    which is already reduced (the entry above the second pivot is 0). Pivot columns 1 and 3; free columns 2 and 4.

    Col(A): the pivot-position columns of the original A, never of R:

    {(1,2,−1), (0,1,1)}.

    Row(A): the nonzero rows of R (row operations preserve the row space):

    {(1,2,0,1), (0,0,1,1)}.

    Null(A): solve Rx=0 with x2​=s, x4​=t free. The equations x1​+2x2​+x4​=0 and x3​+x4​=0 give x1​=−2s−t, x3​=−t, so x=s(−2,1,0,0)+t(−1,0,−1,1) and the basis is

    {(−2,1,0,0), (−1,0,−1,1)}.

    Check against the original A: A(−1,0,−1,1) has entries −1+0+0+1, −2+0−1+3, 1+0−1+0, all 0 ✓; and A(−2,1,0,0) has entries −2+2, −4+4, 2−2, all 0 ✓.

    Null(AT): apply the null-space recipe to AT, whose rows are the columns of A:

    AT=​1201​2413​−1−210​​→​1000​2100​−1100​​,

    via R2​−2R1​ (which zeroes row 2), R4​−R1​ (giving (0,1,1)), then R4​−R3​. With y3​=t free: y2​=−t and y1​=−2y2​+y3​=3t, so the basis is

    {(3,−1,1)}.

    (c) Orthogonality. Rows against null vectors: (1,2,0,1)⋅(−2,1,0,0)=−2+2=0; (1,2,0,1)⋅(−1,0,−1,1)=−1+1=0; (0,0,1,1)⋅(−2,1,0,0)=0; (0,0,1,1)⋅(−1,0,−1,1)=−1+1=0 ✓. Columns against the left null vector: (1,2,−1)⋅(3,−1,1)=3−2−1=0; (0,1,1)⋅(3,−1,1)=−1+1=0 ✓.

    Dimensions: dimCol(A)=dimRow(A)=2=r; dimNull(A)=2=n−r=4−2; dimNull(AT)=1=m−r=3−2. Row space and null space live in R4 with 2+2=4; column space and left null space live in R3 with 2+1=3 ✓.

    (d) Column space as an equation. Let H={b∈R3:3b1​−b2​+b3​=0}. This is the null space of the 1×3 matrix (3 −1 1), which has rank 1, so by the Rank Theorem dimH=3−1=2. By (c) both basis vectors of Col(A) satisfy the equation, so Col(A)⊆H. Both are 2-dimensional, and a subspace of the same dimension is the whole space (subspace-dimension theorem), so Col(A)=H.

    Hence Ax=b is consistent exactly when 3b1​−b2​+b3​=0. For (1,3,0): 3−3+0=0, consistent. For (1,3,1): 3−3+1=1=0, inconsistent.

    Confirmation: we need c1​(1,2,−1)+c2​(0,1,1)=(1,3,0). The first coordinate gives c1​=1, the second gives 2+c2​=3 so c2​=1, and the third checks: −1+1=0 ✓. Since those are columns 1 and 3 of A, one solution is x=(1,0,1,0); the full solution set is (1,0,1,0)+Null(A), a 2-dimensional translate.

  12. 12.Proof

    All matrices are over R. Write each argument in terms of the column space and null space; the Rank Theorem and the subspace-dimension theorem are the tools.

    1. (a)Let A be m×n and B be n×p. Prove that Col(AB)⊆Col(A) and Null(B)⊆Null(AB), and deduce that rank(AB)≤min(rankA, rankB).
    2. (b)Let A be n×n with A2=0. Prove that Col(A)⊆Null(A), and deduce that rankA≤2n​.
    3. (c)Give a nonzero 2×2 matrix with A2=0 and check the bound of (b). Then show that for every even n there is an n×n matrix with A2=0 and rankA=2n​ exactly.
    4. (d)Use (a) to prove: if A is m×n and B is n×m with m>n, then AB is not invertible. Illustrate with m=2, n=1.

    Solution

    (a) The inclusions. Take y∈Col(AB), so y=(AB)x for some x∈Rp. Then y=A(Bx) is A applied to the vector Bx∈Rn, so y∈Col(A). Hence Col(AB)⊆Col(A).

    Take x∈Null(B), so Bx=0. Then (AB)x=A(Bx)=A0=0, so x∈Null(AB). Hence Null(B)⊆Null(AB).

    The rank bound. By the subspace-dimension theorem a subspace has dimension at most that of any space containing it. From the first inclusion,

    rank(AB)=dimCol(AB)≤dimCol(A)=rankA.

    From the second, nullityB≤nullity(AB). Both B and AB have p columns, so the Rank Theorem applied to each gives

    rank(AB)=p−nullity(AB)≤p−nullityB=rankB.

    Together, rank(AB)≤min(rankA,rankB). ■

    (b) Take y∈Col(A), so y=Ax for some x. Then Ay=A(Ax)=A2x=0, so y∈Null(A). Hence Col(A)⊆Null(A) (both are subspaces of Rn, since A is square).

    Write r=rankA. By the subspace-dimension theorem r=dimCol(A)≤dimNull(A)=nullityA, and by the Rank Theorem nullityA=n−r. So r≤n−r, i.e. 2r≤n, i.e. rankA≤2n​. ■

    In words: a matrix that squares to zero must send everything it produces into what it destroys, so its output cannot occupy more than half the space.

    (c) Take A=(00​10​). Then A2=(0⋅0+1⋅00​0⋅1+1⋅00​)=0, and rankA=1 (one nonzero column). The bound says 1≤22​=1 — attained.

    For even n write n=2q and define A on the standard basis by

    Aej​=0 (1≤j≤q),Aeq+j​=ej​ (1≤j≤q);

    concretely A=E1,q+1​+E2,q+2​+⋯+Eq,2q​, the matrix whose only nonzero entries are q ones on a diagonal shifted q places to the right (for n=4: A=E13​+E24​, and for n=2 it is the matrix above). Then A2ej​=A0=0 and A2eq+j​=Aej​=0, so A2 kills every basis vector, and a matrix that sends every standard basis vector to 0 has all columns zero: A2=0. Its columns are q zero columns followed by e1​,…,eq​, which are independent, so Col(A)=span{e1​,…,eq​} and rankA=q=2n​. The bound in (b) is sharp for every even n.

    (d) AB is m×m. By (a), rank(AB)≤rankB, and rankB=dimCol(B)≤dimRn=n because Col(B) is a subspace of Rn (subspace-dimension theorem). So

    rank(AB)≤n<m.

    By the Invertible Matrix Theorem, an m×m matrix is invertible if and only if its rank is m. The rank of AB is less than m, so AB is not invertible. ■

    Illustration with m=2, n=1: A=(11​), B=(1​1​), and

    AB=(11​11​),

    whose rank is 1<2 (the columns coincide) and whose determinant is 0. The other product BA=(2) is a perfectly good invertible 1×1 matrix — the bound only constrains the larger product, and it is the shape m>n that dooms it.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout