Topic 1 Systems of Linear Equations & Matrix Algebra

This topic covers the foundational mechanics of Linear Algebra: manipulating matrices, solving systems using row reduction, computing inverses, and utilizing matrix factorizations (like LU decomposition).

Question 1: Reduced Row Echelon Form (RREF)

Source: Practice Exam 4, Question 2
Exact Question: Give the reduced row echelon form for the matrix [123101066].

Methodology:

  1. Objective: Transform the matrix using elementary row operations into Reduced Row Echelon Form (RREF). A matrix is in RREF if:
    • All nonzero rows are above any rows of all zeros.
    • Each leading entry (pivot) of a row is in a column to the right of the leading entry of the row above it.
    • The leading entry in each nonzero row is exactly 1.
    • Each leading 1 is the only nonzero entry in its column (i.e., zeros above and below the pivot).
  2. Forward Phase (Elimination): Create zeros below the pivots, working from left to right, top to bottom.
  3. Backward Phase: Create zeros above the pivots, working from right to left, bottom to top.
  4. Scaling: Multiply rows by scalars to ensure every pivot is exactly 1.

Solution:


Question 2: Finding a Matrix Inverse (3×3)

Source: Exam 2, Question 2
Exact Question: Find the inverse matrix of the matrix A=[311101211].

Methodology:

  1. Objective: Compute A1 using the augmented matrix algorithm.
  2. Set Up: Form the augmented matrix [AI3], where I3 is the 3×3 identity matrix.
  3. Row Reduction: Apply elementary row operations to transform the left side A into I3.
  4. Result: If A is invertible, the augmented matrix will reduce to the form [I3A1]. The right side of the partition is your answer.

Solution:


Question 3: Matrix Inverse with Scaling

Source: Practice Exam 3, Question 11
Exact Question: Let A=[0153439126]. Compute A1 if it exists.

Methodology:

  1. Set Up: [AI3].
  2. Row Swaps: Because the (1,1) entry is 0, we must swap Row 1 with another row (e.g., Row 2) to get a non-zero pivot.
  3. Forward/Backward Phase: Proceed as standard, being careful with arithmetic since scaling will involve fractions.

Solution:


Question 4: Determinants and Invertibility

Source: Practice Exam 4, Question 4
Exact Question: For which value(s) of h is the matrix [h322h] invertible?

Methodology:

  1. Objective: Find the condition for invertibility.
  2. Formula: A 2×2 matrix A=[abcd] is invertible if and only if its determinant is non-zero (det(A)=adbc0).
  3. Process: Calculate the determinant in terms of h. Set it equal to zero to find the values that make the matrix singular (not invertible). The final answer will be all values except those.

Solution:


Question 5: Matrix Algebra and Dimensions

Source: Practice Exam 4, Question 9
Exact Question: Let A=[302111] and B=[1221]. Compute ATB1, if it exists.

Methodology:

  1. Check Dimensions: Matrix multiplication CD is only defined if the number of columns of C equals the number of rows of D. A is 2×3, so AT is 3×2. B is 2×2, so B1 is 2×2. The product (3×2)×(2×2) is valid and will yield a 3×2 matrix.
  2. Transpose: Find AT by turning the rows of A into columns.
  3. Inverse Formula: Find B1 using the 2×2 rule: B1=1det(B)[dbca].
  4. Multiply: Compute the dot products of the rows of AT with the columns of B1.

Solution:


Question 6: LU Decomposition & Solving Ax=b

Source: Exam 2, Question 7
Exact Question: Consider the matrix A=[122312295].
a. Find an LU decomposition of A.
b. Use this LU decomposition to solve the system Ax=[6110].

Methodology:

  1. Part a (Find LU):
    • Reduce A to an upper triangular matrix U using only row replacements (subtracting a multiple of a row from a row below it). Never swap rows or scale rows!
    • Keep track of the multipliers. The scalar m used to eliminate the entry in row i, column j becomes the (i,j) entry in the lower triangular matrix L.
    • L will have 1s on its main diagonal.
  2. Part b (Solve Ax=b):
    • Since A=LU, the equation Ax=b becomes LUx=b.
    • Let Ux=y. Now the system becomes Ly=b.
    • Solve Ly=b for y using forward substitution (starting from y1 and working down).
    • Once y is found, solve Ux=y for x using backward substitution (starting from x3 and working up).

Solution:
Part a:

Part b:


Question 7: LU Factorization Only

Source: Practice Exam 4, Question 8
Exact Question: Find an LU-factorization of the matrix A=[124259271].

Methodology:
This is identically structured to Part A of Question 6. Reduce A to U while tracking the exact multipliers m used to subtract rows. Remember: the formula is Rowtarget=Rowtargetm×Rowsource. That m goes into L.

Solution: