Open In App

Vector Operations

Last Updated : 23 Jan, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Vectors are fundamental quantities in physics and mathematics, that have both magnitude and direction. So performing mathematical operations on them directly is not possible. So we have special operations that work only with vector quantities and hence the name, vector operations.

Thus, It is essential to know what kind of operations can be performed on the vector quantities and vector operations tell us about the same.

Key Vector Operations:

Addition of Vectors

Vectors cannot be added by usual algebraic rules. While adding two vectors, the magnitude and the direction of the vectors must be taken into account. Triangle law is used to add two vectors, the diagram below shows two vectors "a" and "b" and the resultant is calculated after their addition. Vector addition follows commutative property, this means that the resultant vector is independent of the order in which the two vectors are added. 

\vec{a} + \vec{b} = \vec{c}

The commutative property of vector addition states that,

\vec{a} + \vec{b} = \vec{b} + \vec{a}

Triangle-Law-of-Vector-Addition

Triangle Law of Vector Addition

For the Triangle Law of Vector Addition, Consider the vectors given in the figure above. The line AB represents the vector "a", and BC represents the vector "b". The line AC represents the resultant vector. The direction of AC is from A to C.

Line AC represents, 

\vec{a} + \vec{b}

The magnitude of the resultant vector is given by, 

\sqrt{|a|^2 + |b|^2 + 2|a||b|cos(\theta)}

The θ represents the angle between the two vectors. Let Φ be the angle made by the resultant vector with the vector p.

tan(\phi) = \frac{qsin(\theta)}{p + qcos(\theta)}

Parallelogram Law of Vector Addition

According to the Parallelogram Law of Vector Addition if, the "Adjacent side of a parallelogram represents two vectors then the diagonal starting from the same initial point represents the resultant of the vector."

This is represented by the image added below:

Paralllelogram-law-of-vector-addition

Here, vector A and vector B represent the sides of parallelogram PQ and QR respectively and QS represents the resultant sum vector C.

Subtraction of Two Vectors

Two vectors can be easily subtracted using the vector addition rules. A negative vector is considered a vector with an opposite direction so it is easily solved by reversing its direction and applying the Triangle Law of Vector Addition.

Two vectors a and b are subtracted easily as shown in the image added below:

Subtraction-of-Vectors

Multiplication of Vectors with Scalar

Multiplying a vector a with a constant scalar k gives a vector whose direction is the same but the magnitude is changed by a factor of k.

The figure shows the vector after and before it is multiplied by the constant k. In mathematical terms, this can be rewritten as, 

|k\vec{a}|~=~k|\vec{a}| 

if k > 1, the magnitude of the vector increases while it decreases when k < 1. The image added below shows the scaler multiplication of vec a with a scaler number k where k is any constant greater than 1. (k>1)

Scalar-Multiplication-of-Vector

Product of Two Vectors

Vectors can be multiplied by each other but they cannot be divided. In the case of multiplication, there are two kinds of multiplication,

Scalar Multiplication (also known as dot product) is a kind of multiplication that results in a scalar quantity. Vector Multiplication (also known as Cross Product) is a kind of multiplication that results in a vector quantity.

Dot Product Or Scalar Product of Vector

Consider two vectors \vec{A}  and \vec{B} . The scalar product of these two vectors is defined by the equation, 

\vec{A}\cdot \vec{B} = |\vec{A}||\vec{B}|cos(\theta)

Here, θ is the angle between two vectors.

In case the vectors are given by their components. for example a = a1i + a2j + a3k and b = b1i + b2j + b3k. In this case, the dot product is given by, 

a.b = a1b1i + a2b2j + a3b3k

Vector Product Or Cross Product of Vectors

Consider two vectors \vec{A}  and \vec{B} . The vector product of these two vectors is denoted by  \vec{A} \times \vec{B} . The direction of this vector is perpendicular to both of the vectors. The magnitude of this vector is given by, 

|\vec{A} \times \vec{B}| = |\vec{A}||\vec{B}|sin(\theta)

Here, θ is the angle between two vectors. 

The right-hand rule is used to determine the direction of the resulting vector from the cross-product. Note that unlike the addition and dot product, the vector product is not commutative.

