3.5: Vector Multiplication

Physics: A Foundation for Scientists and Engineers · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    Read aloud

    How

    Speed: 1×
    Light up
    Highlight

    Symbols: Mulberry Symbols, © 2018–2026 Steve Lee, CC BY-SA 4.0 (licence, the set), the site's own copies.

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    3.5: Vector Multiplication

    There are three kinds of “multiplication” involving vectors: a vector times a scalar, a vector times another vector to produce a scalar (the dot product), and a vector times another vector to produce a third vector (the cross product). All three appear throughout physics. There is no operation that divides one vector by another.

    Scalar multiplication

    Multiplying a vector \(\vec{A}\) by a scalar \(c\) scales the vector’s magnitude by \(|c|\) and either preserves its direction (if \(c > 0\)) or reverses it (if \(c < 0\)). Component-wise:

    \[c\,\vec{A} = \langle c A_x,\; c A_y,\; c A_z\rangle. \tag{3.11}\]

    The product \(c\vec{A}\) is itself a vector. Division by a scalar is the same as multiplication by its reciprocal; this is what we did in equation (3.5) when we built \(\hat{A} = \vec{A}/A\).

    Example 3.9: Scaling a vector

    Given \(\vec{A} = \langle 4, -3\rangle\), find \(4\vec{A}\) and \(-\tfrac{1}{2}\vec{A}\).

    Solution

    \[4\vec{A} = \langle 4(4),\; 4(-3)\rangle = \langle 16,\; -12\rangle.\]

    \[-\tfrac{1}{2}\vec{A} = \langle -\tfrac{1}{2}(4),\; -\tfrac{1}{2}(-3)\rangle = \langle -2,\; 1.5\rangle.\]

    The first quadruples the magnitude in the same direction; the second halves the magnitude and reverses the direction.

    The dot product

    The dot product (also called the scalar product or inner product) takes two vectors and returns a scalar. It answers the question “how much of one vector points along the other?”, which is exactly the question that arises when a force does work on an object moving in some direction. You will meet this product again in Chapter 7, where work is defined as \(W = \vec{F}\cdot\vec{d}\).

    Two vectors A and B from a common origin with angle theta between them.
    Figure 3.8. Geometric interpretation of the dot product. \(A\cos\theta\) is the component of \(\vec{A}\) along the direction of \(\vec{B}\); multiplying it by \(B\) gives \(\vec{A}\cdot\vec{B}\).
    Figure descriptionTwo vectors A and B from a common origin with angle theta between them. A dashed perpendicular drops from the head of A onto the line of B, marking the segment A cosine theta, the component of A along B.

    Geometrically, the dot product equals the product of the two magnitudes times the cosine of the angle between them:

    Key Equation: Dot product

    \[\vec{A} \cdot \vec{B} = AB\cos\theta = A_x B_x + A_y B_y + A_z B_z, \tag{3.12}\]

    where \(\theta\) is the angle between \(\vec{A}\) and \(\vec{B}\). The first equality is the geometric definition; the second is the equivalent component formula. Both always give the same answer. Geometrically, \(A\cos\theta\) is the length of the projection of \(\vec{A}\) onto the line of \(\vec{B}\) (Figure 3.8); the dot product can therefore be read as “the projection of one vector onto the other, times the other’s magnitude.”

    Several useful properties follow directly from equation (3.12):

    • The dot product is commutative: \(\vec{A}\cdot\vec{B} = \vec{B}\cdot\vec{A}\).
    • It is distributive over addition: \(\vec{A}\cdot(\vec{B} + \vec{C}) = \vec{A}\cdot\vec{B} + \vec{A}\cdot\vec{C}\). Scalars pull out freely: \((c\vec{A})\cdot\vec{B} = c(\vec{A}\cdot\vec{B})\).
    • If \(\vec{A}\) and \(\vec{B}\) are perpendicular, \(\theta = 90^\circ\), so \(\vec{A}\cdot\vec{B} = 0\). This is often the easiest way to test for perpendicularity.
    • The sign of the dot product tells you whether the angle is acute (\(\vec{A}\cdot\vec{B} > 0\)) or obtuse (\(\vec{A}\cdot\vec{B} < 0\)).
    • \(\vec{A}\cdot\vec{A} = A^2\), since the angle is \(0^\circ\) and \(\cos 0^\circ = 1\). The dot product of a vector with itself is the square of its magnitude.
    • For the basis vectors: \(\hat\imath \cdot \hat\imath = \hat\jmath \cdot \hat\jmath = \hat{k} \cdot \hat{k} = 1\), while \(\hat\imath \cdot \hat\jmath = \hat\jmath \cdot \hat{k} = \hat{k}\cdot\hat\imath = 0\).

    The angle between two vectors

    Equation (3.12) contains two expressions for the same number, and setting them equal and solving for \(\cos\theta\) gives one of the most useful formulas in the chapter:

    Key Equation: Angle between two vectors

    \[\cos\theta = \frac{\vec{A}\cdot\vec{B}}{AB} = \frac{A_x B_x + A_y B_y + A_z B_z}{\sqrt{A_x^2+A_y^2+A_z^2}\;\sqrt{B_x^2+B_y^2+B_z^2}}. \tag{3.13}\]

    This works in any number of dimensions and always returns \(\theta\) between \(0^\circ\) and \(180^\circ\), which is precisely the range we want, since “the angle between two vectors” is never taken to be more than a straight angle. Unlike the inverse tangent of §3.2, the inverse cosine here needs no quadrant correction.

    Example 3.10: Angle between two vectors

    Find the angle between \(\vec{A} = \langle 2, 1, -2\rangle\) and \(\vec{B} = \langle 0, 3, 4\rangle\).

    Solution

    Step 1: The dot product. Multiply matching components (\(x\) with \(x\), \(y\) with \(y\), \(z\) with \(z\)) and add the three products:

    \[\vec{A}\cdot\vec{B} = (2)(0) + (1)(3) + (-2)(4) = 0 + 3 - 8 = -5.\]

    Step 2: The magnitudes. Square each component, add, and take the square root:

    \[\begin{aligned}A &= \sqrt{2^2 + 1^2 + (-2)^2} = \sqrt{4+1+4} = \sqrt{9} = 3, \\ B &= \sqrt{0^2 + 3^2 + 4^2} = \sqrt{0+9+16} = \sqrt{25} = 5.\end{aligned}\]

    Step 3: Solve for the angle. By equation (3.13),

    \[\cos\theta = \frac{\vec{A}\cdot\vec{B}}{AB} = \frac{-5}{(3)(5)} = -\frac{5}{15} = -\frac{1}{3}.\]

    To undo the cosine, take the inverse cosine of both sides:

    \[\theta = \cos^{-1}\!\left(-\tfrac{1}{3}\right) \approx 109.5^\circ.\]

    Unlike the inverse tangent, the calculator’s inverse cosine already returns an angle between \(0^\circ\) and \(180^\circ\), so there is no quadrant to fix.

    Check. The negative dot product told us in advance that \(\cos\theta < 0\), so the angle had to be obtuse (between \(90^\circ\) and \(180^\circ\)), and it is.

    Projection of one vector onto another

    Figure 3.8 shows that \(A\cos\theta\) is the length of the shadow \(\vec{A}\) casts on the line of \(\vec{B}\). Dividing equation (3.12) by \(B\) isolates that shadow, and writing \(\hat{B} = \vec{B}/B\) puts it in its most useful form. The scalar projection of \(\vec{A}\) onto \(\vec{B}\) is

    \[A_\parallel = A\cos\theta = \vec{A}\cdot\hat{B}, \tag{3.14}\]

    a signed number: it is negative when \(\vec{A}\) leans backward against \(\vec{B}\). Attaching the direction \(\hat{B}\) to it gives the vector projection, the piece of \(\vec{A}\) that lies along \(\vec{B}\):

    Key Equation: Vector projection

    \[\vec{A}_\parallel = (\vec{A}\cdot\hat{B})\,\hat{B}. \tag{3.15}\]

    Whatever is left over is perpendicular to \(\vec{B}\):

    \[\vec{A}_\perp = \vec{A} - \vec{A}_\parallel. \tag{3.16}\]

    These two pieces are perpendicular to each other and add back to \(\vec{A}\), so by the Pythagorean theorem \(A_\parallel^2 + A_\perp^2 = A^2\): a convenient way to check your work.

    This is the same idea as resolving a vector into components in §3.2, generalized to an axis pointing in any direction at all rather than along \(x\) or \(y\). It is how we will split a weight into pieces along and perpendicular to a ramp in Chapter 5.

    Example 3.11: Splitting a vector along and across a direction

    Find the components of \(\vec{A} = \langle 5, 2, 0\rangle\) parallel and perpendicular to \(\vec{B} = \langle 0, 3, 4\rangle\).

    Solution

    Step 1: Build the unit vector along \(\vec{B}\). Only the direction of \(\vec{B}\) matters here, so strip away its length. Since \(B = \sqrt{0+9+16} = 5\), divide each component by \(5\):

    \[\hat{B} = \frac{\vec{B}}{B} = \left\langle \frac{0}{5},\, \frac{3}{5},\, \frac{4}{5} \right\rangle = \langle 0,\, 0.6,\, 0.8\rangle.\]

    Step 2: The scalar projection. By equation (3.14), dot \(\vec{A}\) into \(\hat{B}\):

    \[A_\parallel = \vec{A}\cdot\hat{B} = (5)(0) + (2)(0.6) + (0)(0.8) = 0 + 1.2 + 0 = 1.2.\]

    This is the signed length of the piece of \(\vec{A}\) that lies along \(\vec{B}\). It is positive, so that piece points with \(\vec{B}\), not against it.

    Step 3: The vector projection. Attach the direction by multiplying the unit vector by this length (scalar multiplication, equation (3.11)):

    \[\vec{A}_\parallel = 1.2\,\langle 0,\, 0.6,\, 0.8\rangle = \langle 1.2(0),\; 1.2(0.6),\; 1.2(0.8)\rangle = \langle 0,\; 0.72,\; 0.96\rangle.\]

    Step 4: The perpendicular piece. Whatever is left over is perpendicular. Subtract component by component, equation (3.16):

    \[\vec{A}_\perp = \vec{A} - \vec{A}_\parallel = \langle 5 - 0,\; 2 - 0.72,\; 0 - 0.96\rangle = \langle 5,\; 1.28,\; -0.96\rangle.\]

    Note that the \(z\)-component of \(\vec{A}_\perp\) is negative even though \(\vec{A}\) had no \(z\)-component at all: the parallel piece leans in the \(+z\) direction, so the leftover must lean the other way to cancel it.

    Check 1: perpendicular really means perpendicular. If \(\vec{A}_\perp\) is perpendicular to \(\vec{B}\), their dot product must be zero:

    \[\vec{A}_\perp\cdot\vec{B} = (5)(0) + (1.28)(3) + (-0.96)(4) = 0 + 3.84 - 3.84 = 0. \;\checkmark\]

    Check 2: the pieces rebuild \(\vec{A}\). Because the two pieces are perpendicular, the Pythagorean theorem applies to their lengths:

    \[\begin{aligned}A_\parallel^2 + A_\perp^2 &= (1.2)^2 + \left[5^2 + (1.28)^2 + (-0.96)^2\right] \\ &= 1.44 + (25 + 1.638 + 0.922) = 1.44 + 27.56 = 29,\end{aligned}\]

    and \(A^2 = 5^2 + 2^2 + 0^2 = 29\). ✓

    The cross product

    The cross product (also called the vector product) takes two vectors and returns a third vector perpendicular to both of them. Where the dot product measures how much two vectors point along each other, the cross product measures how much they point across each other. It is the natural language for turning effects, and it returns in Chapter 10 as torque, \(\vec{\tau} = \vec{r}\times\vec{F}\), and in Chapter 11 as angular momentum.

    Its magnitude is

    Key Equation: Cross product magnitude

    \[|\vec{A} \times \vec{B}| = AB\sin\theta, \tag{3.17}\]

    where \(\theta\) is the angle between the two vectors, taken between \(0^\circ\) and \(180^\circ\), the same convention as for the dot product, and the one equation (3.13) automatically produces. On that range \(\sin\theta\) is never negative, so the magnitude is never negative, as a magnitude must not be.

    Two vectors A and B from a common origin, with the parallelogram they span shaded.
    Figure 3.9. The magnitude of \(\vec{A}\times\vec{B}\) equals the area of the shaded parallelogram: base \(A\) times height \(B\sin\theta\). The cross product vector itself is perpendicular to the page and, for the ordering \(\vec{A}\times\vec{B}\) shown here, points out of the page toward you. A triangle with sides \(\vec{A}\) and \(\vec{B}\) is half of this parallelogram, so its area is \(\tfrac{1}{2}|\vec{A}\times\vec{B}|\).
    Figure descriptionTwo vectors A and B from a common origin, with the parallelogram they span shaded. The base is labeled A and the perpendicular height B sine theta, so the shaded area equals A B sine theta, the magnitude of the cross product.

    Geometrically, this magnitude equals the area of the parallelogram whose sides are \(\vec{A}\) and \(\vec{B}\) (Figure 3.9). This is just “base times height”: taking \(\vec{A}\) as the base of length \(A\), the height of the parallelogram is \(B\sin\theta\).

    Two side-by-side diagrams of the right-hand rule.
    Figure 3.10. The right-hand rule. Left: point your right fingers along \(\vec{A}\) and curl them toward \(\vec{B}\); your thumb points out of the page, shown by the dot \(\odot\). Right: reversing the order reverses the result; curling from \(\vec{B}\) toward \(\vec{A}\) sends your thumb into the page, shown by the cross \(\otimes\). Same magnitude, opposite direction.
    Figure descriptionTwo side-by-side diagrams of the right-hand rule. On the left, fingers curl from vector A toward vector B and the resulting cross product points out of the page, marked by a circled dot. On the right the order is reversed, and the result points into the page, marked by a circled cross.

    The direction of \(\vec{A}\times\vec{B}\) is perpendicular to the plane containing \(\vec{A}\) and \(\vec{B}\), and is determined by the right-hand rule: point the fingers of your right hand along \(\vec{A}\), curl them toward \(\vec{B}\) through the smaller angle, and your thumb points in the direction of \(\vec{A}\times\vec{B}\) (Figure 3.10). Use your right hand: the left hand gives exactly the wrong answer every time.

    Because the result is perpendicular to the page whenever \(\vec{A}\) and \(\vec{B}\) lie in it, we need a way to draw a vector pointing toward or away from the reader. The standard notation is an arrow seen from either end: a dot \(\odot\) for an arrowhead coming toward you, and a cross \(\otimes\) for the tail feathers going away from you.

    Equivalently, \(\vec{A} \times \vec{B}\) and \(\vec{B} \times \vec{A}\) have the same magnitude but opposite directions:

    \[\vec{B} \times \vec{A} = -(\vec{A} \times \vec{B}). \tag{3.18}\]

    The cross product is therefore not commutative; the order matters.

    In component form, the cross product is most easily computed as a \(3\times 3\) determinant:

    Key Equation: Cross product by components

    \[\vec{A} \times \vec{B} = \begin{vmatrix} \hat\imath & \hat\jmath & \hat{k} \\ A_x & A_y & A_z \\ B_x & B_y & B_z \end{vmatrix} = (A_y B_z - A_z B_y)\,\hat\imath - (A_x B_z - A_z B_x)\,\hat\jmath + (A_x B_y - A_y B_x)\,\hat{k}. \tag{3.19}\]

    If both vectors lie in the \(xy\)-plane (\(A_z = B_z = 0\)), the cross product has only a \(z\)-component, and equation (3.19) reduces to

    \[\vec{A} \times \vec{B} = (A_x B_y - A_y B_x)\,\hat{k}.\]

    This \(z\)-component is positive when \(\vec{A}\times\vec{B}\) points out of the page (toward you) and negative when it points into the page.

    Like the dot product, the cross product has a few key special cases worth memorizing:

    • If \(\vec{A}\) and \(\vec{B}\) are parallel or antiparallel, \(\sin\theta = 0\) and \(\vec{A}\times\vec{B} = \vec{0}\). In particular, \(\vec{A}\times\vec{A} = \vec{0}\). Note that this is the zero vector, not the scalar \(0\).
    • The cross product is distributive, \(\vec{A}\times(\vec{B}+\vec{C}) = \vec{A}\times\vec{B} + \vec{A}\times\vec{C}\), and scalars pull out: \((c\vec{A})\times\vec{B} = c(\vec{A}\times\vec{B})\). But it is not associative, so parentheses matter.
    • For the basis vectors: \(\hat\imath \times \hat\jmath = \hat{k}\), \(\hat\jmath \times \hat{k} = \hat\imath\), and \(\hat{k}\times\hat\imath = \hat\jmath\) (and the reverse orderings give minus the result, by (3.18)). These cycle in the order \(x \to y \to z \to x\).
    • Because \(\vec{A}\times\vec{B}\) is perpendicular to both inputs, \(\vec{A}\cdot(\vec{A}\times\vec{B}) = 0\) and \(\vec{B}\cdot(\vec{A}\times\vec{B}) = 0\) always. This is a fast check on any cross product you compute.

    Two geometric consequences are worth recording, since problems ask for them constantly. A triangle with sides \(\vec{A}\) and \(\vec{B}\) is exactly half of the parallelogram in Figure 3.9, so

    \[\text{Area of triangle} = \tfrac{1}{2}\,|\vec{A}\times\vec{B}|. \tag{3.20}\]

    And combining the two products gives the scalar triple product \(\vec{A}\cdot(\vec{B}\times\vec{C})\), whose absolute value is the volume of the parallelepiped with edges \(\vec{A}\), \(\vec{B}\), and \(\vec{C}\). Note that the parentheses are not optional in spirit but they are in practice: \((\vec{A}\cdot\vec{B})\times\vec{C}\) is meaningless, because you cannot take the cross product of a scalar with a vector, so the only sensible reading of \(\vec{A}\cdot\vec{B}\times\vec{C}\) is the one with the cross product done first.

    Example 3.12: Dot and cross products by components

    A force \(\vec{F} = \langle 3, 2, -2\rangle\,\mathrm{N}\) is applied at a point whose position relative to a pivot is \(\vec{r} = \langle -2, 4, 5\rangle\,\mathrm{m}\). Compute:

    1. \(\vec{r}\cdot\vec{F}\)
    2. \(\vec{F}\cdot\vec{r}\)
    3. \(3(\vec{r}\cdot\vec{F})\)
    4. \(\vec{F}\times\vec{r}\)
    5. \(\vec{r}\times\vec{F}\), which is the torque about the pivot
    Solution

    (a) Using the component form of equation (3.12), multiply matching components and add:

    \[\vec{r}\cdot\vec{F} = (-2)(3) + (4)(2) + (5)(-2) = -6 + 8 - 10 = -8\,\mathrm{N\cdot m}.\]

    Each product is (meters)(newtons), so the result is in newton-meters.

    (b) By commutativity of the dot product,

    \[\vec{F}\cdot\vec{r} = \vec{r}\cdot\vec{F} = -8\,\mathrm{N\cdot m}.\]

    (Recomputing with the factors swapped, \((3)(-2) + (2)(4) + (-2)(5)\), gives the same three products in the same order, since ordinary multiplication doesn’t care which number comes first.)

    (c) A dot product is just a number, so multiplying it by \(3\) is ordinary arithmetic:

    \[3(\vec{r}\cdot\vec{F}) = 3(-8)\,\mathrm{N\cdot m} = -24\,\mathrm{N\cdot m}.\]

    (d) Set up the determinant of equation (3.19). The first vector in the product goes in the middle row and the second in the bottom row, so here \(\vec{F}\) is in the middle and \(\vec{r}\) is on the bottom:

    \[\vec{F}\times\vec{r} = \begin{vmatrix} \hat\imath & \hat\jmath & \hat{k} \\ 3 & 2 & -2 \\ -2 & 4 & 5 \end{vmatrix}.\]

    Each component comes from a \(2\times 2\) determinant. To find the one that multiplies a given unit vector, cover up that unit vector’s row and column; the four numbers left over form the \(2\times2\) determinant, which is evaluated as

    \[\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc\]

    (the product down the main diagonal minus the product up the other diagonal). The middle term, for \(\hat\jmath\), carries an extra minus sign. Covering the first, middle, and last columns in turn gives

    \[\begin{aligned}\hat\imath:&\quad \begin{vmatrix} 2 & -2 \\ 4 & 5 \end{vmatrix} = (2)(5) - (-2)(4) = 10 - (-8) = 10 + 8 = 18, \\ [4pt] \hat\jmath:&\quad -\begin{vmatrix} 3 & -2 \\ -2 & 5 \end{vmatrix} = -\big[(3)(5) - (-2)(-2)\big] = -(15 - 4) = -11, \\ [4pt] \hat{k}:&\quad \begin{vmatrix} 3 & 2 \\ -2 & 4 \end{vmatrix} = (3)(4) - (2)(-2) = 12 - (-4) = 12 + 4 = 16.\end{aligned}\]

    The negative numbers are where the errors hide. In the \(\hat\imath\) term, \((-2)(4) = -8\), and subtracting \(-8\) adds \(8\). In the \(\hat\jmath\) term, \((-2)(-2) = +4\) because two negatives multiply to a positive, so we subtract \(4\). Assembling the three components,

    \[\vec{F}\times\vec{r} = (18\,\hat\imath - 11\,\hat\jmath + 16\,\hat{k})\,\mathrm{N\cdot m} = \langle 18,\; -11,\; 16\rangle\,\mathrm{N\cdot m}.\]

    (e) By anticommutativity, equation (3.18), reversing the order flips the sign of every component, so we get the torque for free:

    \[\vec{\tau} = \vec{r}\times\vec{F} = -(\vec{F}\times\vec{r}) = \langle -18,\; 11,\; -16\rangle\,\mathrm{N\cdot m}.\]

    Two things to notice. First, the order matters enormously: parts (d) and (e) differ by a sign throughout, and only (e) is the torque. Second, both products come out in newton-meters, but they mean different things: the cross product is a torque, while the dot product would be a work if \(\vec{r}\) were a displacement.

    Check. A cross product is perpendicular to both of its inputs, so its dot product with either one must vanish:

    \[\vec{r}\cdot(\vec{r}\times\vec{F}) = (-2)(-18) + (4)(11) + (5)(-16) = 36 + 44 - 80 = 0, \;\checkmark\]

    \[\vec{F}\cdot(\vec{r}\times\vec{F}) = (3)(-18) + (2)(11) + (-2)(-16) = -54 + 22 + 32 = 0. \;\checkmark\]

    If either had come out nonzero, one of the \(2\times 2\) determinants would contain a sign error.

    Checkpoint 3.3

    Two vectors lie in the \(xy\)-plane. Without any calculation, what can you say about the direction of their cross product? Could the cross product itself lie in the \(xy\)-plane?

    Answer

    Answers to Checkpoints

    Checkpoint 3.3. The cross product is perpendicular to both vectors, and the only direction perpendicular to every vector in the \(xy\)-plane is along the \(z\)-axis. So the cross product points along \(+z\) or \(-z\) (the right-hand rule decides which). It cannot lie in the \(xy\)-plane. The one exception is trivial: if the two vectors are parallel or antiparallel, the cross product is the zero vector, which has no direction at all.


    This page titled 3.5: Vector Multiplication was last modified on Thu, 12 Nov 2026 04:26:43 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Michael Ragsdale.