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

Total Variation of a function

  1. May 2, 2010 #1
    hi,

    I have to calculate total variation of this function:

    1 for x< 0
    sin(pi * x) for 0<= x <= 3
    2 for x> 3

    I could not find any example for doing this. Can someone help me ?
     
  2. jcsd
  3. May 2, 2010 #2

    mathman

    User Avatar
    Science Advisor
    Gold Member

    It is straightfoward: at x=0, the function jumps from 1 to 0 (var = 1); from 0 to pi/2, it goes from 0 up to 1 (var = 1); from pi/2 to 3pi/2, it goes down from 1 to -1 (var = 2); etc.

    I'll let you do the rest. Then add up all the individual variations to get the total.
     
  4. May 2, 2010 #3

    Thank you for your reply.

    I had only used for the sin(pi*x) the function of the total variation( given in the picture, attached), because it is differentiable, for the other jumps I have used the same idea like you.

    Do you certainly know that I should take max, min points of the sinus function ?
     

    Attached Files:

    • TV.jpg
      TV.jpg
      File size:
      2.2 KB
      Views:
      63
  5. May 3, 2010 #4

    mathman

    User Avatar
    Science Advisor
    Gold Member

    Your picture doesn't appear on click.

    In any case, variations are always the absolute value of the change between max and min points, plus jumps as needed. For the sine, these are π/2 + kπ, for any integer k.
     
  6. May 4, 2010 #5
    Again, thank you. For me it is now clear.

    this picture makes it also very clear, from wikipedia, As the green ball travels on the graph of the given function, the length of the path traveled by that ball's projection on the y-axis, shown as a red ball, is the total variation of the function.
    Total_variation.gif
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook