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

Example 20: Triangle inequality ∣a⃗+b⃗∣≤∣a⃗∣+∣b⃗∣|\vec a+\vec b|\le|\vec a|+|\vec b|

ExamplesScalar product, Cauchy-Schwarz and the triangle inequality · 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 + \vec b| \le |\vec a| + |\vec b| (triangle inequality).

Exam answer

Case 1. If a⃗=0⃗\vec a = \vec 0⁠, then ∣a⃗+b⃗∣=∣b⃗∣=∣a⃗∣+∣b⃗∣|\vec a + \vec b| = |\vec b| = |\vec a| + |\vec b|⁠; similarly if b⃗=0⃗\vec b = \vec 0⁠. So the result holds.

Case 2. Let a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠. Then

∣a⃗+b⃗∣2=(a⃗+b⃗)⋅(a⃗+b⃗)=a⃗⋅a⃗+a⃗⋅b⃗+b⃗⋅a⃗+b⃗⋅b⃗=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2\begin{aligned} &|\vec a + \vec b|^2 \\ &= (\vec a + \vec b)\cdot(\vec a + \vec b) \\ &= \vec a\cdot\vec a + \vec a\cdot\vec b \\ &\quad + \vec b\cdot\vec a + \vec b\cdot\vec b \\ &= |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2 \end{aligned}

(as b⃗⋅a⃗=a⃗⋅b⃗\vec b\cdot\vec a = \vec a\cdot\vec b⁠). Since x≤∣x∣x \le |x| for every real xx⁠,

∣a⃗+b⃗∣2≤∣a⃗∣2+2∣a⃗⋅b⃗∣+∣b⃗∣2|\vec a + \vec b|^2 \le |\vec a|^2 + 2|\vec a\cdot\vec b| + |\vec b|^2

If θ\theta is the angle between a⃗\vec a and b⃗\vec b⁠, then ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣∣cos⁡θ∣|\vec a\cdot\vec b| = |\vec a||\vec b||\cos\theta|⁠, and ∣cos⁡θ∣≤1|\cos\theta| \le 1 gives ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠. So

∣a⃗+b⃗∣2≤∣a⃗∣2+2∣a⃗∣∣b⃗∣+∣b⃗∣2=(∣a⃗∣+∣b⃗∣)2\begin{aligned} &|\vec a + \vec b|^2 \\ &\le |\vec a|^2 + 2|\vec a||\vec b| + |\vec b|^2 \\ &= (|\vec a| + |\vec b|)^2 \end{aligned}

Both ∣a⃗+b⃗∣|\vec a + \vec b| and ∣a⃗∣+∣b⃗∣|\vec a| + |\vec b| are non-negative, so taking square roots,

∣a⃗+b⃗∣≤∣a⃗∣+∣b⃗∣|\vec a + \vec b| \le |\vec a| + |\vec b|⁠. Hence proved.

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

The one idea this problem is built on

Lengths are awkward to add, but squares of lengths are scalar products, which expand like algebra:

∣a⃗+b⃗∣2=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2.|\vec a + \vec b|^2 = |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2.

The only unknown piece is the middle term, and the Cauchy-Schwarz inequality ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b| caps it. Then the right side becomes the perfect square (∣a⃗∣+∣b⃗∣)2(|\vec a| + |\vec b|)^2⁠. In the triangle law, a⃗+b⃗\vec a + \vec b is the third side of a triangle with sides ∣a⃗∣|\vec a| and ∣b⃗∣|\vec b|⁠, and the inequality says one side is never longer than the other two together.

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 + \vec b| \le |\vec a| + |\vec b|⁠.
Plan
(1) The zero-vector case. (2) Expand ∣a⃗+b⃗∣2|\vec a + \vec b|^2⁠. (3) Bound the middle term twice: x≤∣x∣x \le |x|⁠, then Cauchy-Schwarz. (4) Recognise (∣a⃗∣+∣b⃗∣)2(|\vec a| + |\vec b|)^2 and take square roots. (5) When does equality hold?

Basics you need

1Squares of lengths as scalar products

