Vector projection

From testwiki
Jump to navigation Jump to search

Template:Short description Template:For Template:Lead too long The vector projection (also known as the vector component or vector resolution) of a vector Template:Math on (or onto) a nonzero vector Template:Math is the orthogonal projection of Template:Math onto a straight line parallel to Template:Math. The projection of Template:Math onto Template:Math is often written as projπ›πš or Template:Math.

The vector component or vector resolute of Template:Math perpendicular to Template:Math, sometimes also called the vector rejection of Template:Math from Template:Math (denoted oprojπ›πš or Template:Math),[1] is the orthogonal projection of Template:Math onto the plane (or, in general, hyperplane) that is orthogonal to Template:Math. Since both projπ›πš and oprojπ›πš are vectors, and their sum is equal to Template:Math, the rejection of Template:Math from Template:Math is given by: oprojπ›πš=𝐚projπ›πš.

Projection of Template:Math on Template:Math (a1), and rejection of Template:Math from Template:Math (a2).
When Template:Math, Template:Math has an opposite direction with respect to Template:Math.

To simplify notation, this article defines 𝐚1:=projπ›πš and 𝐚2:=oprojπ›πš. Thus, the vector 𝐚1 is parallel to 𝐛, the vector 𝐚2 is orthogonal to 𝐛, and 𝐚=𝐚1+𝐚2.

The projection of Template:Math onto Template:Math can be decomposed into a direction and a scalar magnitude by writing it as 𝐚1=a1𝐛^ where a1 is a scalar, called the scalar projection of Template:Math onto Template:Math, and Template:Math is the unit vector in the direction of Template:Math. The scalar projection is defined as[2] a1=𝐚cosθ=πšπ›^ where the operator denotes a dot product, β€–aβ€– is the length of Template:Math, and ΞΈ is the angle between Template:Math and Template:Math. The scalar projection is equal in absolute value to the length of the vector projection, with a minus sign if the direction of the projection is opposite to the direction of Template:Math, that is, if the angle between the vectors is more than 90 degrees.

The vector projection can be calculated using the dot product of 𝐚 and 𝐛 as: projπ›πš=(πšπ›^)𝐛^=πšπ›π›π›π›=πšπ›π›2𝐛=πšπ›π›π›π›.

Notation

This article uses the convention that vectors are denoted in a bold font (e.g. Template:Math), and scalars are written in normal font (e.g. a1).

The dot product of vectors Template:Math and Template:Math is written as πšπ›, the norm of Template:Math is written β€–aβ€–, the angle between Template:Math and Template:Math is denoted ΞΈ.

Definitions based on angle ΞΈ

Scalar projection

Template:Main The scalar projection of Template:Math on Template:Math is a scalar equal to a1=𝐚cosθ, where ΞΈ is the angle between Template:Math and Template:Math.

A scalar projection can be used as a scale factor to compute the corresponding vector projection.

Vector projection

The vector projection of Template:Math on Template:Math is a vector whose magnitude is the scalar projection of Template:Math on Template:Math with the same direction as Template:Math. Namely, it is defined as 𝐚1=a1𝐛^=(𝐚cosθ)𝐛^ where a1 is the corresponding scalar projection, as defined above, and 𝐛^ is the unit vector with the same direction as Template:Math: 𝐛^=𝐛𝐛

Vector rejection

By definition, the vector rejection of Template:Math on Template:Math is: 𝐚2=𝐚𝐚1

Hence, 𝐚2=𝐚(𝐚cosθ)𝐛^

Definitions in terms of a and b

When Template:Mvar is not known, the cosine of Template:Mvar can be computed in terms of Template:Math and Template:Math, by the following property of the dot product Template:Math πšπ›=πšπ›cosθ

Scalar projection

By the above-mentioned property of the dot product, the definition of the scalar projection becomes:[2] a1=𝐚cosθ=πšπ›π›.

In two dimensions, this becomes a1=𝐚x𝐛x+𝐚y𝐛y𝐛.

Vector projection

Similarly, the definition of the vector projection of Template:Math onto Template:Math becomes:[2] 𝐚1=a1𝐛^=πšπ›π›π›π›, which is equivalent to either 𝐚1=(πšπ›^)𝐛^, or[3] 𝐚1=πšπ›π›2𝐛=πšπ›π›π›π›.

Scalar rejection

In two dimensions, the scalar rejection is equivalent to the projection of Template:Math onto 𝐛=(𝐛y𝐛x), which is 𝐛=(𝐛x𝐛y) rotated 90Β° to the left. Hence, a2=𝐚sinθ=πšπ›π›=𝐚y𝐛x𝐚x𝐛y𝐛.

Such a dot product is called the "perp dot product."[4]

Vector rejection

By definition, 𝐚2=𝐚𝐚1

Hence, 𝐚2=πšπšπ›π›π›π›.

By using the Scalar rejection using the perp dot product this gives

𝐚2=πšπ›π›π›π›

Properties

If 0Β° ≀ ΞΈ ≀ 90Β°, as in this case, the scalar projection of Template:Math on Template:Math coincides with the length of the vector projection.

Scalar projection

Template:Main The scalar projection Template:Math on Template:Math is a scalar which has a negative sign if 90 degrees < ΞΈ ≀ 180 degrees. It coincides with the length Template:Math of the vector projection if the angle is smaller than 90Β°. More exactly:

Vector projection

The vector projection of Template:Math on Template:Math is a vector Template:Math which is either null or parallel to Template:Math. More exactly:

Vector rejection

The vector rejection of Template:Math on Template:Math is a vector Template:Math which is either null or orthogonal to Template:Math. More exactly:

Matrix representation

The orthogonal projection can be represented by a projection matrix. To project a vector onto the unit vector Template:Math, it would need to be multiplied with this projection matrix: P𝐚=𝐚𝐚T=[axayaz][axayaz]=[ax2axayaxazaxayay2ayazaxazayazaz2]

Uses

The vector projection is an important operation in the Gram–Schmidt orthonormalization of vector space bases. It is also used in the separating axis theorem to detect whether two convex shapes intersect.

Generalizations

Since the notions of vector length and angle between vectors can be generalized to any n-dimensional inner product space, this is also true for the notions of orthogonal projection of a vector, projection of a vector onto another, and rejection of a vector from another.

In some cases, the inner product coincides with the dot product. Whenever they don't coincide, the inner product is used instead of the dot product in the formal definitions of projection and rejection. For a three-dimensional inner product space, the notions of projection of a vector onto another and rejection of a vector from another can be generalized to the notions of projection of a vector onto a plane, and rejection of a vector from a plane.[5] The projection of a vector on a plane is its orthogonal projection on that plane. The rejection of a vector from a plane is its orthogonal projection on a straight line which is orthogonal to that plane. Both are vectors. The first is parallel to the plane, the second is orthogonal.

For a given vector and plane, the sum of projection and rejection is equal to the original vector. Similarly, for inner product spaces with more than three dimensions, the notions of projection onto a vector and rejection from a vector can be generalized to the notions of projection onto a hyperplane, and rejection from a hyperplane. In geometric algebra, they can be further generalized to the notions of projection and rejection of a general multivector onto/from any invertible k-blade.

See also

References

Template:Reflist

Template:Linear algebra