How to calculate $int_-1^1|x^n| dx ?$

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











up vote
0
down vote

favorite













I have to calculate $$int_-1^1|x^n| dx$$




I don't know how to delete the absolute value.



Do I write $-x^n$ where $x$ from $-1$ to $0$ or write $(-1)^n x^n$ ?



Thank you










share|cite|improve this question























  • The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
    – random
    Sep 1 at 10:37















up vote
0
down vote

favorite













I have to calculate $$int_-1^1|x^n| dx$$




I don't know how to delete the absolute value.



Do I write $-x^n$ where $x$ from $-1$ to $0$ or write $(-1)^n x^n$ ?



Thank you










share|cite|improve this question























  • The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
    – random
    Sep 1 at 10:37













up vote
0
down vote

favorite









up vote
0
down vote

favorite












I have to calculate $$int_-1^1|x^n| dx$$




I don't know how to delete the absolute value.



Do I write $-x^n$ where $x$ from $-1$ to $0$ or write $(-1)^n x^n$ ?



Thank you










share|cite|improve this question
















I have to calculate $$int_-1^1|x^n| dx$$




I don't know how to delete the absolute value.



Do I write $-x^n$ where $x$ from $-1$ to $0$ or write $(-1)^n x^n$ ?



Thank you







real-analysis integration






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Sep 1 at 10:11









Robert Z

85.6k1055123




85.6k1055123










asked Sep 1 at 9:50









Poline Sandra

796




796











  • The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
    – random
    Sep 1 at 10:37

















  • The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
    – random
    Sep 1 at 10:37
















The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
– random
Sep 1 at 10:37





The not very practical integral of $|x^n|$ is $frac xn+1 |x^n|$.
– random
Sep 1 at 10:37











3 Answers
3






active

oldest

votes

















up vote
3
down vote













The integrand is even, so the integral is $2int_0^1 x^n dx=frac2n+1$ for $n>-1$.






share|cite|improve this answer




















  • that's all? but if i want to delete the | | what i must write?
    – Poline Sandra
    Sep 1 at 9:54










  • The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
    – J.G.
    Sep 1 at 10:36

















up vote
3
down vote













You have $|(-x)^n|=|x^n|$ so $int_-1^0 |x^n|dx = int_0^1 |x^n|dx = int_0^1 x^n dx$.



Here $|x^n|=x^n$ for $xge 0$ because $x^nge 0$.






share|cite|improve this answer






















  • please what is equal to $|x^n|$
    – Poline Sandra
    Sep 1 at 9:55










  • I fixed the absolute value signs.
    – Kusma
    Sep 1 at 9:56










  • whene $x<0$ what is equal to |x^n|
    – Poline Sandra
    Sep 1 at 10:00










  • for example |x|= x or -x , what is the definition for |x^n|
    – Poline Sandra
    Sep 1 at 10:04






  • 1




    $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
    – Kusma
    Sep 1 at 10:06

















up vote
1
down vote













You just have to consider that $;left | x^n right | = left | x right |^n$



