Dot Product of Two Vector (original) (raw)

Last Updated : 12 Jun, 2026

The dot product (or scalar product) of two vectors is a way of multiplying vectors that results in a scalar (number). This operation, often symbolized by a centered dot, is dependent on the length of both vectors and the angle between them.

Dot-product

The dot product of two vectors, denoted by a ⋅ b, is defined in two ways:

a ⋅ b = ∑ (a_i * b_i)

a ⋅ b = |a| |b| cos(θ)

Finding The Dot Product of Two Vectors

  1. **Identify the vectors: Ensure you have two vectors with the same number of dimensions.
  2. **Multiply corresponding components: For each dimension, multiply the components from each vector together.
  3. **Sum the products: Add the multiplied components together.
  4. The result is the dot product.

Angle Between Two Vectors Using Dot Product

The dot product formula can be rearranged to find the angle (θ) between two vectors (a and b) using the following formula:

cos(θ) = \dfrac{(a ⋅ b)} {(|a| |b|)}

This formula is useful for determining whether vectors are parallel, perpendicular, or point in similar directions.

Properties

The dot product has several important properties, including:

Applications

The dot product has numerous applications in various fields, including:

Solved Examples

**Example 1: Find the dot product of vectors a = [1, 2] and b = [3, 4].

a ⋅ b = (1 * 3) + (2 * 4) = 11

**Example 2: Calculate the angle between vectors a = [2, 1] and b = [1, 3] using the dot product.

To calculate the angle between vectors a = [2, 1] and b = [1, 3] using the dot product, you can use the formula:

\cos(\theta) = \frac{\mathbf{a} \cdot \mathbf{b}}{\|\mathbf{a}\| \cdot \|\mathbf{b}\|}

a⋅b = (2×1) + (1×3) = 2+3 = 5

|a| = 22 + 12 ​= 4 + 1 ​= 5​

|b|= 12 + 32 ​= 1 + 9 ​= 10​

Plugging these values into the formula:

\cos(\theta) = \frac{5}{\sqrt{5} \cdot \sqrt{10}} = \frac{5}{\sqrt{50}} = \frac{5}{\sqrt{25 \cdot 2}} = \frac{5}{5\sqrt{2}} = \frac{1}{\sqrt{2}} = \frac{\sqrt{2}}{2}

Taking the inverse cosine to find the angle:

\theta = \cos^{-1}\left(\frac{\sqrt{2}}{2}\right) = 45^\circ

**Practice Problems

**1. Find the dot product of the vectors a =⟨2, 3⟩ and b = ⟨4, 1⟩.

**2. Calculate the dot product of the vectors a = ⟨1, −2, 3⟩ and b = ⟨4, 0, −1⟩.

**3. Determine whether the vectors a = ⟨3, 4⟩ and b = ⟨4, −3⟩ are perpendicular using the dot product.

**4. Find the angle between the vectors a = ⟨1, 1⟩ and b = ⟨1, −1⟩.

**5. Find the projection of the vector a = ⟨6, 8⟩ onto the vector b = ⟨3, 0⟩.