WordGPT

The triangle inequality |a + b| ≤ |a| + |b|

Exercise · Level 1 (School)

Prove the triangle inequality for real numbers.

∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|

wordgptpro.com

Solution

  1. Square the left side and use ∣a∣2=a2|a|^2=a^2; compare with the square of the right side:

    ∣a+b∣2=a2+2ab+b2≤a2+2∣a∣∣b∣+b2=(∣a∣+∣b∣)2\begin{aligned}&|a+b|^2\\&=a^2+2ab+b^2\le a^2+2|a||b|+b^2\\&=(|a|+|b|)^2\end{aligned}
    (1)
  2. This uses ab≤∣ab∣=∣a∣∣b∣ab\le|ab|=|a||b|. Taking square roots of the non-negative sides gives ∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|. Example: ∣3+(−5)∣=2≤3+5=8|3+(-5)|=2\le3+5=8.

Answer∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|

wordgptpro.com

Need a hint?

Both sides are non-negative, so you may compare their squares.

|a + b| ≤ |a| + |b|: for example |3 + (−5)| = 2 ≤ 8. The name comes from the geometry: one side of a triangle is at most the sum of the other two.

How to work it out

  1. Square the left side and use ∣a∣2=a2|a|^2=a^2; compare with the square of the right side:

    ∣a+b∣2=a2+2ab+b2≤a2+2∣a∣∣b∣+b2=(∣a∣+∣b∣)2\begin{aligned}&|a+b|^2\\&=a^2+2ab+b^2\le a^2+2|a||b|+b^2\\&=(|a|+|b|)^2\end{aligned}
    (1)
  2. This uses ab≤∣ab∣=∣a∣∣b∣ab\le|ab|=|a||b|. Taking square roots of the non-negative sides gives ∣a+b∣≤∣a∣+∣b∣|a+b|\le|a|+|b|. Example: ∣3+(−5)∣=2≤3+5=8|3+(-5)|=2\le3+5=8.

LaTeX source of the formulas on this page
\[ |a+b|\le|a|+|b| \]
\[ |a+b|^2=a^2+2ab+b^2\le a^2+2|a||b|+b^2=(|a|+|b|)^2 \]

Questions

What is the answer to: The triangle inequality |a + b| ≤ |a| + |b|?

|a + b| ≤ |a| + |b|: for example |3 + (−5)| = 2 ≤ 8. The name comes from the geometry: one side of a triangle is at most the sum of the other two.

What is the key idea?

Squaring removes the absolute values; the cross term ab is at most |a||b|.

Is there a hint?

Both sides are non-negative, so you may compare their squares.

Related problems

More inequality problems

    The triangle inequality |a + b| ≤ |a| + |b|: answer and solution | WordGPT