Let
$$f_n := \begin{vmatrix} a_1 & b_1 \\ c_1 & a_2 & b_2 \\ & c_2 & \ddots & \ddots \\ & & \ddots & \ddots & b_{n-1} \\ & & & c_{n-1} & a_n \end{vmatrix}$$
Apparently, the determinant of the tridiagional matrix above is given by the recurrence relation
$$f_n = a_n f_{n-1} - c_{n-1} b_{n-1}f_{n-2}$$
with initial values $f_0 = 1$ and $f_{-1} = 0$ (according to Wikipedia). Can anyone please explain to me how they came to this recurrence relation? I don’t really understand how to derive it.
The recurrence is obtained by developing the determinant along the last column (or, equivalently, along the last row).