trace of a matrix

Calculus in processing ... please wait
The matrix calculator calculates online the trace of a matrix. The trace of a square matrix is ​​equal to the sum of the terms of its diagonal.
trace(`[[3;1;0];[3;2;1];[4;1;7]]`), returns 12

Trace of a matrix

The matrix calculator calculates online the trace of a matrix. The trace of a square matrix is ​​equal to the sum of the terms of its diagonal.


The calculator provides a way to calculate online the trace of a square matrix. The trace of a square matrix is ​​equal to the sum of the terms of its diagonal. The matrix calculator can calculate the trace with letters or numbers.

Calculation of the trace of a square matrix

The calculator calculates the trace of a matrix with the results in exact form : to calculate the trace of the following matrix `((3,3,4),(1,2,0),(0,1,7))`, enter trace(`[[3;1;0];[3;2;1];[4;0;7]]`), at the end of the calculations, the response is returned.

The calculator allows symbolic calculations, it is possible to use letters: to calculate the trace of a matrix like this : `((a,3*a,4),(1,2*a,0),(0,c,a/2))`, type trace(`[[a;1;0];[3a;2a;c];[4;0;a/2]]`), after calculation, the result is returned.

Syntax :

trace(matrix)


Examples :

trace(`[[3;1;0];[3;2;1];[4;1;7]]`), returns 12

See also
List of related calculators :