Dot Product Calculator

Input the values of vectors a & b and click the calculate button to find a.b using dot product calculator

First vector (a)


i
j
k

Second vector (b)


i
j
k

Give Us Feedback

Dot product calculator 

Dot product calculator is used to find the dot product of two vectors. It calculates the dot product of 2-dimensional & 3-dimensional vectors. This calculator provides a step-by-step solution to the given problems. 

What is a dot product?

The dot product is a fundamental way of combining two vectors. It is used to know the direction of two vectors. The dot product of two vectors is also known as the resultant and it is a scalar quantity
The dot product is denoted by a.b and reads as “a dot b”.

Formula of the dot product

The formula of the dot product is:

a.b = |a||b| cos(θ) … (i)

  • a & b are two vectors.
  • |a| & |b| are the magnitudes of vectors a & b.
  • θ” is the angle between a & b.

In mathematics, we can derive another form of the dot product. Let a = (a1, a2, a3) & b = (b1, b2, b3) be two vectors. Now according to the Law of cosines,

|a – b|2 = |a|2 + |b|2 – 2|a||b| cos(θ)

Let’s simplify the above expression with the help of the magnitude of a vector formula.

(a1 – b1)2 + (a2 – b2)2 + (a3 – b3)2 = (a12 + a22 + a32) + (b12 + b22 + b32) – 2|a||b| cos(θ)

Open the square of each term.

(a12 - 2a1b1 + b12) + (a22 - 2a2b2 + b22) + (a32 - 2a3b3 + b32) = (a12 + a22 + a32) + (b12 + b22 + b32) – 2|a||b| cos(θ)

Now take the similar terms on the same side of the equation.

(a12 - 2a1b1 + b12) + (a22 - 2a2b2 + b22) + (a32 - 2a3b3 + b32) - (a12 + a22 + a32) - (b12 + b22 + b32) = – 2|a||b| cos(θ)

After subtracting the similar terms, we get

- 2a1b1 + (-2a2b2) + (-2a3b3) = – 2|a||b| cos(θ)

- 2(a1b1 + a2b2 + a3b3) = – 2|a||b| cos(θ)

 (a1b1 + a2b2 + a3b3) = |a||b| cos(θ) … (ii)

Now put equation (ii) in (i), we get

a.b = (a1b1 + a2b2 + a3b3)

This formula is used to find the dot product of two vectors.

How to calculate the dot product of two vectors?

Follow the below example to learn how to calculate the dot product of two vectors. 

Example

Find the dot product of vectors a = (2i, 3j, 6k) and b = (4i, 7j, 9k).

Solution

Step 1: Take the given vectors.

 a = (2i, 3j, 6k)

b = (4i, 7j, 9k)

Step 2: Take the formula of the dot product.

a.b = (a1b1 + a2b2 + a3b3)

Step 3: Substitute the given values of vectors a & b in the formula.

a.b = ((2)(4) + (3)(7) + (6)(9))

a.b = (8 + 21 + 54)

a.b = 83 

X
Allmath loader
AdBlocker Detected!

To calculate result you have to disable your ad blocker first.

top