Matrix maps, scaling, reflections, rotations, dot products, projections and a translation non-example.
This page reads linear maps geometrically, through the points, lines and directions they move in R2 and R3. It first shows that linear maps between these spaces are exactly matrix maps, then works through scaling, reflections, rotations and projections.
The two coordinate directions are scaled independently. Each axis is sent to
itself: (x,0) is sent to (λxx,0) and (0,y) to (0,λyy).
Any other line through the origin is sent to a line through the origin, but
its slope can change unless λx=λy.
Write (x,y)=(rcosφ,rsinφ). A counterclockwise rotation through θ sends the angle φ to φ+θ. The angle-addition identities give
(xy)⟼(cosθsinθ−sinθcosθ)(xy).
Explicitly,
rcos(φ+θ)=rcosφcosθ−rsinφsinθ=xcosθ−ysinθ,
and similarly the second coordinate is
xsinθ+ycosθ. So the signs and the placement of sinθ in
the matrix are forced by these identities, not a convention to memorise.
The first column is the image of (1,0)T, namely (cosθ,sinθ)T and the second is the image of (0,1)T, namely (−sinθ,cosθ)T.
Under the identification C≅R2, write
z=x+iy=reiφ. Multiplication by eiθ gives
eiθz=rei(φ+θ)=(xcosθ−ysinθ)+i(xsinθ+ycosθ),
so the real and imaginary parts are the two coordinates produced by the
rotation matrix. Polar form and the
matrix describe the same rotation.
More generally, reflection in a line through the origin making angle ϕ with the positive x-axis has matrix
(cos(2ϕ)sin(2ϕ)sin(2ϕ)−cos(2ϕ)).
Setting ϕ=0 gives reflection in the x-axis, while ϕ=π/2 gives reflection in the y-axis.
To derive the formula, observe that a vector at angle θ reflects to
angle 2ϕ−θ. Applying the cosine and sine subtraction identities to
this new angle produces the two rows of the matrix.
For u=0, the projection of x∈Rn onto the line spanned by u is
projux=u⋅ux⋅uu.
To see this, write the projected vector as cu. The residual x−cu must be
perpendicular to u and solving (x−cu)⋅u=0 gives
c=(x⋅u)/(u⋅u). The condition u=0 makes the denominator
positive.
The projection map Pu:Rn→Rn is therefore
Pu(x)=u⋅ux⋅uu.
Since u⋅u is a fixed non-zero scalar, bilinearity gives
Pu(x+y)=Pu(x)+Pu(y),Pu(λx)=λPu(x).
Hence projection onto a fixed line through the origin is a linear map.
For orthogonal projection onto a subspace H, every vector in H is fixed
and every vector in H⊥ is sent to zero. When those subspaces are
non-zero, they are eigenspaces for eigenvalues 1 and 0 respectively;
this links projection geometry to
eigenvalues.