Study resource

Read at your pace, then save it for later.

Unit 5: Numerical Linear Algebra: Direct and Iterative Methods

Section A — 1 Mark Questions

1. What is the primary objective of Gaussian elimination? [1 Mark]

Answer: To transform a system of linear equations into an upper triangular matrix form using elementary row operations.

2. Define partial pivoting in the context of Gaussian elimination. [1 Mark]

Answer: The process of selecting the largest absolute value in a column from the current row down to the last row to serve as the pivot element.

3. What is the main difference between Gaussian elimination and Gauss-Jordan methods? [1 Mark]

Answer: Gaussian elimination reduces the system to an upper triangular matrix, whereas Gauss-Jordan reduces it entirely to a diagonal or identity matrix.

4. State the condition for a coefficient matrix to guarantee convergence in the Jacobi iterative method. [1 Mark]

Answer: The matrix must be strictly diagonally dominant.

5. Write the general formula for the Jacobi iterative method for a system Ax = b. [1 Mark]

Answer: xi(k+1) = (1 / aii) × [ bi - ∑j≠i (aij xj(k)) ]

6. What does complete pivoting involve during matrix operations? [1 Mark]

Answer: Searching both the current row and current column for the largest absolute element to use as the pivot.

7. Why is pivoting performed in numerical methods? [1 Mark]

Answer: To minimize round-off errors and avoid division by zero.

8. What is the coefficient matrix property required for the Gauss-Seidel method to converge? [1 Mark]

Answer: Strict diagonal dominance or being a symmetric positive-definite matrix.

9. How are newly computed values utilized in the Gauss-Seidel method compared to the Jacobi method? [1 Mark]

Answer: Gauss-Seidel uses the most recently updated values immediately within the same iteration, whereas Jacobi uses values exclusively from the previous iteration.

10. State the fundamental limitation of direct methods like Gaussian elimination for extremely large, sparse systems. [1 Mark]

Answer: They suffer from fill-in, destroying sparsity and consuming excessive computational memory and time.

11. What is the outcome of forward elimination in Gaussian elimination? [1 Mark]

Answer: An equivalent upper triangular system of equations.

12. Define an ill-conditioned system of linear equations. [1 Mark]

Answer: A system where small changes in the coefficients or constants result in drastically large changes in the solution.

13. What is backward substitution used for? [1 Mark]

Answer: To solve an upper triangular system of linear equations starting from the last variable and moving upwards.

14. Give one advantage of iterative methods over direct methods for large systems. [1 Mark]

Answer: They preserve and exploit matrix sparsity, requiring less computer memory.

15. What does round-off error refer to in numerical linear algebra? [1 Mark]

Answer: The error introduced when a number with infinite or many digits is approximated with a fixed-precision representation.

16. Write the formula for strict diagonal dominance for a 3 × 3 matrix row i. [1 Mark]

Answer: |aii| > ∑j≠i |aij|

17. What is the purpose of scaling a linear system before applying elimination methods? [1 Mark]

Answer: To make the magnitude of coefficients comparable and reduce round-off errors.

18. Name the iterative method that uses the latest available estimates during the calculation process. [1 Mark]

Answer: Gauss-Seidel iterative method.

19. Can a system converge under Gauss-Seidel if it fails diagonal dominance? [1 Mark]

Answer: Yes, diagonal dominance is a sufficient condition, but not a necessary one for convergence.

20. What is the final step in the Gauss-Jordan method to obtain the solution vector directly? [1 Mark]

Answer: Dividing each row by its corresponding diagonal element after achieving a diagonal matrix.

Section B — 2/3 Mark Questions

1. Explain the concept of partial pivoting and why it is necessary in Gaussian elimination. [2 Marks]

Answer: Partial pivoting involves rearranging the rows of a matrix such that the element with the largest absolute value in the current column is placed in the pivot position. This is necessary to prevent division by small numbers or zero, which can cause severe round-off errors and numerical instability.

2. State the convergence criterion for the Jacobi iterative method and explain its significance. [2 Marks]

