Problem from linear algebra done right.
We are given that $U$ and $V$ are finite-dimensional and T $\in$ $\mathcal{L} (U,V)$ and $S \in \mathcal{L} (V,W)$. We want to show
$$\operatorname{dim null}(ST) \leq \operatorname{dim null} T + \operatorname{dim null} S.$$
I tried using the fundamental theorem of linear maps but wasn't able to get much process, so instead I am using bases to solve the problem.
This is my work so far:
If $u \in \operatorname{null} T$, then $(ST)u = S(Tu) = S(0) = 0$ which implies that $u \in \operatorname{null} ST$. Hence, $\operatorname{null} T$ is a subspace of $\operatorname{null} ST$.
Let $u_1,\ldots,u_n$ be a basis for $\operatorname{null} T$. Extend the list to a basis $u_1,\ldots,u_n, v_1, \ldots, v_m$ of $\operatorname{null}(ST)$. So,
$$\operatorname{dim null} (ST) = n + m.$$
If I want to complete my proof, I only need to show that $m \leq \operatorname{dim null} S $.
Now, notice that if $u \in \operatorname{null} ST$, then $u = b_1 u_1 +\ldots+ b_n u_n + a_1 v_1 + \ldots + a_m u_m$ where the $a$'s and $b$'s are constants. We also know that $Tu \in \operatorname{null} S$. Then,
$Tu = a_1Tv_1 + \ldots + a_mTv_m$ where the other $u$'s got deleted since they were in $\operatorname{null} T$.
But here is where I am not sure where to go. I don't know if this method actually will lead me anywhere or if it's just easier to use the linear map theorem.