Solution (source code)

= Solution

Use $-A=(-I_n)A$. The <diagonal matrix> $-I_n$ has $n$ diagonal entries equal to $-1$, so the product and <triangular matrix> formulas from part (a) give
$$
\boxed{\det(-A)=\det(-I_n)\det(A)=(-1)^n\det(A).}
$$
Equivalently, multiplying each of the $n$ rows by $-1$ supplies one factor $-1$ per row.