Scalar Product — Definition, Formula, Examples

Scalar Product — Definition, Formula, Examples

TL;DR
The scalar product of two vectors — also called the dot product — multiplies them to give a single number, not a vector: a⋅b=∣a∣∣b∣cosθ\mathbf{a} \cdot \mathbf{b} = |\mathbf{a}||\mathbf{b}|\cos\theta. This article covers both the geometric and component formulas, the key properties, how it differs from the cross product, six worked examples, and the mistakes students make most.

What Is The Scalar Product?

The scalar product of two vectors is an operation that combines them into a single scalar (a number), defined as the product of their magnitudes and the cosine of the angle between them. Because the result is a scalar rather than a vector, it is called the scalar product; because it is written with a dot, a⋅b\mathbf{a} \cdot \mathbf{b}, it is equally called the dot product. The two names mean the same thing.

A quick refresher on the words: a vector is a quantity with both magnitude (length) and direction, like velocity or force. Its magnitude, written ∣a∣|\mathbf{a}|, is its length. The angle θ\theta is the angle between the two vectors when drawn from a common starting point.

This is one of two ways to "multiply" vectors. The other, which produces a vector and measures something quite different, is the cross product — covered separately below and in multiplication of vectors. The scalar product is also treated, with more worked detail, in our dot product article; this page focuses on the scalar framing and the projection idea.

The Two Scalar Product Formulas

There are two equivalent formulas, and knowing when to use each is most of the skill.

Geometric form (magnitudes and angle):

a⋅b=∣a∣,∣b∣cosθ\mathbf{a} \cdot \mathbf{b} = ∣\mathbf{a}∣,∣\mathbf{b}∣cosθ

Use this when you know the lengths of the vectors and the angle between them.

Component (algebraic) form:

For a= \mathbf{a} = \begin{bmatrix} a_1 \ a_2 \ a_3 \end{bmatrix}

and b= \mathbf{b} = \begin{bmatrix} b_1 \ b_2 \ b_3 \end{bmatrix},

a⋅b=a1b1+a2b2+a3b3\mathbf{a} \cdot \mathbf{b} = a_1 b_1 + a_2 b_2 + a_3 b_3

Use this when you know the components. You multiply matching components and add — that is all.

The two forms always agree, which gives a bonus: set them equal and you can solve for the angle between two vectors:

cosθ=a⋅b∣a∣,∣b∣\cos\theta = \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}|,|\mathbf{b}|}

Properties of the scalar product

How Does The Scalar Product Differ From The Cross Product?

This is the disambiguation students most need. The two products answer different questions:

Scalar (dot) product Cross (vector) product
Result A scalar (number) A vector
Formula a⋅b=∣a∣∣b∣cosθ\mathbf{a} \cdot \mathbf{b} = \lvert\mathbf{a}\rvert\lvert\mathbf{b}\rvert\cos θ ∣a×b∣=∣a∣∣b∣sinθ\lvert\mathbf{a} \times \mathbf{b}\rvert = \lvert\mathbf{a}\rvert\lvert\mathbf{b}\rvert\sin θ
Measures How aligned two vectors are The area they span, and a perpendicular direction
Zero when Vectors are perpendicular Vectors are parallel
Symbol dot ⋅ cross ×

The scalar product uses cosine and peaks when vectors point the same way; the cross product uses sine and peaks when they are perpendicular. They are near-opposites in that sense. The cross product gets its own full treatment in the cross product of two vectors article.

Examples of the Scalar Product

Six problems, easier to harder, switching between the two formulas as the given information dictates.

Example 1

Find a⋅b\mathbf{a} \cdot \mathbf{b} for a= \mathbf{a} = \begin{bmatrix} 2 \ 3 \end{bmatrix} and b= \mathbf{b} = \begin{bmatrix} 4 \ 1 \end{bmatrix}.

Multiply matching components and add:

a⋅b=(2)(4)+(3)(1)=8+3=11\mathbf{a} \cdot \mathbf{b} = (2)(4) + (3)(1) = 8 + 3 = 11

Final answer: 11.

Example 2

Two vectors have magnitudes ∣a∣=5 and ∣b∣=4 with a 90° angle between them. Find a⋅b.

A natural first move is to multiply the magnitudes: 5×4=20.

Why that is wrong. That ignores the angle entirely. The scalar product is ∣a∣∣b∣cosθ, and cos⁡90°=0, so the angle does the deciding work here.

The correct method.

a⋅b=∣a∣∣b∣cosθ=5×4×cos⁡90°
=5×4×0=0. A zero scalar product means the vectors are perpendicular — the magnitudes never even mattered.

Final answer: 0.

Example 3

Find the scalar product of a= \mathbf{a} = \begin{bmatrix} 1 \ -2 \ 3 \end{bmatrix} and b= \mathbf{b} = \begin{bmatrix} 4 \ 0 \ -1 \end{bmatrix}.

Multiply matching components, keeping signs:

a⋅b=(1)(4)+(−2)(0)+(3)(−1)\mathbf{a} \cdot \mathbf{b} = (1)(4) + (-2)(0) + (3)(-1)
=4+0−3=1.

Final answer: 1.

Example 4

Vectors of magnitude 6 and 8 meet at a 60° angle. Find their scalar product.

Use the geometric form with cos⁡60°=1/2:

a⋅b=6×8×cos⁡60°=48×1/2=24.

Final answer: 24.

Example 5

Find the angle between a= \mathbf{a} = \begin{bmatrix} 1 \ 0 \end{bmatrix} and b= \mathbf{b} = \begin{bmatrix} 1 \ 1 \end{bmatrix}.

First the scalar product:
a⋅b=(1)(1)+(0)(1)=1.

Then the magnitudes: ∣a∣=1 and ∣b∣=√(1²+1²)=2.

Now solve for the angle:

cosθ=a⋅b∣a∣∣b∣=1/(1×√2)=1/√2

So θ=45°.

Final answer: 45°.

Example 6

A force F= \mathbf{F} = \begin{bmatrix} 10 \ 5 \end{bmatrix} newtons moves an object along displacement d= \mathbf{d} = \begin{bmatrix} 3 \ 0 \end{bmatrix} metres. Find the work done.

Work is the scalar product of force and displacement, W=F⋅d:
W=(10)(3)+(5)(0)=30.

Final answer: 30 joules. The sideways component of the force does no work, because the object moves only horizontally — which is precisely what the scalar product captures.

Where the scalar product earns its keep

The scalar product exists because "how much do these two directions agree?" turns out to be one of the most useful questions in applied math.

The vector notation that makes all this clean was developed largely by J. Willard Gibbs (1839–1903, USA), who shaped modern vector analysis. The enduring value of the scalar product is that it answers an alignment question with a single, easy-to-compute number.

Common Mistakes With the Scalar Product

Mistake 1: Expecting a vector as the answer

Where it slips in: Right after the operation. The memorizer who learned "multiply the vectors" expects a vector back.
Don't do this: Report a⋅b= \mathbf{a} \cdot \mathbf{b} = \begin{bmatrix} 8 \ 3 \end{bmatrix} from Example 1.
The correct way: The scalar product is a scalar, a single number, 11 — the clue is in the name. If your answer has components, you have computed something else. The confusion that fixes this: the scalar (dot) product gives a number; the cross product gives a vector. Keep those two outcomes apart and the rest follows.

Mistake 2: Forgetting the angle in the geometric form

Where it slips in: Using magnitudes without the cosine factor.
Don't do this: For magnitudes 5 and 4, write a⋅b=20 regardless of angle.
The correct way: a⋅b=∣a∣∣b∣cosθ. The cos⁡θ is not optional — it is what makes the product zero for perpendicular vectors and largest for aligned ones. Always ask "what is the angle?" before reporting a geometric-form answer.

Mistake 3: Dropping signs in the component form

Where it slips in: Negative components. The second-guesser changes a sign, then changes it back.
Don't do this: For (−2)(0)+(3)(−1), write 0+3=3, losing the minus.
The correct way: (−2)(0)+(3)(−1)=0−3=−3. Carry every sign through the multiplication and the addition. A scalar product can be negative — that just means the vectors point partly opposite each other, the angle being obtuse. This is the same input-discipline that, at industrial scale, mattered when one mishandled quantity doomed NASA's Mars Climate Orbiter in 1999.

Conclusion

Practice These to Solidify Your Understanding

Work through each, then revisit the linked section if you stall.

  1. Find the scalar product of [3−12] and [14−2].
  2. Two vectors of magnitude 7 and 2 meet at 60°. Find their scalar product.
  3. Find the angle between [20] and [05].

Frequently Asked Questions

Is the scalar product the same as the dot product?
Yes. "Scalar product" and "dot product" are two names for the same operation — the first emphasises that the result is a scalar, the second the dot notation a⋅b.
Can the scalar product be negative?
Yes. A negative scalar product means the angle between the vectors is obtuse, so they point partly in opposite directions. A zero scalar product means they are perpendicular.
What is the difference between the scalar product and the cross product?
The scalar (dot) product returns a number and measures alignment (cos⁡θ); the cross product returns a vector and measures the perpendicular spread and area (sin⁡θ).
How do I use the scalar product to find the angle between two vectors?
Rearrange the formula: cosθ=a⋅b∣a∣∣b∣. Compute the scalar product and both magnitudes, divide, then take the inverse cosine.