Example 20: Triangle inequality
For any two vectors and , we always have (triangle inequality).
Case 1. If , then ; similarly if . So the result holds.
Case 2. Let and . Then
(as ). Since for every real ,
If is the angle between and , then , and gives . So
Both and are non-negative, so taking square roots,
. Hence proved.
Want the reason behind every step, the basics and the checks?
Lengths are awkward to add, but squares of lengths are scalar products, which expand like algebra:
The only unknown piece is the middle term, and the Cauchy-Schwarz inequality caps it. Then the right side becomes the perfect square . In the triangle law, is the third side of a triangle with sides and , and the inequality says one side is never longer than the other two together.
- Given
- Any two vectors and .
- To show
- .
- Plan
- (1) The zero-vector case. (2) Expand . (3) Bound the middle term twice: , then Cauchy-Schwarz. (4) Recognise and take square roots. (5) When does equality hold?
Basics you need
; the scalar product is distributive and commutative (Section 10.6.1, Observations 3 and 7, Property 1). Basics: , and dot products obey the same rule
, because and . Example 19
For non-negative numbers and , implies . Lesson: Examples 13–21
Solution
The case of a zero vector
If , then and , so . The case 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 .Expand the square of the length
The square of a length is the scalar product of the vector with itself. Distributivity multiplies out the brackets, and commutativity () joins the two middle terms, exactly like . The book writes as a short form for .Property 1, Observations 3 and 7 (Section 10.6.1). Basics: dot products obey the same ruleBound the middle term
First inequality: every real number is at most its absolute value, , and here , which may be negative. Second inequality: the Cauchy-Schwarz inequality , proved in Example 19 from and . Doubling both sides of an inequality and adding the same numbers keeps its direction.A perfect square, then square roots
so . Both and are non-negative, so .
The triangle law drawn to scale for a sample pair, one scale on both axes: , , and . The direct side AC () is shorter than the way round through B (). Squaring is increasing for non-negative numbers, so with gives . The book goes straight to "Hence"; this sentence is the reason. Without the sign condition the step can fail: is true, but is false.When does equality hold?
Equality needs equality in both steps of Step 3: (so ) and (so or ). Together, : for nonzero vectors, exactly when and point the same way.
This is the book's Remark after Example 20: if , then in the triangle law , and A, B, C are collinear, with B between A and C.Remark after Example 20 (Section 10.6.2); gives (Section 10.6.1, Observation 3). Lesson: the dot product
For any two vectors, , with equality exactly when one of them is or they point the same way.
(Textbook answer: , hence . The book writes the assumption as ""; the lengths are numbers, so the 0 there is the number 0, that is and .)
The pair in the figure: , while . Also , matching Step 2 with .
A pair in space: , . Then and : a close call, because the angle between them is small.
Equality: with gives .
- Taking square roots without a reason. From you may conclude only because both are non-negative; say so.
- Writing . Lengths do not add in general; the equals sign holds only when the vectors point the same way.
- Skipping . Going from straight to hides a step: the Cauchy-Schwarz inequality bounds , not .
- To compare lengths, compare their squares, which are scalar products.
- , by Cauchy-Schwarz.
- 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
| Fact | Used in | Source |
|---|---|---|
| ; | Step 1 | Sections 10.3 and 10.4 (Lesson: adding arrows) |
| ; distributivity; commutativity | Step 2 | Section 10.6.1, Observations 3 and 7, Property 1 (Basics: dot products obey the same rule) |
| for real | Step 3 | Real numbers |
| Cauchy-Schwarz inequality | Step 3 | Example 19 (Example 19) |
| , gives | Step 4 | Real numbers |
| Equality means collinear points | Step 5 | Remark after Example 20, Section 10.6.2 |
| The book's working and answer | Result | Example 20, Section 10.6.2, Fig 10.21 (Lesson: Examples 13–21) |
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 →