Intuition that $A=xin M$ is open given $f,g$ continuous

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











up vote
4
down vote

favorite
1












Let $M,N$ be two metric spaces and $f,g:Mrightarrow N$ continuous functions. Show that the set $A=xin M$ is open in $M$.



Well, I understand that if $h(x)=d_N(f(x),g(x))$ it is only left to prove, that $h$ is continuous and then the set $A=xin M$ is open. My question is, what was the 'mind process' to get to the conclusion that I should use $h$ instead of something else to prove that proposition. What was the intuition behind creating that function.



I hope you guys understand what Im trying to ask, thanks so much in advance.







share|cite|improve this question





















  • Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
    – MPW
    Aug 2 at 22:58






  • 1




    Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
    – Cornman
    Aug 2 at 23:01










  • I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
    – fonini
    Aug 2 at 23:37






  • 2




    In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
    – fonini
    Aug 2 at 23:39











  • I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
    – Henricus V.
    Aug 3 at 3:18














up vote
4
down vote

favorite
1












Let $M,N$ be two metric spaces and $f,g:Mrightarrow N$ continuous functions. Show that the set $A=xin M$ is open in $M$.



Well, I understand that if $h(x)=d_N(f(x),g(x))$ it is only left to prove, that $h$ is continuous and then the set $A=xin M$ is open. My question is, what was the 'mind process' to get to the conclusion that I should use $h$ instead of something else to prove that proposition. What was the intuition behind creating that function.



I hope you guys understand what Im trying to ask, thanks so much in advance.







share|cite|improve this question





















  • Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
    – MPW
    Aug 2 at 22:58






  • 1




    Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
    – Cornman
    Aug 2 at 23:01










  • I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
    – fonini
    Aug 2 at 23:37






  • 2




    In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
    – fonini
    Aug 2 at 23:39











  • I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
    – Henricus V.
    Aug 3 at 3:18












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





Let $M,N$ be two metric spaces and $f,g:Mrightarrow N$ continuous functions. Show that the set $A=xin M$ is open in $M$.



Well, I understand that if $h(x)=d_N(f(x),g(x))$ it is only left to prove, that $h$ is continuous and then the set $A=xin M$ is open. My question is, what was the 'mind process' to get to the conclusion that I should use $h$ instead of something else to prove that proposition. What was the intuition behind creating that function.



I hope you guys understand what Im trying to ask, thanks so much in advance.







share|cite|improve this question













Let $M,N$ be two metric spaces and $f,g:Mrightarrow N$ continuous functions. Show that the set $A=xin M$ is open in $M$.



Well, I understand that if $h(x)=d_N(f(x),g(x))$ it is only left to prove, that $h$ is continuous and then the set $A=xin M$ is open. My question is, what was the 'mind process' to get to the conclusion that I should use $h$ instead of something else to prove that proposition. What was the intuition behind creating that function.



I hope you guys understand what Im trying to ask, thanks so much in advance.









share|cite|improve this question












share|cite|improve this question




share|cite|improve this question








edited Aug 3 at 5:41









user21820

35.7k440136




35.7k440136









asked Aug 2 at 22:51









dshernandez

235




235











  • Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
    – MPW
    Aug 2 at 22:58






  • 1




    Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
    – Cornman
    Aug 2 at 23:01










  • I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
    – fonini
    Aug 2 at 23:37






  • 2




    In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
    – fonini
    Aug 2 at 23:39











  • I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
    – Henricus V.
    Aug 3 at 3:18
















  • Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
    – MPW
    Aug 2 at 22:58






  • 1




    Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
    – Cornman
    Aug 2 at 23:01










  • I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
    – fonini
    Aug 2 at 23:37






  • 2




    In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
    – fonini
    Aug 2 at 23:39











  • I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
    – Henricus V.
    Aug 3 at 3:18















Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
– MPW
Aug 2 at 22:58




Do you mean just $a=biff d(a,b) = 0$, or equivalently, $aneq biff d(a,b)>0$?
– MPW
Aug 2 at 22:58




1




1




Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
– Cornman
Aug 2 at 23:01




Note, that the function is called $h$ and not $h(x)$. $h(x)$ is a point in the image of $h$. Also you did not say, where $h$ is defined. Therefor something like $h: Ato B$ with $h(x)=d_N(f(x),g(x))$.
– Cornman
Aug 2 at 23:01












I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
– fonini
Aug 2 at 23:37




I think it's important to note that, in this case, you really don't need this trick; you can easily prove directly that $A=fneq g$ is open. Let $xin A$, that is, $f(x)neq g(x)$. If $x$ were not in the interior of $A$, you would be able to construct a sequence $x_n$ converging to $x$ such that $f(x_n)=g(x_n)$, and it would follow by the continuity of $f$ and $g$ that $f(x)=g(x)$. (Actually, what I did here was to show that $f=g$ is closed, which is the same anyway.)
– fonini
Aug 2 at 23:37




2




2




In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
– fonini
Aug 2 at 23:39





In the end, I believe that, as much as it's important to know the "standard tricks" and get used to them, it's also important to be able to prove these simple results using whatever method you think is intuitive for you, and then you will, little by little, acquire intuition about the standard tricks.
– fonini
Aug 2 at 23:39













I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
– Henricus V.
Aug 3 at 3:18




I remember there is a proof for this that generalised to Hausdorff spaces, and thus only using the topological properties of the metric.
– Henricus V.
Aug 3 at 3:18










3 Answers
3






active

oldest

votes

















up vote
8
down vote



accepted










This proof is what is often called a follow your nose proof --- at each step you do the only thing that you can with the given information, and you end up at the result. For this problem, it goes as follows:



  1. I observe that the goal is to prove that $A$ is open. So what am I given? All I am given is information about continuous functions from $M$ to $N$. This suggests that I will need to show that $A$ is the pre-image of an open set in under some continuous function.

  2. I need to actually find a continuous function $h$ and an open set $B$ such that $A = h^-1(B)$. Clearly, that function must be in terms of $f$ and $g$, since they are all I have to work with, and also clearly it can't be just one of them, since $A$ is defined in terms of both.

  3. So what combination of $f$ and $g$ could produce a function that has to do with $A$? Well, we haven't actually used either of the metrics $d_M$ or $d_N$ yet, so let's look there. I go back to my definition of metric space and notice that $d(a,b) > 0 iff a ne b$. I notice that $a ne b$ looks like $f(x) ne g(x)$. That is, our metric space definition says that $f(x) ne g(x) iff d_N(f(x),g(x)) > 0$. Hence, $h : M to mathbbR_ge 0$ defined as $h(x) = d_N(f(x),g(x))$ looks like it may be a good candidate for $h$.

  4. There's really no more work to do --- just verify that we followed our nose to the correct place: letting $h(x) = d_N(f(x), g(x))$, and observe that this forces $B = (0,infty)$, which we can confirm is open. And $h$ is clearly continuous. So $A$ is open!





share|cite|improve this answer






























    up vote
    6
    down vote













    If the spaces were Euclidean spaces, then you could define $h(x)=f(x)-g(x)$. Then $h$ would be continuous, its zero set would be closed, and the complement would be open. Done.



    You cannot subtract functions on general metric spaces. But since we want the zero set, then the next best thing is to use the distance in the codomain.






    share|cite|improve this answer




























      up vote
      0
      down vote













      IMO, this is sort of thing is a "basic trick" — you try it out simply because it's one of the standard things you check to see if it applies to your problem.



      Actually, there are two basic tricks here:



      • the idea of encoding "equal / not equal" via the metric

      • identifying inequality constraints between real numbers as open sets (or equality constraints as closed sets) so you can use general topological properties of such things





      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%2f2870565%2fintuition-that-a-x-in-m-space-fx-neq-gx-is-open-given-f-g-continuou%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
        8
        down vote



        accepted










        This proof is what is often called a follow your nose proof --- at each step you do the only thing that you can with the given information, and you end up at the result. For this problem, it goes as follows:



        1. I observe that the goal is to prove that $A$ is open. So what am I given? All I am given is information about continuous functions from $M$ to $N$. This suggests that I will need to show that $A$ is the pre-image of an open set in under some continuous function.

        2. I need to actually find a continuous function $h$ and an open set $B$ such that $A = h^-1(B)$. Clearly, that function must be in terms of $f$ and $g$, since they are all I have to work with, and also clearly it can't be just one of them, since $A$ is defined in terms of both.

        3. So what combination of $f$ and $g$ could produce a function that has to do with $A$? Well, we haven't actually used either of the metrics $d_M$ or $d_N$ yet, so let's look there. I go back to my definition of metric space and notice that $d(a,b) > 0 iff a ne b$. I notice that $a ne b$ looks like $f(x) ne g(x)$. That is, our metric space definition says that $f(x) ne g(x) iff d_N(f(x),g(x)) > 0$. Hence, $h : M to mathbbR_ge 0$ defined as $h(x) = d_N(f(x),g(x))$ looks like it may be a good candidate for $h$.

        4. There's really no more work to do --- just verify that we followed our nose to the correct place: letting $h(x) = d_N(f(x), g(x))$, and observe that this forces $B = (0,infty)$, which we can confirm is open. And $h$ is clearly continuous. So $A$ is open!





        share|cite|improve this answer



























          up vote
          8
          down vote



          accepted










          This proof is what is often called a follow your nose proof --- at each step you do the only thing that you can with the given information, and you end up at the result. For this problem, it goes as follows:



          1. I observe that the goal is to prove that $A$ is open. So what am I given? All I am given is information about continuous functions from $M$ to $N$. This suggests that I will need to show that $A$ is the pre-image of an open set in under some continuous function.

          2. I need to actually find a continuous function $h$ and an open set $B$ such that $A = h^-1(B)$. Clearly, that function must be in terms of $f$ and $g$, since they are all I have to work with, and also clearly it can't be just one of them, since $A$ is defined in terms of both.

          3. So what combination of $f$ and $g$ could produce a function that has to do with $A$? Well, we haven't actually used either of the metrics $d_M$ or $d_N$ yet, so let's look there. I go back to my definition of metric space and notice that $d(a,b) > 0 iff a ne b$. I notice that $a ne b$ looks like $f(x) ne g(x)$. That is, our metric space definition says that $f(x) ne g(x) iff d_N(f(x),g(x)) > 0$. Hence, $h : M to mathbbR_ge 0$ defined as $h(x) = d_N(f(x),g(x))$ looks like it may be a good candidate for $h$.

          4. There's really no more work to do --- just verify that we followed our nose to the correct place: letting $h(x) = d_N(f(x), g(x))$, and observe that this forces $B = (0,infty)$, which we can confirm is open. And $h$ is clearly continuous. So $A$ is open!





          share|cite|improve this answer

























            up vote
            8
            down vote



            accepted







            up vote
            8
            down vote



            accepted






            This proof is what is often called a follow your nose proof --- at each step you do the only thing that you can with the given information, and you end up at the result. For this problem, it goes as follows:



            1. I observe that the goal is to prove that $A$ is open. So what am I given? All I am given is information about continuous functions from $M$ to $N$. This suggests that I will need to show that $A$ is the pre-image of an open set in under some continuous function.

            2. I need to actually find a continuous function $h$ and an open set $B$ such that $A = h^-1(B)$. Clearly, that function must be in terms of $f$ and $g$, since they are all I have to work with, and also clearly it can't be just one of them, since $A$ is defined in terms of both.

            3. So what combination of $f$ and $g$ could produce a function that has to do with $A$? Well, we haven't actually used either of the metrics $d_M$ or $d_N$ yet, so let's look there. I go back to my definition of metric space and notice that $d(a,b) > 0 iff a ne b$. I notice that $a ne b$ looks like $f(x) ne g(x)$. That is, our metric space definition says that $f(x) ne g(x) iff d_N(f(x),g(x)) > 0$. Hence, $h : M to mathbbR_ge 0$ defined as $h(x) = d_N(f(x),g(x))$ looks like it may be a good candidate for $h$.

            4. There's really no more work to do --- just verify that we followed our nose to the correct place: letting $h(x) = d_N(f(x), g(x))$, and observe that this forces $B = (0,infty)$, which we can confirm is open. And $h$ is clearly continuous. So $A$ is open!





            share|cite|improve this answer















            This proof is what is often called a follow your nose proof --- at each step you do the only thing that you can with the given information, and you end up at the result. For this problem, it goes as follows:



            1. I observe that the goal is to prove that $A$ is open. So what am I given? All I am given is information about continuous functions from $M$ to $N$. This suggests that I will need to show that $A$ is the pre-image of an open set in under some continuous function.

            2. I need to actually find a continuous function $h$ and an open set $B$ such that $A = h^-1(B)$. Clearly, that function must be in terms of $f$ and $g$, since they are all I have to work with, and also clearly it can't be just one of them, since $A$ is defined in terms of both.

            3. So what combination of $f$ and $g$ could produce a function that has to do with $A$? Well, we haven't actually used either of the metrics $d_M$ or $d_N$ yet, so let's look there. I go back to my definition of metric space and notice that $d(a,b) > 0 iff a ne b$. I notice that $a ne b$ looks like $f(x) ne g(x)$. That is, our metric space definition says that $f(x) ne g(x) iff d_N(f(x),g(x)) > 0$. Hence, $h : M to mathbbR_ge 0$ defined as $h(x) = d_N(f(x),g(x))$ looks like it may be a good candidate for $h$.

            4. There's really no more work to do --- just verify that we followed our nose to the correct place: letting $h(x) = d_N(f(x), g(x))$, and observe that this forces $B = (0,infty)$, which we can confirm is open. And $h$ is clearly continuous. So $A$ is open!






            share|cite|improve this answer















            share|cite|improve this answer



            share|cite|improve this answer








            edited Aug 2 at 23:32


























            answered Aug 2 at 23:24









            Adam Williams

            31615




            31615




















                up vote
                6
                down vote













                If the spaces were Euclidean spaces, then you could define $h(x)=f(x)-g(x)$. Then $h$ would be continuous, its zero set would be closed, and the complement would be open. Done.



                You cannot subtract functions on general metric spaces. But since we want the zero set, then the next best thing is to use the distance in the codomain.






                share|cite|improve this answer

























                  up vote
                  6
                  down vote













                  If the spaces were Euclidean spaces, then you could define $h(x)=f(x)-g(x)$. Then $h$ would be continuous, its zero set would be closed, and the complement would be open. Done.



                  You cannot subtract functions on general metric spaces. But since we want the zero set, then the next best thing is to use the distance in the codomain.






                  share|cite|improve this answer























                    up vote
                    6
                    down vote










                    up vote
                    6
                    down vote









                    If the spaces were Euclidean spaces, then you could define $h(x)=f(x)-g(x)$. Then $h$ would be continuous, its zero set would be closed, and the complement would be open. Done.



                    You cannot subtract functions on general metric spaces. But since we want the zero set, then the next best thing is to use the distance in the codomain.






                    share|cite|improve this answer













                    If the spaces were Euclidean spaces, then you could define $h(x)=f(x)-g(x)$. Then $h$ would be continuous, its zero set would be closed, and the complement would be open. Done.



                    You cannot subtract functions on general metric spaces. But since we want the zero set, then the next best thing is to use the distance in the codomain.







                    share|cite|improve this answer













                    share|cite|improve this answer



                    share|cite|improve this answer











                    answered Aug 2 at 22:56









                    lhf

                    155k9160364




                    155k9160364




















                        up vote
                        0
                        down vote













                        IMO, this is sort of thing is a "basic trick" — you try it out simply because it's one of the standard things you check to see if it applies to your problem.



                        Actually, there are two basic tricks here:



                        • the idea of encoding "equal / not equal" via the metric

                        • identifying inequality constraints between real numbers as open sets (or equality constraints as closed sets) so you can use general topological properties of such things





                        share|cite|improve this answer

























                          up vote
                          0
                          down vote













                          IMO, this is sort of thing is a "basic trick" — you try it out simply because it's one of the standard things you check to see if it applies to your problem.



                          Actually, there are two basic tricks here:



                          • the idea of encoding "equal / not equal" via the metric

                          • identifying inequality constraints between real numbers as open sets (or equality constraints as closed sets) so you can use general topological properties of such things





                          share|cite|improve this answer























                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            IMO, this is sort of thing is a "basic trick" — you try it out simply because it's one of the standard things you check to see if it applies to your problem.



                            Actually, there are two basic tricks here:



                            • the idea of encoding "equal / not equal" via the metric

                            • identifying inequality constraints between real numbers as open sets (or equality constraints as closed sets) so you can use general topological properties of such things





                            share|cite|improve this answer













                            IMO, this is sort of thing is a "basic trick" — you try it out simply because it's one of the standard things you check to see if it applies to your problem.



                            Actually, there are two basic tricks here:



                            • the idea of encoding "equal / not equal" via the metric

                            • identifying inequality constraints between real numbers as open sets (or equality constraints as closed sets) so you can use general topological properties of such things






                            share|cite|improve this answer













                            share|cite|improve this answer



                            share|cite|improve this answer











                            answered Aug 2 at 23:00









                            Hurkyl

                            107k9112252




                            107k9112252






















                                 

                                draft saved


                                draft discarded


























                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2870565%2fintuition-that-a-x-in-m-space-fx-neq-gx-is-open-given-f-g-continuou%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Comments

                                Popular posts from this blog

                                What is the equation of a 3D cone with generalised tilt?

                                Color the edges and diagonals of a regular polygon

                                Relationship between determinant of matrix and determinant of adjoint?