Total Variation of a function

  • Thread starter Eren10
  • Start date
  • #1
17
0
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 ?
 

Answers and Replies

  • #2
mathman
Science Advisor
7,889
459
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.
 
  • #3
17
0
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.

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 ?
 

Attachments

  • #4
mathman
Science Advisor
7,889
459
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.
 
  • #5
17
0
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
 

Related Threads on Total Variation of a function

Replies
28
Views
2K
  • Last Post
Replies
8
Views
5K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
1
Views
740
  • Last Post
Replies
5
Views
3K
  • Last Post
Replies
2
Views
554
  • Last Post
Replies
4
Views
7K
Replies
1
Views
650
  • Last Post
Replies
1
Views
1K
Top