Tridiagonal matrices and vector space dimension

262 Views Asked by At

"The set of all $n$ × $n$ tridiagonal matrices forms a 3n-2 dimensional vector space."(Wikipedia)

I'm familiar with what a tridiagonal matrix is but I'm not sure why this specifically is true.

I was wondering why this is the case, and how to prove it?