In case the vectors are given by their components. for example a = a1i + a2j + a3k and b = b1i + b2j + b3k. In this case, the cross-product is given by,

\vec{A} \times \vec{B} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} \\ 

Read More,

Solved Examples of Vector Operations

Problem 1: A vector is given by, v = 2i + j. Find the magnitude of the vector when it is scaled by a constant of 0.4. 

Solution: 

For any vector (v) = ai + bj, its magnitude is given as

|v| = \sqrt{a^2 + b^2}the

0.4|v| = |0.4v| 

a = 2, b = 1

|0.4v| = |0.4(2i + j)| 

⇒ |0.4v| = |0.8i + 0.4j| 

⇒ |0.4v| = \sqrt{0.8^2 + 0.4^2}

⇒ |0.4v| = \sqrt{0.64 + 0.16}

⇒ |0.4v| = 0.8

Hence, the magnitude of the vector, v = 2i + j when it is scaled by a constant of 0.4 is 0.8

Problem 2: Two vectors with magnitude 5 and 10. These vectors have a 60° angle between them. Find the magnitude of the resultant vectors. 

Solution: 

Let, two vectors be p and q. Then resultant vector "r" is given by, 

|r| = \sqrt{|p|^2 + |q|^2 + 2|p||q|cos(\theta)}

Given,

  • |p| = 5
  • |q| = 10
  • θ = 60o

|r| = \sqrt{|p|^2 + |q|^2 + 2|p||q|cos(\theta)}

|r| = \sqrt{|5|^2 + |10|^2 + 2|5||10|cos(60)}

|r| = \sqrt{|5|^2 + |10|^2 + (10)(5)}

|r| = \sqrt{25 + 100 + 50}

|r| = \sqrt{175}

The magnitude of resultant vector is |r| = \sqrt{175}

Problem 3: Two vectors with magnitude 4 and 4. These vectors have a 60° angle between them. Find the magnitude of the resultant vectors and the angle made by the resultant vector. 

Solution: 

Let, two vectors be p and q. Then resultant vector "r" is given by, 

|r| = \sqrt{|p|^2 + |q|^2 + 2|p||q|cos(\theta)}

  • |p| = 4
  • |q| = 4
  • θ = 60o

|r| = \sqrt{|p|^2 + |q|^2 + 2|p||q|cos(\theta)}

|r| = \sqrt{|4|^2 + |4|^2 + 2|4||4|cos(60)}

|r| = \sqrt{16 + 16 + 2|4||4|cos(60)}

|r| = \sqrt{48}

Angle made by resultant, 

tan(\phi) = \frac{4sin(60)}{4 + 4cos(60)}

tan(\phi) = \frac{2\sqrt{2}}{4 + 2}

tan(\phi) = \frac{\sqrt{2}}{3}

⇒ Φ = tan-1(2/3)

Problem 4: Two vectors are given by, a = 2i + j + k and b = i + j + k. Find the dot product of these two vectors. 

Solution: 

Given,

  • a = 2i + j + k 
  • b = i + j + k 

Dot Product = a.b 

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

⇒ a.b = 2.1 i2 + 1.1 j2+ 1.1 k2

⇒ a.b = 2 + 1 + 1 = 4 

Hence, dot product of the given two vectors is 4.

Problem 5: Two vectors are given by, a = 2i + j + k and b = i + j + k. Find the cross product of these two vectors. 

Solution: 

Given,

  • a = 2i + j + k 
  • b = i + j + k 

Cross Prodcut of Vector = (2i + j + k) × (i + j + k)

\vec{A} \times \vec{B} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & 1 & 1 \\ 1 & 1 & 1 \end{vmatrix}

\Rightarrow \vec{A} \times \vec{B} = \hat{i}\begin{vmatrix} 1 & 1 \\ 1 & 1 \end{vmatrix} - \hat{j}\begin{vmatrix} 2 & 1 \\ 1 & 1 \end{vmatrix} + \hat{k}\begin{vmatrix} 2 & 1 \\ 1 & 1 \end{vmatrix}

\Rightarrow \vec{A} \times \vec{B} = -\hat{j}(2.1 - 1.1) + \hat{k}(2.1 - 1.1)

\Rightarrow \vec{A} \times \vec{B} = -\hat{j} + \hat{k}


Next Article

Similar Reads