Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Vector projection

From Wikipedia, the free encyclopedia
Concept in linear algebra
For more general concepts, seeProjection (linear algebra) andProjection (mathematics).
This article'slead section may be too long. Please read thelength guidelines and helpmove details into the article's body.(September 2024)

Thevector projection (also known as thevector component orvector resolution) of avectora on (or onto) a nonzero vectorb is theorthogonal projection ofa onto astraight line parallel tob. The projection ofa ontob is often written asprojba{\displaystyle \operatorname {proj} _{\mathbf {b} }\mathbf {a} } orab.

The vector component or vector resolute ofaperpendicular tob, sometimes also called thevector rejection ofafromb (denotedoprojba{\displaystyle \operatorname {oproj} _{\mathbf {b} }\mathbf {a} } orab),[1] is the orthogonal projection ofa onto theplane (or, in general,hyperplane) that isorthogonal tob. Since bothprojba{\displaystyle \operatorname {proj} _{\mathbf {b} }\mathbf {a} } andoprojba{\displaystyle \operatorname {oproj} _{\mathbf {b} }\mathbf {a} } are vectors, and their sum is equal toa, the rejection ofa fromb is given by:oprojba=aprojba.{\displaystyle \operatorname {oproj} _{\mathbf {b} }\mathbf {a} =\mathbf {a} -\operatorname {proj} _{\mathbf {b} }\mathbf {a} .}

Projection ofa onb (a1), and rejection ofa fromb (a2).
When90° <θ ≤ 180°,a1 has an opposite direction with respect tob.

To simplify notation, this article definesa1:=projba{\displaystyle \mathbf {a} _{1}:=\operatorname {proj} _{\mathbf {b} }\mathbf {a} } anda2:=oprojba.{\displaystyle \mathbf {a} _{2}:=\operatorname {oproj} _{\mathbf {b} }\mathbf {a} .}Thus, the vectora1{\displaystyle \mathbf {a} _{1}} is parallel tob,{\displaystyle \mathbf {b} ,} the vectora2{\displaystyle \mathbf {a} _{2}} is orthogonal tob,{\displaystyle \mathbf {b} ,} anda=a1+a2.{\displaystyle \mathbf {a} =\mathbf {a} _{1}+\mathbf {a} _{2}.}

The projection ofa ontob can be decomposed into a direction and a scalar magnitude by writing it asa1=a1b^{\displaystyle \mathbf {a} _{1}=a_{1}\mathbf {\hat {b}} }wherea1{\displaystyle a_{1}} is a scalar, called thescalar projection ofa ontob, and is theunit vector in the direction ofb. The scalar projection is defined as[2]a1=acosθ=ab^{\displaystyle a_{1}=\left\|\mathbf {a} \right\|\cos \theta =\mathbf {a} \cdot \mathbf {\hat {b}} }where the operator denotes adot product, ‖a‖ is thelength ofa, andθ is theangle betweena andb.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 isopposite to the direction ofb, that is, if the angle between the vectors is more than 90 degrees.

The vector projection can be calculated using the dot product ofa{\displaystyle \mathbf {a} } andb{\displaystyle \mathbf {b} } as:projba=(ab^)b^=abbbb=abb2b=abbbb .{\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} }~.}

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 vectorsa andb is written asab{\displaystyle \mathbf {a} \cdot \mathbf {b} }, the norm ofa is written ‖a‖, the angle betweena andb is denotedθ.

Definitions based on anglealpha

[edit]

Scalar projection

[edit]
Main article:Scalar projection

The scalar projection ofa onb is a scalar equal toa1=acosθ,{\displaystyle a_{1}=\left\|\mathbf {a} \right\|\cos \theta ,}whereθ is the angle betweena andb.

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

Vector projection

[edit]

The vector projection ofa onb is a vector whose magnitude is the scalar projection ofa onb with the same direction asb. Namely, it is defined asa1=a1b^=(acosθ)b^{\displaystyle \mathbf {a} _{1}=a_{1}\mathbf {\hat {b}} =(\left\|\mathbf {a} \right\|\cos \theta )\mathbf {\hat {b}} }wherea1{\displaystyle a_{1}} is the corresponding scalar projection, as defined above, andb^{\displaystyle \mathbf {\hat {b}} } is theunit vector with the same direction asb:b^=bb{\displaystyle \mathbf {\hat {b}} ={\frac {\mathbf {b} }{\left\|\mathbf {b} \right\|}}}

Vector rejection

[edit]

By definition, the vector rejection ofa onb is:a2=aa1{\displaystyle \mathbf {a} _{2}=\mathbf {a} -\mathbf {a} _{1}}

Hence,a2=a(acosθ)b^{\displaystyle \mathbf {a} _{2}=\mathbf {a} -\left(\left\|\mathbf {a} \right\|\cos \theta \right)\mathbf {\hat {b}} }

Definitions in terms of a and b

[edit]

Whenθ is not known, the cosine ofθ can be computed in terms ofa andb, by the following property of thedot productabab=abcosθ{\displaystyle \mathbf {a} \cdot \mathbf {b} =\left\|\mathbf {a} \right\|\left\|\mathbf {b} \right\|\cos \theta }

Scalar projection

[edit]

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

In two dimensions, this becomesa1=axbx+aybyb.{\displaystyle a_{1}={\frac {\mathbf {a} _{x}\mathbf {b} _{x}+\mathbf {a} _{y}\mathbf {b} _{y}}{\left\|\mathbf {b} \right\|}}.}

Vector projection

[edit]

Similarly, the definition of the vector projection ofa ontob becomes:[2]a1=a1b^=abbbb,{\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\|}},}which is equivalent to eithera1=(ab^)b^,{\displaystyle \mathbf {a} _{1}=\left(\mathbf {a} \cdot \mathbf {\hat {b}} \right)\mathbf {\hat {b}} ,}or[3]a1=abb2b=abbbb .{\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} }~.}

Scalar rejection

[edit]

In two dimensions, the scalar rejection is equivalent to the projection ofa ontob=(bybx){\displaystyle \mathbf {b} ^{\perp }={\begin{pmatrix}-\mathbf {b} _{y}&\mathbf {b} _{x}\end{pmatrix}}}, which isb=(bxby){\displaystyle \mathbf {b} ={\begin{pmatrix}\mathbf {b} _{x}&\mathbf {b} _{y}\end{pmatrix}}} rotated 90° to the left. Hence,a2=asinθ=abb=aybxaxbyb.{\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\|}}.}

Such a dot product is called the "perp dot product."

Vector rejection

[edit]

By definition,a2=aa1{\displaystyle \mathbf {a} _{2}=\mathbf {a} -\mathbf {a} _{1}}

Hence,a2=aabbbb.{\displaystyle \mathbf {a} _{2}=\mathbf {a} -{\frac {\mathbf {a} \cdot \mathbf {b} }{\mathbf {b} \cdot \mathbf {b} }}{\mathbf {b} }.}

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

a2=abbbb{\displaystyle \mathbf {a} _{2}={\frac {\mathbf {a} \cdot \mathbf {b} ^{\perp }}{\mathbf {b} \cdot \mathbf {b} }}\mathbf {b} ^{\perp }}

Properties

[edit]
If 0° ≤θ ≤ 90°, as in this case, thescalar projection ofa onb coincides with thelength of the vector projection.

Scalar projection

[edit]
Main article:Scalar projection

The scalar projectiona onb is a scalar which has a negative sign if90 degrees <θ180 degrees. It coincides with thelengthc of the vector projection if the angle is smaller than 90°. More exactly:

  • a1 = ‖a1 if0° ≤θ ≤ 90°,
  • a1 = −‖a1 if90° <θ ≤ 180°.

Vector projection

[edit]

The vector projection ofa onb is a vectora1 which is either null or parallel tob. More exactly:

  • a1 =0 ifθ = 90°,
  • a1 andb have the same direction if0° ≤θ < 90°,
  • a1 andb have opposite directions if90° <θ ≤ 180°.

Vector rejection

[edit]

The vector rejection ofa onb is a vectora2 which is either null or orthogonal tob. More exactly:

  • a2 =0 ifθ = 0° orθ = 180°,
  • a2 is orthogonal tob if0 <θ < 180°,

Matrix representation

[edit]

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

Uses

[edit]

The vector projection is an important operation in theGram–Schmidtorthonormalization ofvector spacebases. It is also used in theseparating axis theorem to detect whether two convex shapes intersect.

Generalizations

[edit]

Since the notions of vectorlength andangle between vectors can be generalized to anyn-dimensionalinner 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.

Vector projection on a plane

[edit]

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-dimensionalinner 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 aplane, and rejection of a vector from a plane.[4] The projection of a vector on a plane is itsorthogonal 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 ahyperplane, and rejection from ahyperplane. Ingeometric algebra, they can be further generalized to the notions ofprojection and rejection of a general multivector onto/from any invertiblek-blade.

See also

[edit]

References

[edit]
  1. ^Perwass, G. (2009).Geometric Algebra With Applications in Engineering. Springer. p. 83.ISBN 9783540890676.
  2. ^abc"Scalar and Vector Projections".www.ck12.org. Retrieved2020-09-07.
  3. ^"Dot Products and Projections".[dead link]
  4. ^ M.J. Baker, 2012.Projection of a vector onto a plane. Published on www.euclideanspace.com.

External links

[edit]
Basic concepts
Three dimensional Euclidean space
Matrices
Bilinear
Multilinear algebra
Vector space constructions
Numerical
Retrieved from "https://en.wikipedia.org/w/index.php?title=Vector_projection&oldid=1289415674"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp