Tricky question about limit of a function











up vote
0
down vote

favorite
1












In my Calculus home work assignment I get the following tricky question about the limit of following function:





Define a function $f : mathbb{R} rightarrow mathbb{R}$ as follows:




  • if $x in mathbb{R}setminusmathbb{Q}$, then $f(x) = 0$.

  • if $x in mathbb{Q}$, let $p in mathbb{Z}$, $q in mathbb{N}$ such that $x = frac{p}{q}$ is the reduced form of $x$. Then $f(x) = frac{1}{q}$.


Prove that $lim_{x rightarrow x_0} f(x) = 0$ for every $x_0 in mathbb{R}$.



Hint: You may rely on the following claim:



Let $k,d > 0$ be positive real numbers, and let $x_0 in mathbb{R}$. There is finite number of integers $p in mathbb{Z}$, $q in mathbb{N}$, such that $q leq k$ and $ left| x_0 - frac{p}{q} right| < d$.





I'm struggling with this question 3 days already. Intuitively I understand that for every $epsilon > 0$ I can choose $delta > 0$ small enough, such that $frac{1}{q} < epsilon$, but I'm really struggling to put condition on $delta$.










share|cite|improve this question
























  • Is it a typo? Did you mean that $f(x)= frac 1q$?
    – glowstonetrees
    Nov 18 at 7:20










  • yes, sorry... Just edited...
    – Yegor Yegorov
    Nov 18 at 7:22















up vote
0
down vote

favorite
1












In my Calculus home work assignment I get the following tricky question about the limit of following function:





Define a function $f : mathbb{R} rightarrow mathbb{R}$ as follows:




  • if $x in mathbb{R}setminusmathbb{Q}$, then $f(x) = 0$.

  • if $x in mathbb{Q}$, let $p in mathbb{Z}$, $q in mathbb{N}$ such that $x = frac{p}{q}$ is the reduced form of $x$. Then $f(x) = frac{1}{q}$.


Prove that $lim_{x rightarrow x_0} f(x) = 0$ for every $x_0 in mathbb{R}$.



Hint: You may rely on the following claim:



Let $k,d > 0$ be positive real numbers, and let $x_0 in mathbb{R}$. There is finite number of integers $p in mathbb{Z}$, $q in mathbb{N}$, such that $q leq k$ and $ left| x_0 - frac{p}{q} right| < d$.





I'm struggling with this question 3 days already. Intuitively I understand that for every $epsilon > 0$ I can choose $delta > 0$ small enough, such that $frac{1}{q} < epsilon$, but I'm really struggling to put condition on $delta$.










share|cite|improve this question
























  • Is it a typo? Did you mean that $f(x)= frac 1q$?
    – glowstonetrees
    Nov 18 at 7:20










  • yes, sorry... Just edited...
    – Yegor Yegorov
    Nov 18 at 7:22













up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





In my Calculus home work assignment I get the following tricky question about the limit of following function:





Define a function $f : mathbb{R} rightarrow mathbb{R}$ as follows:




  • if $x in mathbb{R}setminusmathbb{Q}$, then $f(x) = 0$.

  • if $x in mathbb{Q}$, let $p in mathbb{Z}$, $q in mathbb{N}$ such that $x = frac{p}{q}$ is the reduced form of $x$. Then $f(x) = frac{1}{q}$.


Prove that $lim_{x rightarrow x_0} f(x) = 0$ for every $x_0 in mathbb{R}$.



Hint: You may rely on the following claim:



Let $k,d > 0$ be positive real numbers, and let $x_0 in mathbb{R}$. There is finite number of integers $p in mathbb{Z}$, $q in mathbb{N}$, such that $q leq k$ and $ left| x_0 - frac{p}{q} right| < d$.





I'm struggling with this question 3 days already. Intuitively I understand that for every $epsilon > 0$ I can choose $delta > 0$ small enough, such that $frac{1}{q} < epsilon$, but I'm really struggling to put condition on $delta$.










