Proving the Minimum of a Summation: Solving for f(x) with n Odd and Even Cases

  • Thread starter holezch
  • Start date
  • Tags
    Minimum
In summary, the conversation discusses the minimum value of a function f(x) = \sum | x - a_i |, with a_i values increasing from a_1 to a_n. It is concluded that for odd n, the minimum occurs at a_(n+1)/2, while for even n, the minimum occurs at both a_n/2 and a_n/2 + 1. The derivative of f(x) is also discussed, with it being noted that in the even case, the derivative is zero when there is an equal number of a_i values above and below x.
  • #1
holezch
251
0

Homework Statement


of [tex] f(x) = \sum [/tex] | x - a_i |
( i = 1 to n )

where
a_1 < a_2 < ... < a_n

The Attempt at a Solution


I believe I have proven that if n is odd then the minimum is as ceiling a_(n/2) or a_(n+1)/2. The book says a_(n-1)/2 though, but I think it's wrong.. if you actually tried an example , f( a_(n+1)/2 ) < f ( a_(n-1)/2 ). take n = 5 and a_i's = 1,2,3,4,5 for example
Also, for my even case, I have that the minimum occurs at both a_n/2 and a_n/2 + 1. Roughly speaking, if you introduce a new point that's a_mid( a_n/2 , a_n/2 + 1 ) then we have an odd case and the minimum as I've shown before will be the most middle point, a_mid( a_n/2 , a_n/2 + 1 ) .. et c I'm fairly sure that I have it right so I'm not too concerned about it ( although I think the proof might be a bit twisted or long ) I'm just concerned about the difference of answers up there, any ideas? thanks
 
Last edited:
Physics news on Phys.org
  • #2
holezch said:

Homework Statement





of [tex] f(x) = \sum [/tex] | x - a_i |
( i = 1 to n )

where
a_1 < a_2 < ... < a_n

The Attempt at a Solution


I believe I have proven that if n is odd then the minimum is as ceiling(n/2) or (n+1)/2. The book says (n-1)/2 though, but I think it's wrong.. if you actually tried an example , f( (n+1)/2 ) < f ((n-1)/2 ). take n = 5 and a_i's = 1,2,3,4,5 for example
Also, for my even case, I have that the minimum occurs at both n/2 and n/2 + 1. Roughly speaking, if you introduce a new point that's mid( n/2 , n/2 + 1 ) then we have an odd case and the minimum as I've shown before will be the most middle point, mid( n/2 , n/2 + 1 ) .. et c I'm fairly sure that I have it right so I'm not too concerned about it ( although I think the proof might be a bit twisted or long ) I'm just concerned about the difference of answers up there, any ideas? thanks

Are you sure you've stated that correctly? If n=2 then the minimum of f(x) is |a_1-a_2| isn't it? It has that value for any x in [a_1,a_2]. Why would it be a function only of n?
 
  • #3
oops, I wrote my answer incorrectly, the minimum is a_n+1/2 .. etc all the n's I wrote above are are a_n's
sorry I will edit it
so if n = 2 then f ( a_1 ) = f ( a_(n/2) ) = f ( a_( n/2 + 1 ) ) = f ( a_ 2 ) are the minimums
 
  • #4
holezch said:
oops, I wrote my answer incorrectly, the minimum is a_n+1/2 .. etc all the n's I wrote above are are a_n's
sorry I will edit it
so if n = 2 then f ( a_1 ) = f ( a_(n/2) ) = f ( a_( n/2 + 1 ) ) = f ( a_ 2 ) are the minimums

Look the derivative of f(x) (it's only defined for x not one of the a_i, but that's not really a problem, you can tell me how to work around that). The derivative of |x-a_i| is +1 if x>a_i and -1 if x<a_i. That means that that derivative of f(x) in the even case is zero as long as you have an equal number of a_i above and below x. In the odd case, sure, I think the minimum for n=5 must be at a_3. Which makes it a_{(n+1)/2}.
 
Last edited:

FAQ: Proving the Minimum of a Summation: Solving for f(x) with n Odd and Even Cases

What is the minimum value of a summation?

The minimum value of a summation is the smallest possible value that can be obtained by adding a series of numbers together.

How do you prove the minimum of a summation?

The minimum of a summation can be proven by using mathematical techniques such as induction, calculus, or algebra to find the value of the summation that results in the smallest possible value.

What is the significance of n being odd or even in proving the minimum of a summation?

The value of n being odd or even determines the formula that will be used to solve for the minimum of the summation. For odd n, the minimum will occur at the midpoint of the series, while for even n, the minimum will occur between two points in the series.

How can you solve for f(x) in the minimum of a summation with n odd and even cases?

To solve for f(x) in the minimum of a summation with n odd and even cases, you will need to use different techniques depending on the value of n. For odd n, you can use the formula f(x) = a(n+1)/2 + b(n+1)/2 to find the minimum, while for even n, you can use the formula f(x) = a(n/2) + b(n/2 + 1) to find the minimum.

Can the minimum of a summation be negative?

Yes, the minimum of a summation can be negative if the series contains negative numbers. In this case, the minimum value will be the smallest negative number in the series.

Back
Top