StatGardenREF. DESK
Calculators/Maths/Matrix trace & transpose (2×2 or 3×3)
Maths

Matrix trace & transpose (2×2 or 3×3) calculator

Sum of the diagonal, and the matrix flipped over its diagonal.

What this calculator does

Matrix trace & transpose (2×2 or 3×3) works out sum of the diagonal, and the matrix flipped over its diagonal. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

Formulatrace(A) = Σ aᵢᵢ; transpose Aᵀ swaps rows and columns: (Aᵀ)ᵢⱼ = Aⱼᵢ

The inputs explained

FieldWhat to enter
Matrix sizeChoose from 2×2, 3×3.
Row 1, Col 1A number. Starts at 1.
Row 1, Col 2A number. Starts at 2.
Row 1, Col 3 (3×3 only)A number. Starts at 3.
Row 2, Col 1A number. Starts at 4.
Row 2, Col 2A number. Starts at 5.
Row 2, Col 3 (3×3 only)A number. Starts at 6.
Row 3, Col 1 (3×3 only)A number. Starts at 7.
Row 3, Col 2 (3×3 only)A number. Starts at 8.
Row 3, Col 3 (3×3 only)A number. Starts at 9.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

How the answer changes with row 1, col 1

Every other input is held at the calculator’s starting values while row 1, col 1 varies. Select any row to load that scenario into the calculator.

How the answer changes with row 1, col 1
Row 1, Col 1TraceSizeTranspose row 1
0.514.5003 × 30.5, 4, 7
0.7514.7503 × 30.75, 4, 7
115.0003 × 31, 4, 7
1.515.5003 × 31.5, 4, 7
216.0003 × 32, 4, 7
317.0003 × 33, 4, 7