share|cite|improve this question















In my Calculus home work assignment I get the following tricky question about the limit of following function:





Define a function $f : mathbb{R} rightarrow mathbb{R}$ as follows:




  • if $x in mathbb{R}setminusmathbb{Q}$, then $f(x) = 0$.

  • if $x in mathbb{Q}$, let $p in mathbb{Z}$, $q in mathbb{N}$ such that $x = frac{p}{q}$ is the reduced form of $x$. Then $f(x) = frac{1}{q}$.


Prove that $lim_{x rightarrow x_0} f(x) = 0$ for every $x_0 in mathbb{R}$.



Hint: You may rely on the following claim:



Let $k,d > 0$ be positive real numbers, and let $x_0 in mathbb{R}$. There is finite number of integers $p in mathbb{Z}$, $q in mathbb{N}$, such that $q leq k$ and $ left| x_0 - frac{p}{q} right| < d$.





I'm struggling with this question 3 days already. Intuitively I understand that for every $epsilon > 0$ I can choose $delta > 0$ small enough, such that $frac{1}{q} < epsilon$, but I'm really struggling to put condition on $delta$.







limits proof-explanation






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 18 at 7:21

























asked Nov 18 at 6:50









Yegor Yegorov

214




214












  • Is it a typo? Did you mean that $f(x)= frac 1q$?
    – glowstonetrees
    Nov 18 at 7:20










  • yes, sorry... Just edited...
    – Yegor Yegorov
    Nov 18 at 7:22


















  • Is it a typo? Did you mean that $f(x)= frac 1q$?
    – glowstonetrees
    Nov 18 at 7:20










  • yes, sorry... Just edited...
    – Yegor Yegorov
    Nov 18 at 7:22
















Is it a typo? Did you mean that $f(x)= frac 1q$?
– glowstonetrees
Nov 18 at 7:20




Is it a typo? Did you mean that $f(x)= frac 1q$?
– glowstonetrees
Nov 18 at 7:20












yes, sorry... Just edited...
– Yegor Yegorov
Nov 18 at 7:22




yes, sorry... Just edited...
– Yegor Yegorov
Nov 18 at 7:22










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Consider the number $n!$ (for some given $n in Bbb N$).



For each number $x_0 in Bbb R$, there must exist $a in Bbb Z$ such that



$$frac{a}{n!}<x_0 leq frac{a+1}{n!}$$



Note that $a$ depends on both $x_0$ and $n$.



Also, observe that $f(x)<frac 1n$ in each such interval $big(frac{a}{n!} , frac{a+1}{n!} big)$. Thus,



begin{align}
& forall varepsilon >0 ; ; exists ; delta = min bigg { bigg| x_0 - frac{a}{big(lceilfrac 1varepsilon rceil big)!} bigg| ;, ; bigg| x_0 - frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} bigg| bigg } >0 ; text{ such that } \
; |x-x_0|<delta & implies frac{a}{big(lceilfrac 1varepsilon rceil big)!} < x< frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} \
& implies |f(x)-0| = f(x)<frac{1}{lceil frac 1varepsilon rceil} leq varepsilon
end{align}






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: 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%2f3003218%2ftricky-question-about-limit-of-a-function%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








    up vote
    0
    down vote













    Consider the number $n!$ (for some given $n in Bbb N$).



    For each number $x_0 in Bbb R$, there must exist $a in Bbb Z$ such that



    $$frac{a}{n!}<x_0 leq frac{a+1}{n!}$$



    Note that $a$ depends on both $x_0$ and $n$.



    Also, observe that $f(x)<frac 1n$ in each such interval $big(frac{a}{n!} , frac{a+1}{n!} big)$. Thus,



    begin{align}
    & forall varepsilon >0 ; ; exists ; delta = min bigg { bigg| x_0 - frac{a}{big(lceilfrac 1varepsilon rceil big)!} bigg| ;, ; bigg| x_0 - frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} bigg| bigg } >0 ; text{ such that } \
    ; |x-x_0|<delta & implies frac{a}{big(lceilfrac 1varepsilon rceil big)!} < x< frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} \
    & implies |f(x)-0| = f(x)<frac{1}{lceil frac 1varepsilon rceil} leq varepsilon
    end{align}






    share|cite|improve this answer



























      up vote
      0
      down vote













      Consider the number $n!$ (for some given $n in Bbb N$).



      For each number $x_0 in Bbb R$, there must exist $a in Bbb Z$ such that



      $$frac{a}{n!}<x_0 leq frac{a+1}{n!}$$



      Note that $a$ depends on both $x_0$ and $n$.



      Also, observe that $f(x)<frac 1n$ in each such interval $big(frac{a}{n!} , frac{a+1}{n!} big)$. Thus,



      begin{align}
      & forall varepsilon >0 ; ; exists ; delta = min bigg { bigg| x_0 - frac{a}{big(lceilfrac 1varepsilon rceil big)!} bigg| ;, ; bigg| x_0 - frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} bigg| bigg } >0 ; text{ such that } \
      ; |x-x_0|<delta & implies frac{a}{big(lceilfrac 1varepsilon rceil big)!} < x< frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} \
      & implies |f(x)-0| = f(x)<frac{1}{lceil frac 1varepsilon rceil} leq varepsilon
      end{align}






      share|cite|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        Consider the number $n!$ (for some given $n in Bbb N$).



        For each number $x_0 in Bbb R$, there must exist $a in Bbb Z$ such that



        $$frac{a}{n!}<x_0 leq frac{a+1}{n!}$$



        Note that $a$ depends on both $x_0$ and $n$.



        Also, observe that $f(x)<frac 1n$ in each such interval $big(frac{a}{n!} , frac{a+1}{n!} big)$. Thus,



        begin{align}
        & forall varepsilon >0 ; ; exists ; delta = min bigg { bigg| x_0 - frac{a}{big(lceilfrac 1varepsilon rceil big)!} bigg| ;, ; bigg| x_0 - frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} bigg| bigg } >0 ; text{ such that } \
        ; |x-x_0|<delta & implies frac{a}{big(lceilfrac 1varepsilon rceil big)!} < x< frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} \
        & implies |f(x)-0| = f(x)<frac{1}{lceil frac 1varepsilon rceil} leq varepsilon
        end{align}






        share|cite|improve this answer














        Consider the number $n!$ (for some given $n in Bbb N$).



        For each number $x_0 in Bbb R$, there must exist $a in Bbb Z$ such that



        $$frac{a}{n!}<x_0 leq frac{a+1}{n!}$$



        Note that $a$ depends on both $x_0$ and $n$.



        Also, observe that $f(x)<frac 1n$ in each such interval $big(frac{a}{n!} , frac{a+1}{n!} big)$. Thus,



        begin{align}
        & forall varepsilon >0 ; ; exists ; delta = min bigg { bigg| x_0 - frac{a}{big(lceilfrac 1varepsilon rceil big)!} bigg| ;, ; bigg| x_0 - frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} bigg| bigg } >0 ; text{ such that } \
        ; |x-x_0|<delta & implies frac{a}{big(lceilfrac 1varepsilon rceil big)!} < x< frac{a+1}{big(lceilfrac 1varepsilon rceil big)!} \
        & implies |f(x)-0| = f(x)<frac{1}{lceil frac 1varepsilon rceil} leq varepsilon
        end{align}







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Nov 18 at 7:54

























        answered Nov 18 at 7:49









        glowstonetrees

        1,917315




        1,917315






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3003218%2ftricky-question-about-limit-of-a-function%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

            QoS: MAC-Priority for clients behind a repeater

            Ивакино (Тотемский район)

            Can't locate Autom4te/ChannelDefs.pm in @INC (when it definitely is there)