- 2079 Jestha · 8 marks
Solution methods of linear equations with examples
Short answer
Direct methods (Gauss elimination, LU decomposition) give exact solutions after fixed operations, suitable for small systems. Iterative methods (Jacobi, Gauss-Seidel, conjugate gradient) refine an initial guess, preserving sparsity for large systems. Example: Gauss elimination on 2x+y=5, x+3y=10 yields y=3, x=1.
Explain the solution methods of solving a system of linear equations with examples.
A system is solved by direct or iterative methods.
Direct methods
They give the exact answer (apart from round-off) after a fixed number of operations.
- Gauss elimination: reduce to upper triangular form, then back-substitute.
- LU decomposition / Cholesky ( for symmetric positive definite matrices): factor once, then solve for several right-hand sides.
- Gauss-Jordan and matrix inverse.
Example: . Eliminating, gives , so , .
Iterative methods
Start from a guess and improve it until the change is small. They suit large sparse systems.
- Jacobi:
- Gauss-Seidel: same but uses new values immediately.
- SOR: Gauss-Seidel with relaxation factor .
- Conjugate gradient: minimises for symmetric positive definite .
Example (Gauss-Seidel): , start .
- Iteration 1: , .
- Iteration 2: , .
The values move to the exact solution , .
Comparison
| Direct | Iterative |
|---|---|
| Fixed operations, exact | Approximate, needs convergence |
| Fill-in destroys sparsity | Keeps sparsity, low memory |
| Best for small/medium systems | Best for very large sparse systems |
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Linear solution techniques; CG two iterations · Computational Techniques in Civil Engineering, chapter 2
- Linear solution techniques; CG algorithm · Computational Techniques in Civil Engineering, chapter 2
- Iterative methods for linear equations · Computational Techniques in Civil Engineering, chapter 2
- Numerical solution techniques, advantages and suitability · Computational Techniques in Civil Engineering, chapter 1 · asked 4×
- Characteristic form FD solution (velocity, pressure) · Computational Techniques in Civil Engineering, chapter 6 · asked 2×
- Non-linear kinematic wave, trapezoidal river · Computational Techniques in Civil Engineering, chapter 5
- Consistency of a linear system · Mathematics III, chapter 1
- Linear system solvable for which λ · Mathematics III, chapter 1
- Two-mass system equations, X2/F, F-I and F-V analogies · Control Systems, chapter 2
- Consistency of a linear system · Mathematics III, chapter 1 · asked 9×
All Computational Techniques in Civil Engineering chapter 2 questions →