Prove the formula for the maximum of two numbers

Click For Summary
SUMMARY

The formula for the maximum of two numbers, max(x, y), is proven to be max(x, y) = (x + y + |y - x|) / 2 for all real numbers x and y. The proof involves considering two cases: x > y and y > x, and applying the definition of absolute value. In both cases, the formula simplifies to yield either x or y, confirming its validity. The discussion also highlights the importance of including the case where x = y for a complete proof.

PREREQUISITES
  • Understanding of absolute value and its properties
  • Basic knowledge of algebraic manipulation
  • Familiarity with real numbers and their properties
  • Experience with mathematical proofs and logical reasoning
NEXT STEPS
  • Study the properties of absolute value in mathematical proofs
  • Learn about different methods of proving mathematical identities
  • Explore the implications of the maximum function in optimization problems
  • Review examples of mathematical proofs from the Spivak textbook
USEFUL FOR

Students studying real analysis, mathematicians interested in proof techniques, and anyone looking to deepen their understanding of mathematical functions and their properties.

nietzsche
Messages
185
Reaction score
0

Homework Statement



The maximum of two numbers x and y is denoted by max(x,y). Thus max(-1,3) = max (3,3) = 3. Prove that:

<br /> \mathrm{max}(x,y) = \frac{x+y+|y-x|}{2}

Homework Equations



N/A

The Attempt at a Solution



I have no idea where to begin. I've thought about it for a long time, I swear! Any hints on how to get started?
 
Physics news on Phys.org
You'll need to consider two cases: x>y and y>x. Then use that with the definition of absolute value. That should show the right results.
 
Here's an attempt:

Assume x > y .

<br /> \begin{align*}<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+x-y}{2}\\<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+|x-y|}{2}\\<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+|y-x|}{2}<br /> \end{align*}<br />

But I haven't proved it yet...
 
Brian-san said:
You'll need to consider two cases: x>y and y>x. Then use that with the definition of absolute value. That should show the right results.

Okay, so I'm on the right track with that last post.

Assume y > x .
<br /> \begin{align*}<br /> \mathrm{max}(x,y) &amp;= \frac{x+y-x+y}{2}\\<br /> &amp;= \frac{x+y+|y-x|}{2}<br /> \end{align*}<br />
 
So is that a sufficient proof? Because it could just as well be

<br /> \mathrm{max}(x,y) = \frac{x+y+|x-y|}{2}<br />

couldn't it?
 
With each case, you can show that the formula leaves you with one value x, or y, that should be enough for the proof.
 
Brian-san said:
With each case, you can show that the formula leaves you with one value x, or y, that should be enough for the proof.

Ah, thank you very much.
 
(1) Assume x > y .

<br /> \begin{align*}<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+|y-x|}{2}\\<br /> &amp;= \frac{x+y+(x-y)}{2}\\<br /> &amp;= \frac{2x}{2}\\<br /> &amp;= x<br /> \end{align*}<br />(2) Now assume y > x .

<br /> \begin{align*}<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+|y-x|}{2}\\<br /> &amp;= \frac{x+y+(y-x)}{2}\\<br /> &amp;= \frac{2y}{2}\\<br /> &amp;= y<br /> \end{align*}<br />Therefore:
<br /> \mathrm{max}(x,y) &amp;= \frac{x+y+|y-x|}{2}<br />

is true for all values of x,y provided x,y are real numbers.

(Although I'm still not thoroughly convinced that it's sufficient...)
 
Since x and y are arbitrary real numbers, I don't see why it wouldn't be considered a strong enough proof. You can make an argument about how you come to that particular formula, but I don't think it's necessary.
 
  • #10
There is the third possibility that y=x. Include and your proof is complete.

ehild
 
  • #11
ehild said:
There is the third possibility that y=x. Include and your proof is complete.

ehild

Thanks very much.
 
  • #12
you're reading from the spivak textbook are you? your post on x^2 + xy + y^2 > 0 was also an exercise from the textbook
 
  • #13
yes i am. it's such an awful textbook, it gives practically no examples.

or maybe i should say that it's a textbook that require a bit more thinking...
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
14K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
33
Views
4K