Show max(a,b) = (a + b + |a-b|)+2

  • Thread starter Thread starter Diffy
  • Start date Start date
Click For Summary

Homework Help Overview

The problem involves demonstrating that the maximum of two real numbers, max{a,b}, can be expressed as (a + b + |a - b|)/2. The discussion centers around properties of real numbers, absolute values, and the concept of maximum values.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss breaking the problem into cases based on the relationship between a and b, specifically considering scenarios where a is greater than or less than b. There is also mention of needing to account for the signs of a and b in these cases.

Discussion Status

The discussion is ongoing, with participants exploring different approaches to the problem. Some guidance has been offered regarding case analysis, but there is no explicit consensus on the best method to proceed.

Contextual Notes

Participants note the potential complexity of the problem due to the various cases that arise from the relationships between a and b, including their signs. There is also mention of the need to utilize properties of least upper bounds (LUB) in the discussion.

Diffy
Messages
441
Reaction score
0

Homework Statement


let a and b be two real numbers show that max{a,b} = (a + b + |a - b|)/2


Homework Equations


I have all the field properties of the real numbers and order, LUB and existence of square root.

I also have definition of absolute value.


The Attempt at a Solution


This is very easy for me to see on the real line. If I break it into (a+b)/2 + |a+b|/2 then it is clear that I am taking the midpoint and adding half the distance between a and b.

However I am not sure I should argue it that way. I think that I should somehow be using my LUB properties but I don't know how.

Any help is appreciated.
 
Physics news on Phys.org


Split it into the two cases a>=b and a<b?
 


I did think about doing it that way, but I think within each of those cases there will be 3 others as well.

So assume a < b, then I have to consider if a and b are positive, if a and b are negative and if a is negative b is positive.

And all I really know by assuming a < b is that b - a > 0. Which I can't seem to make a connection to the formula (a + b + |a-b|)/2.
 


Diffy said:
I did think about doing it that way, but I think within each of those cases there will be 3 others as well.

So assume a < b, then I have to consider if a and b are positive, if a and b are negative and if a is negative b is positive.

And all I really know by assuming a < b is that b - a > 0. Which I can't seem to make a connection to the formula (a + b + |a-b|)/2.

If a<b then i) max(a,b)=b and ii) a-b<0, so |a-b|=-(a-b). Can you check it works now?
 


Thanks so much
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K