Norm, Projection and Coordinates
Length, Projection, and Vector Coordinates
For v=(v1,…,vn), the Euclidean norm is
The norm is a nonnegative length, and squaring the components is what makes signs irrelevant to it. The dot product also detects perpendicularity: nonzero vectors u and v are perpendicular exactly when u⋅v=0. More generally cosθ=∥u∥∥v∥u⋅v, and the perpendicular case is just cosθ=0.
Projection
The projection of b onto a nonzero vector u is
The scalar coefficient measures how many copies of u are needed; multiplying it by u gives the projected vector, so the coefficient and the projection are different objects and a question asks for one or the other. The residual r=b−projub is perpendicular to u, which makes the projection the point on the line spanned by u closest to b.
A vector b decomposed into a projection p along the span of u and a residual r perpendicular to it. The three vectors form a right triangle with the right angle at the tip of p, which is the foot of the perpendicular from the tip of b. The arrow for u is drawn slightly to one side of the line so that it stays visible beneath p, which lies along the same direction.
Squared distance from b to the point t·u on a line
Because p and r are perpendicular and sum to b, they obey Pythagoras: ∥b∥2=∥p∥2+∥r∥2. That identity is a fast check on any decomposition, and it shows why ∥r∥≤∥b∥ always, with equality only when the projection is zero.
Worked example
Let b=(2,4) and u=(1,3). Then b⋅u=2+12=14 and u⋅u=1+9=10, so the projection coefficient is 14/10=7/5. Thus p=(7/5)(1,3)=(7/5,21/5). The residual is r=b−p=(3/5,−1/5), and r⋅u=3/5−3/5=0, verifying perpendicularity. Pythagoras agrees: ∥p∥2=2549+441=598 and ∥r∥2=259+1=52, which sum to 20=∥b∥2=4+16.
Coordinates in a basis
Coordinates depend on a chosen ordered basis. If B=(b1,…,bn), then [v]B=(c1,…,cn) means v=c1b1+⋯+cnbn. The coordinate list generally differs from the standard-component list.
The lists agree for every vector exactly when B is the standard basis, but they can also agree for an individual vector in a nonstandard basis. For example, in the ordered basis B=((1,0),(1,1)), the vector v=(1,0) has [v]B=(1,0), the same list as its standard components.
When the basis vectors are mutually perpendicular the coefficients decouple, and each one is just a projection coefficient: ci=bi⋅biv⋅bi, with no system to solve. For B=((2,1),(−1,2)), which is orthogonal since 2(−1)+1(2)=0, and v=(0,5): c1=50+5=1 and c2=50+10=2. Checking, 1(2,1)+2(−1,2)=(0,5). Without orthogonality the same coefficients would require solving a linear system.
In the decomposition illustrated by the figure, let b=(5,1) and u=(2,−1). Find the scalar coefficient multiplying u in projub.
Give your answer as a number.
A vector b decomposed into a projection p along the span of u and a residual r perpendicular to it. The three vectors form a right triangle with the right angle at the tip of p, which is the foot of the perpendicular from the tip of b. The arrow for u is drawn slightly to one side of the line so that it stays visible beneath p, which lies along the same direction.
Squared distance from b to the point t·u on a line
In the figure, p=projub and r=b−p. Which identity must hold?
A vector b decomposed into a projection p along the span of u and a residual r perpendicular to it. The three vectors form a right triangle with the right angle at the tip of p, which is the foot of the perpendicular from the tip of b. The arrow for u is drawn slightly to one side of the line so that it stays visible beneath p, which lies along the same direction.
Squared distance from b to the point t·u on a line