How can I make a graph I can adjust?

I want to make it to where as I drag the slider for x, it takes the integral under f(x).

I want to make it to where as I drag the slider for x, it takes the integral under f(x).