Is division ill-conditioned when divisor is close to zero?
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
add a comment |
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
add a comment |
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
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
numerical-methods arithmetic condition-number
edited Dec 8 at 16:34
MJD
46.9k28207392
46.9k28207392
asked Dec 8 at 16:17
gaazkam
437314
437314
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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.
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
add a comment |
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.
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
add a comment |
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.
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.
edited Dec 9 at 22:01
answered Dec 8 at 22:44
Carl Christian
5,2691521
5,2691521
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
add a comment |
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
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$??
– gaazkam
Dec 8 at 22:57
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$??
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
When error of $a$ is "only" 50%: $frac{b}{a-frac12 a}=2frac ba = 2 x$
– gaazkam
Dec 8 at 22:57
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
$2x$ is hardly $xpm 50% x$
– gaazkam
Dec 8 at 22:59
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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