Then, undo the absolute value as usual:
$$left | x right |=left{beginmatrixx,& &xgeq0&\ -x,& & x<0&endmatrixright.$$



Use the additivity of integration on intervals to compute:



$$int_-1^1left | x^n right |dx=int_-1^0(-1)^nx^ndx;+;int_0^1x^ndx,quad forall n>0qquad left(1right)$$



Be careful!



For $n<0,$ the function is not bounded. It is a simple example of improper integral.



However, for $,-1<n<0,$ the improper integral converges so you can be sure that $,left(1right),$ is true $,forall n > -1.$



The particular case $,n=0,$ has no mathematical interest cause $,left|xright|^n=1,$ if $,xneq0,$ and $,displaystylelim_xto 0,left|xright|^x = 1.$






share|cite|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: "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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f2901526%2fhow-to-calculate-int-11xn-dx%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    The integrand is even, so the integral is $2int_0^1 x^n dx=frac2n+1$ for $n>-1$.






    share|cite|improve this answer




















    • that's all? but if i want to delete the | | what i must write?
      – Poline Sandra
      Sep 1 at 9:54










    • The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
      – J.G.
      Sep 1 at 10:36














    up vote
    3
    down vote













    The integrand is even, so the integral is $2int_0^1 x^n dx=frac2n+1$ for $n>-1$.






    share|cite|improve this answer




















    • that's all? but if i want to delete the | | what i must write?
      – Poline Sandra
      Sep 1 at 9:54










    • The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
      – J.G.
      Sep 1 at 10:36












    up vote
    3
    down vote










    up vote
    3
    down vote









    The integrand is even, so the integral is $2int_0^1 x^n dx=frac2n+1$ for $n>-1$.






    share|cite|improve this answer












    The integrand is even, so the integral is $2int_0^1 x^n dx=frac2n+1$ for $n>-1$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Sep 1 at 9:53









    J.G.

    14.4k11626




    14.4k11626











    • that's all? but if i want to delete the | | what i must write?
      – Poline Sandra
      Sep 1 at 9:54










    • The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
      – J.G.
      Sep 1 at 10:36
















    • that's all? but if i want to delete the | | what i must write?
      – Poline Sandra
      Sep 1 at 9:54










    • The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
      – J.G.
      Sep 1 at 10:36















    that's all? but if i want to delete the | | what i must write?
    – Poline Sandra
    Sep 1 at 9:54




    that's all? but if i want to delete the | | what i must write?
    – Poline Sandra
    Sep 1 at 9:54












    The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
    – J.G.
    Sep 1 at 10:36




    The modulus is an even function, so we can restrict the integration range, thereby simplifying the modulus to $x$.
    – J.G.
    Sep 1 at 10:36










    up vote
    3
    down vote













    You have $|(-x)^n|=|x^n|$ so $int_-1^0 |x^n|dx = int_0^1 |x^n|dx = int_0^1 x^n dx$.



    Here $|x^n|=x^n$ for $xge 0$ because $x^nge 0$.






    share|cite|improve this answer






















    • please what is equal to $|x^n|$
      – Poline Sandra
      Sep 1 at 9:55










    • I fixed the absolute value signs.
      – Kusma
      Sep 1 at 9:56










    • whene $x<0$ what is equal to |x^n|
      – Poline Sandra
      Sep 1 at 10:00










    • for example |x|= x or -x , what is the definition for |x^n|
      – Poline Sandra
      Sep 1 at 10:04






    • 1




      $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
      – Kusma
      Sep 1 at 10:06














    up vote
    3
    down vote













    You have $|(-x)^n|=|x^n|$ so $int_-1^0 |x^n|dx = int_0^1 |x^n|dx = int_0^1 x^n dx$.



    Here $|x^n|=x^n$ for $xge 0$ because $x^nge 0$.






    share|cite|improve this answer






















    • please what is equal to $|x^n|$
      – Poline Sandra
      Sep 1 at 9:55










    • I fixed the absolute value signs.
      – Kusma
      Sep 1 at 9:56










    • whene $x<0$ what is equal to |x^n|
      – Poline Sandra
      Sep 1 at 10:00










    • for example |x|= x or -x , what is the definition for |x^n|
      – Poline Sandra
      Sep 1 at 10:04






    • 1




      $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
      – Kusma
      Sep 1 at 10:06












    up vote
    3
    down vote










    up vote
    3
    down vote









    You have $|(-x)^n|=|x^n|$ so $int_-1^0 |x^n|dx = int_0^1 |x^n|dx = int_0^1 x^n dx$.



    Here $|x^n|=x^n$ for $xge 0$ because $x^nge 0$.






    share|cite|improve this answer














    You have $|(-x)^n|=|x^n|$ so $int_-1^0 |x^n|dx = int_0^1 |x^n|dx = int_0^1 x^n dx$.



    Here $|x^n|=x^n$ for $xge 0$ because $x^nge 0$.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Sep 1 at 9:56

























    answered Sep 1 at 9:53









    Kusma

    3,355218




    3,355218











    • please what is equal to $|x^n|$
      – Poline Sandra
      Sep 1 at 9:55










    • I fixed the absolute value signs.
      – Kusma
      Sep 1 at 9:56










    • whene $x<0$ what is equal to |x^n|
      – Poline Sandra
      Sep 1 at 10:00










    • for example |x|= x or -x , what is the definition for |x^n|
      – Poline Sandra
      Sep 1 at 10:04






    • 1




      $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
      – Kusma
      Sep 1 at 10:06
















    • please what is equal to $|x^n|$
      – Poline Sandra
      Sep 1 at 9:55










    • I fixed the absolute value signs.
      – Kusma
      Sep 1 at 9:56










    • whene $x<0$ what is equal to |x^n|
      – Poline Sandra
      Sep 1 at 10:00










    • for example |x|= x or -x , what is the definition for |x^n|
      – Poline Sandra
      Sep 1 at 10:04






    • 1




      $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
      – Kusma
      Sep 1 at 10:06















    please what is equal to $|x^n|$
    – Poline Sandra
    Sep 1 at 9:55




    please what is equal to $|x^n|$
    – Poline Sandra
    Sep 1 at 9:55












    I fixed the absolute value signs.
    – Kusma
    Sep 1 at 9:56




    I fixed the absolute value signs.
    – Kusma
    Sep 1 at 9:56












    whene $x<0$ what is equal to |x^n|
    – Poline Sandra
    Sep 1 at 10:00




    whene $x<0$ what is equal to |x^n|
    – Poline Sandra
    Sep 1 at 10:00












    for example |x|= x or -x , what is the definition for |x^n|
    – Poline Sandra
    Sep 1 at 10:04




    for example |x|= x or -x , what is the definition for |x^n|
    – Poline Sandra
    Sep 1 at 10:04




    1




    1




    $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
    – Kusma
    Sep 1 at 10:06




    $|x^n|=x^n$ if $x^nge 0$ and $x^n=-x^n$ if $x^n<0$.
    – Kusma
    Sep 1 at 10:06










    up vote
    1
    down vote













    You just have to consider that $;left | x^n right | = left | x right |^n$



    Then, undo the absolute value as usual:
    $$left | x right |=left{beginmatrixx,& &xgeq0&\ -x,& & x<0&endmatrixright.$$



    Use the additivity of integration on intervals to compute:



    $$int_-1^1left | x^n right |dx=int_-1^0(-1)^nx^ndx;+;int_0^1x^ndx,quad forall n>0qquad left(1right)$$



    Be careful!



    For $n<0,$ the function is not bounded. It is a simple example of improper integral.



    However, for $,-1<n<0,$ the improper integral converges so you can be sure that $,left(1right),$ is true $,forall n > -1.$



    The particular case $,n=0,$ has no mathematical interest cause $,left|xright|^n=1,$ if $,xneq0,$ and $,displaystylelim_xto 0,left|xright|^x = 1.$






    share|cite|improve this answer


























      up vote
      1
      down vote













      You just have to consider that $;left | x^n right | = left | x right |^n$



      Then, undo the absolute value as usual:
      $$left | x right |=left{beginmatrixx,& &xgeq0&\ -x,& & x<0&endmatrixright.$$



      Use the additivity of integration on intervals to compute:



      $$int_-1^1left | x^n right |dx=int_-1^0(-1)^nx^ndx;+;int_0^1x^ndx,quad forall n>0qquad left(1right)$$



      Be careful!



      For $n<0,$ the function is not bounded. It is a simple example of improper integral.



      However, for $,-1<n<0,$ the improper integral converges so you can be sure that $,left(1right),$ is true $,forall n > -1.$



      The particular case $,n=0,$ has no mathematical interest cause $,left|xright|^n=1,$ if $,xneq0,$ and $,displaystylelim_xto 0,left|xright|^x = 1.$






      share|cite|improve this answer
























        up vote
        1
        down vote










        up vote
        1
        down vote









        You just have to consider that $;left | x^n right | = left | x right |^n$



        Then, undo the absolute value as usual:
        $$left | x right |=left{beginmatrixx,& &xgeq0&\ -x,& & x<0&endmatrixright.$$



        Use the additivity of integration on intervals to compute:



        $$int_-1^1left | x^n right |dx=int_-1^0(-1)^nx^ndx;+;int_0^1x^ndx,quad forall n>0qquad left(1right)$$



        Be careful!



        For $n<0,$ the function is not bounded. It is a simple example of improper integral.



        However, for $,-1<n<0,$ the improper integral converges so you can be sure that $,left(1right),$ is true $,forall n > -1.$



        The particular case $,n=0,$ has no mathematical interest cause $,left|xright|^n=1,$ if $,xneq0,$ and $,displaystylelim_xto 0,left|xright|^x = 1.$






        share|cite|improve this answer














        You just have to consider that $;left | x^n right | = left | x right |^n$



        Then, undo the absolute value as usual:
        $$left | x right |=left{beginmatrixx,& &xgeq0&\ -x,& & x<0&endmatrixright.$$



        Use the additivity of integration on intervals to compute:



        $$int_-1^1left | x^n right |dx=int_-1^0(-1)^nx^ndx;+;int_0^1x^ndx,quad forall n>0qquad left(1right)$$



        Be careful!



        For $n<0,$ the function is not bounded. It is a simple example of improper integral.



        However, for $,-1<n<0,$ the improper integral converges so you can be sure that $,left(1right),$ is true $,forall n > -1.$



        The particular case $,n=0,$ has no mathematical interest cause $,left|xright|^n=1,$ if $,xneq0,$ and $,displaystylelim_xto 0,left|xright|^x = 1.$







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Sep 2 at 9:45

























        answered Sep 1 at 12:06









        CarlIO

        214




        214



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2901526%2fhow-to-calculate-int-11xn-dx%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            How to combine Bézier curves to a surface?

            Mutual Information Always Non-negative

            Why am i infinitely getting the same tweet with the Twitter Search API?