∣r⃗∣2=r⃗⋅r⃗|\vec r|^2 = \vec r\cdot\vec r⁠; the scalar product is distributive and commutative (Section 10.6.1, Observations 3 and 7, Property 1). Basics: (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2⁠, and dot products obey the same rule

2The Cauchy-Schwarz inequality

∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠, because a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta and ∣cos⁡θ∣≤1|\cos\theta| \le 1⁠. Example 19

3Square roots keep order

For non-negative numbers pp and qq⁠, p2≤q2p^2 \le q^2 implies p≤qp \le q⁠. Lesson: Examples 13–21

Solution

  1. The case of a zero vector

    If a⃗=0⃗\vec a = \vec 0⁠, then a⃗+b⃗=b⃗\vec a + \vec b = \vec b and ∣a⃗∣=0|\vec a| = 0⁠, so ∣a⃗+b⃗∣=∣b⃗∣=∣a⃗∣+∣b⃗∣|\vec a + \vec b| = |\vec b| = |\vec a| + |\vec b|⁠. The case b⃗=0⃗\vec b = \vec 0 is the same. The inequality holds, with equality.

    This answers the book's "(How?)". The zero vector is set aside because the argument below uses the angle between the vectors, which is not defined when one of them is 0⃗\vec 0⁠.
    a⃗+0⃗=a⃗\vec a + \vec 0 = \vec a (Section 10.4); ∣0⃗∣=0|\vec 0| = 0 (Section 10.3). Lesson: adding arrows, head to tail
  2. Expand the square of the length

    ∣a⃗+b⃗∣2=(a⃗+b⃗)⋅(a⃗+b⃗)=a⃗⋅a⃗+a⃗⋅b⃗+b⃗⋅a⃗+b⃗⋅b⃗=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2.\begin{aligned} &|\vec a + \vec b|^2 = (\vec a + \vec b)\cdot(\vec a + \vec b) \\ &= \vec a\cdot\vec a + \vec a\cdot\vec b + \vec b\cdot\vec a + \vec b\cdot\vec b \\ &= |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2. \end{aligned}
    The square of a length is the scalar product of the vector with itself. Distributivity multiplies out the brackets, and commutativity (b⃗⋅a⃗=a⃗⋅b⃗\vec b\cdot\vec a = \vec a\cdot\vec b⁠) joins the two middle terms, exactly like (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2⁠. The book writes (a⃗+b⃗)2(\vec a + \vec b)^2 as a short form for (a⃗+b⃗)⋅(a⃗+b⃗)(\vec a + \vec b)\cdot(\vec a + \vec b)⁠.
    Property 1, Observations 3 and 7 (Section 10.6.1). Basics: dot products obey the same rule
  3. Bound the middle term

    ∣a⃗+b⃗∣2≤∣a⃗∣2+2∣a⃗⋅b⃗∣+∣b⃗∣2≤∣a⃗∣2+2∣a⃗∣∣b⃗∣+∣b⃗∣2.\begin{aligned} &|\vec a + \vec b|^2 \\ &\le |\vec a|^2 + 2|\vec a\cdot\vec b| + |\vec b|^2 \\ &\le |\vec a|^2 + 2|\vec a||\vec b| + |\vec b|^2. \end{aligned}
    First inequality: every real number is at most its absolute value, x≤∣x∣x \le |x|⁠, and here x=a⃗⋅b⃗x = \vec a\cdot\vec b⁠, which may be negative. Second inequality: the Cauchy-Schwarz inequality ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|⁠, proved in Example 19 from ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣∣cos⁡θ∣|\vec a\cdot\vec b| = |\vec a||\vec b||\cos\theta| and ∣cos⁡θ∣≤1|\cos\theta| \le 1⁠. Doubling both sides of an inequality and adding the same numbers keeps its direction.
    x≤∣x∣x \le |x| for all real xx⁠; Cauchy-Schwarz inequality. Example 19
  4. A perfect square, then square roots

    ∣a⃗∣2+2∣a⃗∣∣b⃗∣+∣b⃗∣2=(∣a⃗∣+∣b⃗∣)2,|\vec a|^2 + 2|\vec a||\vec b| + |\vec b|^2 = (|\vec a| + |\vec b|)^2,

    so ∣a⃗+b⃗∣2≤(∣a⃗∣+∣b⃗∣)2|\vec a + \vec b|^2 \le (|\vec a| + |\vec b|)^2⁠. Both ∣a⃗+b⃗∣|\vec a + \vec b| and ∣a⃗∣+∣b⃗∣|\vec a| + |\vec b| are non-negative, so ∣a⃗+b⃗∣≤∣a⃗∣+∣b⃗∣|\vec a + \vec b| \le |\vec a| + |\vec b|.

    A B C a, length 4 b, length √5 a + b, length √29 AC = √29 ≈ 5.39 AB + BC = 4 + √5 ≈ 6.24
    The triangle law drawn to scale for a sample pair, one scale on both axes: a⃗=AB→=4i^\vec a = \overrightarrow{AB} = 4\hat i⁠, b⃗=BC→=i^+2j^\vec b = \overrightarrow{BC} = \hat i + 2\hat j⁠, and a⃗+b⃗=AC→=5i^+2j^\vec a + \vec b = \overrightarrow{AC} = 5\hat i + 2\hat j⁠. The direct side AC (29≈5.39\sqrt{29} \approx 5.39⁠) is shorter than the way round through B (4+5≈6.244 + \sqrt5 \approx 6.24⁠).
    Squaring is increasing for non-negative numbers, so p2≤q2p^2 \le q^2 with p,q≥0p, q \ge 0 gives p≤qp \le q⁠. The book goes straight to "Hence"; this sentence is the reason. Without the sign condition the step can fail: 22≤(−3)22^2 \le (-3)^2 is true, but 2≤−32 \le -3 is false.
    (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2 with x=∣a⃗∣x = |\vec a|⁠, y=∣b⃗∣y = |\vec b|⁠. Basics: (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2
  5. When does equality hold?

    Equality needs equality in both steps of Step 3: a⃗⋅b⃗=∣a⃗⋅b⃗∣\vec a\cdot\vec b = |\vec a\cdot\vec b| (so a⃗⋅b⃗≥0\vec a\cdot\vec b \ge 0⁠) and ∣a⃗⋅b⃗∣=∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| = |\vec a||\vec b| (so θ=0\theta = 0 or π\pi⁠). Together, θ=0\theta = 0⁠: for nonzero vectors, ∣a⃗+b⃗∣=∣a⃗∣+∣b⃗∣|\vec a + \vec b| = |\vec a| + |\vec b| exactly when a⃗\vec a and b⃗\vec b point the same way.

    This is the book's Remark after Example 20: if ∣a⃗+b⃗∣=∣a⃗∣+∣b⃗∣|\vec a + \vec b| = |\vec a| + |\vec b|⁠, then in the triangle law ∣AC→∣=∣AB→∣+∣BC→∣|\overrightarrow{AC}| = |\overrightarrow{AB}| + |\overrightarrow{BC}|⁠, and A, B, C are collinear, with B between A and C.
    Remark after Example 20 (Section 10.6.2); θ=0\theta = 0 gives a⃗⋅b⃗=∣a⃗∣∣b⃗∣\vec a\cdot\vec b = |\vec a||\vec b| (Section 10.6.1, Observation 3). Lesson: the dot product
Result

For any two vectors, ∣a⃗+b⃗∣≤∣a⃗∣+∣b⃗∣|\vec a + \vec b| \le |\vec a| + |\vec b|⁠, with equality exactly when one of them is 0⃗\vec 0 or they point the same way.

(Textbook answer: ∣a⃗+b⃗∣2=∣a⃗∣2+2a⃗⋅b⃗+∣b⃗∣2|\vec a + \vec b|^2 = |\vec a|^2 + 2\vec a\cdot\vec b + |\vec b|^2 ≤∣a⃗∣2+2∣a⃗⋅b⃗∣+∣b⃗∣2\le |\vec a|^2 + 2|\vec a\cdot\vec b| + |\vec b|^2 ≤∣a⃗∣2+2∣a⃗∣∣b⃗∣+∣b⃗∣2\le |\vec a|^2 + 2|\vec a||\vec b| + |\vec b|^2 =(∣a⃗∣+∣b⃗∣)2= (|\vec a| + |\vec b|)^2⁠, hence ∣a⃗+b⃗∣≤∣a⃗∣+∣b⃗∣|\vec a + \vec b| \le |\vec a| + |\vec b|⁠. The book writes the assumption as "∣a⃗∣≠0⃗≠∣b⃗∣|\vec a| \ne \vec 0 \ne |\vec b|"; the lengths are numbers, so the 0 there is the number 0, that is a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠.)

Check it with numbers

The pair in the figure: ∣a⃗+b⃗∣=∣5i^+2j^∣=29≈5.385165|\vec a + \vec b| = |5\hat i + 2\hat j| = \sqrt{29} \approx 5.385165⁠, while ∣a⃗∣+∣b⃗∣=4+5≈6.236068|\vec a| + |\vec b| = 4 + \sqrt5 \approx 6.236068⁠. Also ∣a⃗+b⃗∣2=16+2(4)+5=29|\vec a + \vec b|^2 = 16 + 2(4) + 5 = 29⁠, matching Step 2 with a⃗⋅b⃗=4\vec a\cdot\vec b = 4⁠.

A pair in space: 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⁠. Then ∣a⃗+b⃗∣=∣3i^+5j^+3k^∣|\vec a + \vec b| = |3\hat i + 5\hat j + 3\hat k| =43≈6.5574= \sqrt{43} \approx 6.5574 and ∣a⃗∣+∣b⃗∣=17+6≈6.5726|\vec a| + |\vec b| = \sqrt{17} + \sqrt6 \approx 6.5726⁠: a close call, because the angle between them is small.

Equality: b⃗=2a⃗\vec b = 2\vec a with a⃗=i^+2j^+2k^\vec a = \hat i + 2\hat j + 2\hat k gives ∣3a⃗∣=9=3+6=∣a⃗∣+∣b⃗∣|3\vec a| = 9 = 3 + 6 = |\vec a| + |\vec b|⁠.

Common mistakes
  1. Taking square roots without a reason. From p2≤q2p^2 \le q^2 you may conclude p≤qp \le q only because both are non-negative; say so.
  2. Writing ∣a⃗+b⃗∣=∣a⃗∣+∣b⃗∣|\vec a + \vec b| = |\vec a| + |\vec b|⁠. Lengths do not add in general; the equals sign holds only when the vectors point the same way.
  3. Skipping x≤∣x∣x \le |x|⁠. Going from 2 a⃗⋅b⃗2\,\vec a\cdot\vec b straight to 2∣a⃗∣∣b⃗∣2|\vec a||\vec b| hides a step: the Cauchy-Schwarz inequality bounds ∣a⃗⋅b⃗∣|\vec a\cdot\vec b|⁠, not a⃗⋅b⃗\vec a\cdot\vec b⁠.
What to take away
  1. To compare lengths, compare their squares, which are scalar products.
  2. ∣a⃗+b⃗∣2=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2|\vec a + \vec b|^2 = |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2 ≤(∣a⃗∣+∣b⃗∣)2\le (|\vec a| + |\vec b|)^2⁠, by Cauchy-Schwarz.
  3. One side of a triangle is at most the sum of the other two, with equality only for collinear points.

Every fact used, and where it comes from

FactUsed inSource
a⃗+0⃗=a⃗\vec a + \vec 0 = \vec a⁠; ∣0⃗∣=0|\vec 0| = 0Step 1Sections 10.3 and 10.4 (Lesson: adding arrows)
∣r⃗∣2=r⃗⋅r⃗|\vec r|^2 = \vec r\cdot\vec r⁠; distributivity; commutativityStep 2Section 10.6.1, Observations 3 and 7, Property 1 (Basics: dot products obey the same rule)
x≤∣x∣x \le |x| for real xxStep 3Real numbers
Cauchy-Schwarz inequality ∣a⃗⋅b⃗∣≤∣a⃗∣∣b⃗∣|\vec a\cdot\vec b| \le |\vec a||\vec b|Step 3Example 19 (Example 19)
p2≤q2p^2 \le q^2⁠, p,q≥0p, q \ge 0 gives p≤qp \le qStep 4Real numbers
Equality means collinear pointsStep 5Remark after Example 20, Section 10.6.2
The book's working and answerResultExample 20, Section 10.6.2, Fig 10.21 (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 →