Maths WorkshopMaths problems with full solutions
Exercise 2222Linear algebra › Vector spaces and subspacesL1Added 3 Nov 2026

Proving the dimension formula

#dimension formula#proof#intersection and sum

Statement

Let FF and GG be finite-dimensional subspaces of a vector space EE. Prove that
dim⁡(F+G)=dim⁡F+dim⁡G−dim⁡(F∩G).\dim(F+G)=\dim F+\dim G-\dim(F\cap G).

Hint

Take a basis (u1,…,uk)(u_1,\ldots,u_k) of F∩GF\cap G, extend it to a basis of FF and to a basis of GG, and show the union is a basis of F+GF+G.

Show solutionHide solution

Solution

Setup. Let (u1,…,uk)(u_1,\ldots,u_k) be a basis of F∩GF\cap G, with k=dim⁡(F∩G)k=\dim(F\cap G). Extend it to a basis (u1,…,uk,v1,…,vp)(u_1,\ldots,u_k,v_1,\ldots,v_p) of FF (so p=dim⁡F−kp=\dim F-k) and to a basis (u1,…,uk,w1,…,wq)(u_1,\ldots,u_k,w_1,\ldots,w_q) of GG (so q=dim⁡G−kq=\dim G-k).

Span. The family (u1,…,uk,v1,…,vp,w1,…,wq)(u_1,\ldots,u_k,v_1,\ldots,v_p,w_1,\ldots,w_q) spans F+GF+G, because every element of FF is a combination of the uu's and vv's, and every element of GG is a combination of the uu's and ww's.

Independence. Suppose ∑αiui+∑βjvj+∑γlwl=0\sum\alpha_i u_i+\sum\beta_j v_j+\sum\gamma_l w_l=0. Then ∑γlwl=−∑αiui−∑βjvj∈F\sum\gamma_l w_l=-\sum\alpha_i u_i-\sum\beta_j v_j\in F, so it belongs to F∩GF\cap G, hence is a combination of the uu's. But the ww's are independent from the uu's, so γl=0\gamma_l=0 for all ll. Then ∑αiui+∑βjvj=0\sum\alpha_i u_i+\sum\beta_j v_j=0, which gives αi=βj=0\alpha_i=\beta_j=0 by independence in FF.

Conclusion. The family is a basis of F+GF+G, with k+p+q=dim⁡F+dim⁡G−dim⁡(F∩G)k+p+q=\dim F+\dim G-\dim(F\cap G) vectors.