Sarrus' rule or Sarrus' scheme is a method and a memorization scheme to compute the determinant of a 3x3 matrix. In Algebra, a determinant is a function depending on n that associates a scalar, det( A) to every n × n It is named after the French mathematician Pierre Frédéric Sarrus. Pierre Frédéric Sarrus (10 March 1798 Saint-Affrique - 20 November 1861 was a French Mathematician.
Consider a 3x3 matrix
, then its determinant can be computed by the following scheme:
Repeat the first 2 columns of the matrix behind the 3rd column, so that you have 5 columns in a row. Then add the products of the diagonals going from top to bottom (solid) and subtract the products of the diagonals going from bottom to top (dashed). This yields:

A similar scheme based on diagonals works for 2x2 matrices: 
Both are special cases of the Leibniz formula, which however does not yield similar memorization schemes for larger matrices. In Algebra, the Leibniz formula expresses the Determinant of a square matrix A = (a_{ij}_{ij = 1 \dots n} in terms of permutations of the matrix'