A square matrix $A = [a_{ij}]$ is called ${\bf tridiagonal}$ if $a_{ij}=0$ for $|i-j|>1$. Try to guess a formula for the determinant of tridiagonal matrix, say $a_i = a_{ii}$ for $i=1,...,n$, $b_i = a_{i,i+1}$ and $c_i = a_{i+1,i}$ for $i=1,...,n-1$.
Attempt
So, I was thinking on reducing to smaller matrix. Say for $n=1$, we det A = $a_1$. Not in the case $n=2$, we have just the matrix with rows $[a_1, b_1$] and $[c_1,a_2]$. Thus,
$$ det A = a_1 a_2 - c_1 b_1 $$
Now, for the $n=3$ case, we start to see the zeros appear, but it becomes cumbersome to compute determinant after $n>3$. Is there a way to find closed nice for this problem? Or do I have to keep doing it expressing the actual determinant in terms of the previous as it is evident in the case $n=3$ since if we call $D_n$ to be the determinant on the nth case (for instnace, we saw that $D_2 = a_1 a_2 - c_1 b_1$ so that for the $n=3$ case I see that
$$ D_3 =a_3 D_2 - c_2 b_2 a_1 $$
Is this the right way to approach this problem? Moreover, why are tridiagonal matrices so important? Can someone give intuition into what they do? or in what situations we use them