Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Derivative of min(.)

  1. Jun 22, 2005 #1
    I'm trying to take the derivative of a min function.

    I have some function that depends on the variable x and a set of parameters x_i = x_1, x_2, ... .

    [tex]f_i(x) = g(x,x_i)[/tex]

    and then

    [tex]y = min_i(f_i(x))[/tex]

    So I'm finding the minimum value of f over all the x_i for some particular x value. Now I want to take dy/dx.

    Is there some definition of min that allows differentiation? Like maybe calling it the [tex]\frac{1}{\infty}[/tex] norm. Although I don't think that would help since I probably can't differentiate infinite exponents. I don't think d/dx can pass through the min because that would just give me the minimum derivative value corresponding to one of the x_i, but what I want is how the minimum over all i changes as x moves relative to the x_i.

    Any help?
  2. jcsd
  3. Jun 22, 2005 #2


    User Avatar
    Homework Helper

    Remeber min(a,b)=.5(a+b-|a-b|)
    In other words it is easy to differentiate min, but the derivative will not exist at points where two values are equal but the derivatives are not. This is clear as min often has corners. Also of interest is min(a(i))=-max(-a(i)).
    Example y=min(0,x)=x x<=0, 0 x>=0
    y'=1 x<0, 0 x>0 (undefined for x=0)
  4. Jun 23, 2005 #3
    That's what I was looking for. Now how about for many elements, i.e. min(a,b,c,d,e...)?
  5. May 18, 2011 #4
    min(a, b, c) = min(min(a, b), c)
    and so on
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Derivative of min(.)
  1. Relative Max/Min (Replies: 3)