Let F be a field, and n a positive integer. Using the Leibniz formula for the determinant, prove that the determinant of an upper triangular matrix $U ∈ F^{n×n}$ or a lower triangular matrix $L ∈ F^{n×n}$ is equal to the product of its diagonal entries.
So I'm sort of confused as to what to do? I was going to create an arbitrary matrix and then show by cofactor expansion what the determinant was equal to and then start again with an arbitrary matrix and then create a triangle in bottom left or upper right of the matrix. Then take a product of the diagonal but I'm unsure how to create this triangle? Any thoughts as to how to prove this?
Essentially the idea is to show that only the identity permutation can produce a nonzero product.
To see this, let $\sigma$ be a nonidentity permutation. Then there must be some $k$ with $\sigma(k)<k$. But then the product $\prod_{i=1}^na_{i\sigma(i)}$ contains $a_{k\sigma(k)}$ which lies below the diagonal and hence the product is zero.
Then the determinant is necessarily the product of the diagonal entries (corresponding to the identity permutation) as you desire.
Edit: this is for upper triangular matrices. For lower triangular matrix either use the transpose or adjust the argument accordingly.