ArticleslgStudy

mathematics

Condition number

Condition number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Condition number rather than just read about it. In short: In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the input, and how much error in the output results from an error in the input.

Key takeaways

  • Condition number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Condition number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Condition number from memory before moving on to harder problems.

Reference excerpt

In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the input, and how much error in the output results from an error in the input. Very frequently, one is solving the inverse problem: given f(x)=y, one is solving for x, and thus the condition number of the (local) inverse must be used. The condition number is derived from the theory of propagation of uncertainty, and is formally defined as the value of the asymptotic worst-case relative change in output for a relative change in input. The "function" is the solution of a problem and the "arguments" are the data in the problem. The condition number is frequently applied to questions in linear algebra, in which case the derivative is straightforward but the error could be in many different directions, and is thus computed from the geometry of the matrix. More generally, condition numbers can be defined for non-linear functions in several variables. A problem with a low condition number is said to be well-conditioned, while a problem with a high condition number is said to be ill-conditioned. In non-mathematical terms, an ill-conditioned problem is one where, for a small change in the inputs (the independent variables) there is a large change in the answer or dependent variable. This means that the correct solution/answer to the equation becomes hard to find. The condition number is a property of the problem. Paired with the problem are any number of algorithms that can be used to solve the problem, that is, to calculate the solution. Some algorithms have a property called backward stability; in general, a backward stable algorithm can be expected to accurately solve well-conditioned problems. Numerical analysis textbooks give formulas for the condition numbers of problems and identify known backward stable algorithms. As a rule of thumb, if the condition number κ(A)=10k, then up to k digits of accuracy may be lost on top of what would be lost to the numerical method due to loss of precision from arithmetic methods. However, the condition number does not give the exact value of the maximum inaccuracy that may occur in the algorithm. It generally just bounds it with an estimate (whose computed value depends on the choice of the norm to measure the inaccuracy).

Matrices For example, the condition number associated with the linear equation Ax = b gives a bound on how inaccurate the solution x will be after approximation. Note that this is before the effects of round-off error are taken into account; conditioning is a property of the matrix, not the algorithm or floating-point accuracy of the computer used to solve the corresponding system. In particular, one should think of the condition number as being (very roughly) the rate at which the solution x will change with respect to a change in b. Thus, if the condition number is large, even a small error in b may cause a large error in x. On the other hand, if the condition number is small, then the error in x will not be much bigger than the error in b. The condition number is defined more precisely to be the maximum ratio of the relative error in x to the relative error in b. Let e be the error in b. Assuming that A is a nonsingular matrix, the error in the solution A−1b is A−1e. The ratio of the relative error in the solution to the relative error in b is

‖A−1e‖‖A−1b‖/‖e‖‖b‖=‖A−1e‖‖e‖‖b‖‖A−1b‖. The maximum value (for nonzero b and e) is then seen to be the product of the two operator norms as follows:

maxe,b≠0{‖A−1e‖‖e‖‖b‖‖A−1b‖}=maxe≠0{‖A−1e‖‖e‖}maxb≠0{‖b‖‖A−1b‖}=maxe≠0{‖A−1e‖‖e‖}maxx≠0{‖Ax‖‖x‖}=‖A−1‖‖A‖. The same definition is used for any consistent norm, i.e. one that satisfies

κ(A)=‖A−1‖‖A‖≥‖A−1A‖=1. When the condition number is exactly one (which can only happen if A is a scalar multiple of a linear isometry), then a solution algorithm can find (in principle, meaning if the algorithm introduces no errors of its own) an approximation of the solution whose precision is no worse than that of the data. However, it does not mean that the algorithm will converge rapidly to this solution, just that it will not diverge arbitrarily because of inaccuracy on the source data (backward error), provided that the forward error introduced by the algorithm does not diverge as well because of accumulating intermediate rounding errors. The condition number may also be infinite, but this implies that the problem is ill-posed (does not possess a unique, well-defined solution for each choice of data; that is, the matrix is not invertible), and no algorithm can be expected to reliably find a solution. The definition of the condition number depends on the choice of norm, as can be illustrated by two examples. If ‖⋅‖ is the matrix norm induced by the (vector) Euclidean norm (sometimes known as the L2 norm and typically denoted as ‖⋅‖2), then

κ(A)=σmax(A)σmin(A), where σmax(A) and σmin(A) are maximal and minimal singular values of A respectively. Hence:

If A is normal, then κ(A)=max⁡{|λ(A)|}min⁡{|λ(A)|}, where λmax(A) and λmin(A) are maximal and minimal (by moduli) eigenvalues of A respectively. If A is unitary, then κ(A)=1. The condition number with respect to L2 arises so often in numerical linear algebra that it is given a name, the condition number of a matrix. If ‖⋅‖ is the matrix norm induced by the L∞ (vector) norm and A is lower triangular non-singular (i.e. aii≠0 for all i), then

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Condition number

Start with the simplest possible case. Write down what Condition number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Condition number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Condition number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Condition number

In research
Condition number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Condition number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Condition number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Matrices (mathematics), Numerical analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Condition number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Condition number” →

How to study Condition number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Condition number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Condition number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Condition number in simple terms?

In numerical analysis, the condition number of a function measures how much the output value of the function can change for a small change in the input argument. This is used to measure how sensitive a function is to changes or errors in the input, and how much error in the output results from an e…

Why does Condition number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Condition number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Condition number.

Tags

  • Matrices (mathematics)
  • Numerical analysis

Keep exploring