Evaluate the Riemann sum












0












$begingroup$


If
$mathrm{f}left(xright) = 2cosleft(xright)$
$ 0 leq x leq 3pi/4$



evaluate the Riemann sum with
$n = 6$,
taking the sample points to be left endpoints. ( Round your answer to six decimal places ).



I've tried this several times now by using
$delta x = pi/8$ and doing:



$$
frac{pi}{8}left[2cosleft(0right) +
2cosleft(frac{pi}{8}right) +
2cosleft(frac{2pi}{8}right) +cdots + 2cosleft(frac{5pi}{8}right)right]
$$



and the answer I keep coming up with is $4.711374$ but my online homework is telling me this is wrong. Can anybody help ?.



Edit: I tried subtracting a $pi/8$ from each value inside the cosine functions and got $3.926437$ can anyone tell me if this is correct ?.










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
    $endgroup$
    – Ron Gordon
    Nov 8 '16 at 0:50










  • $begingroup$
    Be sure that your calculator is in radian mode.
    $endgroup$
    – Matthew Conroy
    Nov 8 '16 at 0:59










  • $begingroup$
    Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:16












  • $begingroup$
    I notice I have my left sum and right sum's backward.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:36
















0












$begingroup$


If
$mathrm{f}left(xright) = 2cosleft(xright)$
$ 0 leq x leq 3pi/4$



evaluate the Riemann sum with
$n = 6$,
taking the sample points to be left endpoints. ( Round your answer to six decimal places ).



I've tried this several times now by using
$delta x = pi/8$ and doing:



$$
frac{pi}{8}left[2cosleft(0right) +
2cosleft(frac{pi}{8}right) +
2cosleft(frac{2pi}{8}right) +cdots + 2cosleft(frac{5pi}{8}right)right]
$$



and the answer I keep coming up with is $4.711374$ but my online homework is telling me this is wrong. Can anybody help ?.



Edit: I tried subtracting a $pi/8$ from each value inside the cosine functions and got $3.926437$ can anyone tell me if this is correct ?.










share|cite|improve this question











$endgroup$








  • 2




    $begingroup$
    Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
    $endgroup$
    – Ron Gordon
    Nov 8 '16 at 0:50










  • $begingroup$
    Be sure that your calculator is in radian mode.
    $endgroup$
    – Matthew Conroy
    Nov 8 '16 at 0:59










  • $begingroup$
    Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:16












  • $begingroup$
    I notice I have my left sum and right sum's backward.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:36














0












0








0





$begingroup$


If
$mathrm{f}left(xright) = 2cosleft(xright)$
$ 0 leq x leq 3pi/4$



evaluate the Riemann sum with
$n = 6$,
taking the sample points to be left endpoints. ( Round your answer to six decimal places ).



I've tried this several times now by using
$delta x = pi/8$ and doing:



$$
frac{pi}{8}left[2cosleft(0right) +
2cosleft(frac{pi}{8}right) +
2cosleft(frac{2pi}{8}right) +cdots + 2cosleft(frac{5pi}{8}right)right]
$$



and the answer I keep coming up with is $4.711374$ but my online homework is telling me this is wrong. Can anybody help ?.



Edit: I tried subtracting a $pi/8$ from each value inside the cosine functions and got $3.926437$ can anyone tell me if this is correct ?.










share|cite|improve this question











$endgroup$




If
$mathrm{f}left(xright) = 2cosleft(xright)$
$ 0 leq x leq 3pi/4$



evaluate the Riemann sum with
$n = 6$,
taking the sample points to be left endpoints. ( Round your answer to six decimal places ).



I've tried this several times now by using
$delta x = pi/8$ and doing:



$$
frac{pi}{8}left[2cosleft(0right) +
2cosleft(frac{pi}{8}right) +
2cosleft(frac{2pi}{8}right) +cdots + 2cosleft(frac{5pi}{8}right)right]
$$



and the answer I keep coming up with is $4.711374$ but my online homework is telling me this is wrong. Can anybody help ?.



Edit: I tried subtracting a $pi/8$ from each value inside the cosine functions and got $3.926437$ can anyone tell me if this is correct ?.







integration definite-integrals riemann-sum






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 29 at 6:04









Felix Marin

68.9k7109146




68.9k7109146










asked Nov 8 '16 at 0:48









MaggieMaggie

90210




90210








  • 2




    $begingroup$
    Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
    $endgroup$
    – Ron Gordon
    Nov 8 '16 at 0:50










  • $begingroup$
    Be sure that your calculator is in radian mode.
    $endgroup$
    – Matthew Conroy
    Nov 8 '16 at 0:59










  • $begingroup$
    Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:16












  • $begingroup$
    I notice I have my left sum and right sum's backward.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:36














  • 2




    $begingroup$
    Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
    $endgroup$
    – Ron Gordon
    Nov 8 '16 at 0:50










  • $begingroup$
    Be sure that your calculator is in radian mode.
    $endgroup$
    – Matthew Conroy
    Nov 8 '16 at 0:59










  • $begingroup$
    Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:16












  • $begingroup$
    I notice I have my left sum and right sum's backward.
    $endgroup$
    – Doug M
    Nov 8 '16 at 1:36








