If $E={1/n:ninBbb{N} }$ and $f(x)= 1,xin E,;f(x)=0,xnotin E $, then show that $f$ is integrable and to...












1












$begingroup$


Let $E={1/n:ninBbb{N} }$ and define a function $f:[0,1]toBbb{R}$ by
begin{align} f(x)=begin{cases} 1,&xin E\0,&xnotin E .end{cases} end{align}
I want to show that $f$ is integrable and to compute $int^{1}_{0}f(x)dx$.



Proof of integrability.



Let $epsilon>0$ and $xin E$. Then, there exists $N$ such that $x=frac{1}{N}<frac{epsilon}{2}.$
Consider a partition $P={x_0,x_1,cdots,x_k}$ of $[0,1]$ such that
$$frac{1}{N}=x_0<x_1<cdots<x_k=1.$$
Take a refinement, $P_0={0,1/N}cup P:={t_0,t_1,cdots,t_m}$ such that $t_m-t_2<frac{1}{N^2}$.



begin{align} U(f,P_0)-L(f,P_0)&=sum^{m}_{j=1}(M_j-m_j)Delta t_j \&=sum^{m}_{j=1}M_jDelta t_j \&=M_1Delta t_1+sum^{m}_{j=2}M_jDelta t_j\&leq 1cdotfrac{1}{N}+Nsum^{m}_{j=2}Delta t_j\&< 1cdotfrac{1}{N}+Ncdotfrac{1}{N^2} \&< frac{epsilon}{2}+frac{epsilon}{2}\&=epsilon end{align}
Hence, $f$ is integrable. So, there a simple way I can compute $int^{1}_{0}f(x)dx$?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Your proof seems to reuse "$n$" 2-3 different ways.
    $endgroup$
    – Michael
    Jan 30 at 6:16










  • $begingroup$
    @Michael: Thanks! I've edited it.
    $endgroup$
    – Micheal
    Jan 30 at 6:19












  • $begingroup$
    In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
    $endgroup$
    – Michael
    Jan 30 at 6:27












  • $begingroup$
    @Michael: Okay, let me do that.
    $endgroup$
    – Micheal
    Jan 30 at 6:29










  • $begingroup$
    Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
    $endgroup$
    – John Omielan
    Jan 30 at 6:33


















1












$begingroup$


Let $E={1/n:ninBbb{N} }$ and define a function $f:[0,1]toBbb{R}$ by
begin{align} f(x)=begin{cases} 1,&xin E\0,&xnotin E .end{cases} end{align}
I want to show that $f$ is integrable and to compute $int^{1}_{0}f(x)dx$.



Proof of integrability.



Let $epsilon>0$ and $xin E$. Then, there exists $N$ such that $x=frac{1}{N}<frac{epsilon}{2}.$
Consider a partition $P={x_0,x_1,cdots,x_k}$ of $[0,1]$ such that
$$frac{1}{N}=x_0<x_1<cdots<x_k=1.$$
Take a refinement, $P_0={0,1/N}cup P:={t_0,t_1,cdots,t_m}$ such that $t_m-t_2<frac{1}{N^2}$.



begin{align} U(f,P_0)-L(f,P_0)&=sum^{m}_{j=1}(M_j-m_j)Delta t_j \&=sum^{m}_{j=1}M_jDelta t_j \&=M_1Delta t_1+sum^{m}_{j=2}M_jDelta t_j\&leq 1cdotfrac{1}{N}+Nsum^{m}_{j=2}Delta t_j\&< 1cdotfrac{1}{N}+Ncdotfrac{1}{N^2} \&< frac{epsilon}{2}+frac{epsilon}{2}\&=epsilon end{align}
Hence, $f$ is integrable. So, there a simple way I can compute $int^{1}_{0}f(x)dx$?










share|cite|improve this question











$endgroup$












  • $begingroup$
    Your proof seems to reuse "$n$" 2-3 different ways.
    $endgroup$
    – Michael
    Jan 30 at 6:16










  • $begingroup$
    @Michael: Thanks! I've edited it.
    $endgroup$
    – Micheal
    Jan 30 at 6:19












  • $begingroup$
    In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
    $endgroup$
    – Michael
    Jan 30 at 6:27












  • $begingroup$
    @Michael: Okay, let me do that.
    $endgroup$
    – Micheal
    Jan 30 at 6:29










  • $begingroup$
    Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
    $endgroup$
    – John Omielan
    Jan 30 at 6:33
















