Vector space/Union of linear subspaces/Exercise

Let be a field, and let be a -vector space. Let be linear subspaces of . Prove that the union is a linear subspace of if and only if or .