Direct sums and why their vectors split uniquely, how a complementary subspace defines a projection, why idempotent maps are exactly these projections, and how oblique projections differ from orthogonal ones.
Split the vector (3,2) in the plane into a piece on the horizontal axis and a piece on the line y=x. There is only one way to do it, namely (1,0)+(2,2), so the horizontal piece is (1,0) and not the perpendicular shadow (3,0). Keeping that horizontal piece is still a projection, only not a perpendicular one. This lesson finds the exact condition for such a split to be unique, builds the projection it defines, and shows that the linear maps from a space to itself with P2=P are precisely these projections.
Key terms
Uniqueness of decomposition
Definition Let U and W be subspaces of a vector space V over F, where F is R or C. A decomposition of v∈V along U and W is a way of writing v=u+w with u∈U and w∈W. Assume U+W=V, so that every vector of V has at least one decomposition. Then every vector of V has exactly one decomposition if and only if
U∩W={0}.
The space V need not be finite-dimensional. For the proof, suppose first that U∩W={0} and v=u1+w1=u2+w2. Then u1−u2=w2−w1 lies in U and in W, so it is 0, which gives u1=u2 and w1=w2. Conversely, suppose decompositions are unique and let c∈U∩W. Then 0=0+0 and 0=c+(−c) are both decompositions of 0, with c∈U and −c∈W. By uniqueness they agree, so c=0. The hypothesis U+W=V supplies existence and cannot be dropped. Zero intersection by itself only says that a vector has at most one decomposition.
In plain words Two different splits of the same vector differ by a vector that both subspaces contain. If zero is the only such vector, the split cannot change. So it is enough to check that 0=u+w with u∈U and w∈W forces u=0 and w=0.
Example Tuples such as (x,y,z) stand for column vectors. In R3 let U be the xy-plane and W the xz-plane. Their sum is R3, but they share the x-axis, and indeed
(1,2,3)=(1,2,0)+(0,0,3)=(0,2,0)+(1,0,3).
The two U parts differ by (1,0,0), a vector in U∩W. Existence can fail in the opposite way. The x-axis and the y-axis of R3 meet only in 0, yet their sum is the xy-plane, and (0,0,1) has no decomposition along them at all.
Direct sum
Definition Let U and W be subspaces of a vector space V over F, where F is R or C. The space V is the direct sum of U and W, written
V=U⊕W,
when U+W=V and U∩W={0}. By the theorem on uniqueness of decomposition this means that every v∈V can be written in exactly one way as v=u+w with u∈U and w∈W. Equivalently, the addition map from the product space U×W to V, sending (u,w) to u+w, is a linear bijection. It is surjective exactly when U+W=V, and its kernel is the set of pairs (c,−c) with c∈U∩W.
If V is finite-dimensional, the dimension formula
dim(U+W)=dimU+dimW−dim(U∩W)
gives dimV=dimU+dimW for a direct sum, and a basis of U followed by a basis of W is a basis of V. Conversely, still with V finite-dimensional, if U∩W={0} and dimU+dimW=dimV, then U+W is a subspace of V with the full dimension, so U+W=V and the sum is direct.
In plain words A direct sum cuts the whole space into two subspaces that share nothing but zero, so every vector has one U part and one W part. The word direct refers to this uniqueness. It says nothing about the two subspaces meeting at a right angle.
Example In R2 let U=span{(1,0)} and W=span{(1,1)}. Every vector splits as
(x,y)=(x−y,0)+(y,y),
so U+W=R2. If a(1,0)=b(1,1), the second entries give b=0 and then a=0, so U∩W={0}. Hence R2=U⊕W and 1+1=2, although the two lines meet at a 45∘ angle. The vector (3,2) splits as (1,0)+(2,2). Direct sums are not limited to arrows. The real n×n matrices are the direct sum of the symmetric and the skew-symmetric matrices, through
A=21(A+AT)+21(A−AT),
and a matrix that is both satisfies A=AT=−A, so A=0. For n=2,
[1423]=[1333]+[01−10],
and the dimensions add up as 3+1=4.
Complementary subspace
Definition Let U be a subspace of a vector space V over F, where F is R or C. A subspace W of V is a complement of U in V, or complementary to U, if V=U⊕W. The relation is symmetric, so U is then also a complement of W. If V is finite-dimensional, every subspace U has a complement. One comes from extending a basis u1,…,uk of U to a basis u1,…,uk,w1,…,wm of V and taking
W=span{w1,…,wm}.
The full list spans V, so U+W=V, and a nonzero vector in both subspaces would give a nontrivial linear relation among the basis vectors, so U∩W={0}. In a finite-dimensional V every complement of U has dimension dimV−dimU. If U={0}, its only complement is V, and if U=V, its only complement is {0}. Otherwise there are infinitely many. If u=0 lies in U and w1,…,wm is a basis of one complement, then span{w1+tu,w2,…,wm} is a complement for every scalar t, and different values of t give different complements.
In plain words A complement supplies exactly the directions that U is missing, with no overlap. It is a subspace, not the set of vectors outside U, which does not even contain 0. Nothing requires it to be perpendicular to U.
Example In R2 let U be the x-axis. A line span{(a,b)} with (a,b)=(0,0) is a complement of U exactly when b=0. Then (a,b) is not on the x-axis, the two lines meet only in 0, and 1+1=2. So the y-axis, the line y=x and the line y=2x are all complements of U, and so is every other line through the origin except the x-axis itself. In R3 a complement of the plane z=0 is any line through the origin that does not lie in that plane, such as span{(1,1,1)}.
Projection along a complement
Definition Let V=U⊕W, where V is a vector space over F and F is R or C. For v∈V let v=u+w be its unique decomposition with u∈U and w∈W. The projection onto U along W is the map P:V→V given by P(v)=u. It has the following properties.
The map P is linear. If v=u+w and v′=u′+w′ are decompositions and a,b∈F, then
av+bv′=(au+bu′)+(aw+bw′)
with au+bu′∈U and aw+bw′∈W. By uniqueness this is the decomposition of av+bv′, so P(av+bv′)=aP(v)+bP(v′).
Every u∈U satisfies P(u)=u and every w∈W satisfies P(w)=0. Hence imP=U and W⊆kerP. Conversely, if P(v)=0, then the U part of v is 0 and v lies in W, so kerP=W.
The square P2=P∘P equals P, because P(v) already lies in U, where P acts as the identity.
The map I−P, where I is the identity map of V, sends v to w and is the projection onto W along U. The projection depends on W as well as on U. The same U with a different complement gives a different map.
In plain words Split each vector into its U part and its W part, keep the U part and discard the W part. Vectors already in U are kept as they are, so doing it a second time changes nothing.
Example For U=span{(1,0)} and W=span{(1,1)}, the split (x,y)=(x−y,0)+(y,y) gives P(x,y)=(x−y,0). Its matrix and its square are
PP2=[10−10],=[10−10][10−10]=P.
So P(3,2)=(1,0), and the discarded part (3,2)−(1,0)=(2,2) lies in W. The output is zero exactly when x=y, so kerP=W. The complementary projection I−P has rows (0,1) and (0,1) and sends (x,y) to (y,y), the W part.
Idempotent map
Definition Let V be a vector space over F, where F is R or C. A linear map P∈Hom(V,V) is idempotent if P2=P, that is, P(P(v))=P(v) for every v∈V. The theorem on idempotent maps says that if P is idempotent, then
V=imP⊕kerP,
and P(x)=x for every x∈imP. So P is the projection onto imP along kerP. Since every projection along a complement is idempotent, the idempotent linear maps from V to itself are exactly the projections along complements. No finite-dimensional hypothesis is needed.
For the proof, write every v∈V as
v=P(v)+(v−P(v)).
The first term lies in imP, and P(v−P(v))=P(v)−P2(v)=0, so the second lies in kerP. Hence imP+kerP=V. If z∈imP∩kerP, write z=P(x). Then z=P(x)=P2(x)=P(z)=0. Finally, for x=P(y) in the image, P(x)=P2(y)=P(y)=x.
An image and a kernel that form a direct sum do not by themselves make a map a projection. On any nonzero V the map T=2I has image V and kernel {0}, which form a direct sum, yet T2=4I=T. A linear map T from V to itself is idempotent exactly when it fixes every vector of its image, since T2(v)=T(T(v)) and T(v) lies in the image.
In plain words An idempotent map does all its work the first time. Each vector splits into the part the map keeps and the part it sends to zero, and the two parts never overlap. What makes it a projection is that it leaves its own outputs alone.
Example Take the real matrix
P=[21−2−1].
Multiplying row by column,
P2=[4−22−1−4+2−2+1]=P,
so P is idempotent. Both columns are multiples of (2,1), so imP=span{(2,1)}. Both rows give x=y for the kernel, so kerP=span{(1,1)}. For v=(5,2) the split is
[52]=[63]+[−1−1],
where P(v)=(6,3)=3(2,1) is fixed by P and (−1,−1) is sent to 0. So P is the projection onto the line through (2,1) along the line through (1,1).
Oblique projection
Definition Let P be an idempotent real n×n matrix, so that Rn=imP⊕kerP, and use the dot product on Rn. The matrix P is the orthogonal projection onto imP when every vector of kerP is perpendicular to every vector of imP, that is, when kerP=(imP)⊥. The first condition says kerP⊆(imP)⊥, and this inclusion is an equality because both subspaces have dimension n−dimimP. Otherwise P is an oblique projection onto imP along kerP. For an orthogonal projection the residual v−Pv is perpendicular to imP, and Pv is the point of imP closest to v. Indeed, for every u∈imP the vector Pv−u also lies in imP, so the Pythagorean theorem gives
∥v−u∥2=∥v−Pv∥2+∥Pv−u∥2,
which is smallest exactly when u=Pv. An oblique projection loses that property for some vectors, because some of its residuals are not perpendicular to the image.
Being a projection uses no inner product at all, while being orthogonal depends on the dot product. An idempotent real matrix is an orthogonal projection exactly when it is symmetric. If PT=P, then for x∈imP and y∈kerP,
x⋅y=(Px)⋅y=x⋅(PTy)=x⋅(Py)=0.
Conversely, if kerP is perpendicular to imP, splitting v′ as Pv′+(v′−Pv′) gives (Pv)⋅v′=(Pv)⋅(Pv′), and in the same way v⋅(Pv′)=(Pv)⋅(Pv′). So (Pv)⋅v′=v⋅(Pv′) for all v and v′, which means PT=P. In particular an idempotent real matrix that is not symmetric is always oblique. Over C, with ⟨x,y⟩=x∗y in place of the dot product, the same argument shows that an idempotent complex matrix is an orthogonal projection exactly when P∗=P. Later lessons extend this to general inner products.
In plain words Every projection slides vectors along its kernel until they land in its image. An orthogonal projection always slides at a right angle to its image. An oblique one slides some vectors at a slant, and those vectors do not land on the nearest point.
Example Two different matrices project R2 onto the x-axis,
QP=[1000],=[10−10].
The matrix Q projects along the y-axis and P along the line y=x. For v=(3,2), the orthogonal projection gives Qv=(3,0) with residual (0,2), which is perpendicular to the axis and has length 2. The oblique projection gives Pv=(1,0) with residual (2,2), which is not perpendicular to the axis, since (2,2)⋅(1,0)=2=0, and has length 22≈2.83. The two maps have the same image but different kernels, so they are different maps, although they agree on the x-axis. As the test predicts, Q is symmetric and P is not.
Check yourself
Is R3 the direct sum of the plane z=0 and the line spanned by (1,1,1)? If it is, decompose (2,3,5).
Show the answer
Yes. A vector t(1,1,1) lies in the plane only when t=0, so the intersection is {0}, and the dimensions add up as 2+1=3. So the sum is direct and equals R3. Write (2,3,5)=(a,b,0)+t(1,1,1). The third entry forces t=5, and then a=−3 and b=−2, so
(2,3,5)=(−3,−2,0)+(5,5,5).
The map T(x,y)=(2x,0) on R2 has the x-axis as its image and the y-axis as its kernel, and R2 is the direct sum of these two lines. Is T the projection onto the x-axis along the y-axis?
Show the answer
No. Applying it twice gives T2(x,y)=T(2x,0)=(4x,0), so T2=T and the map is not idempotent. A projection fixes every vector of its image, but T(1,0)=(2,0). The projection onto the x-axis along the y-axis is (x,y)↦(x,0). An image and a kernel that form a direct sum are not enough to make a map a projection.
Let U be the plane x+y+z=0 in R3 and W=span{(1,0,0)}. Show that R3=U⊕W, find the matrix of the projection onto U along W, and decide whether it is an orthogonal projection.
Show the answer
The vector (1,0,0) is not in U, since 1+0+0=0. So U∩W={0}, and 2+1=3 gives R3=U⊕W. Write (x,y,z)=(x−t,y,z)+t(1,0,0). The first part lies in U when (x−t)+y+z=0, so t=x+y+z and P(x,y,z)=(−y−z,y,z), with matrix
P=000−110−101.
Each output lies in U, and a vector of U has x=−y−z, so P fixes it. Hence P2=P, and P(x,y,z)=0 exactly when y=z=0, so kerP=W. For example P(1,2,3)=(−5,2,3), and the discarded part (6,0,0) lies in W.
The projection is oblique. The kernel vector (1,0,0) and the vector (−1,1,0) of U have dot product −1=0, and the matrix is not symmetric. The orthogonal projection onto U moves along (1,1,1) instead and sends (1,2,3) to (−1,0,1).
May we count page visits to understand which courses and learning features are useful? Cloudflare collects visit and performance statistics, without your account details or answers. Your choice does not affect access. Details