1












1








1


1



$begingroup$


Let $E={1/n:ninBbb{N} }$ and define a function $f:[0,1]toBbb{R}$ by
begin{align} f(x)=begin{cases} 1,&xin E\0,&xnotin E .end{cases} end{align}
I want to show that $f$ is integrable and to compute $int^{1}_{0}f(x)dx$.



Proof of integrability.



Let $epsilon>0$ and $xin E$. Then, there exists $N$ such that $x=frac{1}{N}<frac{epsilon}{2}.$
Consider a partition $P={x_0,x_1,cdots,x_k}$ of $[0,1]$ such that
$$frac{1}{N}=x_0<x_1<cdots<x_k=1.$$
Take a refinement, $P_0={0,1/N}cup P:={t_0,t_1,cdots,t_m}$ such that $t_m-t_2<frac{1}{N^2}$.



begin{align} U(f,P_0)-L(f,P_0)&=sum^{m}_{j=1}(M_j-m_j)Delta t_j \&=sum^{m}_{j=1}M_jDelta t_j \&=M_1Delta t_1+sum^{m}_{j=2}M_jDelta t_j\&leq 1cdotfrac{1}{N}+Nsum^{m}_{j=2}Delta t_j\&< 1cdotfrac{1}{N}+Ncdotfrac{1}{N^2} \&< frac{epsilon}{2}+frac{epsilon}{2}\&=epsilon end{align}
Hence, $f$ is integrable. So, there a simple way I can compute $int^{1}_{0}f(x)dx$?










share|cite|improve this question











$endgroup$




Let $E={1/n:ninBbb{N} }$ and define a function $f:[0,1]toBbb{R}$ by
begin{align} f(x)=begin{cases} 1,&xin E\0,&xnotin E .end{cases} end{align}
I want to show that $f$ is integrable and to compute $int^{1}_{0}f(x)dx$.



Proof of integrability.



Let $epsilon>0$ and $xin E$. Then, there exists $N$ such that $x=frac{1}{N}<frac{epsilon}{2}.$
Consider a partition $P={x_0,x_1,cdots,x_k}$ of $[0,1]$ such that
$$frac{1}{N}=x_0<x_1<cdots<x_k=1.$$
Take a refinement, $P_0={0,1/N}cup P:={t_0,t_1,cdots,t_m}$ such that $t_m-t_2<frac{1}{N^2}$.



begin{align} U(f,P_0)-L(f,P_0)&=sum^{m}_{j=1}(M_j-m_j)Delta t_j \&=sum^{m}_{j=1}M_jDelta t_j \&=M_1Delta t_1+sum^{m}_{j=2}M_jDelta t_j\&leq 1cdotfrac{1}{N}+Nsum^{m}_{j=2}Delta t_j\&< 1cdotfrac{1}{N}+Ncdotfrac{1}{N^2} \&< frac{epsilon}{2}+frac{epsilon}{2}\&=epsilon end{align}
Hence, $f$ is integrable. So, there a simple way I can compute $int^{1}_{0}f(x)dx$?







real-analysis






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 30 at 8:17









YuiTo Cheng

2,1863937




2,1863937










asked Jan 30 at 5:59









MichealMicheal

26511




26511












  • $begingroup$
    Your proof seems to reuse "$n$" 2-3 different ways.
    $endgroup$
    – Michael
    Jan 30 at 6:16










  • $begingroup$
    @Michael: Thanks! I've edited it.
    $endgroup$
    – Micheal
    Jan 30 at 6:19












  • $begingroup$
    In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
    $endgroup$
    – Michael
    Jan 30 at 6:27












  • $begingroup$
    @Michael: Okay, let me do that.
    $endgroup$
    – Micheal
    Jan 30 at 6:29










  • $begingroup$
    Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
    $endgroup$
    – John Omielan
    Jan 30 at 6:33




















  • $begingroup$
    Your proof seems to reuse "$n$" 2-3 different ways.
    $endgroup$
    – Michael
    Jan 30 at 6:16










  • $begingroup$
    @Michael: Thanks! I've edited it.
    $endgroup$
    – Micheal
    Jan 30 at 6:19












  • $begingroup$
    In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
    $endgroup$
    – Michael
    Jan 30 at 6:27












  • $begingroup$
    @Michael: Okay, let me do that.
    $endgroup$
    – Micheal
    Jan 30 at 6:29










  • $begingroup$
    Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
    $endgroup$
    – John Omielan
    Jan 30 at 6:33


















$begingroup$
Your proof seems to reuse "$n$" 2-3 different ways.
$endgroup$
– Michael
Jan 30 at 6:16




$begingroup$
Your proof seems to reuse "$n$" 2-3 different ways.
$endgroup$
– Michael
Jan 30 at 6:16












$begingroup$
@Michael: Thanks! I've edited it.
$endgroup$
– Micheal
Jan 30 at 6:19






$begingroup$
@Michael: Thanks! I've edited it.
$endgroup$
– Micheal
Jan 30 at 6:19














$begingroup$
In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
$endgroup$
– Michael
Jan 30 at 6:27






$begingroup$
In what sense did you edit? The first line still says $x = 1/n, n in mathbb{N}$, I assume that means "$x = 1/n$ for some $n in mathbb{N}$." But your next line starts talking about "for all $n in mathbb{N}$." You need to clarify if you are using a particular $n$ that is fixed throughout, or not. (equivalently, is $x$ fixed throughout, or not).
$endgroup$
– Michael
Jan 30 at 6:27














$begingroup$
@Michael: Okay, let me do that.
$endgroup$
– Micheal
Jan 30 at 6:29




$begingroup$
@Michael: Okay, let me do that.
$endgroup$
– Micheal
Jan 30 at 6:29












$begingroup$
Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
$endgroup$
– John Omielan
Jan 30 at 6:33






$begingroup$
Your function is quite similar to the Dirichlet Function. In particular, though, your function is only $1$ at rational points of the form $1/n$ while Dirichlet's function is $1$ at all rational points. However, like with Dirichlet's function, and other similar functions like Thomae's function, the function is Riemann integrable, with the integral result being $0$ over any range, just like Greg Martin's answer states for your case.
$endgroup$
– John Omielan
Jan 30 at 6:33












1 Answer
1






active

oldest

votes


















1












$begingroup$

You proved that $0 le U(f,P_0)-L(f,P_0)<varepsilon$ whenever $P_0$ is a partition that is sufficiently fine in terms of $varepsilon$. But it's easy to see that $L(f,P_0) = 0$ for this function. So you really have proved that $0 le U(f,P_0) < varepsilon$, which is enough to conclude that the integral equals $0$.






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%2f3093156%2fif-e-1-nn-in-bbbn-and-fx-1-x-in-e-fx-0-x-notin-e-then-show%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









    1












    $begingroup$

    You proved that $0 le U(f,P_0)-L(f,P_0)<varepsilon$ whenever $P_0$ is a partition that is sufficiently fine in terms of $varepsilon$. But it's easy to see that $L(f,P_0) = 0$ for this function. So you really have proved that $0 le U(f,P_0) < varepsilon$, which is enough to conclude that the integral equals $0$.






    share|cite|improve this answer









    $endgroup$


















      1












      $begingroup$

      You proved that $0 le U(f,P_0)-L(f,P_0)<varepsilon$ whenever $P_0$ is a partition that is sufficiently fine in terms of $varepsilon$. But it's easy to see that $L(f,P_0) = 0$ for this function. So you really have proved that $0 le U(f,P_0) < varepsilon$, which is enough to conclude that the integral equals $0$.






      share|cite|improve this answer









      $endgroup$
















        1












        1








        1





        $begingroup$

        You proved that $0 le U(f,P_0)-L(f,P_0)<varepsilon$ whenever $P_0$ is a partition that is sufficiently fine in terms of $varepsilon$. But it's easy to see that $L(f,P_0) = 0$ for this function. So you really have proved that $0 le U(f,P_0) < varepsilon$, which is enough to conclude that the integral equals $0$.






        share|cite|improve this answer









        $endgroup$



        You proved that $0 le U(f,P_0)-L(f,P_0)<varepsilon$ whenever $P_0$ is a partition that is sufficiently fine in terms of $varepsilon$. But it's easy to see that $L(f,P_0) = 0$ for this function. So you really have proved that $0 le U(f,P_0) < varepsilon$, which is enough to conclude that the integral equals $0$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 30 at 6:30









        Greg MartinGreg Martin

        36.5k23565




        36.5k23565






























            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%2f3093156%2fif-e-1-nn-in-bbbn-and-fx-1-x-in-e-fx-0-x-notin-e-then-show%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

            Npm cannot find a required file even through it is in the searched directory