The determinant of a matrix is calculated by the difference of product of its diagonal elements. The determinant formula for a matrix A is:
if A = [a b][c d] then |A| = |a b||c d|
|A| = ad-bc