This page may be out of date. Submit any pending changes before refreshing this page.
Hide this message.

Why would you multiply a function back by its natural log? Or do something in the form of [x ln(x)] / [y ln(y)]?

3 Answers
Anthony Yeh
Anthony Yeh, Software Engineer
453 ViewsUpvoted by Yasha Berchenko-Kogan,
Sometimes this type of expression arises from integrating a function that is already logarithmic. For example:

[math]\int \ln (x) \, dx = x \ln (x) - x + C[/math]

or, put another way:

[math]\int 1 + \ln (x) \, dx = x \ln (x) + C[/math]
Vipul Naik
Vipul Naik, Mathematics Ph.D. at University of Chicago.
187 Views
For natural numbers n, n ln n is roughly the logarithm of the factorial n! which makes it relevant in many combinatorial settings (for more, see the Stirling approximation, e.g., http://en.wikipedia.org/wiki/Sti... ).

The most common application arises in computer science, where we can show that the best sorting algorithms cannot have an average case performance better than O(n ln n) (computer science uses binary rather than natural logarithms, but this is covered in the big-oh notation).

There are probably better references, but here's a starting point for sorting algorithms: the Wikipedia page http://en.wikipedia.org/wiki/Sor...
Daniel Demski
Daniel Demski, wishes quora were written in 'impersonal voice' like wikipedia so people woul...
104 Views
One reason would be in order to measure entropy, so x or y has to be a probability. -xlnx is then the entropy. Or, I should say entropy is the negative sum over all your possible x's of that value. So if the random variable X can equal 0 (tails) or 1 (heads) with .5 probability each, the total entropy is calculated as -(.5*ln(.5)+.5*ln(.5)), which is about 0.693.

http://en.wikipedia.org/wiki/Ent...

A neat thing I read about this definition recently:

http://johncarlosbaez.wordpress....

Not totally relevant, but this definition also reminds me of pH because the definition of pH is a negative of a logarithm as well; it's the negative logarithm of a concentration. Whenever people take the logarithm of a number they know is between zero and one, they tend to flip it and make it positive!