Continuous summation of a function

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have a simple function:



func =x Sin[π x]^2


This creates a curve that oscillates between 0 and values that increase linearly with x.



I want to create a continuous sum of func, so that incremental increases in x add to the running total. The result would be a continuously rising curve, with periods of rapid growth interspersed with periods of something closer to a plateau, based on the frequency of the Sin function.



How do I do this?










share|improve this question



















  • 1




    f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
    – Bill
    4 hours ago










  • How does a "continous summation" differ from an integral?
    – Î‘λέξανδρος Ζεγγ
    3 hours ago














up vote
1
down vote

favorite












I have a simple function:



func =x Sin[π x]^2


This creates a curve that oscillates between 0 and values that increase linearly with x.



I want to create a continuous sum of func, so that incremental increases in x add to the running total. The result would be a continuously rising curve, with periods of rapid growth interspersed with periods of something closer to a plateau, based on the frequency of the Sin function.



How do I do this?










share|improve this question



















  • 1




    f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
    – Bill
    4 hours ago










  • How does a "continous summation" differ from an integral?
    – Î‘λέξανδρος Ζεγγ
    3 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have a simple function:



func =x Sin[π x]^2


This creates a curve that oscillates between 0 and values that increase linearly with x.



I want to create a continuous sum of func, so that incremental increases in x add to the running total. The result would be a continuously rising curve, with periods of rapid growth interspersed with periods of something closer to a plateau, based on the frequency of the Sin function.



How do I do this?










share|improve this question















I have a simple function:



func =x Sin[π x]^2


This creates a curve that oscillates between 0 and values that increase linearly with x.



I want to create a continuous sum of func, so that incremental increases in x add to the running total. The result would be a continuously rising curve, with periods of rapid growth interspersed with periods of something closer to a plateau, based on the frequency of the Sin function.



How do I do this?







calculus-and-analysis function-construction






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 37 mins ago









m_goldberg

82.2k869190




82.2k869190










asked 4 hours ago









Richard Burke-Ward

3487




3487







  • 1




    f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
    – Bill
    4 hours ago










  • How does a "continous summation" differ from an integral?
    – Î‘λέξανδρος Ζεγγ
    3 hours ago












  • 1




    f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
    – Bill
    4 hours ago










  • How does a "continous summation" differ from an integral?
    – Î‘λέξανδρος Ζεγγ
    3 hours ago







1




1




f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
– Bill
4 hours ago




f=Integrate[x Sin[Pi x]^2,x] ; Plot[f,x,0,4Pi]
– Bill
4 hours ago












How does a "continous summation" differ from an integral?
– Î‘λέξανδρος Ζεγγ
3 hours ago




How does a "continous summation" differ from an integral?
– Î‘λέξανδρος Ζεγγ
3 hours ago










1 Answer
1






active

oldest

votes

















up vote
2
down vote













The "continuous sum" of a function is it's integral so



f[x_] := x Sin[Pi x]^2
sumf = Integrate[f[x], x];
Plot[f[x], sumf, x, 0, 2 Pi]


enter image description here






share|improve this answer




















    Your Answer




    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "387"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182435%2fcontinuous-summation-of-a-function%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    The "continuous sum" of a function is it's integral so



    f[x_] := x Sin[Pi x]^2
    sumf = Integrate[f[x], x];
    Plot[f[x], sumf, x, 0, 2 Pi]


    enter image description here






    share|improve this answer
























      up vote
      2
      down vote













      The "continuous sum" of a function is it's integral so



      f[x_] := x Sin[Pi x]^2
      sumf = Integrate[f[x], x];
      Plot[f[x], sumf, x, 0, 2 Pi]


      enter image description here






      share|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote









        The "continuous sum" of a function is it's integral so



        f[x_] := x Sin[Pi x]^2
        sumf = Integrate[f[x], x];
        Plot[f[x], sumf, x, 0, 2 Pi]


        enter image description here






        share|improve this answer












        The "continuous sum" of a function is it's integral so



        f[x_] := x Sin[Pi x]^2
        sumf = Integrate[f[x], x];
        Plot[f[x], sumf, x, 0, 2 Pi]


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 4 hours ago









        Rohit Namjoshi

        1737




        1737



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182435%2fcontinuous-summation-of-a-function%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery