100% FREE Updated: Apr 2026 Vectors, Matrices and 3D Geometry Vectors

Dot product

Comprehensive study notes on Dot product for CMI BS Hons preparation. This chapter covers key concepts, formulas, and examples needed for your exam.

Dot product

This chapter introduces the dot product, a fundamental operation in vector algebra, defining its properties and applications. Mastery of this concept is essential for calculating angles between vectors, determining orthogonality, and computing vector projections, all of which are frequently assessed in CMI examinations.

---

Chapter Contents

|

| Topic |

|---|-------| | 1 | Dot product definition | | 2 | Angle between vectors | | 3 | Orthogonality | | 4 | Projection |

---

We begin with Dot product definition.

Part 1: Dot product definition

Dot Product Definition

Overview

The dot product converts two vectors into a scalar and measures how strongly they point in the same direction. It is one of the central tools in vector geometry because it links coordinates, lengths, angles, orthogonality, and projections. In CMI-style problems, the dot product is rarely tested as a mere formula; it is used to reveal structure. ---

Learning Objectives

By the End of This Topic

After studying this topic, you will be able to:

  • Compute the dot product in coordinates.

  • Interpret the dot product geometrically.

  • Use the dot product to detect orthogonality.

  • Prove standard vector identities involving the dot product.

  • Relate dot product to norms and algebraic manipulation.

---

Core Definition

📖 Dot Product in Coordinates

For vectors

a=(a1,a2,,an),b=(b1,b2,,bn)\qquad \mathbf{a}=(a_1,a_2,\dots,a_n),\qquad \mathbf{b}=(b_1,b_2,\dots,b_n)

their dot product is

ab=a1b1+a2b2++anbn\qquad \mathbf{a}\cdot \mathbf{b} = a_1b_1 + a_2b_2 + \cdots + a_nb_n

📐 Length from Dot Product

For any vector a\mathbf{a},

aa=a2\qquad \mathbf{a}\cdot \mathbf{a} = |\mathbf{a}|^2

This makes the dot product the natural algebraic way to encode vector length. ---

Geometric Meaning

📐 Angle Formula

For nonzero vectors a\mathbf{a} and b\mathbf{b},

ab=abcosθ\qquad \mathbf{a}\cdot \mathbf{b} = |\mathbf{a}|\,|\mathbf{b}| \cos\theta

where θ\theta is the angle between the vectors.

This immediately gives:
  • positive dot product \Rightarrow acute angle
  • zero dot product \Rightarrow right angle
  • negative dot product \Rightarrow obtuse angle
---

Orthogonality

Perpendicular Vectors

Two nonzero vectors are perpendicular if and only if

ab=0\qquad \mathbf{a}\cdot \mathbf{b}=0

This is one of the most important uses of the dot product. ::: ---

Algebraic Properties

📐 Main Properties

For vectors a,b,c\mathbf{a},\mathbf{b},\mathbf{c} and scalar λ\lambda:

  • ab=ba\qquad \mathbf{a}\cdot \mathbf{b} = \mathbf{b}\cdot \mathbf{a}


  • a(b+c)=ab+ac\qquad \mathbf{a}\cdot (\mathbf{b}+\mathbf{c}) = \mathbf{a}\cdot \mathbf{b} + \mathbf{a}\cdot \mathbf{c}


  • (λa)b=λ(ab)\qquad (\lambda \mathbf{a})\cdot \mathbf{b} = \lambda(\mathbf{a}\cdot \mathbf{b})


  • aa0\qquad \mathbf{a}\cdot \mathbf{a} \ge 0

---

Important Identities

📐 Norm Identities

For any vectors a,b\mathbf{a},\mathbf{b},

a+b2=a2+b2+2ab\qquad |\mathbf{a}+\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 + 2\mathbf{a}\cdot \mathbf{b}

and

ab2=a2+b22ab\qquad |\mathbf{a}-\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 - 2\mathbf{a}\cdot \mathbf{b}

These identities are repeatedly used in geometry and algebraic proofs. ---

Minimal Worked Examples

Example 1 If a=(1,2,3),b=(2,1,4)\qquad \mathbf{a}=(1,2,3),\qquad \mathbf{b}=(2,-1,4) then ab=12+2(1)+34=22+12=12\qquad \mathbf{a}\cdot \mathbf{b} = 1\cdot 2 + 2\cdot(-1) + 3\cdot 4 = 2-2+12 = 12 So the dot product is 12\boxed{12}. --- Example 2 If a=3,b=4,ab=12\qquad |\mathbf{a}|=3,\quad |\mathbf{b}|=4,\quad \mathbf{a}\cdot \mathbf{b}=12 then ab2=9+1624=1\qquad |\mathbf{a}-\mathbf{b}|^2 = 9+16-24 = 1 so ab=1\qquad |\mathbf{a}-\mathbf{b}|=1 ---

Common Mistakes

⚠️ Avoid These Errors
    • ❌ Confusing dot product with vector product.
    • ❌ Forgetting that the dot product is a scalar.
    • ❌ Using ab=0\mathbf{a}\cdot \mathbf{b}=0 to conclude one vector is zero.
    • ❌ Losing signs while multiplying coordinates.
    • ❌ Forgetting that aa=a2\mathbf{a}\cdot \mathbf{a}=|\mathbf{a}|^2, not a|\mathbf{a}|.
---

CMI Strategy

💡 How to Use Dot Product Efficiently

  • Compute it directly in coordinates when possible.

  • Use the angle form when geometry is involved.

  • Use zero dot product to detect right angles.

  • Use norm identities to simplify expressions involving a±b|\mathbf{a}\pm\mathbf{b}|.

  • In proof problems, expand with distributivity and regroup carefully.

---

Practice Questions

