Proving max (a,b) = \frac{a+b + \left|a+b\right|}{2}

  • Thread starter The_Iceflash
  • Start date
  • Tags
    Proof
In summary, the task is to prove the equation max(a,b) = (a+b + |a+b|)/2 by considering three cases: a > b, a < b, and a = b. The correct statement is max(a,b) = (a+b + |a-b|)/2. In the case of a = b, the maximum cannot be determined and the right side simplifies to (2a)/2 = a.
  • #1
The_Iceflash
50
0

Homework Statement


Prove max (a,b) = [tex]\frac{a+b + \left|a+b\right|}{2}[/tex]

Make 3 cases:

Case 1: Assume a > b. Show both sides come out with the same number.
Case 2: Assume a < b. Show both sides come out with the same number.
Case 3: Assume a = b. Show both sides come out with the same number.


Homework Equations


N/A


The Attempt at a Solution



To be honest I'm not sure how to set up both sides to begin with before I even start to break it down to address each case. Once I see how to do that I should be able to be able to prove this.
 
Physics news on Phys.org
  • #2
First make sure you have the correct statement: if you check your expression for a = 5, b = 10, you get

[tex]
\frac{5+10 + |5+10|}{2} = \frac{15 + 15} 2 = 15
[/tex]

which is not the maximum of the numbers 5 and 10. Perhaps it should be

[tex]
\max(a,b) = \frac{(a+b) + |a-b|}{2}
[/tex]

Consider your final case: if [tex] a = b [/tex], what can you say about which one is the maximum? Then, what can you say about how the right-side simplifies if the two inputs are equal?
 

FAQ: Proving max (a,b) = \frac{a+b + \left|a+b\right|}{2}

What is the meaning of "max" in the equation?

The term "max" refers to the maximum or largest value between two given numbers. In this equation, it is used to determine the greater value between a and b.

How is the absolute value used in the equation?

The absolute value, denoted by the bars || around a number, is used to ensure that the result is always positive. In this equation, it is used to calculate the sum of a and b regardless of whether they are positive or negative.

How does this equation prove that max(a,b) is equal to (a+b + |a+b|)/2 ?

This equation uses the concept of the average or mean to prove that max(a,b) is equal to (a+b + |a+b|)/2. By taking the sum of a and b, and adding the absolute value of their sum, the result is divided by 2 to get the average. This average is then the same as the maximum value between a and b.

Can this equation be used to find the maximum value between more than two numbers?

No, this equation is specifically designed to find the maximum between two numbers. It cannot be extended to find the maximum between more than two numbers.

Is this equation valid for all real numbers?

Yes, this equation is valid for all real numbers. It works for both positive and negative numbers, as well as fractions and decimals.

Similar threads

Replies
4
Views
1K
Replies
5
Views
1K
Replies
2
Views
871
Replies
4
Views
2K
Replies
1
Views
875
Replies
10
Views
2K
Back
Top