Matrix Trace Calculator – Find tr(A) Online
Calculate the trace of any square matrix with our free online matrix trace calculator. Find the sum of diagonal elements instantly with step-by-step display.
Current matrix: 3x3 | Detected from your input
Understanding Matrix Trace
The trace of a square matrix is simply the sum of its diagonal elements – those running from the top-left corner to the bottom-right. Despite its simplicity, the trace appears throughout mathematics and physics, from quantum mechanics to differential equations.
The trace has remarkable properties: it's invariant under similarity transformations, equals the sum of eigenvalues, and satisfies tr(AB) = tr(BA) even when AB ≠ BA. These properties make it a powerful tool in theoretical work.
Trace Formula and Properties
Definition
For A = [aᵢⱼ], tr(A) = a₁₁ + a₂₂ + ... + aₙₙ = Σ aᵢᵢLinearity
tr(A + B) = tr(A) + tr(B)
tr(cA) = c·tr(A)
Cyclic Property
tr(AB) = tr(BA)
tr(ABC) = tr(BCA) = tr(CAB)
Transpose
tr(Aᵀ) = tr(A)
Same diagonal elements
Worked Examples
Example 1: 2x2 Matrix
Example 2: 3x3 Matrix
Example 3: Identity Matrix
Example 4: Diagonal Matrix
Quick Fact
The trace equals the sum of eigenvalues! This deep connection links a simple arithmetic operation (adding diagonal elements) to the fundamental spectral properties of a matrix. In quantum mechanics, the trace of a density matrix always equals 1, representing total probability.
Frequently Asked Questions
Why is it called "trace"?
The term comes from the German "Spur" (track or trace), used by mathematicians in the early 20th century. It suggests the diagonal leaves a "trace" through the matrix from corner to corner.
Can non-square matrices have a trace?
No. The trace requires a main diagonal from top-left to bottom-right, which only exists for square matrices. Rectangular matrices don't have this complete diagonal.
What's the trace of a zero matrix?
Zero! All diagonal elements are 0, so their sum is 0. This holds for any size zero matrix.
How is trace used in physics?
In quantum mechanics, the trace gives expectation values and probabilities. The trace of the density matrix equals 1 (total probability). In statistical mechanics, partition functions involve traces of operators.
Is trace the same as determinant?
No, they're different. Trace is the sum of diagonal elements (and eigenvalues). Determinant is the product of eigenvalues. Both are important matrix invariants but capture different properties.
What's the trace of AB vs BA?
They're equal! tr(AB) = tr(BA) even though AB ≠ BA in general. This cyclic property extends: tr(ABC) = tr(BCA) = tr(CAB), but not necessarily tr(ACB).
Other Free Tools
Matrix Addition & Subtraction Calculator – Compute Matrices Online
Add or subtract any two matrices with our free online matrix calculator. Supports all matrix sizes with instant results and element-wise computation displayed clearly.
Matrix Multiplication Calculator – Multiply Matrices Online
Multiply any two compatible matrices with our free online matrix multiplication calculator. See the full product matrix with step-by-step row-by-column computation.
Matrix Transpose Calculator – Find Transpose of Any Matrix
Find the transpose of any matrix instantly with our free online matrix transpose calculator. Swap rows and columns of any size matrix with a single click.
Matrix Determinant Calculator – Compute Det of Any Matrix
Calculate the determinant of any square matrix with our free online determinant calculator. Supports 2x2, 3x3, and larger matrices with cofactor expansion steps shown.
Matrix Inverse Calculator – Find Inverse of Any Matrix
Find the inverse of any invertible square matrix with our free online matrix inverse calculator. Uses row reduction method with step-by-step solution for 2x2, 3x3, and larger matrices.
Identity Matrix Generator – Create n×n Identity Matrix
Generate an identity matrix of any size instantly with our free online identity matrix generator. Create n×n identity matrices for linear algebra, matrix operations, and proofs.
Scalar Matrix Multiplication Calculator – Multiply Matrix by Scalar
Multiply any matrix by a scalar constant with our free online scalar multiplication calculator. See the scaled matrix with all element-by-element calculations shown clearly.
Matrix Rank Calculator – Find Rank of Any Matrix Online
Find the rank of any matrix with our free online matrix rank calculator. Uses row reduction to row echelon form with step-by-step working shown for complete understanding.