# Dot Product Formula

The geometric definition of the dot product states that the dot product between two vectors
$$\begin{array}{l}\vec{a}\end{array}$$
Â and
$$\begin{array}{l}\vec{b}\end{array}$$
is –

$\LARGE a.b=\left | a \right |\left | b \right |\cos \theta$

Where Î¸ is the angle between vectors

$$\begin{array}{l}\vec{a}\end{array}$$
and
$$\begin{array}{l}\vec{b}\end{array}$$
. This formula gives a clear picture on the properties of the dot product. The formula for the dot product in terms of vector components would make it easier to calculate the dot product between two given vectors. The dot product is also known as Scalar product. The symbol for dot product is represented by a heavy dot (.)

Here,

|a| is the magnitude (length) of vector

$$\begin{array}{l}\vec{a}\end{array}$$
|b| is the magnitude (length) of vector
$$\begin{array}{l}\vec{b}\end{array}$$
Î¸ is the angle between
$$\begin{array}{l}\vec{a}\end{array}$$
and
$$\begin{array}{l}\vec{b}\end{array}$$

#### Dot Product Formula for Two Vectors

$\LARGE a.b=a_{1}a_{2}+b_{1}b_{2}+c_{1}c_{2}$

If we have two vectors a =

$$\begin{array}{l}a_{1}\end{array}$$
,
$$\begin{array}{l}a_{2}\end{array}$$
,
$$\begin{array}{l}a_{3}\end{array}$$
â€¦..
$$\begin{array}{l}a_{n}\end{array}$$
and b =
$$\begin{array}{l}b_{1}\end{array}$$
,
$$\begin{array}{l}b_{2}\end{array}$$
,
$$\begin{array}{l}b_{3}\end{array}$$
â€¦..
$$\begin{array}{l}b_{n}\end{array}$$
, then the dot product is given by

$\LARGE a.b=a_{1}b_{1}+a_{2}b_{2}+a_{3}b_{3}+…..+a_{n}b_{n}=\sum_{j=1}^{n}a_{j}b_{j}$

### Solved Example

Question: Find the dot product of two vectors
$$\begin{array}{l}\vec{a}\end{array}$$
and
$$\begin{array}{l}\vec{b}\end{array}$$
if
$$\begin{array}{l}\vec{a}\end{array}$$
= 4Â
$$\begin{array}{l}\hat{i}\end{array}$$
+ 2Â
$$\begin{array}{l}\hat{j}\end{array}$$
+ 1Â
$$\begin{array}{l}\hat{k}\end{array}$$
and
$$\begin{array}{l}\vec{b}\end{array}$$
= 5Â
$$\begin{array}{l}\hat{i}\end{array}$$
+ 4Â
$$\begin{array}{l}\hat{j}\end{array}$$
+
$$\begin{array}{l}\hat{k}\end{array}$$
.
Solution:

Given:
$$\begin{array}{l}\vec{a}\end{array}$$
= 4Â
$$\begin{array}{l}\hat{i}\end{array}$$
+ 2Â
$$\begin{array}{l}\hat{j}\end{array}$$
+ 1Â
$$\begin{array}{l}\hat{k}\end{array}$$
$$\begin{array}{l}\vec{b}\end{array}$$
= 5Â
$$\begin{array}{l}\hat{i}\end{array}$$
+ 4Â
$$\begin{array}{l}\hat{j}\end{array}$$
+
$$\begin{array}{l}\hat{k}\end{array}$$
The Dot product is given by
$$\begin{array}{l}\vec{a}\end{array}$$
.
$$\begin{array}{l}\vec{b}\end{array}$$
= a1a2 + b1b2 + c1c2
= 5
$$\begin{array}{l}\times\end{array}$$
4 + 2Â
$$\begin{array}{l}\times\end{array}$$
4Â + 1Â
$$\begin{array}{l}\times\end{array}$$
1
= 20 + 8 +Â 1
= 29