CalcPath
ProgressProblem setsFeedback
← Question sheet

Linear Algebra · Solutions

Systems of Linear Equations

12 questions · about 106 minutes

Work this sheet on paper and show every step: write each row operation you perform in the form Ri​←Ri​+cRj​, say which entry is the pivot, and name every result you use (“by the existence and uniqueness criterion”, “by the rank theorem”, “by the structure theorem for solution sets”). No calculator is needed anywhere — every number is a small integer or a simple fraction, and a check in the original equations is expected wherever a solution is found. 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.Sketch

    For each pair of equations below, sketch both lines in the same xy-plane, marking the intercepts you used to draw them. Classify the solution set as a single point, a whole line, or empty, and justify the classification algebraically — the picture alone does not settle it.

    1. (a)2x−y=1 and x+y=5.
    2. (b)x−2y=4 and −3x+6y=−12.
    3. (c)x−2y=4 and 2x−4y=3.
    4. (d)Using only the geometry of lines in the plane, explain why no system of two linear equations in two unknowns can have exactly two solutions.

    Solution

    (a) Two lines that cross once. The line 2x−y=1 passes through (0,−1) and (21​,0) and rises steeply (slope 2); the line x+y=5 passes through (0,5) and (5,0) and falls (slope −1). The slopes differ, so the lines are not parallel and must cross exactly once. To find where, add the two equations: 3x=6, so x=2, and then y=5−2=3. The solution set is the single point (2,3).

    Check in both equations: 2(2)−3=1 and 2+3=5. The sketch shows a steep rising line and a falling line meeting at (2,3), with the four intercepts labelled.

    (b) The same line twice. Multiplying x−2y=4 through by −3 gives −3x+6y=−12, which is exactly the second equation. So the two equations carry identical information and describe one line, through (4,0) and (0,−2) with slope 21​. Draw a single line and label it with both equations. The solution set is the whole line: solving for x, it is {(4+2t,t):t∈R}.

    Check at t=1: the point (6,1) gives 6−2=4 and −18+6=−12.

    (c) Parallel and distinct. Rewriting, y=21​x−2 and y=21​x−43​: the same slope 21​, different intercepts. The first line crosses the axes at (4,0) and (0,−2); the second at (23​,0) and (0,−43​), so it lies strictly above the first everywhere. Algebraically: any solution of the first equation satisfies 2x−4y=8, and the second demands 2x−4y=3, so 8=3, which is false. The solution set is empty. The sketch shows two parallel lines that never meet.

    (d) Suppose two lines had two distinct common points P and Q. Through two distinct points there passes exactly one line, so both lines are that line — they coincide, and then every point of the line is common to both, giving infinitely many solutions. So as soon as a pair of lines shares two points it shares all of them. The only possible counts are zero (parallel and distinct), one (crossing) and infinitely many (coincident): exactly the three pictures in (a), (b) and (c).

  2. 2.Computation

    Consider the system

    3x+6y=12,2x+5y=9.

    1. (a)Write the augmented matrix. Perform R1​←31​R1​ and then R2​←R2​−2R1​, writing the matrix after each step, and read off the solution. Check it in the original equations.
    2. (b)For each of the two operations, write down the row operation that undoes it. Explain why the existence of these inverse operations is what guarantees that the solution you read off is a solution of the original system, and not merely of the reduced one.
    3. (c)A student instead performs R2​←0⋅R2​. Write the resulting system, exhibit a pair (x,y) that solves it but does not solve the original, and say which requirement in the definition of the row operations has been violated.

    Solution

    (a) Reduce and read off. The augmented matrix is

    (32​65​129​).

    R1​←31​R1​ replaces the first row by (1,2∣4):

    (12​25​49​).

    R2​←R2​−2R1​ replaces the second row by (2−2,5−4∣9−8)=(0,1∣1); the first row is the source and does not change:

    (10​21​41​).

    Row 2 says y=1, and row 1 then gives x=4−2y=2. Check in the original system: 3(2)+6(1)=12 and 2(2)+5(1)=9. Both hold.

    (b) Inverses and why they matter. The inverse of R1​←31​R1​ is R1​←3R1​; the inverse of R2​←R2​−2R1​ is R2​←R2​+2R1​.

    The proof that row operations preserve the solution set has two halves. The direct half shows that any solution of the old system still satisfies the new equations (a scaled equation or a sum of true equations is still true). That half only says the original solutions survive; it does not say the reduced system has no extra solutions. The reverse inclusion comes from applying the same direct argument to the inverse operations, which carry the reduced system back to the original: any solution of the reduced system therefore satisfies the original equations. So (2,1), read off the reduced system, is a solution of the original because R1​←3R1​ and R2​←R2​+2R1​ exist and are themselves row operations.

    (c) Multiplying a row by zero. After R2​←0⋅R2​ the matrix is (30​60​120​), the system 3x+6y=12, 0=0. The second equation has been erased, so the solution set is the whole line x=4−2t, y=t. The point (4,0) satisfies 3(4)+0=12, but in the original second equation 2(4)+5(0)=8=9.

    The violated requirement is that scaling (R2) uses a nonzero scalar. The operation R2​←0⋅R2​ has no inverse — nothing recovers 2x+5y=9 from 0=0 — so the reverse inclusion in (b) is unavailable, and the new system acquires solutions the original never had.

  3. 3.Computation

    Consider the system

    x1​+x2​+x3​2x1​+3x2​+x3​+x4​x1​+2x2​+2x4​​=3=11=11.​

    Write every row operation in the form Ri​←Ri​+cRj​ and state the pivot you are working with at each stage.

    1. (a)Write the augmented matrix and run the forward phase of Gaussian elimination to reach an echelon form.
    2. (b)List the pivot columns, the basic variables and the free variables. Is the system consistent, and how many solutions does it have? Cite the criterion you are using.
    3. (c)Run the backward phase to reach the reduced echelon form and write the general solution. Verify it against all three original equations for one nonzero value of the parameter.

    Solution

    (a) Forward phase. The augmented matrix is

    ​121​132​110​012​31111​​.

    Column 1: the pivot is the 1 in position (1,1). R2​←R2​−2R1​ gives (0,1,−1,1∣5) and R3​←R3​−R1​ gives (0,1,−1,2∣8):

    ​100​111​1−1−1​012​358​​.

    Column 2: the pivot is the 1 in position (2,2). R3​←R3​−R2​ gives (0,0,0,1∣3):

    ​100​110​1−10​011​353​​.

    Column 3 of the remaining submatrix is zero, so the next pivot is the 1 in position (3,4), and there are no rows below it. This is an echelon form: the leading entries move strictly right down the rows.

    (b) Reading the staircase. The pivot positions are (1,1), (2,2) and (3,4), so the pivot columns are 1, 2 and 4. The basic variables are x1​,x2​,x4​ and the free variable is x3​.

    No row has the form (0000∣c) with c=0, so by the existence and uniqueness criterion the system is consistent; and since there is a free variable, the same criterion says it has infinitely many solutions.

    (c) Backward phase and the general solution. Start with the rightmost pivot, in column 4; it is already 1. Clear above it with R2​←R2​−R3​, giving (0,1,−1,0∣2); row 1 already has a 0 in column 4. Next the pivot in column 2: R1​←R1​−R2​ gives (1,0,2,0∣1). The reduced echelon form is

    ​100​010​2−10​001​123​​.

    Set x3​=t. The rows say x1​=1−2t, x2​=2+t and x4​=3, so the general solution is

    (x1​,x2​,x3​,x4​)=(1−2t,2+t,t,3),t∈R.

    Check at t=1, the point (−1,3,1,3): −1+3+1=3; −2+9+1+3=11; −1+6+6=11. All three original equations hold.

  4. 4.Computation

    Let A=(12​23​). Reducing A to I2​ takes three operations, in this order: R2​←R2​−2R1​, then R2​←−R2​, then R1​←R1​−2R2​.

    1. (a)Write the elementary matrices E1​,E2​,E3​ of the three operations, and for each write its inverse as a matrix together with the row operation that inverse represents.
    2. (b)Compute M=E3​E2​E1​ and verify by multiplication that MA=I2​. What is M in terms of A?
    3. (c)Write A itself as a product of elementary matrices and check the product. Then compute E1​E2​E3​ and explain why it is not equal to M.

    Solution

    (a) The three elementary matrices. Apply each operation to I2​.

    R2​←R2​−2R1​ gives E1​=(1−2​01​); its inverse operation is R2​←R2​+2R1​, so E1−1​=(12​01​).

    R2​←−R2​ gives E2​=(10​0−1​); the inverse of scaling by −1 is scaling by −11​=−1, the same operation, so E2−1​=E2​.

    R1​←R1​−2R2​ gives E3​=(10​−21​); its inverse operation is R1​←R1​+2R2​, so E3−1​=(10​21​).

    (b) The product of the operations. Multiply right to left, since E1​ acts first:

    E2​E1​=(10​0−1​)(1−2​01​)=(12​0−1​),M=E3​(E2​E1​)=(10​−21​)(12​0−1​)=(−32​2−1​).

    Verification:

    MA=(−32​2−1​)(12​23​)=(−3+42−2​−6+64−3​)=(10​01​).

    Since A is square and MA=I, M=A−1. Sanity check with the 2×2 inverse formula: detA=3−4=−1, so A−1=−11​(3−2​−21​)=(−32​2−1​), which is M.

    (c) A as a product, and the wrong order. From MA=I we get A=M−1=(E3​E2​E1​)−1=E1−1​E2−1​E3−1​, using the rule that the inverse of a product reverses the order. So

    A=(12​01​)(10​0−1​)(10​21​).

    Check: the first two factors multiply to (12​0−1​), and then (12​0−1​)(10​21​)=(12​24−1​)=(12​23​)=A.

    Now the other order: E2​E3​=(10​0−1​)(10​−21​)=(10​−2−1​), and

    E1​E2​E3​=(1−2​01​)(10​−2−1​)=(1−2​−23​)=M.

    Matrix multiplication is not commutative, and the product records the operations in the reverse of the order they were performed: the last operation acts on the result of the earlier ones, so it sits furthest left. E1​E2​E3​ is the matrix of a different procedure — R1​←R1​−2R2​ first, then R2​←−R2​, then R2​←R2​−2R1​ — and indeed (E1​E2​E3​)A=(1−4−2+6​2−6−4+9​)=(−34​−45​), nowhere near I2​.

  5. 5.Computation

    Let v1​=(1,−1,2) and v2​=(3,1,4) in R3, and let A be the 3×2 matrix whose columns are v1​ and v2​.

    1. (a)Decide whether b=(4,0,6) and c=(4,0,5) lie in Span{v1​,v2​}. Where a vector is in the span, give the weights; where it is not, show why no weights can exist.
    2. (b)Row-reduce A augmented with a general right-hand side (b1​,b2​,b3​) to find a single linear equation in b1​,b2​,b3​ that describes the span. Verify it on b and on c, and say what geometric object the span is.
    3. (c)State the question about c in (a) in each of its three equivalent forms — as a system of scalar equations, as a vector equation, and as a matrix equation — and name the theorem that makes the three forms equivalent.

    Solution

    (a) Solve for weights. b is in the span exactly when x1​v1​+x2​v2​=b has a solution, that is, when

    x1​+3x2​=4,−x1​+x2​=0,2x1​+4x2​=6.

    The second equation forces x1​=x2​; the first then gives 4x2​=4, so x2​=1 and x1​=1. The third must be checked, not assumed: 2(1)+4(1)=6, which holds. So b=v1​+v2​ and b is in the span.

    For c=(4,0,5) the first two coordinates are the same, so any weights would again have to be x1​=x2​=1, and then the third coordinate reads 2+4=6=5. No weights exist and c is not in the span.

    (b) The span as one equation. Reduce with a symbolic right-hand side:

    ​1−12​314​b1​b2​b3​​​R2​←R2​+R1​,R3​←R3​−2R1​​​100​34−2​b1​b1​+b2​b3​−2b1​​​.

    The pivot in column 2 is the 4. R3​←R3​+21​R2​ makes the last row (0,0∣b3​−2b1​+21​(b1​+b2​)). The system is consistent exactly when that entry is 0; multiplying by 2,

    −3b1​+b2​+2b3​=0.

    Check: b=(4,0,6) gives −12+0+12=0, in the span; c=(4,0,5) gives −12+0+10=−2=0, not in the span — matching (a). The two spanning vectors are not multiples of one another (3/1=1/(−1)), so the span is a plane through the origin in R3, and −3b1​+b2​+2b3​=0 is its equation. Sanity check that the generators satisfy it: v1​ gives −3−1+4=0 and v2​ gives −9+1+8=0.

    (c) The three views. As scalar equations: x1​+3x2​=4, −x1​+x2​=0, 2x1​+4x2​=5. As a vector equation: x1​(1,−1,2)+x2​(3,1,4)=(4,0,5). As a matrix equation: Ax=c with

    A=​1−12​314​​,x=(x1​x2​​).

    The theorem that the three views agree says these have exactly the same solution set, and in particular that Ax=c is consistent if and only if c lies in the span of the columns of A. Here all three are inconsistent, which is what (a) found.

  6. 6.Computation

    The system below contains real parameters h and k:

    x+2y−z=1,2x+5y+z=4,x+3y+hz=k.

    1. (a)Reduce the augmented matrix to echelon form, keeping h and k symbolic, and determine for which pairs (h,k) the system has no solution, exactly one solution, and infinitely many solutions. Name the criterion you use.
    2. (b)In the case h=2, k=3, write the solution set in parametric form and check one of its points in the original equations.
    3. (c)Take h=2 and leave the right-hand side (b1​,b2​,b3​) unspecified. Explain, naming the theorem, why there must exist right-hand sides for which the system is inconsistent; state rank(A) and the possible values of rank([A∣b]); and find the condition on b1​,b2​,b3​ for consistency.

    Solution

    (a) Symbolic elimination. The augmented matrix and its reduction:

    ​121​253​−11h​14k​​R2​←R2​−2R1​,R3​←R3​−R1​​​100​211​−13h+1​12k−1​​.

    The pivot in column 2 is the 1 in row 2. R3​←R3​−R2​ gives the last row (0,0,h−2∣k−3):

    ​100​210​−13h−2​12k−3​​.

    Everything is decided by the last row, (h−2)z=k−3, via the existence and uniqueness criterion.

    If h=2: three pivots in three columns, no impossible row, so exactly one solution for every k. If h=2 and k=3: the last row reads 0=k−3=0, an impossible row, so no solution. If h=2 and k=3: the last row is 0=0, there are two pivots and z is free, so infinitely many solutions.

    Sanity check of the unique case at h=3, k=4: z=1, then y=2−3z=−1, then x=1−2y+z=4. In the original equations: 4−2−1=1, 8−5+1=4, 4−3+3=4. All hold.

    (b) The free case. With h=2,k=3 the echelon form is rows (1,2,−1∣1), (0,1,3∣2), (0,0,0∣0). Set z=t. Row 2 gives y=2−3t; row 1 gives x=1−2y+z=1−4+6t+t=−3+7t. So

    ​xyz​​=​−320​​+t​7−31​​,t∈R,

    a line in R3. Check at t=1, the point (4,−1,1): 4−2−1=1, 8−5+1=4, 4−3+2=3. All hold.

    (c) Why some right-hand sides must fail. With h=2 the coefficient matrix reduces to rows (1,2,−1), (0,1,3), (0,0,0): two pivots, so rank(A)=2, and the third row has no pivot. The solvability theorem says Ax=b is consistent for every b if and only if A has a pivot in every row; that fails, so some b makes the system inconsistent. Appending a column adds at most one pivot, so rank([A∣b]) is 2 (consistent) or 3 (inconsistent).

    To find the condition, repeat the reduction with a general right-hand side: R2​←R2​−2R1​ leaves b2​−2b1​, R3​←R3​−R1​ leaves b3​−b1​, and R3​←R3​−R2​ leaves b3​−b1​−(b2​−2b1​)=b1​−b2​+b3​ in the last row. The system is consistent exactly when

    b1​−b2​+b3​=0.

    Sanity checks: (1,4,3) from part (b) gives 1−4+3=0, consistent as found; (0,0,1) gives 1=0, so Ax=(0,0,1) is an explicit inconsistent instance.

  7. 7.Proof

    Let A be an m×n matrix. Quote by name each proposition or theorem you use.

    1. (a)Suppose Ax=b is consistent. Prove that it has exactly one solution if and only if Null(A)={0}.
    2. (b)Now suppose A is square (m=n) and Ax=0 has only the trivial solution. Prove that Ax=b is consistent for every b∈Rn.
    3. (c)Show by explicit examples that (b) fails without the hypothesis m=n: give a non-square A for which Ax=0 has only the trivial solution but Ax=b is inconsistent for some b, and a non-square A for which Ax=b is consistent for every b but Null(A)={0}. In each case point to the step of your proof in (b) that breaks.

    Solution

    (a) Uniqueness is a statement about the null space. Let p be a solution of Ax=b, which exists by hypothesis.

    (⇒) Suppose p is the only solution, and let h∈Null(A). Then A(p+h)=Ap+Ah=b+0=b, so p+h is a solution. By uniqueness p+h=p, hence h=0. So Null(A)={0}.

    (⇐) Suppose Null(A)={0} and let x1​,x2​ be solutions. Then A(x1​−x2​)=Ax1​−Ax2​=b−b=0, so x1​−x2​∈Null(A)={0} and x1​=x2​. There is exactly one solution. ■

    (Both directions are the structure theorem for solution sets in the special case where the null space is trivial: the solution set p+Null(A) is a single point exactly when Null(A) is.)

    (b) Counting pivots in a square matrix. By the proposition on when nontrivial solutions exist, Ax=0 has only the trivial solution if and only if every column of A is a pivot column. So A has n pivot positions.

    Distinct pivot positions lie in distinct rows, so these n pivots occupy n distinct rows. But A has exactly m=n rows, so every row of A contains a pivot position.

    By the solvability theorem, a pivot in every row is equivalent to Ax=b being consistent for every b∈Rm=Rn. ■

    (c) Two counterexamples. Tall: take A=(10​), which is 2×1. The equation Ax=0 reads x=0, 0=0, so only the trivial solution. But Ax=(0,1) reads x=0, 0=1, which is inconsistent. The step that breaks is "n pivots fill all m rows": here n=1 pivot cannot fill m=2 rows, and the second row has none.

    Wide: take A=(10​01​00​), which is 2×3. It has a pivot in every row, so by the solvability theorem Ax=b is consistent for every b∈R2 (indeed x=(b1​,b2​,0) works). But column 3 has no pivot, so x3​ is free and (0,0,1)∈Null(A). Here the hypothesis of (b) itself fails — the null space is not trivial — which shows the converse direction "pivot in every row ⇒ pivot in every column" is false when there are more columns than rows. The two conditions coincide only when m=n.

  8. 8.Computation

    Let A be the coefficient matrix of the system

    x1​+2x2​+x3​+x4​2x1​+4x2​−x3​−4x4​x1​+2x2​+3x3​+5x4​​=2=7=0.​

    1. (a)Reduce the augmented matrix to reduced echelon form and write the solution set in parametric vector form x=p+sv1​+tv2​.
    2. (b)Give a spanning set for Null(A), and verify directly that every row of A sends each spanning vector to 0.
    3. (c)Verify that q=(2,1,−3,1) is a solution, write q−p as an explicit combination of v1​ and v2​, and explain, quoting the structure theorem, why q+sv1​+tv2​ describes exactly the same set as your answer to (a).

    Solution

    (a) Reduce to RREF. Forward phase:

    ​121​242​1−13​1−45​270​​R2​←R2​−2R1​,R3​←R3​−R1​​​100​200​1−32​1−64​23−2​​.

    Column 2 of the remaining block is zero, so the next pivot is the −3 in position (2,3). R3​←R3​+32​R2​ gives (0,0,0,0∣−2+2)=(0,0,0,0∣0). Backward phase: R2​←−31​R2​ gives (0,0,1,2∣−1), and R1​←R1​−R2​ gives (1,2,0,−1∣3):

    ​100​200​010​−120​3−10​​.

    Pivot columns 1 and 3; free variables x2​=s and x4​=t. The rows say x1​=3−2s+t and x3​=−1−2t, so

    x=​3−2s+ts−1−2tt​​=p​30−10​​​​+sv1​​−2100​​​​+tv2​​10−21​​​​.

    Check p in the original system: 3−1=2; 6+1=7; 3−3=0. All hold.

    (b) The null space. By the structure theorem the parameter vectors span the null space: Null(A)=Span{v1​,v2​}. Direct verification against the rows (1,2,1,1), (2,4,−1,−4), (1,2,3,5) of A:

    For v1​=(−2,1,0,0): −2+2=0; −4+4=0; −2+2=0.

    For v2​=(1,0,−2,1): 1−2+1=0; 2+2−4=0; 1−6+5=0.

    Both are in the null space, as claimed.

    (c) A different particular solution. Check q=(2,1,−3,1): 2+2−3+1=2; 4+4+3−4=7; 2+2−9+5=0. So q is a solution. Then

    q−p=(2−3,1−0,−3+1,1−0)=(−1,1,−2,1)=v1​+v2​,

    since (−2,1,0,0)+(1,0,−2,1)=(−1,1,−2,1). That is, q is the point of the family in (a) with s=t=1.

    The structure theorem says the solution set is {p′+h:h∈Null(A)} for any one solution p′ — the theorem's proof never used which solution was chosen. Taking p′=q gives the description q+sv1​+tv2​. Concretely the two descriptions are reparametrisations of one another: q+sv1​+tv2​=p+(s+1)v1​+(t+1)v2​, and as (s,t) runs over R2 so does (s+1,t+1). The particular solution is a choice; the set, and the null space directions, are not.

  9. 9.Critique

    A student is asked whether v1​=(1,2,1), v2​=(2,4,3), v3​=(3,6,4) are linearly independent, and submits the following.

    Step 1. No vector in the list is a scalar multiple of another: v2​ is not a multiple of v1​, because the first coordinates would need the factor 2 while the third coordinates would need the factor 3, and the other two pairs fail the same way. So no vector is a linear combination of the others, and the list is linearly independent.

    Step 2. This agrees with the corollary that a list of p vectors in Rm is dependent when p>m: here p=m=3, so the corollary does not apply, and the list is independent.

    Step 3. Confirmation by row reduction: the matrix with these columns reduces to ​100​210​310​​, and every column has a nonzero entry, so every column is a pivot column.

    1. (a)Each step contains an error. Identify all three, and for each say precisely which definition, proposition or corollary is being misstated or misapplied.
    2. (b)Determine whether the list is independent. If it is dependent, give an explicit dependence relation and express one vector as a combination of the others.

    Solution

    (a) The three errors.

    Step 1 tests pairs, but dependence is about combinations. The characterisation of dependence says a list is dependent if and only if some vj​ is a linear combination of the others — all of them together, not one at a time. For two vectors that reduces to "one is a multiple of the other", but for three it does not: v3​ may be a combination of v1​ and v2​ without being a multiple of either. The pairwise checks are correct as far as they go; the sentence "so no vector is a linear combination of the others" is a non sequitur.

    Step 2 uses a one-way corollary backwards. The corollary "p>m implies dependent" is an implication, not an equivalence. When p≤m it says nothing at all: lists with p≤m can be independent or dependent. (Any list containing 0 is dependent, whatever p is; so is (1,0,0),(2,0,0),(0,0,1) in R3.) "The corollary does not apply" is not evidence of independence.

    Step 3 confuses a nonzero column with a pivot column. The reduced matrix is correct, but a pivot column is a column containing a pivot position — the leading entry of some row — not a column with a nonzero entry in it. The leading entries are the 1 in row 1 (column 1) and the 1 in row 2 (column 2); the entries 3 and 1 in column 3 are not leading entries of their rows. So the pivot columns are 1 and 2 only, and the proposition on independence in terms of pivots (independent if and only if every column is a pivot column) says the columns are dependent, the opposite of the student's conclusion.

    (b) The correct determination. Row-reduce the matrix with the vectors as columns:

    ​121​243​364​​R2​←R2​−2R1​,R3​←R3​−R1​​​100​201​301​​R2​↔R3​​​100​210​310​​.

    Two pivots for three columns, so column 3 is free and the list is linearly dependent. To find a relation, solve x1​v1​+x2​v2​+x3​v3​=0 with the free variable x3​=1: row 2 gives x2​+x3​=0, so x2​=−1; row 1 gives x1​+2x2​+3x3​=0, so x1​=2−3=−1. Hence

    −v1​−v2​+v3​=0,that isv3​=v1​+v2​.

    Check: (1,2,1)+(2,4,3)=(3,6,4)=v3​. This is exactly the situation Step 1 could not see — v3​ is a combination of the other two while being a multiple of neither.

  10. 10.Proof

    Let A be an m×n matrix and b∈Rm. In each part give a complete argument from the definitions of pivot position, rank and nullity, and from named results.

    1. (a)Prove that rank([A∣b]) equals either rank(A) or rank(A)+1, and say which case is consistency.
    2. (b)Prove: if Ax=b is consistent for every b∈Rm and Ax=0 has only the trivial solution, then A is square.
    3. (c)Prove that nullity(A)≥n−m. Then, for m=2 and n=4, give one matrix for which equality holds and one whose nullity is 4, verifying the rank of each.

    Solution

    (a) Appending a column adds at most one pivot. Run the forward phase of Gaussian elimination on [A∣b]. The algorithm works through the columns from left to right, and every choice it makes while processing the first n columns — which column is next, which rows to swap, which multiples to subtract — depends only on entries in those columns. So when the algorithm reaches column n+1, the left block has been carried to an echelon form U of A and the matrix reads [U∣d] for some d.

    Every pivot of U is a leading entry of its row in [U∣d] too, because appending an entry to the right of a row does not change where its first nonzero entry is. That accounts for rank(A) pivot positions of [A∣b]. The remaining rows are zero to the left of the bar. If any of them has a nonzero entry in the last column, the algorithm swaps one such row to the top of the remaining block and clears the rest of the column below it, creating exactly one further pivot position, in column n+1; if none does, no pivot is created. Since pivots move strictly rightward down the rows, a single column can contain at most one pivot position, so the last column contributes 0 or 1 pivots and never more. Hence

    rank([A∣b])∈{rank(A),rank(A)+1}.

    (The counts are independent of the route taken, by the uniqueness of the reduced echelon form.) The extra pivot exists exactly when the last column is a pivot column, which by the existence and uniqueness criterion is exactly when the system is inconsistent. So rank([A∣b])=rank(A) is the consistent case. ■

    (b) Full row rank and full column rank force m=n. By the solvability theorem, Ax=b consistent for every b∈Rm means A has a pivot position in every row; distinct pivots lie in distinct rows, so the number of pivots is exactly m, i.e. rank(A)=m.

    By the proposition on nontrivial solutions, Ax=0 having only the trivial solution means every column of A is a pivot column; distinct pivots lie in distinct columns, so the number of pivots is exactly n, i.e. rank(A)=n.

    The rank is a single well-defined number (uniqueness of the reduced echelon form), so m=rank(A)=n and A is square. ■

    (c) A lower bound on the nullity. By the rank bounds, rank(A)≤min(m,n)≤m. By the rank theorem, nullity(A)=n−rank(A), and therefore

    nullity(A)=n−rank(A) ≥ n−m.■

    In words: a wide matrix cannot impose more independent constraints than it has rows, so at least n−m degrees of freedom always survive.

    Examples with m=2, n=4. Equality: A=(10​01​00​00​) is already in reduced echelon form with pivots in columns 1 and 2, so rank(A)=2 and nullity(A)=4−2=2=n−m. Nullity 4: the zero matrix A=(00​00​00​00​) has no nonzero entry, hence no pivot, so rank(A)=0 (by the rank bounds, the zero matrix is the only matrix of rank 0) and nullity(A)=4: every vector of R4 is in the null space. The intermediate value 3 is also attainable, for instance by (12​24​36​48​), whose second row is twice the first, leaving a single pivot.

  11. 11.Computation

    Let

    A=​132​286​114​​.

    Record every multiplier ℓij​ as you eliminate, with its sign.

    1. (a)Find the LU factorization of A, and verify LU=A by multiplying out rows 2 and 3 of the product.
    2. (b)Using the factorization — not fresh elimination — solve Ax=b first for b=(2,4,6) and then for b=(3,7,12). Show the forward and back substitutions and check each answer in A.
    3. (c)Let B=​121​243​132​​. Prove that B has no factorization B=LU with L unit lower triangular and U upper triangular, then find a permutation matrix P and an LU factorization of PB.

    Solution

    (a) Eliminate and record. Column 1: the pivot is 1. The multiplier for row 2 is ℓ21​=3/1=3, and R2​←R2​−3R1​ gives (0,2,−2). The multiplier for row 3 is ℓ31​=2/1=2, and R3​←R3​−2R1​ gives (0,2,2):

    ​100​222​1−22​​.

    Column 2: the pivot is 2. The multiplier for row 3 is ℓ32​=2/2=1, and R3​←R3​−R2​ gives (0,0,4). No interchange was needed, so by the theorem on multipliers

    U=​100​220​1−24​​,L=​132​011​001​​.

    Verification: row 2 of LU is 3(1,2,1)+1(0,2,−2)=(3,8,1); row 3 is 2(1,2,1)+1(0,2,−2)+1(0,0,4)=(2,4+2,2−2+4)=(2,6,4). Both match A (row 1 of LU is row 1 of U, which is row 1 of A).

    (b) Two right-hand sides, one factorization. First, b=(2,4,6). Forward substitution on Ly=b, top down: y1​=2; 3y1​+y2​=4 gives y2​=−2; 2y1​+y2​+y3​=6 gives y3​=6−4+2=4. Back substitution on Ux=(2,−2,4), bottom up: 4x3​=4 gives x3​=1; 2x2​−2x3​=−2 gives x2​=0; x1​+2x2​+x3​=2 gives x1​=1. So x=(1,0,1). Check in A: 1+0+1=2, 3+0+1=4, 2+0+4=6.

    Second, b=(3,7,12). Forward: y1​=3; y2​=7−3(3)=−2; y3​=12−2(3)−1(−2)=8. Back: 4x3​=8 gives x3​=2; 2x2​−2(2)=−2 gives x2​=1; x1​+2(1)+2=3 gives x1​=−1. So x=(−1,1,2). Check in A: −1+2+2=3, −3+8+2=7, −2+6+8=12.

    The elimination was paid for once; each further right-hand side costs only two triangular sweeps.

    (c) A matrix that needs a permutation. Suppose B=LU with L unit lower triangular and U upper triangular, and compare rows of the product. Row 1 of L is (1,0,0), so row 1 of U equals row 1 of B, namely (1,2,1). Row 2 of LU is ℓ21​(1,2,1)+(0,u22​,u23​)=(ℓ21​,2ℓ21​+u22​,ℓ21​+u23​); matching (2,4,3) forces ℓ21​=2 and then u22​=0. Row 3 of LU is ℓ31​(1,2,1)+ℓ32​(0,0,u23​)+(0,0,u33​), whose first two entries are (ℓ31​,2ℓ31​); matching (1,3,2) forces ℓ31​=1 and 2=3, a contradiction. So no such factorization exists. (Elimination shows the same thing: after clearing column 1 the (2,2) entry is 0 while the (3,2) entry is 1, so a swap is unavoidable.)

    Swap rows 2 and 3 in advance with P=​100​001​010​​, so that

    PB=​112​234​123​​.

    Now eliminate: ℓ21​=1, R2​←R2​−R1​ gives (0,1,1); ℓ31​=2, R3​←R3​−2R1​ gives (0,0,1); the (3,2) entry is already 0, so ℓ32​=0. Hence

    PB=LUwithL=​112​010​001​​,U=​100​210​111​​.

    Check: row 2 of LU is (1,2,1)+(0,1,1)=(1,3,2) and row 3 is 2(1,2,1)+(0,0,1)=(2,4,3), the second and third rows of PB.

  12. 12.Computation

    Four one-way intersections A, B, C, D are joined by five internal roads carrying, in cars per hour, x1​ from A to B, x2​ from B to C, x3​ from C to D, x4​ from D to A, and x5​ directly from A to C. External traffic per hour: A takes in 200 and releases 80; B takes in 30 and releases 70; C takes in 60 and releases 90; D takes in 50 and releases 100. At every intersection, flow in equals flow out.

    1. (a)Write the four conservation equations as a linear system, show that one of them is a consequence of the other three, and find the rank of the coefficient matrix.
    2. (b)Solve the system and write all flows in parametric vector form. Interpret each null-space direction as a circulation in the network.
    3. (c)The road from D to A is closed, so x4​=0, and no road may carry negative traffic. Find the set of all admissible flows and the smallest possible value of x1​.
    4. (d)Suppose instead that D released 110 cars per hour, everything else unchanged. Show that the system is inconsistent and say in one sentence what the impossible row means physically.

    Solution

    (a) The model. In equals out at each intersection:

    A: x4​+200=x1​+x5​+80, i.e. x1​−x4​+x5​=120.

    B: x1​+30=x2​+70, i.e. x1​−x2​=40.

    C: x2​+x5​+60=x3​+90, i.e. x2​−x3​+x5​=30.

    D: x3​+50=x4​+100, i.e. x3​−x4​=50.

    Adding the B, C and D equations gives x1​−x2​+x2​−x3​+x5​+x3​−x4​=40+30+50, that is x1​−x4​+x5​=120 — exactly the A equation. So A is redundant: every internal road appears once as an inflow and once as an outflow, so summing all four left-hand sides gives 0, and the four right-hand sides 120−40−30−50 also sum to 0 because total external inflow (340) equals total external outflow (340).

    For the rank, reduce the augmented matrix (rows in the order A,B,C,D):

    ​1100​0−110​00−11​−100−1​1010​120403050​​R2​←R2​−R1​​​1000​0−110​00−11​−110−1​1−110​120−803050​​.

    Then R3​←R3​+R2​ gives (0,0,−1,1,0∣−50) and R4​←R4​+R3​ gives (0,0,0,0,0∣0):

    ​1000​0−100​00−10​−1110​1−100​120−80−500​​.

    Pivots in columns 1,2,3, so the coefficient matrix has rank 3; by the rank theorem the nullity is 5−3=2.

    (b) All flows. Free variables x4​=t and x5​=s. Row 3: −x3​+t=−50, so x3​=50+t. Row 2: −x2​+t−s=−80, so x2​=80+t−s. Row 1: x1​=120+t−s. In parametric vector form

    ​x1​x2​x3​x4​x5​​​=​120805000​​+t​11110​​+s​−1−1001​​.

    Check the particular solution (120,80,50,0,0) at every intersection: A: 0+200=120+0+80; B: 120+30=80+70; C: 80+0+60=50+90; D: 50+50=0+100. All balance.

    The direction (1,1,1,1,0) adds one car per hour to each of A→B→C→D→A: a circulation around the outer loop, which changes no external flow. The direction (−1,−1,0,0,1) reroutes one car per hour from the path A→B→C onto the direct road A→C: the same car arrives at C either way, so again nothing external changes. These are the two independent ways to move traffic around without anyone noticing at the boundary.

    (c) Closing D→A. Setting x4​=0 forces t=0, leaving the one-parameter family (120−s,80−s,50,0,s). Nonnegativity requires s≥0 (road A→C) and 80−s≥0 (road B→C; the condition 120−s≥0 is then automatic). So the admissible flows are exactly

    (120−s,80−s,50,0,s),0≤s≤80.

    The smallest x1​ occurs at s=80: x1​=40, with x2​=0, x3​=50, x5​=80. Check at A: 0+200=40+80+80; at B: 40+30=0+70; at C: 0+80+60=50+90; at D: 50+50=0+100. All balance, and no road is negative.

    (d) Unbalanced totals. The D equation becomes x3​+50=x4​+110, i.e. x3​−x4​=60; the other three rows are unchanged. Repeating the reduction, the last step R4​←R4​+R3​ now gives (0,0,0,0,0∣60−50)=(0,0,0,0,0∣10), an impossible row, so by the existence and uniqueness criterion the system is inconsistent. (Equivalently, B+C+D now has left side equal to that of A but right side 40+30+60=130=120.) Physically: the network would have to release 350 cars per hour while only 340 enter, and a steady flow cannot create ten cars an hour out of nothing.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout