# Connexions

You are here: Home » Content » Scalar (dot) product

### Recently Viewed

This feature requires Javascript to be enabled.

# Scalar (dot) product

Module by: Sunil Kumar Singh. E-mail the author

Summary: Vector multiplication provides concise and accurate representation of natural laws, which involve vectors.

Note: You are viewing an old version of this document. The latest version is available here.

In physics, we require to multiply a vector with other scalar and vector quantities. The vector multiplication, however, is not an unique mathematical construct like scalar multiplication. The multiplication depends on the nature of quantities (vector or scalar) and on the physical process, necessitating scalar or vector multiplication.

The rules of vector multiplication have been formulated to encapsulate physical processes in their completeness. This is the core consideration. In order to explore this aspect, let us find out the direction of acceleration in the case of parabolic motion of a particle. There may be two ways to deal with the requirement. We may observe the directions of velocities at two points along the path and find out the direction of the change of velocities. Since we know that the direction of change of velocity is the direction of acceleration, we draw the vector diagram and find out the direction of acceleration. We can see that the direction of acceleration turns out to act in vertically downward direction.

The conceptualization of physical laws in vector form, however, provides us with powerful means to arrive at the result in relatively simpler manner. If we look at the flight of particle in parabolic motion, then we observe that the motion of particle is under the force of gravity, which is acting vertically downward. There is no other force (neglecting air resistance). Now, from second law of motion, we know that :

F Resultant = m a F Resultant = m a

This equation reveals that the direction of acceleration is same as that of the resultant force acting on the particle. Thus, acceleration of the particle in parabolic motion is acting vertically downward. We see that this second approach is more elegant of the two methods. We could arrive at the correct answer in a very concise manner, without getting into the details of the motion. It is possible, because Newton's second law in vector form states that net force on the body is product of acceleration vector with scalar mass. As multiplication of scalar with a vector does not change the direction of resultant vector, we conclude that direction of acceleration is same as that of net force acting on the projectile.

## Multiplication with scalar

Multiplication of a vector, A, with another scalar quantity, a, results in another vector, B. The magnitude of the resulting vector is equal to the product of the magnitude of vector with the scalar quantity. The direction of the resulting vector, however, is same as that of the original vector (See Figures below).

B = a A B = a A
(1)

We have already made use of this type of multiplication intuitively in expressing a vector in component form.

A = A x i + A y j + A z k A = A x i + A y j + A z k

In this vector representation, each component vector is obtained by multiplying the scalar component with the unit vector. As the unit vector has the magnitude of 1 with a specific direction, the resulting component vector retains the magnitude of the scalar component, but acquires the direction of unit vector.

A x = A x i A x = A x i
(2)

## Products of vectors

Some physical quantities are themselves a scalar quantity, but are composed from the product of vector quantities. One such example is “work”. On the other hand, there are physical quantities like torque and magnetic force on a moving charge, which are themselves vectors and are also composed from vector quantities.

Thus, products of vectors are defined in two distinct manner – one resulting in a scalar quantity and the other resulting in a vector quantity. The product that results in scalar value is scalar product, also known as dot product as a "dot" (.) is the symbol of operator for this product. On the other hand, the product that results in vector value is vector product, also known as cross product as a "cross" (x) is the symbol of operator for this product. We shall discuss scalar product only in this module. We shall cover vector product in a separate module.

## Scalar product (dot product)

Scalar product of two vectors a and b is a scalar quantity defined as :

a . b = a b cos θ a . b = a b cos θ
(3)

where “a” and “b” are the magnitudes of two vectors and “θ” is the angle between the direction of two vectors. It is important to note that vectors have two angles θ and 2π - θ. We can use either of them as cosine of both “θ” and “2π - θ” are same. However, it is suggested to use the smaller of the enclosed angles to be consistent with cross product in which it is required to use the smaller of the enclosed angles. This approach will maintain consistency with regard to enclosed angle in two types of vector multiplications.

The notation “a.b” is important and should be mentally noted to represent a scalar quantity – even though it involves bold faced vectors. It should be noted that the quantity on the right hand side of the equation is a scalar.

### Meaning of scalar product

We can read the definition of scalar product in either of the following manners :

a . b = a ( b cos θ ) a . b = b ( a cos θ ) a . b = a ( b cos θ ) a . b = b ( a cos θ )
(4)

Recall that “bcos θ” is the scalar component of vector b along the direction of vector a and “a cos θ” is the scalar component of vector a along the direction of vector b. Thus, we may consider the scalar product of vectors a and b as the product of the magnitude of one vector and the scalar component of other vector along the first vector.

The figure below shows drawing of scalar components. The scalar component of vector in figure (i) is obtained by drawing perpendicular from the tip of the vector, b, on the direction of vector, a. Similarly, the scalar component of vector in figure (ii) is obtained by drawing perpendicular from the tip of the vector, a, on the direction of vector, b.

The two alternate ways of evaluating dot product of two vectors indicate that the product is commutative i.e. independent of the order of two vectors :

a . b = b . a a . b = b . a
(5)

#### Exercise 1

A block of mass “m” moves from point A to B along a smooth plane surface under the action of force as shown in the figure. Find the work done if it is defined as :

W = F. Δx

where F and Δx are force and displacement vectors.

##### Solution

Expanding the expression of work, we have :

W = F . Δ x = F Δ x cos θ W = F . Δ x = F Δ x cos θ

Here, F = 10 N, Δx = 10 m and cosθ = cos60° = 0.5.

W = 10 x 10 x 0.5 = 50 J W = 10 x 10 x 0.5 = 50 J

### Values of scalar product

The value of dot product is maximum for the maximum value of cosθ. Now, the maximum value of cosine is cos 0 ° = 1 cos 0 ° = 1 . For this value, dot product simply evaluates to the product of the magnitudes of two vectors.

( a . b ) max = a b ( a . b ) max = a b

For θ = 180 ° , cos 180 ° = - 1 θ = 180 ° , cos 180 ° = - 1 and

a . b = - a b a . b = - a b

Thus, we see that dot product can evaluate to negative value as well. This is a significant result as many scalar quantities in physics are given negative value. The work done, for example, can be negative, when displacement is in the opposite direction to the component of force along that direction.

The scalar product evaluates to zero for θ = 90° and 270° as cosine of these angles are zero. These results have important implication for unit vectors. The dot products of same unit vector evaluates to 1.

i . i = j . j = k . k = 1 i . i = j . j = k . k = 1

The dot products of combination of different unit vectors evaluate to zero.

i . j = j . k = k . i = 0 i . j = j . k = k . i = 0

#### Example 1

Problem : Find the angle between vectors 2i + jk and ik.

Solution : The cosine of the angle between two vectors is given in terms of dot product as :

cos θ = a . b ab cos θ = a . b ab

Now,

a . b = ( 2 i + j - k ) . ( 2 i - k ) a . b = ( 2 i + j - k ) . ( 2 i - k )

Ignoring dot products of different unit vectors (they evaluate to zero), we have :

a . b = 2 i . i + ( - k ) . ( - k ) = 2 + 1 = 3 a = ( 2 2 + 1 2 + 1 2 ) = 6 b = ( 1 2 + 1 2 ) = 2 ab = 6 x 2 = ( 12 ) = 2 3 a . b = 2 i . i + ( - k ) . ( - k ) = 2 + 1 = 3 a = ( 2 2 + 1 2 + 1 2 ) = 6 b = ( 1 2 + 1 2 ) = 2 ab = 6 x 2 = ( 12 ) = 2 3

Putting in the expression of cosine, we have :

cos θ = a . b ab = 3 2 3 = 3 2 = cos 30 ° θ = 30 ° cos θ = a . b ab = 3 2 3 = 3 2 = cos 30 ° θ = 30 °

### Scalar product in component form

Two vectors in component forms are written as :

a = a x i + a y j + a z k b = b x i + b y j + b z k a = a x i + a y j + a z k b = b x i + b y j + b z k

In evaluating the product, we make use of the fact that multiplication of the same unit vectors is 1, while multiplication of different unit vectors is zero. The dot product evaluates to scalar terms as :

a . b = ( a x i + a y j + a z k ) . ( b x i + b y j + b z k ) a . b = a x i . b x i + a y j . b y j + a z k . b z k a . b = a x b x + a y b y + a z b z a . b = ( a x i + a y j + a z k ) . ( b x i + b y j + b z k ) a . b = a x i . b x i + a y j . b y j + a z k . b z k a . b = a x b x + a y b y + a z b z
(6)

## Component as scalar (dot) product

A closer look at the expansion of dot product of two vectors reveals that the expression is very similar to the expression for a component of a vector. The expression of the dot product is :

a . b = a b cos θ a . b = a b cos θ

On the other hand, the component of a vector in a given direction is :

a x = a cos θ a x = a cos θ

Comparing two equations, we can define component of a vector in a direction given by unit vector "n" as :

a x = a . n = a cos θ a x = a . n = a cos θ
(7)

This is a very general and useful relation to determine component of a vector in any direction. Only requirement is that we should know the unit vector in the direction in which component is to be determined.

### Example 2

Problem : Find the components of vector 2i + 3j along the direction i+j.

Solution : The component of a vector “a” in a direction, represented by unit vector “n” is given by dot product :

a n = a . n a n = a . n

Thus, it is clear that we need to find the unit vector in the direction of i+j. Now, the unit vector in the direction of the vector is :

n = i + j | i + j | n = i + j | i + j |

Here,

| i + j | = ( 1 2 + 1 2 ) = 2 | i + j | = ( 1 2 + 1 2 ) = 2

Hence,

n = 1 2 x ( i + j ) n = 1 2 x ( i + j )

The component of vector 2i + 3j in the direction of “n” is :

a n = a . n = ( 2 i + 3 j ) . 1 2 x ( i + j ) a n = a . n = ( 2 i + 3 j ) . 1 2 x ( i + j )

a n = 1 2 x ( 2 i + 3 j ) . ( i + j ) a n = 1 2 x ( 2 x 1 + 3 x 1 ) a n = 5 2 a n = 1 2 x ( 2 i + 3 j ) . ( i + j ) a n = 1 2 x ( 2 x 1 + 3 x 1 ) a n = 5 2

## Attributes of scalar (dot) product

In this section, we summarize the properties of dot product as discussed above. Besides, some additional derived attributes are included for reference.

1: Dot product is commutative

This means that the dot product of vectors is not dependent on the sequence of vectors :

a . b = b . a a . b = b . a

We must, however, be careful while writing sequence of dot product. For example, writing a sequence involving three vectors like a.b.c is incorrect. For, dot product of any two vectors is a scalar. As dot product is defined for two vectors (not one vector and one scalar), the resulting dot product of a scalar (a.b) and that of third vector c has no meaning.

2: Distributive property of dot product :

a . ( b + c ) = a . b + a . c a . ( b + c ) = a . b + a . c

3: The dot product of a vector with itself is equal to the square of the magnitude of the vector.

a . a = a x a cosθ = a 2 cos 0 ° = a 2 a . a = a x a cosθ = a 2 cos 0 ° = a 2

4: The magnitude of dot product of two vectors can be obtained in either of the following manner :

a . b = a b cos θ a . b = a b cos θ = a x ( b cos θ ) = a x component of b along a a . b = a b cos θ = ( a cos θ ) x b = b x component of a along b a . b = a b cos θ a . b = a b cos θ = a x ( b cos θ ) = a x component of b along a a . b = a b cos θ = ( a cos θ ) x b = b x component of a along b

The dot product of two vectors is equal to the algebraic product of magnitude of one vector and component of second vector in the direction of first vector.

5: The cosine of the angle between two vectors can be obtained in terms of dot product as :

a . b = a b cosθ a . b = a b cosθ

cosθ = a . b a b cosθ = a . b a b

6: The condition of two perpendicular vectors in terms of dot product is given by :

a . b = a b cos 90 ° = 0 a . b = a b cos 90 ° = 0

7: Properties of dot product with respect to unit vectors along the axes of rectangular coordinate system are :

i . i = j . j = k . k = 1 i . j = j . k = k . i = 0 i . i = j . j = k . k = 1 i . j = j . k = k . i = 0

8: Dot product in component form is :

a . b = a x b x + a y b y + a z b z a . b = a x b x + a y b y + a z b z

9: The dot product does not yield to cancellation. For example, if a.b = a.c, then we can not conclude that b = c. Rearranging, we have :

a . b - a . c = 0 a . ( b - c ) = 0 a . b - a . c = 0 a . ( b - c ) = 0

This means that a and (b - c) are perpendicular to each other. In turn, this implies that (b - c) is not equal to zero (null vector). Hence, b is not equal to c as we would get after cancellation.

We can understand this difference with respect to cancellation more explicitly by working through the problem given here :

### Example 3

Problem : Verify vector equality B = C, if A.B = A.C.

Solution : The given equality of dot products is :

A . B = A . C A . B = A . C

We should understand that dot product is not a simple algebraic product of two numbers (read magnitudes). The angle between two vectors plays a role in determining the magnitude of the dot product. Hence, it is entirely possible that vectors B and C are different yet their dot products with common vector A are equal. Let θ 1 θ 1 and θ 2 θ 2 be the angles for first and second pairs of dot products. Then,

A . B = A . C A . B = A . C

AB cos θ 1 = AC cos θ 2 AB cos θ 1 = AC cos θ 2

If θ 1 = θ 2 θ 1 = θ 2 , then B = C B = C . However, if θ 1 θ 2 θ 1 θ 2 , then B C B C .

## Law of cosine and dot product

Law of cosine relates sides of a triangle with one included angle. We can determine this relationship using property of a dot product. Let three vectors are represented by sides of the triangle such that closing side is the sum of other two vectors. Then applying triangle law of addition :

c = ( a + b ) c = ( a + b )

We know that the dot product of a vector with itself is equal to the square of the magnitude of the vector. Hence,

c 2 = ( a + b ) . ( a + b ) = a . a + 2 a . b + b . b c 2 = a 2 + 2 a b cos φ + b 2 c 2 = a 2 + 2 a b cos ( π-θ ) + b 2 c 2 = a 2 - 2 a b cos θ + b 2 c 2 = ( a + b ) . ( a + b ) = a . a + 2 a . b + b . b c 2 = a 2 + 2 a b cos φ + b 2 c 2 = a 2 + 2 a b cos ( π-θ ) + b 2 c 2 = a 2 - 2 a b cos θ + b 2

This is known as cosine law of triangle.

## Differentiation and dot product

Differentiation of a vector expression yields a vector. Consider a vector expression given as :

a = ( x 2 + 2 x + 3 ) i a = ( x 2 + 2 x + 3 ) i

The derivative of the vector with respect to x is :

a ' = ( 2 x + 2 ) i a ' = ( 2 x + 2 ) i

As the derivative is a vector, two vector expressions with dot product is differentiated in a manner so that dot product is retained in the final expression of derivative. For example,

d d x ( a . b ) = a ' b + a b ' d d x ( a . b ) = a ' b + a b '

## Exercises

### Exercise 2

Sum and difference of two vectors a and b are perpendicular to each other. Find the relation between two vectors.

#### Solution

The sum a+b and difference a-b are perpendicular to each other. Hence, their dot product should evaluate to zero.

( a + b ) . ( a - b ) = 0 ( a + b ) . ( a - b ) = 0

Using distributive property,

a . a - a . b + b . a - b . b = 0 a . a - a . b + b . a - b . b = 0

Using commutative property, a.b = b.a, Hence,

a . a - b . b = 0 a 2 - b 2 = 0 a = b a . a - b . b = 0 a 2 - b 2 = 0 a = b

It means that magnitudes of two vectors are equal. See figure below for enclosed angle between vectors, when vectors are equal :

### Exercise 3

If |a + b| = |ab|, then find the angle between vectors a and b.

#### Solution

A question that involves modulus or magnitude of vector can be handled in specific manner to find information about the vector (s). The specific identity that is used in this circumstance is :

A . A = A 2 A . A = A 2

We use this identity first with the sum of the vectors (a+b),

( a + b ) . ( a + b ) = | a + b | 2 ( a + b ) . ( a + b ) = | a + b | 2

Using distributive property,

a . a + b . a + a . b + b . b = a 2 + b 2 + 2 a b cos θ = | a + b | 2 | a + b | 2 = a 2 + b 2 + 2 a b cos θ a . a + b . a + a . b + b . b = a 2 + b 2 + 2 a b cos θ = | a + b | 2 | a + b | 2 = a 2 + b 2 + 2 a b cos θ

Similarly, using the identity with difference of the vectors (a-b),

| a - b | 2 = a 2 + b 2 - 2 a b cos θ | a - b | 2 = a 2 + b 2 - 2 a b cos θ

It is, however, given that :

| a + b | = | a - b | | a + b | = | a - b |

Squaring on either side of the equation,

| a + b | 2 = | a - b | 2 | a + b | 2 = | a - b | 2

Putting the expressions,

a 2 + b 2 + 2 a b cos θ = a 2 + b 2 - 2 a b cos θ 4 a b cos θ = 0 cos θ = 0 θ = 90 ° a 2 + b 2 + 2 a b cos θ = a 2 + b 2 - 2 a b cos θ 4 a b cos θ = 0 cos θ = 0 θ = 90 °

Note : We can have a mental picture of the significance of this result. As given, the magnitude of sum of two vectors is equal to the magnitude of difference of two vectors. Now, we know that difference of vectors is similar to vector sum with one exception that one of the operand is rendered negative. Graphically, it means that one of the vectors is reversed.

Reversing one of the vectors changes the included angle between two vectors, but do not change the magnitudes of either vector. It is, therefore, only the included angle between the vectors that might change the magnitude of resultant. In order that magnitude of resultant does not change even after reversing direction of one of the vectors, it is required that the included angle between the vectors is not changed. This is only possible, when included angle between vectors is 90°. See figure.

### Exercise 4

If a and b are two non-collinear unit vectors and |a + b| = √3, then find the value of expression :

( a - b ) . ( 2 a + b ) ( a - b ) . ( 2 a + b )

#### Solution

The given expression is scalar product of two vector sums. Using distributive property we can expand the expression, which will comprise of scalar product of two vectors a and b.

( a - b ) . ( 2 a + b ) = 2 a . a + a . b - b . 2 a + ( - b ) . ( - b ) = 2 a 2 - a . b - b 2 ( a - b ) . ( 2 a + b ) = 2 a . a + a . b - b . 2 a + ( - b ) . ( - b ) = 2 a 2 - a . b - b 2

( a - b ) . ( 2 a + b ) = 2 a 2 - b 2 - a b cos θ ( a - b ) . ( 2 a + b ) = 2 a 2 - b 2 - a b cos θ

We can evaluate this scalar product, if we know the angle between them as magnitudes of unit vectors are each 1. In order to find the angle between the vectors, we use the identity,

A . A = A 2 A . A = A 2

Now,

| a + b | 2 = ( a + b ) . ( a + b ) = a 2 + b 2 + 2 a b cos θ = 1 + 1 + 2 x 1 x 1 x cos θ | a + b | 2 = ( a + b ) . ( a + b ) = a 2 + b 2 + 2 a b cos θ = 1 + 1 + 2 x 1 x 1 x cos θ

| a + b | 2 = 2 + 2 cos θ | a + b | 2 = 2 + 2 cos θ

It is given that :

| a + b | 2 = ( 3 ) 2 = 3 | a + b | 2 = ( 3 ) 2 = 3

Putting this value,

2 cos θ = | a + b | 2 - 2 = 3 - 2 = 1 2 cos θ = | a + b | 2 - 2 = 3 - 2 = 1

cos θ = 1 2 θ = 60 ° cos θ = 1 2 θ = 60 °

Using this value, we now proceed to find the value of given identity,

( a - b ) . ( 2 a + b ) = 2 a 2 - b 2 - a b cos θ = 2 x 1 2 - 1 2 - 1 x 1 x cos 60 ° ( a - b ) . ( 2 a + b ) = 2 a 2 - b 2 - a b cos θ = 2 x 1 2 - 1 2 - 1 x 1 x cos 60 °

( a - b ) . ( 2 a + b ) = 1 2 ( a - b ) . ( 2 a + b ) = 1 2

### Exercise 5

In an experiment of light reflection, if a, b and c are the unit vectors in the direction of incident ray, reflected ray and normal to the reflecting surface, then prove that :

b = a - 2 ( a . c ) c b = a - 2 ( a . c ) c

#### Solution

Let us consider vectors in a coordinate system in which “x” and “y” axes of the coordinate system are in the direction of reflecting surface and normal to the reflecting surface respectively as shown in the figure.

We express unit vectors with respect to the incident and reflected as :

a = sin θ i - cos θ j b = sin θ i + cos θ j a = sin θ i - cos θ j b = sin θ i + cos θ j

Subtracting first equation from the second equation, we have :

b - a = 2 cos θ j b = a + 2 cos θ j b - a = 2 cos θ j b = a + 2 cos θ j

Now, we evaluate dot product, involving unit vectors :

a . c = 1 x 1 x cos ( 180 ° - θ ) = - cos θ a . c = 1 x 1 x cos ( 180 ° - θ ) = - cos θ

Substituting for cosθ, we have :

b = a - 2 ( a . c ) c b = a - 2 ( a . c ) c

## Content actions

### Give feedback:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

#### Definition of a lens

##### Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

##### What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

##### Who can create a lens?

Any individual member, a community, or a respected organization.

##### What are tags?

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks