Compute the natural logarithm of any positive real number. Visualize the logarithmic curve, explore key properties, and learn about its applications in exponential growth, decay, and complex analysis.
The natural logarithm, denoted as \(\ln(x)\) or \(\log_e(x)\), is the logarithm to the base \(e\), where \(e \approx 2.718281828459045\) (Euler's number). It is the inverse function of the exponential function \(e^x\). Formally, if \(y = \ln(x)\), then \(e^y = x\).
\[ \ln(x) = y \quad \Longleftrightarrow \quad e^y = x, \quad x > 0 \]
The natural logarithm appears naturally in many areas of mathematics, science, and engineering, especially wherever growth or decay processes are described (e.g., compound interest, radioactive decay, population models). Its derivative is \(\frac{d}{dx}\ln(x) = \frac{1}{x}\), and its integral is \(\int \ln(x)\,dx = x\ln(x) - x + C\).
Our tool uses JavaScript's built-in Math.log() function, which implements the natural logarithm with double-precision floating-point accuracy (about 15–16 significant digits). The input is validated to be a positive number. For the graph, we plot \(y = \ln(x)\) over a domain that includes the input value, typically from 0.1 to 10, but extended dynamically if the input is outside this range. The curve is drawn by sampling 200 points and connecting them, with a highlighted red point at the user's \((x, \ln(x))\).
Additionally, the calculator shows the exponential form \(e^{y} = x\) and converts the natural logarithm to common logarithm (\(\log_{10}\)) and binary logarithm (\(\log_2\)) using change-of-base formulas: \(\log_{10}(x) = \ln(x)/\ln(10)\) and \(\log_2(x) = \ln(x)/\ln(2)\).
The natural logarithm was first studied by John Napier in the early 17th century, though his logarithms were not based on \(e\). The constant \(e\) was discovered later by Jacob Bernoulli while studying compound interest. Leonhard Euler formalized the relationship between exponentials and logarithms, and introduced the notation \(\ln\) for natural logarithm. The number \(e\) is sometimes called Euler's number.
| Argument \(x\) | \(\ln(x)\) | Interpretation |
|---|---|---|
| 0.0001 | -9.21034 | Very small positive → large negative log |
| 0.5 | -0.693147 | Logarithm of a fraction is negative |
| 1 | 0 | Logarithm of 1 is zero (any base) |
| e ≈ 2.71828 | 1 | Base e yields 1 |
| 10 | 2.302585 | Useful for converting to log₁₀ |
| 1000 | 6.907755 | \(\ln(1000) = 3 \ln(10)\) |
Suppose you invest $1000 at an annual interest rate of 5% compounded continuously. The amount after \(t\) years is \(A = 1000 e^{0.05t}\). To find the time required to double your money, solve \(2000 = 1000 e^{0.05t}\) → \(2 = e^{0.05t}\) → \(t = \frac{\ln(2)}{0.05} \approx 13.86\) years. Our calculator quickly verifies \(\ln(2) \approx 0.693147\), confirming the result.
The sound pressure level in decibels is given by \(L = 10 \log_{10}(I/I_0)\), where \(I_0\) is the reference intensity. If a sound has intensity 1000 times the reference, \(L = 10 \log_{10}(1000) = 30\) dB. Using natural logs, \(\log_{10}(1000) = \ln(1000)/\ln(10) \approx 6.907755 / 2.302585 = 3\). This consistency demonstrates the change-of-base property.