$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z...












0












$begingroup$


As in the title,



What I wanna do is



$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$



Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.



I can do this numerically. But It takes so much computation costs.



Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)



Are there any clever ways to do this?










share|cite|improve this question











$endgroup$












  • $begingroup$
    What numerical algorithm are you using? The formula is already "simple".
    $endgroup$
    – user8469759
    Jan 30 at 9:09












  • $begingroup$
    I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
    $endgroup$
    – Sinwoo Jeong
    Jan 30 at 9:17










  • $begingroup$
    I don't see the problem, It's a single for loop unless I'm missing something.
    $endgroup$
    – user8469759
    Jan 30 at 9:21










  • $begingroup$
    @SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
    $endgroup$
    – Solomonoff's Secret
    Jan 30 at 9:33
















0












$begingroup$


As in the title,



What I wanna do is



$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$



Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.



I can do this numerically. But It takes so much computation costs.



Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)



Are there any clever ways to do this?










share|cite|improve this question











$endgroup$












  • $begingroup$
    What numerical algorithm are you using? The formula is already "simple".
    $endgroup$
    – user8469759
    Jan 30 at 9:09












  • $begingroup$
    I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
    $endgroup$
    – Sinwoo Jeong
    Jan 30 at 9:17










  • $begingroup$
    I don't see the problem, It's a single for loop unless I'm missing something.
    $endgroup$
    – user8469759
    Jan 30 at 9:21










  • $begingroup$
    @SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
    $endgroup$
    – Solomonoff's Secret
    Jan 30 at 9:33














0












0








0





$begingroup$


As in the title,



What I wanna do is



$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$



Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.



I can do this numerically. But It takes so much computation costs.



Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)



Are there any clever ways to do this?










share|cite|improve this question











$endgroup$




As in the title,



What I wanna do is



$int _ { 0 } ^ { L } left{ left( int _ { 0 } ^ { x } f ( y ) d y right) left( int _ { 0 } ^ { x } g ( z ) d z right) right} d x$



Here, functions f and g are arbitrary ones, x is a variable, and L is a constant number.



I can do this numerically. But It takes so much computation costs.



Therefore, I'd like to convert this formula to a simpler form before doing numerical computation. (I think the integral by parts can be a key but I have no idea how/where I should apply it)



Are there any clever ways to do this?







integration






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 30 at 10:11









YuiTo Cheng

2,1863937




2,1863937










asked Jan 30 at 8:30









Sinwoo JeongSinwoo Jeong

32




32












  • $begingroup$
    What numerical algorithm are you using? The formula is already "simple".
    $endgroup$
    – user8469759
    Jan 30 at 9:09












  • $begingroup$
    I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
    $endgroup$
    – Sinwoo Jeong
    Jan 30 at 9:17










  • $begingroup$
    I don't see the problem, It's a single for loop unless I'm missing something.
    $endgroup$
    – user8469759
    Jan 30 at 9:21










  • $begingroup$
    @SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
    $endgroup$
    – Solomonoff's Secret
    Jan 30 at 9:33


















  • $begingroup$
    What numerical algorithm are you using? The formula is already "simple".
    $endgroup$
    – user8469759
    Jan 30 at 9:09












  • $begingroup$
    I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
    $endgroup$
    – Sinwoo Jeong
    Jan 30 at 9:17










  • $begingroup$
    I don't see the problem, It's a single for loop unless I'm missing something.
    $endgroup$
    – user8469759
    Jan 30 at 9:21










  • $begingroup$
    @SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
    $endgroup$
    – Solomonoff's Secret
    Jan 30 at 9:33
















$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09






$begingroup$
What numerical algorithm are you using? The formula is already "simple".
$endgroup$
– user8469759
Jan 30 at 9:09














$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17




$begingroup$
I'm using the Gaussian quadrature. But, I need much more matrix computations than those I needed for solving just normal integral such as int(f(x),0,L).
$endgroup$
– Sinwoo Jeong
Jan 30 at 9:17












$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21




$begingroup$
I don't see the problem, It's a single for loop unless I'm missing something.
$endgroup$
– user8469759
Jan 30 at 9:21












$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33




$begingroup$
@SinwooJeong It shouldn't take meaningfully longer than a single integral. Going from $int_0^x ldots$ to $int_0^{x+dx} ldots$ just requires adding one evaluation of $ldots$ to the former...
$endgroup$
– Solomonoff's Secret
Jan 30 at 9:33










1 Answer
1






active

oldest

votes


















0












$begingroup$

It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
$$
sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
$$






share|cite|improve this answer









$endgroup$














    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: "69"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093253%2fint-0-l-left-left-int-0-x-f-y-d-y-right-l%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0












    $begingroup$

    It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
    $$
    sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
    $$






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
      $$
      sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
      $$






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
        $$
        sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
        $$






        share|cite|improve this answer









        $endgroup$



        It seems very straightforward as it is... For general functions $f,g$ there is no way of simplifying the expression. From the numerical point of view, taking a regular decomposition of $[0,L]$ and some numerical quadrature $int_0^L h(x) dx approx sum_{i=1}^n w_i f_i$, you just have to implement the expression
        $$
        sum_{i=1}^n left(w_i left(sum_{j=1}^{i} w_j f_jright) left(sum_{j=1}^{i} w_j g_jright) right)
        $$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 30 at 9:18









        PierreCarrePierreCarre

        1,690212




        1,690212






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3093253%2fint-0-l-left-left-int-0-x-f-y-d-y-right-l%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

            Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

            A Topological Invariant for $pi_3(U(n))$