fbpx
Wikipedia

Vector projection

The vector projection (also known as the vector component or vector resolution) of a vector a on (or onto) a nonzero vector b is the orthogonal projection of a onto a straight line parallel to b. The projection of a onto b is often written as or ab.

The vector component or vector resolute of a perpendicular to b, sometimes also called the vector rejection of a from b (denoted or ab),[1] is the orthogonal projection of a onto the plane (or, in general, hyperplane) that is orthogonal to b. Since both and are vectors, and their sum is equal to a, the rejection of a from b is given by:

Projection of a on b (a1), and rejection of a from b (a2).
When 90° < θ ≤ 180°, a1 has an opposite direction with respect to b.

To simplify notation, this article defines and Thus, the vector is parallel to the vector is orthogonal to and

The projection of a onto b can be decomposed into a direction and a scalar magnitude by writing it as where is a scalar, called the scalar projection of a onto b, and is the unit vector in the direction of b. The scalar projection is defined as[2]

where the operator denotes a dot product, ‖a‖ is the length of a, and θ is the angle between a and b. 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 b, 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:

Notation edit

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

The dot product of vectors a and b is written as  , the norm of a is written ‖a‖, the angle between a and b is denoted θ.

Definitions based on angle θ edit

Scalar projection edit

The scalar projection of a on b is a scalar equal to

 
where θ is the angle between a and b.

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

Vector projection edit

The vector projection of a on b is a vector whose magnitude is the scalar projection of a on b with the same direction as b. Namely, it is defined as

 
where   is the corresponding scalar projection, as defined above, and   is the unit vector with the same direction as b:
 

Vector rejection edit

By definition, the vector rejection of a on b is:

 

Hence,

 

Definitions in terms of a and b edit

When θ is not known, the cosine of θ can be computed in terms of a and b, by the following property of the dot product ab

 

Scalar projection edit

By the above-mentioned property of the dot product, the definition of the scalar projection becomes:[2]

 

In two dimensions, this becomes

 

Vector projection edit

Similarly, the definition of the vector projection of a onto b becomes:[2]

 
which is equivalent to either
 
or[3]
 

Scalar rejection edit

In two dimensions, the scalar rejection is equivalent to the projection of a onto  , which is   rotated 90° to the left. Hence,

 

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

Vector rejection edit

By definition,

 

Hence,

 

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

 

Properties edit

 
If 0° ≤ θ ≤ 90°, as in this case, the scalar projection of a on b coincides with the length of the vector projection.

Scalar projection edit

The scalar projection a on b is a scalar which has a negative sign if 90 degrees < θ180 degrees. It coincides with the length c of the vector projection if the angle is smaller than 90°. More exactly:

  • a1 = ‖a1 if 0° ≤ θ ≤ 90°,
  • a1 = −‖a1 if 90° < θ ≤ 180°.

Vector projection edit

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

  • a1 = 0 if θ = 90°,
  • a1 and b have the same direction if 0° ≤ θ < 90°,
  • a1 and b have opposite directions if 90° < θ ≤ 180°.

Vector rejection edit

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

  • a2 = 0 if θ = 0° or θ = 180°,
  • a2 is orthogonal to b if 0 < θ < 180°,

Matrix representation edit

The orthogonal projection can be represented by a projection matrix.[citation needed] To project a vector onto the unit vector a = (ax, ay, az), it would need to be multiplied with this projection matrix:

 

Uses edit

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 edit

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 edit

References edit

  1. ^ Perwass, G. (2009). Geometric Algebra With Applications in Engineering. p. 83. ISBN 9783540890676.
  2. ^ a b c "Scalar and Vector Projections". www.ck12.org. Retrieved 2020-09-07.
  3. ^ "Dot Products and Projections".
  4. ^ Hill, F. S. Jr. (1994). Graphics Gems IV. San Diego: Academic Press. pp. 138–148.
  5. ^ M.J. Baker, 2012. Projection of a vector onto a plane. Published on www.euclideanspace.com.

External links edit

  • Projection of a vector onto a plane

vector, projection, more, general, concepts, projection, linear, algebra, projection, mathematics, vector, projection, also, known, vector, component, vector, resolution, vector, onto, nonzero, vector, orthogonal, projection, onto, straight, line, parallel, pr. For more general concepts see Projection linear algebra and Projection mathematics The vector projection also known as the vector component or vector resolution of a vector a on or onto a nonzero vector b is the orthogonal projection of a onto a straight line parallel to b The projection of a onto b is often written as proj b a displaystyle operatorname proj mathbf b mathbf a or a b The vector component or vector resolute of a perpendicular to b sometimes also called the vector rejection of a from b denoted oproj b a displaystyle operatorname oproj mathbf b mathbf a or a b 1 is the orthogonal projection of a onto the plane or in general hyperplane that is orthogonal to b Since both proj b a displaystyle operatorname proj mathbf b mathbf a and oproj b a displaystyle operatorname oproj mathbf b mathbf a are vectors and their sum is equal to a the rejection of a from b is given by oproj b a a proj b a displaystyle operatorname oproj mathbf b mathbf a mathbf a operatorname proj mathbf b mathbf a Projection of a on b a1 and rejection of a from b a2 When 90 lt 8 180 a1 has an opposite direction with respect to b To simplify notation this article defines a 1 proj b a displaystyle mathbf a 1 operatorname proj mathbf b mathbf a and a 2 proj b a displaystyle mathbf a 2 operatorname proj mathbf b mathbf a Thus the vector a 1 displaystyle mathbf a 1 is parallel to b displaystyle mathbf b the vector a 2 displaystyle mathbf a 2 is orthogonal to b displaystyle mathbf b and a a 1 a 2 displaystyle mathbf a mathbf a 1 mathbf a 2 The projection of a onto b can be decomposed into a direction and a scalar magnitude by writing it as a 1 a 1 b displaystyle mathbf a 1 a 1 mathbf hat b where a 1 displaystyle a 1 is a scalar called the scalar projection of a onto b and b is the unit vector in the direction of b The scalar projection is defined as 2 a 1 a cos 8 a b displaystyle a 1 left mathbf a right cos theta mathbf a cdot mathbf hat b where the operator denotes a dot product a is the length of a and 8 is the angle between a and b 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 b that is if the angle between the vectors is more than 90 degrees The vector projection can be calculated using the dot product of a displaystyle mathbf a and b displaystyle mathbf b as proj b a a b b a b b b b a b b 2 b a b b b b displaystyle operatorname proj mathbf b mathbf a left mathbf a cdot mathbf hat b right mathbf hat b frac mathbf a cdot mathbf b left mathbf b right frac mathbf b left mathbf b right frac mathbf a cdot mathbf b left mathbf b right 2 mathbf b frac mathbf a cdot mathbf b mathbf b cdot mathbf b mathbf b Contents 1 Notation 2 Definitions based on angle 8 2 1 Scalar projection 2 2 Vector projection 2 3 Vector rejection 3 Definitions in terms of a and b 3 1 Scalar projection 3 2 Vector projection 3 3 Scalar rejection 3 4 Vector rejection 4 Properties 4 1 Scalar projection 4 2 Vector projection 4 3 Vector rejection 5 Matrix representation 6 Uses 7 Generalizations 8 See also 9 References 10 External linksNotation editThis article uses the convention that vectors are denoted in a bold font e g a1 and scalars are written in normal font e g a1 The dot product of vectors a and b is written as a b displaystyle mathbf a cdot mathbf b nbsp the norm of a is written a the angle between a and b is denoted 8 Definitions based on angle 8 editScalar projection edit Main article Scalar projection The scalar projection of a on b is a scalar equal toa 1 a cos 8 displaystyle a 1 left mathbf a right cos theta nbsp where 8 is the angle between a and b A scalar projection can be used as a scale factor to compute the corresponding vector projection Vector projection edit The vector projection of a on b is a vector whose magnitude is the scalar projection of a on b with the same direction as b Namely it is defined asa 1 a 1 b a cos 8 b displaystyle mathbf a 1 a 1 mathbf hat b left mathbf a right cos theta mathbf hat b nbsp where a 1 displaystyle a 1 nbsp is the corresponding scalar projection as defined above and b displaystyle mathbf hat b nbsp is the unit vector with the same direction as b b b b displaystyle mathbf hat b frac mathbf b left mathbf b right nbsp Vector rejection edit By definition the vector rejection of a on b is a 2 a a 1 displaystyle mathbf a 2 mathbf a mathbf a 1 nbsp Hence a 2 a a cos 8 b displaystyle mathbf a 2 mathbf a left left mathbf a right cos theta right mathbf hat b nbsp Definitions in terms of a and b editWhen 8 is not known the cosine of 8 can be computed in terms of a and b by the following property of the dot product a ba b a b cos 8 displaystyle mathbf a cdot mathbf b left mathbf a right left mathbf b right cos theta nbsp Scalar projection edit By the above mentioned property of the dot product the definition of the scalar projection becomes 2 a 1 a cos 8 a b b displaystyle a 1 left mathbf a right cos theta frac mathbf a cdot mathbf b left mathbf b right nbsp In two dimensions this becomesa 1 a x b x a y b y b displaystyle a 1 frac mathbf a x mathbf b x mathbf a y mathbf b y left mathbf b right nbsp Vector projection edit Similarly the definition of the vector projection of a onto b becomes 2 a 1 a 1 b a b b b b displaystyle mathbf a 1 a 1 mathbf hat b frac mathbf a cdot mathbf b left mathbf b right frac mathbf b left mathbf b right nbsp which is equivalent to either a 1 a b b displaystyle mathbf a 1 left mathbf a cdot mathbf hat b right mathbf hat b nbsp or 3 a 1 a b b 2 b a b b b b displaystyle mathbf a 1 frac mathbf a cdot mathbf b left mathbf b right 2 mathbf b frac mathbf a cdot mathbf b mathbf b cdot mathbf b mathbf b nbsp Scalar rejection edit In two dimensions the scalar rejection is equivalent to the projection of a onto b b y b x displaystyle mathbf b perp begin pmatrix mathbf b y amp mathbf b x end pmatrix nbsp which is b b x b y displaystyle mathbf b begin pmatrix mathbf b x amp mathbf b y end pmatrix nbsp rotated 90 to the left Hence a 2 a sin 8 a b b a y b x a x b y b displaystyle a 2 left mathbf a right sin theta frac mathbf a cdot mathbf b perp left mathbf b right frac mathbf a y mathbf b x mathbf a x mathbf b y left mathbf b right nbsp Such a dot product is called the perp dot product 4 Vector rejection edit By definition a 2 a a 1 displaystyle mathbf a 2 mathbf a mathbf a 1 nbsp Hence a 2 a a b b b b displaystyle mathbf a 2 mathbf a frac mathbf a cdot mathbf b mathbf b cdot mathbf b mathbf b nbsp By using the Scalar rejection using the perp dot product this givesa 2 a b b b b displaystyle mathbf a 2 frac mathbf a cdot mathbf b perp mathbf b cdot mathbf b mathbf b perp nbsp Properties edit nbsp If 0 8 90 as in this case the scalar projection of a on b coincides with the length of the vector projection Scalar projection edit Main article Scalar projection The scalar projection a on b is a scalar which has a negative sign if 90 degrees lt 8 180 degrees It coincides with the length c of the vector projection if the angle is smaller than 90 More exactly a1 a1 if 0 8 90 a1 a1 if 90 lt 8 180 Vector projection edit The vector projection of a on b is a vector a1 which is either null or parallel to b More exactly a1 0 if 8 90 a1 and b have the same direction if 0 8 lt 90 a1 and b have opposite directions if 90 lt 8 180 Vector rejection edit The vector rejection of a on b is a vector a2 which is either null or orthogonal to b More exactly a2 0 if 8 0 or 8 180 a2 is orthogonal to b if 0 lt 8 lt 180 Matrix representation editThe orthogonal projection can be represented by a projection matrix citation needed To project a vector onto the unit vector a ax ay az it would need to be multiplied with this projection matrix P a a a T a x a y a z a x a y a z a x 2 a x a y a x a z a x a y a y 2 a y a z a x a z a y a z a z 2 displaystyle P mathbf a mathbf a mathbf a textsf T begin bmatrix a x a y a z end bmatrix begin bmatrix a x amp a y amp a z end bmatrix begin bmatrix a x 2 amp a x a y amp a x a z a x a y amp a y 2 amp a y a z a x a z amp a y a z amp a z 2 end bmatrix nbsp Uses editThe 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 editSince 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 editScalar projection Vector notationReferences edit Perwass G 2009 Geometric Algebra With Applications in Engineering p 83 ISBN 9783540890676 a b c Scalar and Vector Projections www ck12 org Retrieved 2020 09 07 Dot Products and Projections Hill F S Jr 1994 Graphics Gems IV San Diego Academic Press pp 138 148 M J Baker 2012 Projection of a vector onto a plane Published on www euclideanspace com External links editProjection of a vector onto a plane Retrieved from https en wikipedia org w index php title Vector projection amp oldid 1222069086, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.