Is division ill-conditioned when divisor is close to zero?












1












$begingroup$


My intuition is that division of real numbers is ill-conditioned when divisor is close to zero. Is this intuition correct?










share|cite|improve this question











$endgroup$

















    1












    $begingroup$


    My intuition is that division of real numbers is ill-conditioned when divisor is close to zero. Is this intuition correct?










    share|cite|improve this question











    $endgroup$















      1












      1








      1





      $begingroup$


      My intuition is that division of real numbers is ill-conditioned when divisor is close to zero. Is this intuition correct?










      share|cite|improve this question











      $endgroup$




      My intuition is that division of real numbers is ill-conditioned when divisor is close to zero. Is this intuition correct?







      numerical-methods arithmetic condition-number






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Dec 8 '18 at 16:34









      MJD

      47.2k29213396




      47.2k29213396










      asked Dec 8 '18 at 16:17









      gaazkamgaazkam

      456314




      456314






















          1 Answer
          1






          active

          oldest

          votes


















          0












          $begingroup$

          No. The linear system $ax=b$ where $a not = 0$ has condition number $1$. This is as good as it gets.





          Addendum: There is more than one way to describe the conditioning of this problem. Initially, I choose to treat the problem as a standard linear system with a single unknown. Here the classical condition number as well as Skeel's condition numbers are all $1$. However, there is value in applying basic principles. We are interested in the perturbed equation
          $$
          (a + Delta a) (x + Delta x) = (b + Delta b).
          $$

          The relevant condition number is
          $$ kappa =underset{epsilon rightarrow 0_+}{lim} , sup left { frac{1}{epsilon} frac{|Delta x|}{|x|} : Big | : (a + Delta a) (x + Delta x) = (b + Delta b), : frac{|Delta a|}{|a|} leq epsilon, : frac{|Delta b|}{|b|} leq epsilon right}$$
          By direct computation we have
          $$Delta x = frac{b + Delta b}{a + Delta a} - frac{b}{a} = frac{b}{a} left(frac{1 + (Delta b)/b}{1 + (Delta a)/a} - 1right)= frac{b}{a} frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          It follows, that
          $$ frac{Delta x}{x}= frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          This implies that
          $$ frac{1}{epsilon} left| frac{Delta x}{x} right| leq frac{2}{1 - epsilon} $$
          when $epsilon < 1$. Moreover, equality is possible when $Delta a = - epsilon a$ and $Delta b = epsilon b$. It follows that $kappa = 2$. In particular, we have
          $$ left| frac{Delta x}{x} right| approx 2 epsilon$$
          and the approximation is good for small values of the relative error $epsilon$.


          The conditioning of a problem reflects the sensitivity of the solution to small relative changes to the defining parameters. In particular, large relative changes are irrelevant. We are only interested in the limit where the relative changes tend to zero.




          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            $2x$ is hardly $xpm 50% x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:59











          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%2f3031300%2fis-division-ill-conditioned-when-divisor-is-close-to-zero%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$

          No. The linear system $ax=b$ where $a not = 0$ has condition number $1$. This is as good as it gets.





          Addendum: There is more than one way to describe the conditioning of this problem. Initially, I choose to treat the problem as a standard linear system with a single unknown. Here the classical condition number as well as Skeel's condition numbers are all $1$. However, there is value in applying basic principles. We are interested in the perturbed equation
          $$
          (a + Delta a) (x + Delta x) = (b + Delta b).
          $$

          The relevant condition number is
          $$ kappa =underset{epsilon rightarrow 0_+}{lim} , sup left { frac{1}{epsilon} frac{|Delta x|}{|x|} : Big | : (a + Delta a) (x + Delta x) = (b + Delta b), : frac{|Delta a|}{|a|} leq epsilon, : frac{|Delta b|}{|b|} leq epsilon right}$$
          By direct computation we have
          $$Delta x = frac{b + Delta b}{a + Delta a} - frac{b}{a} = frac{b}{a} left(frac{1 + (Delta b)/b}{1 + (Delta a)/a} - 1right)= frac{b}{a} frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          It follows, that
          $$ frac{Delta x}{x}= frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          This implies that
          $$ frac{1}{epsilon} left| frac{Delta x}{x} right| leq frac{2}{1 - epsilon} $$
          when $epsilon < 1$. Moreover, equality is possible when $Delta a = - epsilon a$ and $Delta b = epsilon b$. It follows that $kappa = 2$. In particular, we have
          $$ left| frac{Delta x}{x} right| approx 2 epsilon$$
          and the approximation is good for small values of the relative error $epsilon$.


          The conditioning of a problem reflects the sensitivity of the solution to small relative changes to the defining parameters. In particular, large relative changes are irrelevant. We are only interested in the limit where the relative changes tend to zero.




          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            $2x$ is hardly $xpm 50% x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:59
















          0












          $begingroup$

          No. The linear system $ax=b$ where $a not = 0$ has condition number $1$. This is as good as it gets.





          Addendum: There is more than one way to describe the conditioning of this problem. Initially, I choose to treat the problem as a standard linear system with a single unknown. Here the classical condition number as well as Skeel's condition numbers are all $1$. However, there is value in applying basic principles. We are interested in the perturbed equation
          $$
          (a + Delta a) (x + Delta x) = (b + Delta b).
          $$

          The relevant condition number is
          $$ kappa =underset{epsilon rightarrow 0_+}{lim} , sup left { frac{1}{epsilon} frac{|Delta x|}{|x|} : Big | : (a + Delta a) (x + Delta x) = (b + Delta b), : frac{|Delta a|}{|a|} leq epsilon, : frac{|Delta b|}{|b|} leq epsilon right}$$
          By direct computation we have
          $$Delta x = frac{b + Delta b}{a + Delta a} - frac{b}{a} = frac{b}{a} left(frac{1 + (Delta b)/b}{1 + (Delta a)/a} - 1right)= frac{b}{a} frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          It follows, that
          $$ frac{Delta x}{x}= frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          This implies that
          $$ frac{1}{epsilon} left| frac{Delta x}{x} right| leq frac{2}{1 - epsilon} $$
          when $epsilon < 1$. Moreover, equality is possible when $Delta a = - epsilon a$ and $Delta b = epsilon b$. It follows that $kappa = 2$. In particular, we have
          $$ left| frac{Delta x}{x} right| approx 2 epsilon$$
          and the approximation is good for small values of the relative error $epsilon$.


          The conditioning of a problem reflects the sensitivity of the solution to small relative changes to the defining parameters. In particular, large relative changes are irrelevant. We are only interested in the limit where the relative changes tend to zero.




          share|cite|improve this answer











          $endgroup$













          • $begingroup$
            B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            $2x$ is hardly $xpm 50% x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:59














          0












          0








          0





          $begingroup$

          No. The linear system $ax=b$ where $a not = 0$ has condition number $1$. This is as good as it gets.





          Addendum: There is more than one way to describe the conditioning of this problem. Initially, I choose to treat the problem as a standard linear system with a single unknown. Here the classical condition number as well as Skeel's condition numbers are all $1$. However, there is value in applying basic principles. We are interested in the perturbed equation
          $$
          (a + Delta a) (x + Delta x) = (b + Delta b).
          $$

          The relevant condition number is
          $$ kappa =underset{epsilon rightarrow 0_+}{lim} , sup left { frac{1}{epsilon} frac{|Delta x|}{|x|} : Big | : (a + Delta a) (x + Delta x) = (b + Delta b), : frac{|Delta a|}{|a|} leq epsilon, : frac{|Delta b|}{|b|} leq epsilon right}$$
          By direct computation we have
          $$Delta x = frac{b + Delta b}{a + Delta a} - frac{b}{a} = frac{b}{a} left(frac{1 + (Delta b)/b}{1 + (Delta a)/a} - 1right)= frac{b}{a} frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          It follows, that
          $$ frac{Delta x}{x}= frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          This implies that
          $$ frac{1}{epsilon} left| frac{Delta x}{x} right| leq frac{2}{1 - epsilon} $$
          when $epsilon < 1$. Moreover, equality is possible when $Delta a = - epsilon a$ and $Delta b = epsilon b$. It follows that $kappa = 2$. In particular, we have
          $$ left| frac{Delta x}{x} right| approx 2 epsilon$$
          and the approximation is good for small values of the relative error $epsilon$.


          The conditioning of a problem reflects the sensitivity of the solution to small relative changes to the defining parameters. In particular, large relative changes are irrelevant. We are only interested in the limit where the relative changes tend to zero.




          share|cite|improve this answer











          $endgroup$



          No. The linear system $ax=b$ where $a not = 0$ has condition number $1$. This is as good as it gets.





          Addendum: There is more than one way to describe the conditioning of this problem. Initially, I choose to treat the problem as a standard linear system with a single unknown. Here the classical condition number as well as Skeel's condition numbers are all $1$. However, there is value in applying basic principles. We are interested in the perturbed equation
          $$
          (a + Delta a) (x + Delta x) = (b + Delta b).
          $$

          The relevant condition number is
          $$ kappa =underset{epsilon rightarrow 0_+}{lim} , sup left { frac{1}{epsilon} frac{|Delta x|}{|x|} : Big | : (a + Delta a) (x + Delta x) = (b + Delta b), : frac{|Delta a|}{|a|} leq epsilon, : frac{|Delta b|}{|b|} leq epsilon right}$$
          By direct computation we have
          $$Delta x = frac{b + Delta b}{a + Delta a} - frac{b}{a} = frac{b}{a} left(frac{1 + (Delta b)/b}{1 + (Delta a)/a} - 1right)= frac{b}{a} frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          It follows, that
          $$ frac{Delta x}{x}= frac{(Delta b)/b - (Delta a)/a}{1+(Delta a)/a}.$$
          This implies that
          $$ frac{1}{epsilon} left| frac{Delta x}{x} right| leq frac{2}{1 - epsilon} $$
          when $epsilon < 1$. Moreover, equality is possible when $Delta a = - epsilon a$ and $Delta b = epsilon b$. It follows that $kappa = 2$. In particular, we have
          $$ left| frac{Delta x}{x} right| approx 2 epsilon$$
          and the approximation is good for small values of the relative error $epsilon$.


          The conditioning of a problem reflects the sensitivity of the solution to small relative changes to the defining parameters. In particular, large relative changes are irrelevant. We are only interested in the limit where the relative changes tend to zero.





          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 9 '18 at 22:01

























          answered Dec 8 '18 at 22:44









          Carl ChristianCarl Christian

          5,4341721




          5,4341721












          • $begingroup$
            B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            $2x$ is hardly $xpm 50% x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:59


















          • $begingroup$
            B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:57










          • $begingroup$
            $2x$ is hardly $xpm 50% x$
            $endgroup$
            – gaazkam
            Dec 8 '18 at 22:59
















          $begingroup$
          B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:57




          $begingroup$
          B-but! Error of $x$ seems to grow horribly with error of $a$! Up to infinity, actually, when error of $a$ is 100%! Less extremely: when error of $a$ is 50%, error of $x$ is no less than 200%! How can this be $1$??
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:57












          $begingroup$
          When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:57




          $begingroup$
          When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:57












          $begingroup$
          $2x$ is hardly $xpm 50% x$
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:59




          $begingroup$
          $2x$ is hardly $xpm 50% x$
          $endgroup$
          – gaazkam
          Dec 8 '18 at 22:59


















          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%2f3031300%2fis-division-ill-conditioned-when-divisor-is-close-to-zero%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

          Bundesstraße 106

          Verónica Boquete

          Ida-Boy-Ed-Garten