The Wayback Machine - https://web.archive.org/web/20240718045424/https://www.geeksforgeeks.org/angle-between-two-vectors-formula/
Open In App

Angle between Two Vectors Formula

Last Updated : 10 Apr, 2024
Improve
Suggest changes
Post a comment
Like Article
Like
Save
Share
Report

Angle between two vectors is the angle between their tails and this angle can be easily found using cross product and dot product of vector formulas. Angle between two vectors always lies between 0° and 180°.

In this article we will learn about, angle between two vectors, definition, formulas, and examples in detail.

What is Angle Between Two Vectors?

Angle between two vectors is the angle formed at the intersection of their tails. Angle between two vectors can be, acute, right, or obtuse, depending on the direction of the vectors.

Angle between two vectors is found using two formulas:

  • Using Dot Product of Vectors
  • Using Cross Product of Vectors

This is explained in the formula below.

Angle Between Two Vectors Formulas

Angle between two vectors is easily and most commonly found using scalar product of vectors.

Two vector A and B

Dot product of A and B is given by,

[Tex]\vec{A}.\vec{B}  [/Tex]= |A| |B| cosÎļ.

Special Cases

  • When angle between vectors are 0 degree.

That is Îļ = 0°

⇒ |A| |B| cosÎļ

⇒ |A| |B| cos0°

⇒ |A| |B| [cos0° = 1]

  • When angle between vectors are 180 degree.

⇒ |A| |B| cosÎļ

⇒ |A| |B| cos180°

⇒ – |A| |B| [cos180° = -1]

  • When angle between vectors are 90 degree.

⇒ |A| |B| cosÎļ

⇒ |A| |B| cos90°

⇒ |A| |B| × 0 [cos90° = 0]

⇒ 0

Formula For Angle Between Two Vectors

Cosine of the angle between two vectors is equal to the sum of the product of the individual constituents of the two vectors, divided by the product of the magnitude of the two vectors.

Two Vectors A and B

[Tex]\vec{A}.\vec{B}  [/Tex] =| A | | B | cosÎļ.

cosÎļ= [Tex]\frac{\vec{A}.\vec{B}}{|A|.|B|} [/Tex]

Îļ= cos-1 [Tex]\frac{\vec{A}.\vec{B}}{|A|.|B|} [/Tex]

In cartesian Form,

A = Axi + Ayj + Azk

B= Bxi + Byj + Bzk 

cos Îļ = [Tex]\frac{(Ax.Bx+Ay.By+Az.Bz)}{(\sqrt{Ax^2+Ay^2+Az^2}×\sqrt{Bx^2+By^2+Bz^2})} [/Tex]

Properties of Dot product

  • Dot product is commutative

[Tex]\vec{A}.\vec{B}=\vec{B}.\vec{A} [/Tex]

  • Dot product is Distributive

[Tex]\vec{A}.(\vec{B}+\vec{C})=(\vec{A}.\vec{B}+\vec{A}.\vec{C}) [/Tex]

Angle between two vectors lies between 0 â‰Ī Îļ â‰Ī 180. When the tails or heads of both the vectors coincide, then the angle between vectors is calculated.

Tail Coincide

Head Coincide

Sample Problems Angle between Two Vectors Formula

Problem 1: Find the angle between vectors (If they form an equilateral triangle) 

  • a and b vectors
  • b and c vectors
  • a and c vectors

Equilateral Triangle formed by a, b, c vector

Solution:

  • a and b vectors

For vector a and b, head of both the vectors coincide with each other, hence angle between a and b vector is same as the angle between two sides of equilateral triangle = 60°.

  • b and c vectors:

From the above figure, we see that head or tail of the b and c vector does not coincide with each other.

So, by using the property- A vector remains unchanged if it is transmitted parallel to itself.

Vector c is shifted parallel to itself

Now we see the tail of vectors b and c are coincide with each other, therefore is the same as the exterior angle make with an equilateral triangle = 120°.

  • a and c vectors

The tail of a and c coincide

For vectors a and c, the tail of both the vectors coincide with each other, hence the angle between the a and c vector is the same as the angle between two sides of the equilateral triangle = 60°.

