Open In App

How to Find the Angle Between Two Vectors?

Last Updated : 11 Apr, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Vector quantities are the physical quantities that have both magnitude and direction and the angle between two vectors can be easily found if the dot product or the cross product of the two vectors is given.

In this article, we will learn how to find the angle between two vectors, its formula, related examples, and others in detail.

How to Find the Angle Between Two Vectors?

Angle between vectors can be found by using two methods:

  • Using Scalar (Dot) Product 
  • Using Cross (Vector) Product

However, the most commonly used formula for finding an angle between two vectors involves the scalar product. 

Vectors with angle θ between them

Finding Angle using  Scalar (Dot) Product 

Two vectors combined into a scalar product give you a number. Scalar products can be used to define the relationships between energy and work. In mathematics, a scalar product is used to represent the work done by a force (which is a vector) in dispersing (which is a vector) an object. The scalar product is represented by a dot (.). Let,

Dot product be (a.b)

Magnitude of vector a = |a|

Magnitude of vector b = |b|

Angle between the vectors is

θ = Cos-1 [(a · b) / (|a| |b|)]

When two vectors are connected by a dot product, the direction of the angle ፀ does not matter. The angle ፀ can be measured by the difference between either vector since Cos ፀ = Cos (-ፀ) = Cos (2π – ፀ).

Finding Angle Using Cross (Vector) Product

A cross product may also be known as a vector product. It is a form of vector multiplication that takes place between two vectors that have different kinds or natures. When two vectors are multiplied with each other and the resulting product is also a vector quantity, the resulting vector is called the cross product of two vectors or the vector product. Multiplication of two vectors yields vector products with a direction perpendicular to each vector. Let,

Cross product be (a × b)

Magnitude of vector a = |a|

Magnitude of vector b = |b|

|a × b| = |a| |b| sin θ

Angle between the vectors is,

θ = Sin-1 [|a × b|  / (|a| |b|)]

People Also Read:

Sample Problems – How to Find the Angle Between Two Vectors?

Problem 1: Find the angle between two vectors a = {4, 5} and b = {5, 4}.

Solution:

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (4⋅5) + (5⋅4) ⇒ 40

Magnitude of vectors:

|a| = √(42 + 52 ) = √(16 + 25 )⇒ √41

|b| = √(52 + 42 ) = √(25 + 16) ⇒ √41

cos θ = (a⋅b) ∕ |a|⋅|b| ⇒ 40 ∕ √41 ⋅√41 ⇒ 40 ∕41

θ = cos-1 (40∕41) ⇒ 20.556°

Problem 2: Find the angle between two vectors a = {2, 2} and b = {1, 1}.

Solution:

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (2 ⋅1) + (2 ⋅ 1) ⇒ 4

Magnitude of vectors:

|a| = √(22 + 22)= √(4 + 4) ⇒ √8

|b| = √(12 + 12 )= √( 1+ 1 )⇒ √2

cos θ = (a⋅b) ∕ |a|⋅|b| ⇒ 4 ∕ √8 ⋅√2 = 4 ∕4 ⇒ 1

θ = cos-1 (1) ⇒ 0°

Problem 3: Find the angle between two vectors a = i + 2j – k and b = 2i + 4j – 2k.

Solution:

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (1⋅2) + (2⋅4) + ( -1⋅-2) = 2+ 8+2 ⇒12

Magnitude of vectors:

|a| = √(12 + 22 + (-1)2 0 = √(1 + 4 + 1 )⇒ √6

|b| = √(22 + 42 + (-2)2 ) = √(4+ 16 + 4) ⇒ √24

cos θ = (a⋅b) ∕ |a|⋅|b| ⇒ 12 ∕ (√6 ⋅√24) = 12 ∕12 ⇒ 1

θ = cos-1 (1) ⇒ 0°

Problem 4: Find the angle between two vectors a = i + 2j – k and b = 4j – 2k.

Solution:

a = i + 2j – k

b = 0i + 4j – 2k

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (1⋅0) + (2⋅4) + (−1⋅−2) = 0+8+2 ⇒10

Magnitude of vectors:

|a| = √(12 + 22 + (-1)2 0 = √( 1 + 4 + 1 )⇒ √6

|b| = √(02 + 42 + (-2)2 ) = √(16 + 4) ⇒ √20

cos θ = (a⋅b) ∕ |a|⋅|b| = 10 ∕ (√6⋅√20) = 10/√120 ⇒ 5 ∕ √30

θ = cos-1 (5 ∕ √30) ⇒ 45°

Problem 5: Find the angle between two vectors a = {1, -3} and b = {-3, 1}.

Solution:

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (1 ⋅-3) + (-3 ⋅ 1) = -3 -3 ⇒ -6

Magnitude of vectors:

|a| = √(12 + (-3)2 = √(1 + 9 )⇒ √10

|b| = √(-3)2 + 12) = √(9 + 1) ⇒ √10

cos θ = (a⋅b) ∕ |a|⋅|b| ⇒ -6 ∕ (√10 ⋅√10) = -6 ∕10 ⇒ -3/5

θ = cos-1 (-3/5) ⇒ 126.87°

Problem 6: Find the angle between two vectors a = -3i + j and b = -3i + j.

Solution:

Using a⋅b = ∣a∣⋅∣b∣⋅cos(θ)

Finding dot product: a⋅b = (-3 ⋅-3 ) + (1 ⋅ 1) = 9 + 1 ⇒10

Magnitude of vectors:

|a| = √(-3)2 + 12 = √(9 + 1 ) ⇒ √10

|b| = √(-3)2 + 12 = √(9 + 1 ) ⇒ √10

cos θ = (a⋅b) ∕ |a|⋅|b| ⇒ 10 ∕ (√10 ⋅√10) = 10 ∕10 ⇒ 1

θ = cos-1 (1) ⇒ 0°



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads