If $V_1,V_2$ are subspaces. The Dimension Identity says: $$\dim(V_1) + \dim(V_2) = \dim(V_1 + V_2) + \dim(V_1 \cap V_2)$$ But how to prove this? I know in the reference book, it says we should extend the basis. But could anyone give more details about this? To be specific in the proof given by the book, how to show $\{u_1, \cdots , u_k, v_{k+1}, \cdots , v_s, w_{k+1}, \cdots , w_t\}$ is a basis for $V_1 + V_2$
Reference
[1] https://link.springer.com/content/pdf/10.1007%2F978-1-4614-1099-7_1.pdf page 5, Theorem 1.1.
I will outline the steps and leave you to fill in the algebra.
To show $\{u_1,\ldots,u_k,v_{k+1},\ldots,v_s,w_{k+1},\ldots,w_t\}$ is independent: let $$\alpha_1u_1+\cdots+\beta_1v_{k+1}+\cdots+\gamma_1w_{k+1}+\cdots=0\ .$$ This can be written $$\alpha_1u_1+\cdots+\beta_1v_{k+1}+\cdots=-\gamma_1w_{k+1}-\cdots\ .$$ The right hand side is in $V_2$ (should be obvious) and also in $V_1$ (why?), hence in $V_1\cap V_2$, hence is a linear combination of $u_1,\ldots\,$: $$-\gamma_1w_{k+1}+\cdots=\delta_1u_1+\cdots\ .$$ Explain why $\gamma_1,\ldots$ are all zero. Give a similar argument to explain why $\beta_1,\ldots$ are zero. Then explain why $\alpha_1,\ldots$ are zero.
To show $\{u_1,\ldots,u_k,v_{k+1},\ldots,v_s,w_{k+1},\ldots,w_t\}$ is a spanning set for $V_1+V_2$: let $x$ be in $V_1+V_2$. Then $x=x_1+x_2$ with $x_1\in V_1$ and $x_2\in V_2$ (why?). Use this to write $x$ as a linear combination of $u_1,\ldots,v_{k+1},\ldots,w_{k+1},\ldots\,$.