Mathematics visualization
If 0° ≤ θ ≤ 90°, as in this case, the scalar projection of a on b coincides with the length of the vector projection .
Vector projection of a on b (a 1 ), and vector rejection of a from b (a 2 ).
In mathematics , the scalar projection of a vector
a
{\displaystyle \mathbf {a} }
on (or onto) a vector
b
,
{\displaystyle \mathbf {b} ,}
also known as the scalar resolute of
a
{\displaystyle \mathbf {a} }
in the direction of
b
,
{\displaystyle \mathbf {b} ,}
is given by:
s
=
‖
a
‖
cos
θ
=
a
⋅
b
^
,
{\displaystyle s=\left\|\mathbf {a} \right\|\cos \theta =\mathbf {a} \cdot \mathbf {\hat {b}} ,}
where the operator
⋅
{\displaystyle \cdot }
denotes a dot product ,
b
^
{\displaystyle {\hat {\mathbf {b} }}}
is the unit vector in the direction of
b
,
{\displaystyle \mathbf {b} ,}
‖
a
‖
{\displaystyle \left\|\mathbf {a} \right\|}
is the length of
a
,
{\displaystyle \mathbf {a} ,}
and
θ
{\displaystyle \theta }
is the angle between
a
{\displaystyle \mathbf {a} }
and
b
{\displaystyle \mathbf {b} }
.[ 1]
The term scalar component refers sometimes to scalar projection, as, in Cartesian coordinates , the components of a vector are the scalar projections in the directions of the coordinate axes .
The scalar projection is a scalar , equal to the length of the orthogonal projection of
a
{\displaystyle \mathbf {a} }
on
b
{\displaystyle \mathbf {b} }
, with a negative sign if the projection has an opposite direction with respect to
b
{\displaystyle \mathbf {b} }
.
Multiplying the scalar projection of
a
{\displaystyle \mathbf {a} }
on
b
{\displaystyle \mathbf {b} }
by
b
^
{\displaystyle \mathbf {\hat {b}} }
converts it into the above-mentioned orthogonal projection, also called vector projection of
a
{\displaystyle \mathbf {a} }
on
b
{\displaystyle \mathbf {b} }
.
^ Strang, Gilbert (2016). Introduction to linear algebra (5th ed.). Wellesley: Cambridge press. ISBN 978-0-9802327-7-6 .