Expanding along its last row gives the last diagonal contribution . The only other nonzero entry is ; expanding its minor along the last column contributes
Thus the tridiagonal determinant recurrence is
so
Expand the tridiagonal determinant along its first row. The diagonal entry contributes . In the off-diagonal cofactor, expansion along its first column supplies the other factor , and the cofactor sign makes the net contribution . Therefore
The initial values are and . Writing the same formula at forces , the empty determinant convention. This is the tridiagonal determinant recurrence.
Let be the determinant of the leading principal submatrix. Expansion along the last row gives an term and a term with negative cofactor sign. In the latter minor, the final column has only nonzero, and deleting that row and column leaves the leading principal submatrix. Thus the tridiagonal determinant recurrence is
Here is the empty determinant convention, needed to include . The derivation uses cofactor expansion, so the recurrence relation remains valid when coefficients or intermediate determinants vanish; it never divides by a pivot element.