[guided]Recall that $R=k[t]$ and that $B=(b_{ij})\in M_n(R)$ is the matrix $B=tI_n-A$. The determinant is a sum over all ways of choosing one entry from each row and one entry from each column. The triangular shape makes almost all of those choices impossible: if a chosen entry falls on the zero side of the triangle, the whole product becomes zero.
Let $S_n$ be the group of permutations of $\{1,\dots,n\}$. For $\sigma\in S_n$, let $\operatorname{sgn}(\sigma)\in R$ denote the image in $R$ of the integer sign of $\sigma$. The Leibniz formula, used as the determinant definition in the [polynomial ring](/page/Polynomial%20Ring) $R=k[t]$, says
\begin{align*}
\det B=\sum_{\sigma\in S_n}\operatorname{sgn}(\sigma)\prod_{i=1}^n b_{i,\sigma(i)}.
\end{align*}
Here a permutation $\sigma$ chooses the entry $b_{i,\sigma(i)}$ from row $i$, and the product uses exactly one entry from each column because $\sigma$ is bijective.
Suppose first that $B$ is upper triangular. Then $b_{ij}=0$ whenever $i>j$. Therefore, if
\begin{align*}
\prod_{i=1}^n b_{i,\sigma(i)}
\end{align*}
is nonzero, none of its factors may lie below the diagonal. For every $i\in\{1,\dots,n\}$, this forces $\sigma(i)\ge i$. Summing over $i$ gives
\begin{align*}
\sum_{i=1}^n \sigma(i)\ge \sum_{i=1}^n i.
\end{align*}
But $\sigma$ is a permutation, so the list $\sigma(1),\dots,\sigma(n)$ is just a reordering of $1,\dots,n$. Hence
\begin{align*}
\sum_{i=1}^n \sigma(i)=\sum_{i=1}^n i.
\end{align*}
The only way a finite collection of inequalities $\sigma(i)\ge i$ can have equality after summing is that each individual inequality is equality. Thus $\sigma(i)=i$ for every $i$, so $\sigma=\operatorname{id}$.
We now repeat the argument for the lower triangular case with the inequality reversed. If $B$ is lower triangular, then $b_{ij}=0$ whenever $i<j$. A nonzero determinant term must therefore satisfy $\sigma(i)\le i$ for every $i$. Summing gives
\begin{align*}
\sum_{i=1}^n \sigma(i)\le \sum_{i=1}^n i.
\end{align*}
Since $\sigma$ is still a permutation, the two sums are equal, and therefore every inequality $\sigma(i)\le i$ is equality. Hence $\sigma=\operatorname{id}$.
Thus, whether $B$ is upper triangular or lower triangular, every non-identity permutation contributes a zero product to the determinant expansion.[/guided]