When is a vector space sum a direct sum?

Lemma 1. Let 𝒰,𝒱, be subspaces of vector space 𝒲. Then 𝒲=𝒰𝒱 if and only if

  1. 𝒲=𝒰+𝒱, and

  2. 𝒰𝒱={𝟎}.

Proof. 𝒲=𝒰𝒱𝒲=𝒰+𝒱 by definition of direct sum, sum of vector subspaces. To prove that 𝒲=𝒰𝒱𝒰𝒱={𝟎}, consider 𝒘𝒰𝒱. Since 𝒘𝒰 and 𝒘𝒱 write

𝒘=𝒘+𝟎 (𝒘𝒰,𝟎𝒱), 𝒘=𝟎+𝒘 (𝟎𝒰,𝒘𝒱),

and since expression 𝒘=𝒖+𝒗 is unique, it results that 𝒘=𝟎. Now assume (i),(ii) and establish an unique decomposition. Assume there might be two decompositions of 𝒘𝒲, 𝒘=𝒖1+𝒗1, 𝒘=𝒖2+𝒗2, with 𝒖1,𝒖2𝒰, 𝒗1,𝒗2𝒱. Obtain 𝒖1+𝒗1=𝒖2+𝒗2, or 𝒙=𝒖1-𝒖2=𝒗2-𝒗1. Since 𝒙𝒰 and 𝒙𝒱 it results that 𝒙=𝟎, and 𝒖1=𝒖2, 𝒗1=𝒗2, i.e., the decomposition is unique.