Reduce A to upper-triangular; det(A) = sign × product of pivots. Row-adds don't change det; each row swap flips the sign. Edit the matrix below and step through.
junior.md for the worked example and professional.md for the proof that det(A) = (−1)swaps × ∏ pivots.