Problem 2: Find angles between vectors if they form an isosceles right-angle triangle.

  • a and b vector
  • b and c vector
  • a and c vectors

Solution:

  • a and b vector

Right angle Isosceles Triangle

From the above figure, we see that head or tail of a and b vector does not coincide with each other. So, by using the property- A vector remains unchanged if it is transmitted parallel to itself.

a vector is shifted parallel to itself

Now, a and b vectors tails coincide with each other and make an angle the same as the exterior angle of a right angle isosceles triangle = 135°.

  • b and c vector

Right angle Isosceles Triangle

From the above figure, b and c vector head or tails does not coincide with each other. So, by using the property, a vector remains unchanged if it is transmitted parallel to itself.

b vector is shifted parallel to itself

Now, b and c vectors tails coincide with each other and make an angle the same as the exterior angle of a right angle isosceles triangle = 135°.

  • a and c vectors

Right angle Isosceles Triangle

From the above figure, a and c vector head or tails do not coincide with each other. So, by using the property- A vector remains unchanged if it is transmitted parallel to itself.

c vector is moved parallel to itself

Now, a and c vectors tails coincide with each other and make an angle the same as the right angle of isosceles triangle = 90°.

Problem 3: Find angle between the vectors A = i + j + k and vector B = -2i – 2j – 2k.

Solution:

From the formula,

A = Axi + Ayj + Azk

B= Bxi + Byj + Bzk       

cosÎļ= [Tex]\frac{(Ax.Bx+Ay.By+Az.Bz)}{(\sqrt{Ax^2+Ay^2+Az^2}×\sqrt{Bx^2+By^2+Bz^2})} [/Tex]

Here in the Given question, 

A= i + j + k

B= -2i -2j -2k

Substituting the values in the formula

⇒ cosÎļ = [Tex]\frac{(1.(-2)+1.(-2)+1.(-2))}{(\sqrt{1^2+1^2+1^2}×\sqrt{(-2)^2+(-2)^2+(-2)^2})} [/Tex]

⇒ cosÎļ = [Tex]\frac{(-2-2-2)}{(\sqrt{1+1+1}×\sqrt{4+4+4})} [/Tex]

⇒ cosÎļ = [Tex]\frac{-6}{(\sqrt{3}×\sqrt{12})} [/Tex]

⇒ cosÎļ = [Tex]\frac{-6}{(\sqrt{36})} [/Tex]

⇒ cosÎļ = -6/6

⇒ cosÎļ= -1

⇒ Îļ = 180°

Problem 4: Find angle between vector A = 3i + 4j and B = 2i + j

Solution:

A = Axi + Ayj + Azk

B = Bxi + Byj + Bzk      

cosÎļ = [Tex]\frac{(Ax.Bx+Ay.By+Az.Bz)}{(\sqrt{Ax^2+Ay^2+Az^2}×\sqrt{Bx^2+By^2+Bz^2})} [/Tex]

Here Given,

A= 3i + 4j + 0k

B= 2i + j + 0k

Substituting the values in the formula,

⇒ cosÎļ = [Tex]\frac{(3.2+4.1+0.0)}{(\sqrt{3^2+4^2+0^2}×\sqrt{2^2+1^2+0^2})} [/Tex]

⇒ cosÎļ = [Tex]\frac{(6+4+0)}{(\sqrt{9+16+0}×\sqrt{4+1+0})}   [/Tex] 

⇒ cosÎļ = [Tex]\frac{(10)}{(\sqrt{25}×\sqrt{5})} [/Tex]

⇒ cosÎļ = [Tex]\frac{(10)}{(\sqrt{125})} [/Tex]

⇒ Îļ = cos-1 ([Tex]\frac{(10)}{5.(\sqrt{5})}[/Tex])

⇒ Îļ = cos-1 ([Tex]\frac{2}{(\sqrt{5})}[/Tex])

Problem 5: Find the angle between vector A = i + j and Vector B = j + k.

Solution:

From the formula,

A = Axi + Ayj + Azk

B = Bxi + Byj + Bzk      

cosÎļ = [Tex]\frac{(Ax.Bx+Ay.By+Az.Bz)}{(\sqrt{Ax^2+Ay^2+Az^2}×\sqrt{Bx^2+By^2+Bz^2})}[/Tex]  

Here in the Given question,

⇒ A = i + j

⇒ B = j + k

⇒ cosÎļ = [Tex]\frac{(1.0+1.1+0.1)}{(\sqrt{1^2+1^2+0^2}×\sqrt{0^2+1^2+1^2})}[/Tex]

⇒ cosÎļ = [Tex]\frac{(1)}{(\sqrt{1+1+0}×\sqrt{0+1+1})}[/Tex]

⇒ cosÎļ =[Tex]\frac{1}{(\sqrt{2}×\sqrt{2})}[/Tex]

⇒ Îļ = cos-1 (1/2)

⇒ Îļ = 60°



Previous Article
Next Article

Similar Reads

How to Find the Angle Between Two Vectors?
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
5 min read
Basic Constructions - Angle Bisector, Perpendicular Bisector, Angle of 60°
Most of the time we use diagrams while depicting the shapes and scenarios in mathematics. But they are not precise, they are just a representation of the actual shape without proper measurements. But when we are building something like a wooden table, or map of a building is to be constructed. It needs to be precise in measurements. For such cases,
5 min read
Orthogonal Vectors: Definition, Formula and Examples
Orthogonal vectors are a fundamental concept in linear algebra and geometry. Two vectors are orthogonal if their dot product is zero. In this article, we will learn about, Orthogonal Vectors Definition, Orthogonal Vectors Formula, Orthogonal Vectors Examples and others in detail. Table of Content Orthogonal Vectors DefinitionWhat are Orthogonality
7 min read
What is Side Angle Side Formula?
In geometry, two figures or objects are considered congruent if they have the same shape and size, or if one of them has the same shape and size as the mirror image of the other. More formally, a set of two points is said to be congruent only if one can be transformed into the other using the isometric method. In other words, you can move and mirro
10 min read
Cot Half Angle Formula
Trigonometry is a branch of mathematics that uses trigonometric ratios to determine the angles and incomplete sides of a triangle. The trigonometric ratios such as sine, cosine, tangent, cotangent, secant, and cosecant are used to investigate this branch of mathematics. It's the study of how the sides and angles of a right-angled triangle are relat
5 min read
Sine Half Angle Formula
Sine half angle is calculated using various formulas and there are multiple ways to prove the same. In this article, we have covered formulas related to the sine half angle, its derivation-related examples and others in detail. Table of Content Sine Trigonometric RatioSine Half Angle (Sin Îļ/2) FormulaDerivation of Sine Half Angle FormulaExamples of
5 min read
Central Angle of Circle Formula with Solved Examples
Central angle of Circle is the angle formed by two radii that meet at the center of the circle. This angle helps us understand the relationships between different parts of the circle. Knowing the central angle is useful in many real-life situations, such as designing circular objects and calculating distances around a circle. In this article, we wi
5 min read
Double Angle Formula for Cosine
Double angle formula for cosine is a trigonometric identity that expresses cos⁥(2Îļ) in terms of cos⁥(Îļ) and sin⁥(Îļ) the double angle formula for cosine is, cos 2Îļ = cos2Îļ - sin2Îļ. The formula is particularly useful in simplifying trigonometric expressions and solving equations involving trigonometric functions. In this article, we will learn about,
5 min read
How to calculate Dot Product of Two Vectors?
Vector is a two-dimensional entity with both magnitude and direction. A vector can be seen geometrically as a directed line segment with an arrow denoting the direction and a length equal to the magnitude of the vector. The vector's direction is from the tail to the head. If two vectors have the same magnitude and direction, they are the same. This
4 min read
Cross Product of two Vectors
Vector is a two-dimensional entity with both magnitude and direction. A vector can be seen geometrically as a directed line segment with an arrow denoting the direction and a length equal to the magnitude of the vector. The vector's direction is from the tail to the head. If two vectors have the same magnitude and direction, they are the same. This
3 min read
three90RightbarBannerImg