The number of additions and multiplications involved in performing Gaussian elimination on any upper triangular matrix is of the order
B
Step-by-Step Solution
Insight: An upper triangular matrix already has all the zeros that forward elimination would create, so the cubic phase collapses to zero work. The only cost left is the quadratic back-substitution phase.
Exam route:
- Recognise the matrix structure: for all .
- Forward elimination has nothing to eliminate below any pivot cost .
- The task "perform Gaussian elimination" means the complete solve (elimination + back substitution).
- Back substitution on an upper triangular system uses multiplications and the same number of additions.
- Total additions + multiplications .
Learning route:
Gaussian elimination has two phases. Phase 1 (forward elimination) converts by zeroing entries below each pivot. For a general dense matrix this costs additions and multiplications, i.e. . Phase 2 (back substitution) solves from the bottom row upward, costing additions and multiplications, i.e. .
When the input is already upper triangular, every entry below the diagonal is already zero. At pivot step , there are no entries in column below row to remove, so no row updates are performed. Forward elimination contributes exactly $0$ operations.
The system still must be solved, so back substitution runs in full. Variable requires multiplications and additions. Summing over gives of each, for a combined total of , which is .
The common wrong path is to memorise "Gaussian elimination is " and answer without inspecting the matrix structure. That ignores the fact that the cubic cost comes entirely from the row updates that this matrix does not need.
Verification: For , back substitution does multiplications and $3$ additions, total , matching . Growth is clearly quadratic, not cubic.