User:Milton Beychok/Sandbox: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Milton Beychok
No edit summary
imported>Milton Beychok
No edit summary
Line 62: Line 62:


Logarithms make lengthy numerical operations [[Logarithm#Easier_computations|easier to perform]]. The whole process is made easy by using [[Logarithm#Tables_of_logarithms|tables of logarithms]], or a [[slide rule]], antiquated now that calculators are available. Although the above practical advantages are not important for numerical work today, they are used in graphical analysis (see [[Bode plot]]).
Logarithms make lengthy numerical operations [[Logarithm#Easier_computations|easier to perform]]. The whole process is made easy by using [[Logarithm#Tables_of_logarithms|tables of logarithms]], or a [[slide rule]], antiquated now that calculators are available. Although the above practical advantages are not important for numerical work today, they are used in graphical analysis (see [[Bode plot]]).
==Bases==
The most widely used bases for logarithms are 10, the mathematical constant ''[[e (mathematical constant)|e]]'' ≈ 2.71828... and 2. When "log" is written without a base (''b'' missing from log<sub>''b''</sub>), the intent can usually be determined from context:
* [[natural logarithm]] (log<sub>''[[e (mathematical constant)|e]]</sub>'', ln, log, or Ln) in [[mathematical analysis]], [[statistics]], [[economics]] and some [[engineering]] fields.  The reasons to consider ''e'' the [[natural logarithms#Why it is called "natural"|''natural'']] base for logarithms, though perhaps not obvious, are numerous and compelling.
* [[common logarithm]] (log<sub>10</sub> or simply log; sometimes lg) in various [[engineering]] fields, especially for power levels and power ratios, such as acoustical [[sound pressure]], and in logarithm [[Mathematical table|table]]s to be used to simplify hand calculations
* [[binary logarithm]] (log<sub>2</sub>; sometimes lg, lb, or ld), in [[computer science]] and [[information theory]]
* [[indefinite logarithm]] (Log or [log&nbsp;] or simply log) when the base is irrelevant, e.g. in [[computational complexity theory|complexity theory]] when describing the asymptotic behavior of [[algorithm]]s in [[big O notation]].
To avoid confusion, it is best to specify the base if there is any chance of misinterpretation.
===Other notations===
The notation "ln(''x'')" invariably means log<sub>e</sub>(''x''), i.e., the [[natural logarithm]] of ''x'', but the implied base for "log(''x'')" varies by discipline:
* Mathematicians understand "log(''x'')" to mean log<sub>e</sub>(''x''). Calculus textbooks will occasionally write "lg(''x'')" to represent "log<sub>10</sub>(''x'')".
* Many engineers, biologists, astronomers, and some others write only "ln(''x'')" or "log<sub>e</sub>(''x'')" when they mean the natural logarithm of ''x'', and take "log(''x'')" to mean log<sub>10</sub>(''x'') or, in [[computer science]], [[binary logarithm|log<sub>2</sub>]](''x'').
* On most calculators, the LOG button is log<sub>10</sub>(''x'') and LN is log<sub>e</sub>(''x'').
* In most commonly used computer [[programming language]]s, including [[C (programming language)|C]], [[C++]], [[Java (programming language)|Java]], <!--[[Pascal programming language|Pascal]], -->[[Fortran]], [[Ruby (programming language)|Ruby]], and [[BASIC programming language|BASIC]], the "log" function returns the natural logarithm. The base-10 function, if it is available, is generally "log10."
* Some people use Log(''x'') (capital ''L'') to mean log<sub>10</sub>(''x''), and use log(''x'') with a lowercase ''l'' to mean log<sub>''e''</sub>(''x'').
* The notation Log(''x'') is also used by mathematicians to denote the [[principal branch]] of the (natural) logarithm function.
* In some European countries, a frequently used notation is <sup>''b''</sup>log(''x'') instead of log<sub>''b''</sub>(''x'').<ref>{{cite web
| url = http://www.mathe-online.at/mathint/lexikon/l.html
| title = "Mathematisches Lexikon" at Mateh_online.at
}}</ref>
This chaos, historically, originates from the fact that the natural logarithm has nice mathematical properties (such as its [[derivative]] being 1/''x'', and having a simple definition), while the base 10 logarithms, or decimal logarithms, were more convenient for speeding calculations (back when they were used for that purpose).  Thus natural logarithms were only extensively used in fields like calculus while decimal logarithms were widely used elsewhere.
In computer science, the base 2 logarithm is sometimes written as lg(''x''), as suggested by [[Edward Reingold]] and popularized by [[Donald Knuth]].  However, lg(''x'') is also sometimes used for the common log, and lb(''x'') for the binary log.<ref name=gullberg>{{cite book | title = Mathematics: from the birth of numbers. | author =  Gullberg, Jan | publisher = W. W. Norton & Co | year = 1997 | isbn = 039304002X}}</ref>  In Russian literature, the notation lg(''x'') is also generally used for the base 10 logarithm.<ref>
{{cite web
| url = http://mathworld.wolfram.com/CommonLogarithm.html
| title = "Common Logarithm" at MathWorld
}}</ref>
In German, lg(''x'') also denotes the base 10 logarithm, while sometimes ld(''x'') or lb(''x'') is used for the base 2 logarithm.
The clear advice of the [[United States Department of Commerce]] [[National Institute of Standards and Technology]] is to follow the [[International Organization for Standardization|ISO]] standard ''Mathematical signs and symbols for use in physical sciences and technology, ISO 31-11:1992'', which suggests these notations:<ref>{{cite web | title = Guide for the Use of the International System of Units (SI) | author = B. N. Taylor | work = NIST Special Publication 811, 1995 Edition | publisher = US Department of Commerce | year = 1995 | url = http://physics.nist.gov/Pubs/SP811/sec10.html#10.1.2}}</ref>
* The notation "ln(''x'')" means log<sub>e</sub>(''x'');
* The notation "lg(''x'')" means log<sub>10</sub>(''x'');
* The notation "lb(''x'')" means log<sub>2</sub>(''x'').

Revision as of 14:05, 24 October 2008

In mathematics, the logarithm of a number to a given base is the power or exponent to which the base must be raised in order to produce the number.

For example, the logarithm of 1000 to the base 10 is 3, because 10 raised to the power of 3 is 1000; the base 2 logarithm of 32 is 5 because 2 to the power 5 is 32.

The logarithm of x to the base b is written logb(x) or, if the base is implicit, as log(x). So, for a number x, a base b and an exponent y,

An important feature of logarithms is that they reduce multiplication to addition, by the formula:

That is, the logarithm of the product of two numbers is the sum of the logarithms of those numbers. The use of logarithms to facilitate complex calculations was a significant motivation in their original development.

Properties of the logarithm

Template:Main article When x and b are restricted to positive real numbers, logb(x) is a unique real number. The magnitude of the base b must be neither 0 nor 1; the base used is typically 10, e, or 2. Logarithms are defined for real numbers and for complex numbers. [1][2]

The major property of logarithms is that they map multiplication to addition. This ability stems from the following identity:

which by taking logarithms becomes

For example,

A related property is reduction of exponentiation to multiplication. Using the identity:

it follows that c to the power p (exponentiation) is:

or, taking logarithms:

In words, to raise a number to a power p, find the logarithm of the number and multiply it by p. The exponentiated value is then the inverse logarithm of this product; that is, number to power = bproduct.

For example,

Besides reducing multiplication operations to addition, and exponentiation to multiplication, logarithms reduce division to subtraction, and roots to division. For example,

Logarithms make lengthy numerical operations easier to perform. The whole process is made easy by using tables of logarithms, or a slide rule, antiquated now that calculators are available. Although the above practical advantages are not important for numerical work today, they are used in graphical analysis (see Bode plot).

Bases

The most widely used bases for logarithms are 10, the mathematical constant e ≈ 2.71828... and 2. When "log" is written without a base (b missing from logb), the intent can usually be determined from context:

To avoid confusion, it is best to specify the base if there is any chance of misinterpretation.

Other notations

The notation "ln(x)" invariably means loge(x), i.e., the natural logarithm of x, but the implied base for "log(x)" varies by discipline:

  • Mathematicians understand "log(x)" to mean loge(x). Calculus textbooks will occasionally write "lg(x)" to represent "log10(x)".
  • Many engineers, biologists, astronomers, and some others write only "ln(x)" or "loge(x)" when they mean the natural logarithm of x, and take "log(x)" to mean log10(x) or, in computer science, log2(x).
  • On most calculators, the LOG button is log10(x) and LN is loge(x).
  • Some people use Log(x) (capital L) to mean log10(x), and use log(x) with a lowercase l to mean loge(x).
  • The notation Log(x) is also used by mathematicians to denote the principal branch of the (natural) logarithm function.
  • In some European countries, a frequently used notation is blog(x) instead of logb(x).[3]

This chaos, historically, originates from the fact that the natural logarithm has nice mathematical properties (such as its derivative being 1/x, and having a simple definition), while the base 10 logarithms, or decimal logarithms, were more convenient for speeding calculations (back when they were used for that purpose). Thus natural logarithms were only extensively used in fields like calculus while decimal logarithms were widely used elsewhere.

In computer science, the base 2 logarithm is sometimes written as lg(x), as suggested by Edward Reingold and popularized by Donald Knuth. However, lg(x) is also sometimes used for the common log, and lb(x) for the binary log.[4] In Russian literature, the notation lg(x) is also generally used for the base 10 logarithm.[5] In German, lg(x) also denotes the base 10 logarithm, while sometimes ld(x) or lb(x) is used for the base 2 logarithm.

The clear advice of the United States Department of Commerce National Institute of Standards and Technology is to follow the ISO standard Mathematical signs and symbols for use in physical sciences and technology, ISO 31-11:1992, which suggests these notations:[6]

  • The notation "ln(x)" means loge(x);
  • The notation "lg(x)" means log10(x);
  • The notation "lb(x)" means log2(x).
  1. In general, x and b both can be complex numbers; see Kwok below, and imaginary-base logarithms.
  2. Yue Kuen Kwok (2002). Applied complex variables for scientists and engineers. Cambridge MA: Cambridge University Press. ISBN 0521004624. 
  3. "Mathematisches Lexikon" at Mateh_online.at.
  4. Gullberg, Jan (1997). Mathematics: from the birth of numbers.. W. W. Norton & Co. ISBN 039304002X. 
  5. "Common Logarithm" at MathWorld.
  6. B. N. Taylor (1995). Guide for the Use of the International System of Units (SI). NIST Special Publication 811, 1995 Edition. US Department of Commerce.