2




2




$begingroup$
Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
$endgroup$
– Ron Gordon
Nov 8 '16 at 0:50




$begingroup$
Use $cos{(k pi/8)} = operatorname{Re}{e^{i k pi/8}}$ and add up the resulting geometric series.
$endgroup$
– Ron Gordon
Nov 8 '16 at 0:50












$begingroup$
Be sure that your calculator is in radian mode.
$endgroup$
– Matthew Conroy
Nov 8 '16 at 0:59




$begingroup$
Be sure that your calculator is in radian mode.
$endgroup$
– Matthew Conroy
Nov 8 '16 at 0:59












$begingroup$
Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
$endgroup$
– Doug M
Nov 8 '16 at 1:16






$begingroup$
Your set-up looks fine. You calculation is off. Right sum $2.06$, Left sum $0.72,$ Trapezoid rule $1.40$ Midpoint rule $1.42.$ Also note that $cos (frac {pi}{2}-x) = - cos (frac {pi}{2}+x)$ So, there is a little bit less calculating necessary than you show.
$endgroup$
– Doug M
Nov 8 '16 at 1:16














$begingroup$
I notice I have my left sum and right sum's backward.
$endgroup$
– Doug M
Nov 8 '16 at 1:36




$begingroup$
I notice I have my left sum and right sum's backward.
$endgroup$
– Doug M
Nov 8 '16 at 1:36










1 Answer
1






active

oldest

votes


















0












$begingroup$

Your setup is right.



You might make use of the fact that $cos(frac{pi}{2})=0$ and that
$$
cos left(frac{5pi}{8} right) = -cos left(frac{3pi}{8} right)
$$
to simplify your sum to
$$
frac{pi}{8} left( 2cos (0) + 2cos left( frac{pi}{8} right)
+2 cos left(frac{2pi}{8} right) right)
$$
so you only need to sum three things instead of six, and so you'll have fewer opportunities for error!






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%2f2004418%2fevaluate-the-riemann-sum%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$

    Your setup is right.



    You might make use of the fact that $cos(frac{pi}{2})=0$ and that
    $$
    cos left(frac{5pi}{8} right) = -cos left(frac{3pi}{8} right)
    $$
    to simplify your sum to
    $$
    frac{pi}{8} left( 2cos (0) + 2cos left( frac{pi}{8} right)
    +2 cos left(frac{2pi}{8} right) right)
    $$
    so you only need to sum three things instead of six, and so you'll have fewer opportunities for error!






    share|cite|improve this answer









    $endgroup$


















      0












      $begingroup$

      Your setup is right.



      You might make use of the fact that $cos(frac{pi}{2})=0$ and that
      $$
      cos left(frac{5pi}{8} right) = -cos left(frac{3pi}{8} right)
      $$
      to simplify your sum to
      $$
      frac{pi}{8} left( 2cos (0) + 2cos left( frac{pi}{8} right)
      +2 cos left(frac{2pi}{8} right) right)
      $$
      so you only need to sum three things instead of six, and so you'll have fewer opportunities for error!






      share|cite|improve this answer









      $endgroup$
















        0












        0








        0





        $begingroup$

        Your setup is right.



        You might make use of the fact that $cos(frac{pi}{2})=0$ and that
        $$
        cos left(frac{5pi}{8} right) = -cos left(frac{3pi}{8} right)
        $$
        to simplify your sum to
        $$
        frac{pi}{8} left( 2cos (0) + 2cos left( frac{pi}{8} right)
        +2 cos left(frac{2pi}{8} right) right)
        $$
        so you only need to sum three things instead of six, and so you'll have fewer opportunities for error!






        share|cite|improve this answer









        $endgroup$



        Your setup is right.



        You might make use of the fact that $cos(frac{pi}{2})=0$ and that
        $$
        cos left(frac{5pi}{8} right) = -cos left(frac{3pi}{8} right)
        $$
        to simplify your sum to
        $$
        frac{pi}{8} left( 2cos (0) + 2cos left( frac{pi}{8} right)
        +2 cos left(frac{2pi}{8} right) right)
        $$
        so you only need to sum three things instead of six, and so you'll have fewer opportunities for error!







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 8 '16 at 4:28









        Matthew ConroyMatthew Conroy

        10.4k32836




        10.4k32836






























            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%2f2004418%2fevaluate-the-riemann-sum%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

            MongoDB - Not Authorized To Execute Command

            How to fix TextFormField cause rebuild widget in Flutter

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith