Trace of a matrix
It is the sum of all the diagonal elements of a square matrix.
`[A]=[[a,b,c],[d,e,f],[g,h,i]]`
Then `"Trace"(A) = a + e + i`
Examples
1. Find `Trace(A)` ...
`A=[[3,1,1],[-1,2,1],[1,1,1]]`
Solution:
`trace(A)` | = | `trace` | | `3` | `1` | `1` | | | `-1` | `2` | `1` | | | `1` | `1` | `1` | |
|
|
`=3+2+1`
`=6`
2. Find `Trace(B)` ...
`B=[[2,3,1],[0,5,6],[1,1,2]]`
Solution:
`trace(B)` | = | `trace` | | `2` | `3` | `1` | | | `0` | `5` | `6` | | | `1` | `1` | `2` | |
|
|
`=2+5+2`
`=9`
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then