Answer: The Jacobi method converges if the coefficient matrix is strictly diagonally dominant, meaning the absolute value of the diagonal element in each row is greater than the sum of the absolute values of all other elements in that row. This condition ensures that the iterative error decreases with each successive step.

3. Distinguish between direct and iterative methods for solving linear systems. [3 Marks]

Answer: Direct methods, such as Gaussian elimination, compute the exact solution in a finite number of arithmetic operations assuming no round-off errors. Iterative methods, such as Gauss-Seidel, start with an initial guess and successively refine it to approach the true solution. Direct methods are preferred for small to medium dense systems, whereas iterative methods are efficient for very large, sparse systems.

4. Outline the steps involved in the Gauss-Jordan elimination method. [3 Marks]

Answer: The steps are: (1) Write the augmented matrix for the given linear system. (2) Use elementary row operations to transform the coefficient matrix into a diagonal matrix, incorporating pivoting if needed. (3) Normalize the diagonal elements to one and read off the solution values directly from the augmented column.

5. Explain why the Gauss-Seidel method generally converges faster than the Jacobi method. [2 Marks]

Answer: The Gauss-Seidel method uses the most recently updated values of variables as soon as they are computed within the current iteration. In contrast, the Jacobi method holds all previous iteration values constant until the entire set is recalculated, allowing Gauss-Seidel to propagate corrections faster.

6. What is meant by ill-conditioning in a system of linear equations, and how does it affect numerical solutions? [3 Marks]

Answer: An ill-conditioned system occurs when small perturbations in the input data lead to massive changes in the output solution. This happens when the matrix determinant is close to zero or the condition number is very high. It makes numerical solutions highly sensitive to round-off errors during elimination steps.

7. Briefly explain how round-off error impacts Gaussian elimination without pivoting. [2 Marks]

Answer: Without pivoting, dividing by a very small pivot element amplifies previous errors significantly. This magnification compounds through subsequent row operations, often rendering the final calculated solution completely inaccurate.

8. Write the iterative formula for the Gauss-Seidel method and identify its components. [2 Marks]

Answer: The formula is xi(k+1) = (1 / aii) × [ bi - ∑j=1i-1 (aij xj(k+1)) - ∑j=i+1n (aij xj(k)) ]. Here, aii are diagonal coefficients, bi are constants, and x(k+1) and x(k) represent new and old iterations respectively.

9. Compare complete pivoting with partial pivoting. [3 Marks]

Answer: Partial pivoting searches only down the current column for the largest element and performs row interchanges. Complete pivoting searches the entire remaining submatrix (both rows and columns) for the maximum element, requiring both row and column interchanges (reordering variables). Complete pivoting is more stable but computationally expensive.

10. Explain what happens when a pivot element becomes zero during Gaussian elimination and how to resolve it. [2 Marks]

Answer: A zero pivot causes division by undefined values, halting the algorithm. This is resolved by interchanging the current row with another row below it that has a non-zero coefficient in that column, utilizing row pivoting.

Section C — 5 Mark Questions

1. Explain the complete procedure of Gaussian elimination with partial pivoting to solve a system of linear equations, including an explanation of forward elimination and backward substitution. [5 Marks]

Introduction

Gaussian elimination with partial pivoting is a robust direct numerical method used to solve systems of linear algebraic equations of the form Ax = b by systematically eliminating variables.

Forward Elimination Phase

The augmented matrix [A|b] is constructed. For each column k, the algorithm searches for the largest absolute value from row k down to n (partial pivoting) and swaps that row with row k. Row operations are then applied to eliminate all non-zero entries below the main diagonal, converting the matrix into an upper triangular form.

Backward Substitution Phase

Once the upper triangular system is attained, the last equation contains only one variable, which is solved directly. Working upwards, the known values are substituted back into the preceding equations to solve for the remaining variables sequentially.

Key Advantages

Partial pivoting prevents division by zero and minimizes the accumulation of round-off errors, ensuring greater numerical stability throughout the computational process.

