Class 12 Maths, Worked in Full Past papersGet updates
Chapter 10 · Vector Algebra

Example 19: Cauchy-Schwarz inequality ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b|\le|\vec a||\vec b|

ExamplesScalar product and |cos θ| ≤ 1 · Section 10.6.1
The question

For any two vectors a⃗\vec a and b⃗\vec b⁠, we always have ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b| (Cauchy-Schwartz inequality).

Exam answer

Case 1. If a⃗=0⃗\vec a = \vec 0 or b⃗=0⃗\vec b = \vec 0⁠, then a⃗⋅b⃗=0\vec a\cdot\vec b = 0 and ∣a⃗∣∣b⃗∣=0|\vec a||\vec b| = 0⁠, so ∣a⃗⋅b⃗∣=0=∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| = 0 = |\vec a||\vec b| and the result holds.

Case 2. Let a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠, and let θ\theta be the angle between them. Then

a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta ⇒∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣∣cos⁡θ∣≤∣a⃗∣∣b⃗∣\begin{aligned} \Rightarrow |\vec a\cdot\vec b| &= |\vec a||\vec b||\cos\theta| \\ &\le |\vec a||\vec b| \end{aligned}

since ∣cos⁡θ∣≤1|\cos\theta| \le 1 and ∣a⃗∣∣b⃗∣>0|\vec a||\vec b| > 0⁠.

∴ ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣\therefore\ |\vec a\cdot\vec b| \le |\vec a||\vec b| for any two vectors. Hence proved.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

The scalar product is ∣a⃗∣∣b⃗∣cos⁡θ|\vec a||\vec b|\cos\theta⁠, and a cosine is never bigger than 1 in size. So the scalar product can never exceed the product of the lengths:

∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣ ∣cos⁡θ∣≤∣a⃗∣∣b⃗∣.|\vec a\cdot\vec b| = |\vec a||\vec b|\,|\cos\theta| \le |\vec a||\vec b|.

In pictures: ∣b⃗∣∣cos⁡θ∣|\vec b||\cos\theta| is the length of the shadow of b⃗\vec b on the line of a⃗\vec a⁠, and a shadow is never longer than the stick.

Given, to find, and the plan
Given
Any two vectors a⃗\vec a and b⃗\vec b⁠.
To show
∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠.
Plan
(1) Deal with a zero vector separately (no angle is defined). (2) For nonzero vectors, write a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta and take absolute values. (3) Use ∣cos⁡θ∣≤1|\cos\theta| \le 1⁠. (4) See when equality holds.

Basics you need

1The scalar product

For nonzero vectors, a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta⁠, 0≤θ≤π0 \le \theta \le \pi⁠; if a⃗=0⃗\vec a = \vec 0 or b⃗=0⃗\vec b = \vec 0⁠, the angle is not defined and a⃗⋅b⃗=0\vec a\cdot\vec b = 0 (Section 10.6.1, Definition 2). Lesson: the dot product

2Bounds on cosine

−1≤cos⁡θ≤1-1 \le \cos\theta \le 1⁠, that is ∣cos⁡θ∣≤1|\cos\theta| \le 1⁠, with ∣cos⁡θ∣=1|\cos\theta| = 1 only for θ=0\theta = 0 or π\pi in [0,π][0, \pi]⁠. Basics: cos θ is a shadow

3Absolute value of a product

∣pq∣=∣p∣∣q∣|pq| = |p||q| for real numbers, and ∣p∣=p|p| = p when p≥0p \ge 0⁠. Lesson: Examples 13–21

Solution

  1. The case of a zero vector

    If a⃗=0⃗\vec a = \vec 0 or b⃗=0⃗\vec b = \vec 0⁠, then a⃗⋅b⃗=0\vec a\cdot\vec b = 0 by definition, and one of the lengths is 0, so ∣a⃗∣∣b⃗∣=0|\vec a||\vec b| = 0⁠. Hence ∣a⃗⋅b⃗∣=0=∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| = 0 = |\vec a||\vec b|⁠, and the inequality holds (with equality).

    This case must be handled first because the angle θ\theta between 0⃗\vec 0 and another vector is not defined, so the formula with cos⁡θ\cos\theta cannot be used. The book calls this case "trivial".
    "If either a⃗=0⃗\vec a = \vec 0 or b⃗=0⃗\vec b = \vec 0⁠, then θ\theta is not defined, and in this case, we define a⃗⋅b⃗=0\vec a\cdot\vec b = 0" (Section 10.6.1, Definition 2). Lesson: the dot product
  2. Nonzero vectors: take absolute values

    Now let a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠, with angle θ\theta between them. Then a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta⁠, and so

    ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣ ∣cos⁡θ∣.|\vec a\cdot\vec b| = |\vec a||\vec b|\,|\cos\theta|.
    The absolute value of a product is the product of the absolute values, and ∣a⃗∣|\vec a|⁠, ∣b⃗∣|\vec b| are already non-negative, so only cos⁡θ\cos\theta needs the bars. The book writes the same fact divided through: ∣a⃗⋅b⃗∣∣a⃗∣∣b⃗∣=∣cos⁡θ∣\frac{|\vec a\cdot\vec b|}{|\vec a||\vec b|} = |\cos\theta|⁠, which needs ∣a⃗∣∣b⃗∣≠0|\vec a||\vec b| \ne 0⁠, true in this case.
    a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta (Section 10.6.1, Definition 2); ∣pq∣=∣p∣∣q∣|pq| = |p||q|⁠. Lesson: Examples 13–21
  3. Use ∣cos⁡θ∣≤1|\cos\theta| \le 1

    ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣ ∣cos⁡θ∣≤∣a⃗∣∣b⃗∣×1=∣a⃗∣∣b⃗∣.\begin{aligned} |\vec a\cdot\vec b| &= |\vec a||\vec b|\,|\cos\theta| \\ &\le |\vec a||\vec b| \times 1 = |\vec a||\vec b|. \end{aligned}

    Together with Step 1, ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b| for any two vectors.

    θ = 120° O a, length 4 b, length 3 shadow 1.5 |a · b| = 4 × 1.5 = 6 |a||b| = 4 × 3 = 12
    Drawn to scale for a sample pair, one scale on both axes: ∣a⃗∣=4|\vec a| = 4⁠, ∣b⃗∣=3|\vec b| = 3⁠, θ=120∘\theta = 120^\circ⁠. The shadow of b⃗\vec b on the line of a⃗\vec a falls behind O and has length ∣b⃗∣∣cos⁡θ∣=1.5|\vec b||\cos\theta| = 1.5⁠, shorter than ∣b⃗∣=3|\vec b| = 3⁠. So ∣a⃗⋅b⃗∣=4×1.5=6|\vec a\cdot\vec b| = 4 \times 1.5 = 6⁠, less than ∣a⃗∣∣b⃗∣=12|\vec a||\vec b| = 12⁠.
    Multiplying the inequality ∣cos⁡θ∣≤1|\cos\theta| \le 1 by the positive number ∣a⃗∣∣b⃗∣|\vec a||\vec b| keeps its direction. The bars around a⃗⋅b⃗\vec a\cdot\vec b matter: when θ\theta is obtuse, a⃗⋅b⃗\vec a\cdot\vec b is negative, and the inequality is about its size.
    ∣cos⁡θ∣≤1|\cos\theta| \le 1⁠. Basics: cos θ is a shadow
  4. When does equality hold?

    For nonzero vectors, ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| = |\vec a||\vec b| exactly when ∣cos⁡θ∣=1|\cos\theta| = 1⁠, that is θ=0\theta = 0 or θ=π\theta = \pi⁠: the vectors point the same way or opposite ways, so they are collinear. With Step 1, equality holds exactly when a⃗\vec a and b⃗\vec b are collinear (a zero vector counts as collinear with every vector).

    In every other case 0<θ<π0 < \theta < \pi⁠, so ∣cos⁡θ∣<1|\cos\theta| < 1 and the inequality is strict. In the shadow picture: the shadow is as long as the stick only when the stick lies along the line.
    θ=0\theta = 0 or π\pi gives a⃗⋅b⃗=±∣a⃗∣∣b⃗∣\vec a\cdot\vec b = \pm|\vec a||\vec b| (Section 10.6.1, Observations 3 and 4); collinear vectors (Section 10.5). Lesson: the dot product
Result

For any two vectors, ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠, with equality exactly when a⃗\vec a and b⃗\vec b are collinear.

(Textbook answer: the inequality holds trivially when a⃗=0⃗\vec a = \vec 0 or b⃗=0⃗\vec b = \vec 0⁠; otherwise ∣a⃗⋅b⃗∣∣a⃗∣∣b⃗∣=∣cos⁡θ∣≤1\frac{|\vec a\cdot\vec b|}{|\vec a||\vec b|} = |\cos\theta| \le 1⁠, therefore ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠. The book spells the name "Cauchy-Schwartz"; the mathematician is Hermann Amandus Schwarz, so it is usually written Cauchy-Schwarz.)

Check it with numbers

a⃗=2i^+3j^+2k^\vec a = 2\hat i + 3\hat j + 2\hat k⁠, b⃗=i^+2j^+k^\vec b = \hat i + 2\hat j + \hat k⁠: a⃗⋅b⃗=2+6+2=10\vec a\cdot\vec b = 2 + 6 + 2 = 10 and ∣a⃗∣∣b⃗∣=176=102≈10.099505|\vec a||\vec b| = \sqrt{17}\sqrt6 = \sqrt{102} \approx 10.099505⁠. So 10≤10.09950510 \le 10.099505⁠, a close call because the angle is small (about 8.05∘8.05^\circ⁠).

a⃗=i^−2j^+2k^\vec a = \hat i - 2\hat j + 2\hat k⁠, b⃗=−2a⃗=−2i^+4j^−4k^\vec b = -2\vec a = -2\hat i + 4\hat j - 4\hat k (collinear, opposite): a⃗⋅b⃗=−2−8−8=−18\vec a\cdot\vec b = -2 - 8 - 8 = -18⁠, and ∣a⃗∣∣b⃗∣=3×6=18|\vec a||\vec b| = 3 \times 6 = 18⁠. Equality, ∣−18∣=18|-18| = 18⁠, as Step 4 predicts.

Common mistakes
  1. Skipping the zero-vector case. For a⃗=0⃗\vec a = \vec 0 there is no angle, so the cos⁡θ\cos\theta argument does not apply; the case needs its own line.
  2. Dividing by ∣a⃗∣∣b⃗∣|\vec a||\vec b| without saying it is nonzero. The book's form ∣a⃗⋅b⃗∣∣a⃗∣∣b⃗∣\frac{|\vec a\cdot\vec b|}{|\vec a||\vec b|} is only allowed once both vectors are nonzero.
  3. Dropping the absolute value. a⃗⋅b⃗≤∣a⃗∣∣b⃗∣\vec a\cdot\vec b \le |\vec a||\vec b| is true but weaker; the statement bounds the size ∣a⃗⋅b⃗∣|\vec a\cdot\vec b|⁠, so a large negative scalar product is ruled out too.
What to take away
  1. ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣∣cos⁡θ∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| = |\vec a||\vec b||\cos\theta| \le |\vec a||\vec b|⁠: a shadow is never longer than the stick.
  2. Handle the zero vector first, since no angle is defined for it.
  3. Equality holds exactly for collinear vectors.

Every fact used, and where it comes from

FactUsed inSource
a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta⁠; a⃗⋅b⃗=0\vec a\cdot\vec b = 0 if a vector is zeroSteps 1, 2Section 10.6.1, Definition 2 (Lesson: the dot product)
∣cos⁡θ∣≤1|\cos\theta| \le 1⁠, equal to 1 only at 00 and π\piSteps 3, 4Trigonometry (Basics: cos θ is a shadow)
θ=0\theta = 0 or π\pi gives a⃗⋅b⃗=±∣a⃗∣∣b⃗∣\vec a\cdot\vec b = \pm|\vec a||\vec b|Step 4Section 10.6.1, Observations 3 and 4
Collinear vectorsStep 4Section 10.5
The book's working and answerResultExample 19, Section 10.6.2 (Lesson: Examples 13–21)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →