Real logarithm #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
In this file we define real.log to be the logarithm of a real number. As usual, we extend it from
its domain (0, +∞) to a globally defined function. We choose to do it so that log 0 = 0 and
log (-x) = log x.
We prove some basic properties of this function and show that it is continuous.
Tags #
logarithm, continuity
The real logarithm function, equal to the inverse of the exponential for x > 0,
to log |x| for x < 0, and to 0 for 0. We use this unconventional extension to
(-∞, 0] as it gives the formula log (x * y) = log x + log y for all nonzero x and y, and
the derivative of log is 1/x away from 0.
The real logarithm function tends to +∞ at +∞.