2. Compare and contrast the Jacobi iterative method and the Gauss-Seidel iterative method. Discuss their convergence properties, formulas, and computational efficiency. [5 Marks]

Introduction

Jacobi and Gauss-Seidel are standard iterative techniques used for solving large, sparse systems of linear equations where direct methods become computationally expensive.

Jacobi Method

In the Jacobi method, all components of the new vector x(k+1) are computed independently using only the old values from x(k). Its formula is xi(k+1) = (1 / aii) × [ bi - ∑j≠i (aij xj(k)) ].

Gauss-Seidel Method

The Gauss-Seidel method improves upon Jacobi by utilizing updated values immediately as they become available within the same iteration cycle. Its formula incorporates both newly computed values for earlier variables and older values for subsequent variables.

Convergence Comparison

Both methods require the coefficient matrix to be strictly diagonally dominant for guaranteed convergence. However, Gauss-Seidel typically converges in roughly half the number of iterations compared to Jacobi because of its immediate use of updated information.

3. Explain the Gauss-Jordan method in detail. How does it differ from standard Gaussian elimination, and what are its advantages and disadvantages? [5 Marks]

Introduction

The Gauss-Jordan method is a direct variation of Gaussian elimination where elimination is carried out both above and below the main diagonal to yield a diagonal or identity matrix.

Working Principle

Beginning with the augmented matrix, pivot selection and row operations are performed to eliminate entries both below and above the pivot element. Diagonal entries are then normalized to one.

Comparison with Gaussian Elimination

Standard Gaussian elimination stops at upper triangular form and requires backward substitution. Gauss-Jordan eliminates the need for backward substitution by reducing the matrix directly to diagonal form, producing the solution vector in the augmented column automatically.

Advantages and Disadvantages

The primary advantage is conceptual simplicity and direct extraction of the solution without substitution steps. The major disadvantage is that it requires about 50 percent more arithmetic operations than standard Gaussian elimination, making it computationally less efficient for large dense systems.

4. Discuss the criteria for convergence of iterative methods for solving linear equations, specifically focusing on strict diagonal dominance and how it applies to Jacobi and Gauss-Seidel methods. [5 Marks]

Introduction

Iterative methods do not yield exact solutions in fixed steps; therefore, establishing whether an iteration sequence will converge to the true solution is crucial.

Strict Diagonal Dominance

A matrix A is strictly diagonally dominant if the magnitude of the diagonal entry in every row is strictly greater than the sum of the magnitudes of all other non-diagonal entries in that same row: |aii| > ∑j≠i |aij| for all i.

Application to Jacobi Method

Strict diagonal dominance is a sufficient condition to guarantee that the spectral radius of the Jacobi iteration matrix is less than one, ensuring convergence regardless of the initial guess.

Application to Gauss-Seidel Method

If a matrix is strictly diagonally dominant, the Gauss-Seidel method is also guaranteed to converge. Furthermore, Gauss-Seidel can occasionally converge for matrices where Jacobi fails, provided the matrix is symmetric and positive-definite.

5. Explain the impact of pivoting strategies (partial versus complete) on the accuracy and stability of solving linear systems using elimination methods. [5 Marks]

Introduction

In finite-precision computer arithmetic, round-off errors can severely distort the results of direct elimination methods. Pivoting strategies are employed to maintain numerical stability.

The Role of Pivots

The pivot acts as the denominator during elimination steps. Small pivot values result in large multipliers, which dramatically amplify prior errors and lead to catastrophic loss of significance.

Partial Pivoting

Partial pivoting scans the current column for the maximum absolute value and swaps that row into the pivot position. This limits multiplier magnitudes to be less than or equal to one, significantly curbing error propagation.

Complete Pivoting

Complete pivoting searches both the remaining rows and columns for the absolute maximum element, requiring variable reordering. While it offers superior stability and theoretical robustness, it is rarely implemented in standard software packages due to its high searching overhead and computational complexity.


xxx

Did this help you understand better?

Your feedback improves the quality of this resource for everyone.