Comprehensive Exercises on Systems of Linear Equations

Exercises

Exercise 1

Analyse the structure of the solutions of the system {x+y=22x+2y=4\begin{cases} x + y = 2 \\ 2x + 2y = 4 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionsrank

Approach: Use Gaussian elimination to analyse the structure of the solutions.

Steps:

  1. The augmented matrix: (11∣222∣4)\begin{pmatrix} 1 & 1 & | & 2 \\ 2 & 2 & | & 4 \end{pmatrix}
  2. Reduce to row echelon form: (11∣200∣0)\begin{pmatrix} 1 & 1 & | & 2 \\ 0 & 0 & | & 0 \end{pmatrix}
  3. The rank of the coefficient matrix is 1, the rank of the augmented matrix is 1, and the number of unknowns is 2
  4. The rank of the coefficient matrix equals the rank of the augmented matrix, and is less than the number of unknowns

Answer: there are infinitely many solutions

Exercise 2

Solve {x+2y=53x−y=4\begin{cases} x + 2y = 5 \\ 3x - y = 4 \end{cases} by Cramer’s rule.

system of linear equationsGaussian eliminationfundamental system of solutionsCramer's rule

Approach: Follow the steps of Cramer’s rule.

Steps:

  1. The coefficient matrix: A=(123−1)A = \begin{pmatrix} 1 & 2 \\ 3 & -1 \end{pmatrix}
  2. ∣A∣=1×(−1)−2×3=−1−6=−7≠0|A| = 1 \times (-1) - 2 \times 3 = -1 - 6 = -7 \neq 0
  3. ∣A1∣=∣524−1∣=5×(−1)−2×4=−5−8=−13|A_1| = \begin{vmatrix} 5 & 2 \\ 4 & -1 \end{vmatrix} = 5 \times (-1) - 2 \times 4 = -5 - 8 = -13
  4. ∣A2∣=∣1534∣=1×4−5×3=4−15=−11|A_2| = \begin{vmatrix} 1 & 5 \\ 3 & 4 \end{vmatrix} = 1 \times 4 - 5 \times 3 = 4 - 15 = -11
  5. x=−13−7=137x = \frac{-13}{-7} = \frac{13}{7}, y=−11−7=117y = \frac{-11}{-7} = \frac{11}{7}

Answer: x=137x = \frac{13}{7}, y=117y = \frac{11}{7}

Exercise 3

Write down the fundamental system of solutions of {x+y+z=02x+2y+2z=0\begin{cases} x + y + z = 0 \\ 2x + 2y + 2z = 0 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: Follow the steps for finding a fundamental system of solutions.

Steps:

  1. The augmented matrix: (111∣0222∣0)\begin{pmatrix} 1 & 1 & 1 & | & 0 \\ 2 & 2 & 2 & | & 0 \end{pmatrix}
  2. Reduce to row echelon form: (111∣0000∣0)\begin{pmatrix} 1 & 1 & 1 & | & 0 \\ 0 & 0 & 0 & | & 0 \end{pmatrix}
  3. Pivot: xx; free variables: y,zy, z
  4. Setting y=1,z=0y = 1, z = 0 gives v⃗1=(−1,1,0)\vec{v}_1 = (-1, 1, 0)
  5. Setting y=0,z=1y = 0, z = 1 gives v⃗2=(−1,0,1)\vec{v}_2 = (-1, 0, 1)

Answer: the fundamental system of solutions is {(−1,1,0),(−1,0,1)}\{(-1, 1, 0), (-1, 0, 1)\}

Exercise 4

Solve {x+y+z=62x+3y+z=13x−y+2z=4\begin{cases} x + y + z = 6 \\ 2x + 3y + z = 13 \\ x - y + 2z = 4 \end{cases} by Gaussian elimination.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: Follow the steps of Gaussian elimination.

Steps:

  1. The augmented matrix: (111∣6231∣131−12∣4)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 2 & 3 & 1 & | & 13 \\ 1 & -1 & 2 & | & 4 \end{pmatrix}
  2. Forward elimination:
    • R2−2R1R_2 - 2R_1: (111∣601−1∣11−12∣4)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 1 & -1 & 2 & | & 4 \end{pmatrix}
    • R3−R1R_3 - R_1: (111∣601−1∣10−21∣−2)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 0 & -2 & 1 & | & -2 \end{pmatrix}
    • R3+2R2R_3 + 2R_2: (111∣601−1∣100−1∣0)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 0 & 0 & -1 & | & 0 \end{pmatrix}
  3. Back substitution:
    • From the third row: −z=0-z = 0, so z=0z = 0
    • From the second row: y−z=1y - z = 1, so y=1y = 1
    • From the first row: x+y+z=6x + y + z = 6, so x=5x = 5

Answer: x=5x = 5, y=1y = 1, z=0z = 0

Exercise 5

Decide whether {x+y=1x+y=2\begin{cases} x + y = 1 \\ x + y = 2 \end{cases} has a solution.

system of linear equationsGaussian eliminationfundamental system of solutionsrank

Approach: Use Gaussian elimination to work out which case you are in.

Steps:

  1. The augmented matrix: (11∣111∣2)\begin{pmatrix} 1 & 1 & | & 1 \\ 1 & 1 & | & 2 \end{pmatrix}
  2. Reduce to row echelon form: (11∣100∣1)\begin{pmatrix} 1 & 1 & | & 1 \\ 0 & 0 & | & 1 \end{pmatrix}
  3. The rank of the coefficient matrix is 1, the rank of the augmented matrix is 2
  4. The rank of the coefficient matrix is less than the rank of the augmented matrix

Answer: there is no solution

Exercise 6

Find the parametric solution of the system {x+y+z=12x+2y+2z=2\begin{cases} x + y + z = 1 \\ 2x + 2y + 2z = 2 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: Reduce to row echelon form by Gaussian elimination, then express the solution in terms of parameters.

Steps:

  1. The augmented matrix: (111∣1222∣2)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 2 & 2 & 2 & | & 2 \end{pmatrix}
  2. Reduce to row echelon form: (111∣1000∣0)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 0 & 0 & 0 & | & 0 \end{pmatrix}
  3. Pivot: xx; free variables: y,zy, z
  4. Let y=ty = t and z=sz = s, then x=1−t−sx = 1 - t - s

Answer: x=1−t−sx = 1 - t - s, y=ty = t, z=sz = s (where t,st, s are arbitrary constants)

Exercise 7

Solve the system {2x+y=7x−3y=−4\begin{cases} 2x + y = 7 \\ x - 3y = -4 \end{cases} by Cramer’s rule.

system of linear equationsGaussian eliminationfundamental system of solutionsCramer's rule

Approach: Follow the steps of Cramer’s rule.

Steps:

  1. The coefficient matrix: A=(211−3)A = \begin{pmatrix} 2 & 1 \\ 1 & -3 \end{pmatrix}
  2. ∣A∣=2×(−3)−1×1=−6−1=−7≠0|A| = 2 \times (-3) - 1 \times 1 = -6 - 1 = -7 \neq 0
  3. ∣A1∣=∣71−4−3∣=7×(−3)−1×(−4)=−21+4=−17|A_1| = \begin{vmatrix} 7 & 1 \\ -4 & -3 \end{vmatrix} = 7 \times (-3) - 1 \times (-4) = -21 + 4 = -17
  4. ∣A2∣=∣271−4∣=2×(−4)−7×1=−8−7=−15|A_2| = \begin{vmatrix} 2 & 7 \\ 1 & -4 \end{vmatrix} = 2 \times (-4) - 7 \times 1 = -8 - 7 = -15
  5. x=−17−7=177x = \frac{-17}{-7} = \frac{17}{7}, y=−15−7=157y = \frac{-15}{-7} = \frac{15}{7}

Answer: x=177x = \frac{17}{7}, y=157y = \frac{15}{7}

Exercise 8

Decide whether the system {x+y=12x+2y=2\begin{cases} x + y = 1 \\ 2x + 2y = 2 \end{cases} can be solved by Cramer’s rule.

system of linear equationsGaussian eliminationfundamental system of solutionscoefficient matrix

Approach: Check the determinant of the coefficient matrix.

Steps:

  1. The coefficient matrix: A=(1122)A = \begin{pmatrix} 1 & 1 \\ 2 & 2 \end{pmatrix}
  2. ∣A∣=1×2−1×2=2−2=0|A| = 1 \times 2 - 1 \times 2 = 2 - 2 = 0
  3. The determinant is zero, so Cramer’s rule does not apply

Answer: it cannot be solved by Cramer’s rule

Exercise 9

Solve the system {x+y+z=62x+3y+z=13x−y+2z=4\begin{cases} x + y + z = 6 \\ 2x + 3y + z = 13 \\ x - y + 2z = 4 \end{cases} by Gauss-Jordan elimination.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: First reduce to row echelon form by Gaussian elimination, then reduce to reduced row echelon form by Gauss-Jordan elimination.

Steps:

  1. The augmented matrix: (111∣6231∣131−12∣4)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 2 & 3 & 1 & | & 13 \\ 1 & -1 & 2 & | & 4 \end{pmatrix}
  2. Gaussian elimination:
    • R2−2R1R_2 - 2R_1: (111∣601−1∣11−12∣4)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 1 & -1 & 2 & | & 4 \end{pmatrix}
    • R3−R1R_3 - R_1: (111∣601−1∣10−21∣−2)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 0 & -2 & 1 & | & -2 \end{pmatrix}
    • R3+2R2R_3 + 2R_2: (111∣601−1∣100−1∣0)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 0 & 0 & -1 & | & 0 \end{pmatrix}
  3. Gauss-Jordan elimination:
    • R3×(−1)R_3 \times (-1): (111∣601−1∣1001∣0)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & -1 & | & 1 \\ 0 & 0 & 1 & | & 0 \end{pmatrix}
    • R2+R3R_2 + R_3: (111∣6010∣1001∣0)\begin{pmatrix} 1 & 1 & 1 & | & 6 \\ 0 & 1 & 0 & | & 1 \\ 0 & 0 & 1 & | & 0 \end{pmatrix}
    • R1−R2−R3R_1 - R_2 - R_3: (100∣5010∣1001∣0)\begin{pmatrix} 1 & 0 & 0 & | & 5 \\ 0 & 1 & 0 & | & 1 \\ 0 & 0 & 1 & | & 0 \end{pmatrix}
  4. Read off the solution directly: x=5x = 5, y=1y = 1, z=0z = 0

Answer: x=5x = 5, y=1y = 1, z=0z = 0

Exercise 10

Find the dimension of the solution space of the system {x+y+z=02x+3y+z=0\begin{cases} x + y + z = 0 \\ 2x + 3y + z = 0 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionscoefficient matrix

Approach: Compute the rank of the coefficient matrix, then use the formula to get the dimension of the solution space.

Steps:

  1. The coefficient matrix: A=(111231)A = \begin{pmatrix} 1 & 1 & 1 \\ 2 & 3 & 1 \end{pmatrix}
  2. Reduce to row echelon form: (11101−1)\begin{pmatrix} 1 & 1 & 1 \\ 0 & 1 & -1 \end{pmatrix}
  3. r(A)=2r(A) = 2, n=3n = 3
  4. The dimension of the solution space: n−r(A)=3−2=1n - r(A) = 3 - 2 = 1

Answer: the dimension of the solution space is 1

Exercise 11

Prove that: the solution space of the homogeneous linear system Ax⃗=0⃗A\vec{x} = \vec{0} is a vector space.

system of linear equationsGaussian eliminationfundamental system of solutionsvector space

Approach: Verify the three conditions of a vector space.

Steps:

  1. Zero element: 0⃗\vec{0} is a solution, since A0⃗=0⃗A\vec{0} = \vec{0}
  2. Closure under addition: if x⃗1,x⃗2\vec{x}_1, \vec{x}_2 are solutions, then A(x⃗1+x⃗2)=Ax⃗1+Ax⃗2=0⃗+0⃗=0⃗A(\vec{x}_1 + \vec{x}_2) = A\vec{x}_1 + A\vec{x}_2 = \vec{0} + \vec{0} = \vec{0}
  3. Closure under scalar multiplication: if x⃗\vec{x} is a solution and kk is a constant, then A(kx⃗)=k(Ax⃗)=k0⃗=0⃗A(k\vec{x}) = k(A\vec{x}) = k\vec{0} = \vec{0}

Answer: the proof is complete

Exercise 12

Decide which case the system {x+2y=52x+4y=10\begin{cases} x + 2y = 5 \\ 2x + 4y = 10 \end{cases} falls into.

system of linear equationsGaussian eliminationfundamental system of solutionsdeterminant

Approach: First check the determinant, then work out which case you are in.

Steps:

  1. The coefficient matrix: A=(1224)A = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}
  2. ∣A∣=1×4−2×2=4−4=0|A| = 1 \times 4 - 2 \times 2 = 4 - 4 = 0
  3. Cramer’s rule does not apply
  4. Look at the two equations: the second equation is twice the first
  5. The two equations are equivalent, so there are infinitely many solutions

Answer: there are infinitely many solutions

Exercise 13

Find the fundamental system of solutions of the system {x+y+z=12x+2y+2z=23x+3y+3z=3\begin{cases} x + y + z = 1 \\ 2x + 2y + 2z = 2 \\ 3x + 3y + 3z = 3 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: Reduce to row echelon form by Gaussian elimination, then find the fundamental system of solutions.

Steps:

  1. The augmented matrix: (111∣1222∣2333∣3)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 2 & 2 & 2 & | & 2 \\ 3 & 3 & 3 & | & 3 \end{pmatrix}
  2. Reduce to row echelon form: (111∣1000∣0000∣0)\begin{pmatrix} 1 & 1 & 1 & | & 1 \\ 0 & 0 & 0 & | & 0 \\ 0 & 0 & 0 & | & 0 \end{pmatrix}
  3. Pivot: xx; free variables: y,zy, z
  4. Setting y=1,z=0y = 1, z = 0 gives v⃗1=(−1,1,0)\vec{v}_1 = (-1, 1, 0)
  5. Setting y=0,z=1y = 0, z = 1 gives v⃗2=(−1,0,1)\vec{v}_2 = (-1, 0, 1)

Answer: the fundamental system of solutions is {(−1,1,0),(−1,0,1)}\{(-1, 1, 0), (-1, 0, 1)\}

Exercise 14

Prove that: if the homogeneous linear system Ax⃗=0⃗A\vec{x} = \vec{0} has a nonzero solution, then ∣A∣=0|A| = 0.

system of linear equationsGaussian eliminationfundamental system of solutionsCramer's rule

Approach: Use Cramer’s rule together with a proof by contradiction.

Steps:

  1. Assume ∣A∣≠0|A| \neq 0
  2. By Cramer’s rule, the system has a unique solution
  3. Since the system is homogeneous, the unique solution is the zero solution
  4. This contradicts the assumption that a nonzero solution exists
  5. Therefore ∣A∣=0|A| = 0

Answer: the proof is complete

Exercise 15

Find the parametric solution of the system {x+y+z=02x+3y+z=0\begin{cases} x + y + z = 0 \\ 2x + 3y + z = 0 \end{cases}.

system of linear equationsGaussian eliminationfundamental system of solutionsaugmented matrix

Approach: Reduce to row echelon form by Gaussian elimination, then express the solution in terms of parameters.

Steps:

  1. The augmented matrix: (111∣0231∣0)\begin{pmatrix} 1 & 1 & 1 & | & 0 \\ 2 & 3 & 1 & | & 0 \end{pmatrix}
  2. Reduce to row echelon form: (111∣001−1∣0)\begin{pmatrix} 1 & 1 & 1 & | & 0 \\ 0 & 1 & -1 & | & 0 \end{pmatrix}
  3. Pivots: x,yx, y; free variable: zz
  4. Let z=tz = t, then y=ty = t and x=−2tx = -2t

Answer: x=−2tx = -2t, y=ty = t, z=tz = t (where tt is an arbitrary constant)

Found an issue with this content?

Tell us what could be improved.