How Can You Prove the Triangle Inequality Using Case Analysis in Discrete Math?

Click For Summary

Homework Help Overview

The discussion revolves around proving the triangle inequality |x-y| ≤ |x| + |y| for all real numbers x and y using case analysis, as part of a discrete mathematics homework assignment.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants explore the different cases based on the signs of x and y, identifying four specific scenarios: both positive, one positive and one negative, and both negative. Questions arise regarding the validity of the cases and the necessity of providing a general proof rather than specific examples.

Discussion Status

The discussion is ongoing, with some participants providing insights into the need for a more rigorous proof structure rather than relying on examples. There is an emphasis on clarifying the conditions under which the triangle inequality holds true and the importance of considering all relevant cases.

Contextual Notes

Participants note that the original poster's examples do not constitute a proof and highlight the need for a comprehensive approach to case analysis, including further breakdowns of cases when x and y are both non-negative.

cameron_c83
Messages
2
Reaction score
0
Discrete Math -- Proof methods

Homework Statement



Prove |x-y| ≤ |x| + |y| for all real numbers x and y (where |x| represents the
absolute value of x, which equals x if x≥0 and equals -x if x<0). prove by cases


Homework Equations





The Attempt at a Solution


 
Physics news on Phys.org


? You state the problem but say absolutely nothing else! Have you not even tried?

The problem itself says "prove by cases". What are the cases here?
 


Well, how many cases are there? You have cases for x \geq0 and x < 0, as well as the same for y. There seems to be 4 cases to work with...
 


okay u right I should have postd my notes, but I wasnt sure so here it is :

1) x positive and y positive
2) x negitive and y positive
3) x positive and y negitive
4) x negitive and y negitive


case 1) p1 → q ,,, x-y ≤ x+y is true ,, for example 6-(+3) ≤ 6 + 3
case 2) p2 → q ,,, -x-y ≤ -x+y is true,, for example -6 - +3 ≤ -6 + 3
case 3) p3 → q ,,, x - (-y) ≤ x + (-y) is false ,,, for example 6 -(-3) = 9 and 6 +(-3) = 3
case 4) p4 → q ,,, -x-(-y) ≤ -x+(-y) is false ,,, for example -6 - (-3) = -3 and -6 + -3 = -9

so here are 4 cases and all possibilities,
please let me know what is wrong .
 


cameron_c83 said:
okay u right I should have postd my notes, but I wasnt sure so here it is :

1) x positive and y positive
2) x negitive and y positive
3) x positive and y negitive
4) x negitive and y negitive


case 1) p1 → q ,,, x-y ≤ x+y is true ,, for example 6-(+3) ≤ 6 + 3
Just posting an example does not prove it is true for all positive x and y.
case 2) p2 → q ,,, -x-y ≤ -x+y is true,, for example -6 - +3 ≤ -6 + 3
case 3) p3 → q ,,, x - (-y) ≤ x + (-y) is false ,,, for example 6 -(-3) = 9 and 6 +(-3) = 3
If x= 6, y= -3, |x+ y|= |6-(-3)|= 9 |x|+ |y|= 6+ 3= 9, NOT 6+(-3). |x-y|\le |x|+ |y| is true in this example.

case 4) p4 → q ,,, -x-(-y) ≤ -x+(-y) is false ,,, for example -6 - (-3) = -3 and -6 + -3 = -9
If x= -6 and y= -3, then |x- y|= |-6-(-3)|= |-3|= 3 while |x|+ |y|= 6+ 3= 9. 3< 9. No, |x- y|\le |x|+ |y| is true in this example. You are consistently forgetting the absolute values on the right side.

But "prove by cases" does not mean give examples! Examples cannot prove anything.

For example, if x\ge 0 and y\ge 0, in order to look at |x- y| we still have to consider two more cases:
1) x> y. Then |x- y|= x- y which is smaller than x. But |x|+ |y| is greater than x: |x- y|\le |x|\le |x|+ |y|.
2) y> x. Then |x- y|= |y- x|= y- x which is smaller than y. But |x|+ |y| is greater than y: |x- y|\le y\le |x|+ |y|.<br /> <br /> <blockquote data-attributes="" data-quote="" data-source="" class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote js-expandWatch"> <div class="bbCodeBlock-content"> <div class="bbCodeBlock-expandContent js-expandContent "> so here are 4 cases and all possibilities, <br /> please let me know what is wrong . </div> </div> </blockquote>
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
11K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
11
Views
3K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K