Let $f(t)$ be a polynomial composed of linear factors $(t-a_i)$ for $i \in [n]$, i.e $f(t) = (t-a_1)\cdots (t-a_n) $. Let $g_k(t)$ be given by: $$g_k(t) = \frac{f(t)}{(t-a_k)}$$ for $k \in[n]$. Prove that the set of polynomials $\{g_k(t) \mid 1 \leq k \leq n \}$ is linearly independent.
Forgot to specify, but each $a_i$ is distinct.
I am not sure how to proceed here. I was thinking of using induction but am not entirely sure how to work in the inductive hypothesis.
Suppose there are constants $b_1,\ldots,b_n$, not all zero, such that $$b_1g_1(t)+\cdots+b_ng_n(t)=0$$ for all $t$. But if $b_k\neq0$, then $$b_k\prod_{i\neq k}(a_k-a_i)=b_kg_k(a_k)=b_1g_1(a_k)+\cdots+b_ng_n(a_k)=0,$$ and so $a_i=a_k$ for some $i\neq k$. Thus, if all the $a_i$ are distinct, then $g_1,\ldots,g_n$ are linearly independent.