Mathematical Analysis Proof: |x-y|<= |x|+|y|

Click For Summary

Homework Help Overview

The problem involves proving the inequality |x-y| ≤ |x| + |y| for all real numbers x and y, situated within the context of mathematical analysis.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the potential use of the triangle inequality and consider different cases based on the values of x and y. Some suggest assuming x ≥ y to simplify the proof, while others mention the trivial cases when x or y equals zero. There is also mention of alternative approaches such as proving Cauchy-Schwarz first or using quasi-linearization.

Discussion Status

The discussion is ongoing, with various approaches being explored. Some participants have provided guidance on how to consider cases and utilize known inequalities, while others are sharing their preferred methods for tackling the problem.

Contextual Notes

Participants note that this problem is commonly encountered in mathematical analysis, indicating a shared familiarity with the topic. The original poster expresses difficulty due to a lack of intuition in this area, which may influence the discussion dynamics.

Bonnie
Messages
18
Reaction score
1

Homework Statement


1. Show that for all real numbers x and y:
a) |x-y| ≤ |x| + |y|

Homework Equations


Possibly -|x| ≤ x ≤ |x|,
and -|y| ≤ y ≤ |y|?

The Attempt at a Solution


I tried using a direct proof here, but I keep getting stuck, especially since this is my first time ever coming across mathematical analysis, so I don't have much intuition for it. What I did think was possibly trying to use the triangle inequality somehow?
So far I have added the two above equations together to get
-|x| - |y| ≤ x + y ≤ |x| + |y|
But If that is right then I have no idea how to manipulate it to get the original statement to be proven. Any help would be much appreciated as I seem to keep going in circles.

Thanks :)
 
Physics news on Phys.org
Since ##|x-y|=|y-x|## you may assume that ##x\geq y## which reduces the cases you have to consider. And this is the triangle inequality, because ##|x-y|=|x+(-y)|\leq |x|+|-y|=|x|+|y|## so you cannot use what you want to prove.
 
Bonnie said:

Homework Statement


1. Show that for all real numbers x and y:
a) |x-y| ≤ |x| + |y|

Homework Equations


Possibly -|x| ≤ x ≤ |x|,
and -|y| ≤ y ≤ |y|?

The Attempt at a Solution


I tried using a direct proof here, but I keep getting stuck, especially since this is my first time ever coming across mathematical analysis, so I don't have much intuition for it. What I did think was possibly trying to use the triangle inequality somehow?
So far I have added the two above equations together to get
-|x| - |y| ≤ x + y ≤ |x| + |y|


Thanks :)

As fresh_42 points out, you may as well assume that ##x < y##; the case ##x = y## is trivial. Furthermore, the cases ##x=0## or ##y = 0## are trivial as well. Given all that, one way to go is by a (tedious?) consideration of cases:
(a) ##0 < x < y##; (b) ##x < 0 < y##; and (c) ##x < y < 0##.
 
I think the 'right' way to do this is proving Cauchy Schwarz first, then proving triangle inequality.
- - - -
A less often used approach that I happen to like is quasi-linearisation. (Note, change of variables ##z:= -y##)

you want to prove

##f \big( x + z \big) = \big \vert x + z \big \vert \leq \big \vert x \big \vert + \big \vert z \big \vert = f \big( x \big) + f \big( z \big)##

now here I've defined ##f## as the absolute value function -- in common shorthand, I've said ##f(u) := \big \vert u\big \vert##

But suppose I instead define

##\begin{equation*}
\begin{aligned}
& f\big(u\big) := {\text{maximize }}\lambda \cdot u\\
& \text{subject to: }\lambda \in \{-1,+1\}\\
\end{aligned}
\end{equation*}##

From here, you'd need to confirm that the two definitions are equivalent, and the obvious fact that 2 choices are better than 1 (at least in 'single player' optimization problems).
 
The same old question year after year.
:-)
 
Thank you all for your replies :)
 
StoneTemplePython said:
I think the 'right' way to do this is proving Cauchy Schwarz first, then proving triangle inequality.
- - - -
A less often used approach that I happen to like is quasi-linearisation. (Note, change of variables ##z:= -y##)

you want to prove

##f \big( x + z \big) = \big \vert x + z \big \vert \leq \big \vert x \big \vert + \big \vert z \big \vert = f \big( x \big) + f \big( z \big)##

now here I've defined ##f## as the absolute value function -- in common shorthand, I've said ##f(u) := \big \vert u\big \vert##

But suppose I instead define

##\begin{equation*}
\begin{aligned}
& f\big(u\big) := {\text{maximize }}\lambda \cdot u\\
& \text{subject to: }\lambda \in \{-1,+1\}\\
\end{aligned}
\end{equation*}##

From here, you'd need to confirm that the two definitions are equivalent, and the obvious fact that 2 choices are better than 1 (at least in 'single player' optimization problems).

You could even say
$$f(u) = \max_{-1 \leq \lambda \leq 1} \lambda \cdot u$$
to make it "less combinatorical".
 
Ray Vickson said:
You could even say
$$f(u) = \max_{-1 \leq \lambda \leq 1} \lambda \cdot u$$
to make it "less combinatorical".

It definitely could be done as ##\lambda \in [-1,1]##.

- - - -
When using quasi-linearisation, it's common to have the 'norm' associated with the constraint fixed to 1 (e.g. when using the technique to pass from Hoelder ##\to## Minkowski).

I originally wrote the constraint as ##\big \vert \lambda \big \vert = 1##, but that struck me as perverse given that I was redefining the absolute value function here!
 

Similar threads

Replies
8
Views
2K
Replies
3
Views
2K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
13K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K