:::question type="MCQ" question="If a=(1,2,3)\mathbf{a}=(1,2,3) and b=(2,1,4)\mathbf{b}=(2,-1,4), then ab\mathbf{a}\cdot \mathbf{b} equals" options=["88","1010","1212","1414"] answer="C" hint="Multiply corresponding coordinates and add." solution="We compute ab=12+2(1)+34=22+12=12\qquad \mathbf{a}\cdot \mathbf{b}=1\cdot2+2\cdot(-1)+3\cdot4=2-2+12=12 Hence the correct option is C\boxed{C}." ::: :::question type="NAT" question="If a=(2,1)\mathbf{a}=(2,-1) and b=(x,3)\mathbf{b}=(x,3) satisfy ab=7\mathbf{a}\cdot \mathbf{b}=7, find xx." answer="5" hint="Write the dot product equation explicitly." solution="We have (2,1)(x,3)=2x3\qquad (2,-1)\cdot (x,3)=2x-3 Given 2x3=7\qquad 2x-3=7 so 2x=10\qquad 2x=10 and x=5\qquad x=5 Hence the answer is 5\boxed{5}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["ab=ba\mathbf{a}\cdot \mathbf{b}=\mathbf{b}\cdot \mathbf{a}","If ab=0\mathbf{a}\cdot \mathbf{b}=0, then one of the vectors must be zero","aa=a2\mathbf{a}\cdot \mathbf{a}=|\mathbf{a}|^2","a(b+c)=ab+ac\mathbf{a}\cdot(\mathbf{b}+\mathbf{c})=\mathbf{a}\cdot\mathbf{b}+\mathbf{a}\cdot\mathbf{c}"] answer="A,C,D" hint="One statement misinterprets orthogonality." solution="1. True.
  • False. Nonzero perpendicular vectors also have dot product 00.
  • True.
  • True.
  • Hence the correct answer is A,C,D\boxed{A,C,D}." ::: :::question type="SUB" question="Prove that for any vectors a,b\mathbf{a},\mathbf{b}, a+b2=a2+b2+2ab\qquad |\mathbf{a}+\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 + 2\mathbf{a}\cdot \mathbf{b}." answer="Identity proved by expanding (a+b)(a+b)(\mathbf{a}+\mathbf{b})\cdot(\mathbf{a}+\mathbf{b})." hint="Use the definition v2=vv|\mathbf{v}|^2=\mathbf{v}\cdot\mathbf{v} and distributivity." solution="We start with a+b2=(a+b)(a+b)\qquad |\mathbf{a}+\mathbf{b}|^2 = (\mathbf{a}+\mathbf{b})\cdot(\mathbf{a}+\mathbf{b}) Using distributivity, $\qquad (\mathbf{a}+\mathbf{b})\cdot(\mathbf{a}+\mathbf{b}) = \mathbf{a}\cdot\mathbf{a} + \mathbf{a}\cdot\mathbf{b} + \mathbf{b}\cdot\mathbf{a} + \mathbf{b}\cdot\mathbf{b}$ By commutativity of dot product, ab=ba\qquad \mathbf{a}\cdot\mathbf{b}=\mathbf{b}\cdot\mathbf{a} So a+b2=aa+bb+2ab\qquad |\mathbf{a}+\mathbf{b}|^2 = \mathbf{a}\cdot\mathbf{a} + \mathbf{b}\cdot\mathbf{b} + 2\mathbf{a}\cdot\mathbf{b} Now use aa=a2,bb=b2\qquad \mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2,\qquad \mathbf{b}\cdot\mathbf{b}=|\mathbf{b}|^2 Hence a+b2=a2+b2+2ab\qquad \boxed{|\mathbf{a}+\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 + 2\mathbf{a}\cdot \mathbf{b}}." ::: ---

    Summary

    Key Takeaways for CMI

    • Dot product is a scalar defined by coordinate-wise multiplication and addition.

    • aa=a2\mathbf{a}\cdot\mathbf{a}=|\mathbf{a}|^2.

    • Dot product detects angle and orthogonality.

    • Zero dot product means perpendicularity for nonzero vectors.

    • Norm identities involving ab\mathbf{a}\cdot\mathbf{b} are extremely important.

    ---

    💡 Next Up

    Proceeding to Angle between vectors.

    ---

    Part 2: Angle between vectors

    Angle Between Vectors

    Overview

    The angle between two vectors is defined using the dot product. This concept is central because it turns geometric questions into algebraic computations. In exam problems, the angle between vectors is used to detect orthogonality, classify acute/obtuse relations, and optimize expressions involving a+b|\mathbf{a}+\mathbf{b}| or ab\mathbf{a}\cdot\mathbf{b}. ---

    Learning Objectives

    By the End of This Topic

    After studying this topic, you will be able to:

    • Compute the angle between two nonzero vectors.

    • Detect whether the angle is acute, right, or obtuse from the sign of the dot product.

    • Use the cosine formula for vector angles.

    • Solve vector conditions involving perpendicularity or equal lengths.

    • Connect angle information with norm identities.

    ---

    Core Formula

    📐 Angle Formula

    For nonzero vectors a\mathbf{a} and b\mathbf{b} with angle θ\theta between them,

    cosθ=abab\qquad \cos\theta = \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}

    So once you know the dot product and the lengths, the angle is determined. ---

    Sign Interpretation

    📐 Acute / Right / Obtuse

    For nonzero vectors:

      • if ab>0\mathbf{a}\cdot\mathbf{b} > 0, then the angle is acute

      • if ab=0\mathbf{a}\cdot\mathbf{b} = 0, then the angle is right

      • if ab<0\mathbf{a}\cdot\mathbf{b} < 0, then the angle is obtuse

    This is one of the fastest geometric checks in vector problems. ---

    Standard Special Cases

    Important Cases
      • angle between a\mathbf{a} and itself is 00
      • angle between a\mathbf{a} and a-\mathbf{a} is π\pi
      • angle between perpendicular vectors is π2\dfrac{\pi}{2}
    ---

    Relation with Norms

    📐 Useful Identity

    For vectors a\mathbf{a} and b\mathbf{b},

    a+b2=a2+b2+2abcosθ\qquad |\mathbf{a}+\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 + 2|\mathbf{a}|\,|\mathbf{b}|\cos\theta

    and ab2=a2+b22abcosθ\qquad |\mathbf{a}-\mathbf{b}|^2 = |\mathbf{a}|^2 + |\mathbf{b}|^2 - 2|\mathbf{a}|\,|\mathbf{b}|\cos\theta ::: These are often used to derive geometric conditions. ---

    Minimal Worked Examples

    Example 1 Find the angle between (1,1)\qquad (1,1) and (1,1)(1,-1). Their dot product is 11+1(1)=0\qquad 1\cdot 1 + 1\cdot (-1) = 0 So the vectors are perpendicular. Hence the angle is π2\boxed{\dfrac{\pi}{2}}. --- Example 2 If a=2, b=5, ab=5\qquad |\mathbf{a}|=2,\ |\mathbf{b}|=5,\ \mathbf{a}\cdot\mathbf{b}=5 then cosθ=525=12\qquad \cos\theta = \dfrac{5}{2\cdot 5} = \dfrac12 so θ=π3\qquad \theta = \dfrac{\pi}{3} ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Using the angle formula when one of the vectors is zero.
      • ❌ Forgetting to divide by both magnitudes.
      • ❌ Confusing sign of dot product with sign of cosine in the wrong quadrant setting.
      • ❌ Writing the angle as acute when the dot product is negative.
    ---

    CMI Strategy

    💡 How to Solve These Fast

    • Compute the dot product first.

    • Compute the magnitudes cleanly.

    • Write cosθ\cos\theta before jumping to the angle.

    • If only sign is needed, do not waste time computing the full angle.

    • Use norm identities when the question is disguised.

    ---

    Practice Questions

    :::question type="MCQ" question="If ab=0\mathbf{a}\cdot\mathbf{b}=0 and both vectors are nonzero, then the angle between them is" options=["00","π4\dfrac{\pi}{4}","π2\dfrac{\pi}{2}","π\pi"] answer="C" hint="Zero dot product means perpendicularity." solution="For nonzero vectors, ab=0\mathbf{a}\cdot\mathbf{b}=0 means the vectors are perpendicular. Hence the angle is π2\boxed{\dfrac{\pi}{2}}, so the correct option is C\boxed{C}." ::: :::question type="NAT" question="The angle between the vectors (1,1)(1,1) and (1,1)(1,-1) is how many degrees?" answer="90" hint="Check their dot product." solution="Their dot product is 11+1(1)=0\qquad 1\cdot1 + 1\cdot(-1)=0 So they are perpendicular, hence the angle between them is 90\qquad 90^\circ Thus the answer is 90\boxed{90}." ::: :::question type="MSQ" question="Which of the following statements are true for nonzero vectors a,b\mathbf{a},\mathbf{b}?" options=["If ab>0\mathbf{a}\cdot\mathbf{b}>0, the angle is acute","If ab<0\mathbf{a}\cdot\mathbf{b}<0, the angle is obtuse","If ab=0\mathbf{a}\cdot\mathbf{b}=0, the angle is right","If ab=ab\mathbf{a}\cdot\mathbf{b}=|\mathbf{a}|\,|\mathbf{b}|, then the angle is π\pi"] answer="A,B,C" hint="Use the cosine formula carefully." solution="1. True.
  • True.
  • True.
  • False. If
  • ab=ab\qquad \mathbf{a}\cdot\mathbf{b}=|\mathbf{a}|\,|\mathbf{b}| then cosθ=1\cos\theta=1, so θ=0\theta=0, not π\pi. Hence the correct answer is A,B,C\boxed{A,B,C}." ::: :::question type="SUB" question="Let a\mathbf{a} and b\mathbf{b} be nonzero vectors. Prove that if a+b\mathbf{a}+\mathbf{b} is perpendicular to ab\mathbf{a}-\mathbf{b}, then a=b|\mathbf{a}|=|\mathbf{b}|." answer="a=b|\mathbf{a}|=|\mathbf{b}|" hint="Take the dot product of (a+b)(\mathbf{a}+\mathbf{b}) and (ab)(\mathbf{a}-\mathbf{b})." solution="Since a+b\mathbf{a}+\mathbf{b} is perpendicular to ab\mathbf{a}-\mathbf{b}, we have (a+b)(ab)=0\qquad (\mathbf{a}+\mathbf{b})\cdot(\mathbf{a}-\mathbf{b})=0 Expand: aaab+babb=0\qquad \mathbf{a}\cdot\mathbf{a} - \mathbf{a}\cdot\mathbf{b} + \mathbf{b}\cdot\mathbf{a} - \mathbf{b}\cdot\mathbf{b}=0 Using commutativity, ab=ba\qquad \mathbf{a}\cdot\mathbf{b}=\mathbf{b}\cdot\mathbf{a} So the middle terms cancel, giving aabb=0\qquad \mathbf{a}\cdot\mathbf{a} - \mathbf{b}\cdot\mathbf{b}=0 Hence a2=b2\qquad |\mathbf{a}|^2 = |\mathbf{b}|^2 Since magnitudes are nonnegative, a=b\qquad \boxed{|\mathbf{a}|=|\mathbf{b}|}." ::: ---

    Summary

    Key Takeaways for CMI

    • The angle formula is cosθ=abab\cos\theta=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}.

    • The sign of the dot product tells whether the angle is acute, right, or obtuse.

    • Perpendicularity corresponds to zero dot product.

    • Many angle questions are disguised norm-identity questions.

    • In some problems only the sign of the angle matters, not the exact angle.

    ---

    💡 Next Up

    Proceeding to Orthogonality.

    ---

    Part 3: Orthogonality

    Orthogonality

    Overview

    Orthogonality means perpendicularity. In vector language, it is detected by the dot product, and that makes it one of the most useful ideas in coordinate geometry and vector problems. In exam questions, orthogonality appears in line perpendicularity, right triangles, loci, and proofs involving vector identities. ---

    Learning Objectives

    By the End of This Topic

    After studying this topic, you will be able to:

    • Use the dot product to test orthogonality.

    • Find unknown parameters from perpendicularity conditions.

    • Recognize orthogonality in geometric and coordinate settings.

    • Use identities involving a+b|a+b| and ab|a-b|.

    • Solve locus and right-angle problems using vectors.

    ---

    Core Idea

    📖 Orthogonal Vectors

    Two vectors aa and bb are orthogonal if they are perpendicular.

    For nonzero vectors, this is equivalent to

    ab=0\qquad a\cdot b=0

    📐 Dot Product Test

    If

    a=(a1,a2,,an),b=(b1,b2,,bn)\qquad a=(a_1,a_2,\dots,a_n),\qquad b=(b_1,b_2,\dots,b_n)

    then

    ab=a1b1+a2b2++anbn\qquad a\cdot b=a_1b_1+a_2b_2+\cdots+a_nb_n

    So orthogonality means that this sum is zero.

    ---

    Angle Interpretation

    📐 Dot Product and Angle

    For nonzero vectors aa and bb,

    ab=abcosθ\qquad a\cdot b = |a||b|\cos\theta

    where θ\theta is the angle between them.

    Hence

    ab=0    cosθ=0    θ=π2\qquad a\cdot b=0 \iff \cos\theta=0 \iff \theta=\dfrac{\pi}{2}

    So the dot product gives an algebraic test for a right angle. ::: ---

    Key Properties

    📐 Useful Facts

    • If ab=0a\cdot b=0, then ba=0b\cdot a=0.

    • If ab=0a\cdot b=0, then (λa)(μb)=0(\lambda a)\cdot (\mu b)=0 for all scalars λ,μ\lambda,\mu.

    • The zero vector is orthogonal to every vector.

    • Orthogonal vectors need not have equal lengths.

    ---

    Pythagorean Identity in Vector Form

    📐 Orthogonality and Length

    If ab=0a\cdot b=0, then

    a+b2=a2+b2\qquad |a+b|^2 = |a|^2 + |b|^2

    This is the vector form of the Pythagorean theorem.

    Conversely, if a+b2=a2+b2\qquad |a+b|^2 = |a|^2 + |b|^2 then ab=0\qquad a\cdot b=0 ::: ---

    Minimal Worked Examples

    Example 1 Find kk such that the vectors (1,2)and(2,k)\qquad (1,2)\quad \text{and}\quad (2,k) are orthogonal. We require (1,2)(2,k)=0\qquad (1,2)\cdot (2,k)=0 So 2+2k=0\qquad 2+2k=0 k=1\qquad k=-1 --- Example 2 Check whether the vectors (3,4)and(4,3)\qquad (3,4)\quad \text{and}\quad (4,-3) are orthogonal. Their dot product is 34+4(3)=1212=0\qquad 3\cdot 4 + 4\cdot (-3)=12-12=0 Hence they are orthogonal. ::: ---

    Orthogonality in Geometry

    Right Angle Test in Coordinates

    To check whether two segments are perpendicular:

    • form their direction vectors,

    • compute the dot product,

    • test whether it is zero.

    This is often faster and cleaner than slope comparison, especially in 3D or when fractions appear. ---

    Orthogonality and Loci

    💡 A Useful Locus Pattern

    If a point P(x,y)P(x,y) satisfies

    OPPA=0\qquad \overrightarrow{OP}\cdot \overrightarrow{PA}=0

    for a fixed point AA, then the condition becomes an equation in xx and yy, often giving a circle or another standard curve.

    This is a powerful way to convert geometric perpendicularity into algebra. ::: ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ Forgetting that the dot product must be zero for orthogonality
      • ❌ Using vectors based at different points incorrectly
      • ❌ Thinking orthogonal vectors must have the same length
      • ❌ Forgetting that the zero vector is orthogonal to every vector
    ---

    CMI Strategy

    💡 How to Attack These Questions

    • Write the relevant vectors explicitly.

    • Use the dot product test first.

    • If a parameter is present, solve the resulting equation.

    • For geometry problems, choose vectors with a common vertex.

    • Use a+b2|a+b|^2 identities for proof-based questions.

    ---

    Practice Questions

    :::question type="MCQ" question="Two nonzero vectors are orthogonal if and only if" options=["their magnitudes are equal","their dot product is zero","their sum is zero","their slopes are equal"] answer="B" hint="Use the vector definition of orthogonality." solution="For nonzero vectors, orthogonality is equivalent to the condition ab=0\qquad a\cdot b=0. Hence the correct option is B\boxed{B}." ::: :::question type="NAT" question="Find kk such that (1,2)(2,k)=0(1,2)\cdot(2,k)=0." answer="-1" hint="Set the dot product equal to zero." solution="We compute (1,2)(2,k)=12+2k=2+2k\qquad (1,2)\cdot(2,k)=1\cdot 2 + 2\cdot k = 2+2k For orthogonality this must be zero, so 2+2k=0    k=1\qquad 2+2k=0 \implies k=-1 Hence the answer is 1\boxed{-1}." ::: :::question type="MSQ" question="Which of the following are true?" options=["If ab=0a\cdot b=0 and both are nonzero, then the angle between them is π2\dfrac{\pi}{2}","The zero vector is orthogonal to every vector","Orthogonal vectors must have equal length","If aba\perp b, then λaμb\lambda a \perp \mu b for all scalars λ,μ\lambda,\mu"] answer="A,B,D" hint="Use the dot product definition and basic properties." solution="1. True. 2. True. 3. False. Lengths need not be equal. 4. True. Hence the correct answer is A,B,D\boxed{A,B,D}." ::: :::question type="SUB" question="Prove that for vectors aa and bb, if a+b2=a2+b2|a+b|^2=|a|^2+|b|^2, then aa and bb are orthogonal." answer="ab=0a\cdot b=0" hint="Expand a+b2|a+b|^2 using dot products." solution="We expand: a+b2=(a+b)(a+b)\qquad |a+b|^2=(a+b)\cdot(a+b) =aa+2ab+bb\qquad = a\cdot a + 2a\cdot b + b\cdot b =a2+2ab+b2\qquad = |a|^2 + 2a\cdot b + |b|^2 Given that a+b2=a2+b2\qquad |a+b|^2 = |a|^2 + |b|^2 we compare both expressions and get 2ab=0\qquad 2a\cdot b = 0 Hence ab=0\qquad a\cdot b = 0 Therefore aa and bb are orthogonal." ::: ---

    Summary

    Key Takeaways for CMI

    • Orthogonality is detected by zero dot product.

    • Dot product converts right-angle geometry into algebra.

    • Orthogonal vectors satisfy the vector Pythagoras relation.

    • Parameter problems usually reduce to one equation from ab=0a\cdot b=0.

    • Coordinate and vector viewpoints are both important in this topic.

    ---

    💡 Next Up

    Proceeding to Projection.

    ---

    Part 4: Projection

    Projection

    Overview

    Projection is one of the most important geometric uses of the dot product. It measures how much of one vector lies in the direction of another. In exam-level vector problems, projection is used to find components, shortest distances, perpendicular parts, and maximum/minimum values involving vectors. The main skill is to distinguish clearly between scalar projection and vector projection. ---

    Learning Objectives

    By the End of This Topic

    After studying this topic, you will be able to:

    • define scalar and vector projection correctly

    • compute the component of one vector along another

    • decompose a vector into parallel and perpendicular parts

    • use projection to solve shortest-distance and optimization questions

    • avoid sign and normalization mistakes

    ---

    Core Idea

    📖 Scalar projection

    If a\mathbf{a} and b\mathbf{b} are vectors with b0\mathbf{b}\ne \mathbf{0}, then the scalar projection of a\mathbf{a} on b\mathbf{b} is

    compba=abb\qquad \operatorname{comp}_{\mathbf{b}}\mathbf{a}=\dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|}

    This is the signed length of the component of a\mathbf{a} in the direction of b\mathbf{b}.

    📖 Vector projection

    The vector projection of a\mathbf{a} on b\mathbf{b} is

    projba=abb2b\qquad \operatorname{proj}_{\mathbf{b}}\mathbf{a}=\dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b}

    This is the actual vector along the direction of b\mathbf{b}.

    ---

    Geometric Meaning

    What projection measures

    If θ\theta is the angle between a\mathbf{a} and b\mathbf{b}, then

    ab=abcosθ\qquad \mathbf{a}\cdot \mathbf{b}=|\mathbf{a}|\,|\mathbf{b}|\cos\theta

    So

    compba=acosθ\qquad \operatorname{comp}_{\mathbf{b}}\mathbf{a}=|\mathbf{a}|\cos\theta

    Thus projection tells us how much of a\mathbf{a} lies in the direction of b\mathbf{b}.

    ---

    Scalar vs Vector Projection

    📐 Difference Between the Two
      • Scalar projection:
    abb\qquad \dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|}
      • Vector projection:
    abb2b\qquad \dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b} The scalar projection is a number. The vector projection is a vector.
    ⚠️ Common Confusion

    Do not confuse
    abb\qquad \dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|}
    with
    abb2b\qquad \dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}\mathbf{b}.

    One is a signed length, the other is an actual vector.

    ---

    Parallel and Perpendicular Decomposition

    📐 Vector Decomposition

    Any vector a\mathbf{a} can be decomposed relative to b0\mathbf{b}\ne \mathbf{0} as

    a=projba+(aprojba)\qquad \mathbf{a}=\operatorname{proj}_{\mathbf{b}}\mathbf{a}+\left(\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a}\right)

    where:

      • projba\operatorname{proj}_{\mathbf{b}}\mathbf{a} is parallel to b\mathbf{b}

      • aprojba\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a} is perpendicular to b\mathbf{b}

    This decomposition is central in distance and optimization problems. ---

    Proof of Perpendicular Part

    📐 Orthogonality Check

    Let

    a=aprojba\qquad \mathbf{a}_\perp=\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a}

    Then

    ab<br>=<br>ab<br><br>(abb2b)b\qquad \mathbf{a}_\perp\cdot \mathbf{b} <br>= <br>\mathbf{a}\cdot \mathbf{b} <br>- <br>\left(\dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}\mathbf{b}\right)\cdot \mathbf{b}

    <br>=<br>ab<br><br>abb2b2<br>=0\qquad <br>= <br>\mathbf{a}\cdot \mathbf{b} <br>- <br>\dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}|\mathbf{b}|^2 <br>=0

    So the remainder is perpendicular to b\mathbf{b}.

    ---

    Projection and Distance

    Shortest Distance to a Line

    If a point/vector is split into a part parallel to a direction vector and a part perpendicular to it, then the perpendicular part gives the shortest distance.

    This is why projection appears naturally in point-line distance formulas.

    ---

    Minimal Worked Examples

    Example 1 Let a=(3,4), b=(4,3)\qquad \mathbf{a}=(3,4),\ \mathbf{b}=(4,3) Then ab=12+12=24\qquad \mathbf{a}\cdot \mathbf{b}=12+12=24 and b=5\qquad |\mathbf{b}|=5 So the scalar projection of a\mathbf{a} on b\mathbf{b} is 245\qquad \dfrac{24}{5} --- Example 2 Find the vector projection of a=(2,1)\qquad \mathbf{a}=(2,1) on b=(1,1)\qquad \mathbf{b}=(1,1). We have ab=3,b2=2\qquad \mathbf{a}\cdot \mathbf{b}=3,\qquad |\mathbf{b}|^2=2 So $\qquad \operatorname{proj}_{\mathbf{b}}\mathbf{a} = \dfrac{3}{2}(1,1) = \left(\dfrac32,\dfrac32\right)$ ---

    Optimization Link

    💡 Very Important Exam Use

    To minimize
    aλb\qquad |\mathbf{a}-\lambda \mathbf{b}|,
    choose λ\lambda so that
    aλb\qquad \mathbf{a}-\lambda\mathbf{b}
    is perpendicular to b\mathbf{b}.

    This gives

    (aλb)b=0\qquad (\mathbf{a}-\lambda\mathbf{b})\cdot \mathbf{b}=0

    so

    λ=abb2\qquad \lambda=\dfrac{\mathbf{a}\cdot \mathbf{b}}{|\mathbf{b}|^2}

    This is a standard Part B idea. ---

    Common Patterns

    📐 What Gets Asked Often

    • scalar projection of one vector on another

    • vector projection of one vector on another

    • decomposition into parallel and perpendicular components

    • shortest distance from a point to a line

    • minimizing aλb|\mathbf{a}-\lambda\mathbf{b}|

    ---

    Common Mistakes

    ⚠️ Avoid These Errors
      • ❌ forgetting to divide by b2|\mathbf{b}|^2 in vector projection
      • ❌ treating scalar projection as always positive
      • ❌ projecting on the zero vector
      • ❌ confusing the vector being projected with the direction vector
      • ❌ forgetting that the remainder after projection is perpendicular
    ---

    CMI Strategy

    💡 How to Solve Smart

    • First decide whether the problem asks for a scalar or a vector.

    • Compute the dot product before substituting into formulas.

    • Keep track of b|\mathbf{b}| versus b2|\mathbf{b}|^2 carefully.

    • In distance problems, look for the perpendicular remainder.

    • In minimization problems, force orthogonality.

    ---

    Practice Questions

    :::question type="MCQ" question="If a=(3,4)\mathbf{a}=(3,4) and b=(4,3)\mathbf{b}=(4,3), then the scalar projection of a\mathbf{a} on b\mathbf{b} is" options=["125\dfrac{12}{5}","245\dfrac{24}{5}","2425\dfrac{24}{25}","1225\dfrac{12}{25}"] answer="B" hint="Use abb\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|}." solution="We have ab=34+43=24\qquad \mathbf{a}\cdot\mathbf{b}=3\cdot4+4\cdot3=24 and b=42+32=5\qquad |\mathbf{b}|=\sqrt{4^2+3^2}=5. So the scalar projection is 245\qquad \dfrac{24}{5}. Hence the correct option is B\boxed{B}." ::: :::question type="NAT" question="If a=(1,2)\mathbf{a}=(1,2) and b=(1,1)\mathbf{b}=(1,1), find ab\mathbf{a}\cdot\mathbf{b}." answer="3" hint="Use direct dot product." solution="We compute ab=11+21=3\qquad \mathbf{a}\cdot\mathbf{b}=1\cdot1+2\cdot1=3 Therefore the answer is 3\boxed{3}." ::: :::question type="MSQ" question="Which of the following statements are true?" options=["projba\operatorname{proj}_{\mathbf{b}}\mathbf{a} is parallel to b\mathbf{b}","compba\operatorname{comp}_{\mathbf{b}}\mathbf{a} is always non-negative","aprojba\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a} is perpendicular to b\mathbf{b}","Vector projection on the zero vector is defined"] answer="A,C" hint="Check meaning, sign, and domain carefully." solution="1. True. Vector projection is along the direction of b\mathbf{b}.
  • False. Scalar projection is signed and can be negative.
  • True. This is the standard perpendicular decomposition.
  • False. Projection on the zero vector is undefined because division by b2|\mathbf{b}|^2 appears.
  • Hence the correct answer is A,C\boxed{A,C}." ::: :::question type="SUB" question="Let a,b\mathbf{a},\mathbf{b} be nonzero vectors. Show that aprojba\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a} is perpendicular to b\mathbf{b}, and hence find the value of λ\lambda for which aλb|\mathbf{a}-\lambda\mathbf{b}| is minimum." answer="λ=abb2\lambda=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}" hint="Use the projection formula and orthogonality." solution="We have projba=abb2b\qquad \operatorname{proj}_{\mathbf{b}}\mathbf{a}=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\mathbf{b} So $\qquad \left(\mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a}\right)\cdot \mathbf{b} = \mathbf{a}\cdot\mathbf{b} - \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}\,\mathbf{b}\cdot\mathbf{b}$ $\qquad = \mathbf{a}\cdot\mathbf{b} - \dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}|\mathbf{b}|^2 =0$ Hence aprojba\qquad \mathbf{a}-\operatorname{proj}_{\mathbf{b}}\mathbf{a} is perpendicular to b\mathbf{b}. Now to minimize aλb\qquad |\mathbf{a}-\lambda\mathbf{b}|, the vector aλb\qquad \mathbf{a}-\lambda\mathbf{b} must be perpendicular to b\mathbf{b}. So (aλb)b=0\qquad (\mathbf{a}-\lambda\mathbf{b})\cdot\mathbf{b}=0 which gives abλb2=0\qquad \mathbf{a}\cdot\mathbf{b}-\lambda|\mathbf{b}|^2=0 Hence λ=abb2\qquad \lambda=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2} Therefore the minimizing value is λ=abb2\qquad \boxed{\lambda=\dfrac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{b}|^2}}." ::: ---

    Summary

    Key Takeaways for CMI

    • Scalar projection is a signed length; vector projection is an actual vector.

    • The projection formulas depend on the dot product.

    • Every vector splits into parallel and perpendicular parts relative to a direction.

    • Projection is the main tool behind shortest-distance and minimization questions.

    • Most mistakes come from mixing b|\mathbf{b}| and b2|\mathbf{b}|^2.

    Chapter Summary

    Dot product — Key Points

    The dot product (scalar product) of two vectors a\vec{a} and b\vec{b} is defined as ab=abcosθ\vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\theta, where θ\theta is the angle between them.
    Algebraically, for a=(a1,a2,a3)\vec{a} = (a_1, a_2, a_3) and b=(b1,b2,b3)\vec{b} = (b_1, b_2, b_3), ab=a1b1+a2b2+a3b3\vec{a} \cdot \vec{b} = a_1 b_1 + a_2 b_2 + a_3 b_3.
    The angle between two non-zero vectors a\vec{a} and b\vec{b} can be found using cosθ=abab\cos\theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}.
    Two non-zero vectors a\vec{a} and b\vec{b} are orthogonal (perpendicular) if and only if ab=0\vec{a} \cdot \vec{b} = 0.
    The scalar projection of a\vec{a} onto b\vec{b} is compba=abb\operatorname{comp}_{\vec{b}}\vec{a} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}.
    The vector projection of a\vec{a} onto b\vec{b} is projba=(abb2)b\operatorname{proj}_{\vec{b}}\vec{a} = \left(\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2}\right)\vec{b}.
    * The dot product is commutative (ab=ba)(\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}) and distributive (a(b+c)=ab+ac)(\vec{a} \cdot (\vec{b} + \vec{c}) = \vec{a} \cdot \vec{b} + \vec{a} \cdot \vec{c}). Also, aa=a2\vec{a} \cdot \vec{a} = |\vec{a}|^2.

    ---

    Chapter Review Questions

    :::question type="MCQ" question="For what value of kk are the vectors u=(1,k,2)\vec{u} = (1, k, -2) and v=(3,1,k)\vec{v} = (3, -1, k) orthogonal?" options=["-1", "0", "1", "3"] answer="1" hint="Two non-zero vectors are orthogonal if their dot product is zero." solution="For u\vec{u} and v\vec{v} to be orthogonal, their dot product must be zero.
    uv=(1)(3)+(k)(1)+(2)(k)=0\vec{u} \cdot \vec{v} = (1)(3) + (k)(-1) + (-2)(k) = 0
    3k2k=03 - k - 2k = 0
    33k=03 - 3k = 0
    3k=33k = 3
    k=1k = 1
    Thus, the vectors are orthogonal when k=1k=1."
    :::

    :::question type="NAT" question="Given a=(2,1,3)\vec{a} = (2, 1, -3) and b=(1,2,2)\vec{b} = (1, 2, 2), find the scalar projection of a\vec{a} onto b\vec{b}." answer="-2" hint="The scalar projection of a\vec{a} onto b\vec{b} is given by abb\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}." solution="First, calculate the dot product ab\vec{a} \cdot \vec{b}:
    ab=(2)(1)+(1)(2)+(3)(2)=2+26=2\vec{a} \cdot \vec{b} = (2)(1) + (1)(2) + (-3)(2) = 2 + 2 - 6 = -2.
    Next, calculate the magnitude of b\vec{b}:
    b=12+22+22=1+4+4=9=3|\vec{b}| = \sqrt{1^2 + 2^2 + 2^2} = \sqrt{1 + 4 + 4} = \sqrt{9} = 3.
    The scalar projection of a\vec{a} onto b\vec{b} is abb=23\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|} = \frac{-2}{3}.
    The question asks for the scalar projection, which is 2/3-2/3. Oh, the example answer is -2. Let me recheck.
    The scalar projection of a\vec{a} onto b\vec{b} is abb\frac{\vec{a} \cdot \vec{b}}{|\vec{b}|}.
    My calculation 23\frac{-2}{3} is correct. The example answer is wrong. I will use -2/3 for the answer.
    The user specified `NAT answer = plain number`. -2/3 is not a plain number. I need to make sure the calculation results in an integer or change the question.
    Let's try a=(4,2,1)\vec{a} = (4, -2, 1) and b=(1,1,0)\vec{b} = (1, -1, 0).
    ab=(4)(1)+(2)(1)+(1)(0)=4+2+0=6\vec{a} \cdot \vec{b} = (4)(1) + (-2)(-1) + (1)(0) = 4 + 2 + 0 = 6.
    b=12+(1)2+02=1+1+0=2|\vec{b}| = \sqrt{1^2 + (-1)^2 + 0^2} = \sqrt{1 + 1 + 0} = \sqrt{2}.
    Scalar projection =6/2=32= 6/\sqrt{2} = 3\sqrt{2}. Still not a plain number.

    Let's try finding the magnitude of the vector projection instead, or just a simpler dot product.
    Question: "If u=5|\vec{u}| = 5, v=12|\vec{v}| = 12, and u+v=13|\vec{u} + \vec{v}| = 13, find the value of uv\vec{u} \cdot \vec{v}."
    u+v2=u2+v2+2uv|\vec{u} + \vec{v}|^2 = |\vec{u}|^2 + |\vec{v}|^2 + 2\vec{u} \cdot \vec{v}
    132=52+122+2uv13^2 = 5^2 + 12^2 + 2\vec{u} \cdot \vec{v}
    169=25+144+2uv169 = 25 + 144 + 2\vec{u} \cdot \vec{v}
    169=169+2uv169 = 169 + 2\vec{u} \cdot \vec{v}
    0=2uv    uv=00 = 2\vec{u} \cdot \vec{v} \implies \vec{u} \cdot \vec{v} = 0. This is a plain number.

    Let's use this question for NAT.
    "If u=5|\vec{u}| = 5, v=12|\vec{v}| = 12, and u+v=13|\vec{u} + \vec{v}| = 13, find the value of uv\vec{u} \cdot \vec{v}." answer="0"
    "The magnitude of the sum of two vectors is related by u+v2=u2+v2+2uv|\vec{u} + \vec{v}|^2 = |\vec{u}|^2 + |\vec{v}|^2 + 2\vec{u} \cdot \vec{v}. Substitute the given values." solution="u+v2=(u+v)(u+v)=u2+v2+2uv|\vec{u} + \vec{v}|^2 = (\vec{u} + \vec{v}) \cdot (\vec{u} + \vec{v}) = |\vec{u}|^2 + |\vec{v}|^2 + 2\vec{u} \cdot \vec{v}.
    Substituting the given values:
    132=52+122+2uv13^2 = 5^2 + 12^2 + 2\vec{u} \cdot \vec{v}
    169=25+144+2uv169 = 25 + 144 + 2\vec{u} \cdot \vec{v}
    169=169+2uv169 = 169 + 2\vec{u} \cdot \vec{v}
    0=2uv0 = 2\vec{u} \cdot \vec{v}
    uv=0\vec{u} \cdot \vec{v} = 0."
    :::

    :::question type="MCQ" question="Which of the following statements about the dot product is FALSE?" options=["ab=ba\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}", "a(b+c)=ab+ac\vec{a} \cdot (\vec{b} + \vec{c}) = \vec{a} \cdot \vec{b} + \vec{a} \cdot \vec{c}", "(ab)c=a(bc)(\vec{a} \cdot \vec{b})\vec{c} = \vec{a}(\vec{b} \cdot \vec{c})", "aa=a2\vec{a} \cdot \vec{a} = |\vec{a}|^2"] answer="(ab)c=a(bc)(\vec{a} \cdot \vec{b})\vec{c} = \vec{a}(\vec{b} \cdot \vec{c})" hint="Recall the properties of scalar multiplication and vector multiplication. The dot product results in a scalar." solution="Let's analyze each option:

  • ab=ba\vec{a} \cdot \vec{b} = \vec{b} \cdot \vec{a}: This is true; the dot product is commutative.
  • a(b+c)=ab+ac\vec{a} \cdot (\vec{b} + \vec{c}) = \vec{a} \cdot \vec{b} + \vec{a} \cdot \vec{c}: This is true; the dot product is distributive over vector addition.
  • (ab)c=a(bc)(\vec{a} \cdot \vec{b})\vec{c} = \vec{a}(\vec{b} \cdot \vec{c}): This is generally FALSE. (ab)(\vec{a} \cdot \vec{b}) is a scalar, so (ab)c(\vec{a} \cdot \vec{b})\vec{c} is a vector parallel to c\vec{c}. Similarly, (bc)(\vec{b} \cdot \vec{c}) is a scalar, so a(bc)\vec{a}(\vec{b} \cdot \vec{c}) is a vector parallel to a\vec{a}. These two vectors are only equal if a\vec{a} and c\vec{c} are parallel, or if either side is the zero vector. In general, this statement does not hold.
  • aa=a2\vec{a} \cdot \vec{a} = |\vec{a}|^2: This is true by definition, as the angle between a\vec{a} and a\vec{a} is 0, and cos(0)=1\cos(0) = 1.
    Therefore, the false statement is (ab)c=a(bc)(\vec{a} \cdot \vec{b})\vec{c} = \vec{a}(\vec{b} \cdot \vec{c})."
    :::

    ---

    What's Next?

    💡 Continue Your CMI Journey

    Having mastered the dot product, you are now equipped with a fundamental tool for understanding geometric relationships between vectors. The next crucial step in vector algebra is the cross product, which provides a method to find a vector perpendicular to two given vectors, essential for calculating areas of parallelograms and volumes of parallelepipeds. These vector operations form the bedrock for 3D geometry, enabling the precise definition and manipulation of lines, planes, and distances in space. Furthermore, the principles of scalar products extend into matrix multiplication, where elements of the resulting matrix are derived from dot products of rows and columns, linking vector algebra to linear transformations and systems of equations.

  • 🎯 Key Points to Remember

    • Master the core concepts in Dot product before moving to advanced topics
    • Practice with previous year questions to understand exam patterns
    • Review short notes regularly for quick revision before exams

    Related Topics in Vectors, Matrices and 3D Geometry

    More Resources

    Why Choose MastersUp?

    🎯

    AI-Powered Plans

    Personalized study schedules based on your exam date and learning pace

    📚

    15,000+ Questions

    Verified questions with detailed solutions from past papers

    📊

    Smart Analytics

    Track your progress with subject-wise performance insights

    🔖

    Bookmark & Revise

    Save important questions for quick revision before exams

    Start Your Free Preparation →

    No credit card required • Free forever for basic features