What is a Logarithm?

A logarithm answers the question:

“To what exponent must a specific base be raised to get a certain number?”

If:

ax=ba^x = b

Then:

log⁡ab=x\log_a b = x

So, logarithm is just an exponent.

Example:

23=8⇒log⁡28=32^3 = 8 \Rightarrow \log_2 8 = 3

It tells us that 2 must be raised to 3 to get 8.


When Are Logs Used?

  • Whenever exponential growth or repeated multiplication is involved — like population growth, compound interest, computer science (algorithms), or time complexity.
  • Logarithms "reverse" exponential growth.

Logarithmic and Exponential Relationship

ax=N⇔log⁡aN=xa^x = N \quad \Leftrightarrow \quad \log_a N = x

This equivalence is the core identity. Every log can be transformed into an exponential, and vice versa.


Types of Logarithms

1. Common Logarithm

  • Base = 10
  • Written as log⁡N\log N

2. Natural Logarithm

  • Base = e≈2.718e \approx 2.718
  • Written as ln⁡N\ln N

Domain and Range

  • Domain of log⁡bx\log_b x: x>0x > 0 (logs of negative numbers or 0 are undefined in real numbers)
  • Range: All real numbers (−∞,∞)(-\infty, \infty)

Key Logarithmic Formulas

These are essential and frequently used in aptitude and competitive exams:

Basic Laws

  1. Product Rule
log⁡b(xy)=log⁡bx+log⁡by\log_b (xy) = \log_b x + \log_b y
  1. Quotient Rule
log⁡b(xy)=log⁡bx−log⁡by\log_b \left(\frac{x}{y}\right) = \log_b x - \log_b y
  1. Power Rule
log⁡b(xn)=n⋅log⁡bx\log_b (x^n) = n \cdot \log_b x
  1. Root Rule
log⁡b(xn)=1nlog⁡bx\log_b \left(\sqrt[n]{x}\right) = \frac{1}{n} \log_b x

Conversion Formulas

  1. Change of Base Formula
log⁡bx=log⁡kxlog⁡kb(for any base k, typically 10 or e)\log_b x = \frac{\log_k x}{\log_k b} \quad \text{(for any base } k \text{, typically 10 or e)}
  1. Base-Exponent Swap
alog⁡ax=xandlog⁡a(ax)=xa^{\log_a x} = x \quad \text{and} \quad \log_a (a^x) = x

Special Values to Remember

ExpressionValue
log⁡aa\log_a a1
log⁡a1\log_a 10
log⁡aax\log_a a^xxx
alog⁡axa^{\log_a x}xx

Conceptual Tips and Common Mistakes

MistakeCorrection
log⁡(x+y)=log⁡x+log⁡y\log(x + y) = \log x + \log yOnly true for multiplication: log⁡(xy)=log⁡x+log⁡y\log(xy) = \log x + \log y
Forgetting domainRemember: x>0x > 0 always
Using wrong baseBase should be consistent unless you convert it
Ignoring bracketsParentheses define scope — log⁡2(32)≠log⁡232\log_2 (3^2) \ne \log_2 3^2
Overusing calculatorMental simplification is often faster in exams

Visual Understanding

  • Graph of y=log⁡bxy = \log_b x:

    • Passes through (1, 0)
    • Increases slowly
    • Approaches −∞-\infty as x→0+x \to 0^+
    • Defined only for x>0x > 0
  • As base bb increases, the graph flattens.


Real-World Applications

  • pH Scale: pH=−log⁡10[H+]\text{pH} = -\log_{10}[H^+]
  • Decibels: dB=10log⁡10(P1P0)dB = 10 \log_{10} \left( \frac{P_1}{P_0} \right)
  • Complexity in CS: O(log⁡n)O(\log n), log⁡2\log_2 often used in binary search.

Examples

Example 1:

Find log⁡216\log_2 16

log⁡216=log⁡2(24)=4\log_2 16 = \log_2 (2^4) = 4

Example 2:

Simplify:

log⁡5125+log⁡54\log_5 125 + \log_5 4 =log⁡5(125⋅4)=log⁡5500= \log_5 (125 \cdot 4) = \log_5 500

Example 3:

If log⁡102=0.3010\log_{10} 2 = 0.3010, find log⁡108\log_{10} 8

log⁡108=log⁡10(23)=3⋅log⁡102=3⋅0.3010=0.9030\log_{10} 8 = \log_{10} (2^3) = 3 \cdot \log_{10} 2 = 3 \cdot 0.3010 = 0.9030

Example 4:

Find the value of log⁡381\log_3 81

log⁡3(34)=4\log_3 (3^4) = 4

Example 5:

Solve for xx:

log⁡2x=5⇒x=25=32\log_2 x = 5 \Rightarrow x = 2^5 = 32