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:

logab=x\log_a b = x

So, logarithm is just an exponent.

Example:

23=8log28=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=NlogaN=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 logN\log N

2. Natural Logarithm

  • Base = e2.718e \approx 2.718
  • Written as lnN\ln N

Domain and Range

  • Domain of logbx\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
logb(xy)=logbx+logby\log_b (xy) = \log_b x + \log_b y
  1. Quotient Rule
logb(xy)=logbxlogby\log_b \left(\frac{x}{y}\right) = \log_b x - \log_b y
  1. Power Rule
logb(xn)=nlogbx\log_b (x^n) = n \cdot \log_b x
  1. Root Rule
logb(xn)=1nlogbx\log_b \left(\sqrt[n]{x}\right) = \frac{1}{n} \log_b x

Conversion Formulas

  1. Change of Base Formula
logbx=logkxlogkb(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
alogax=xandloga(ax)=xa^{\log_a x} = x \quad \text{and} \quad \log_a (a^x) = x

Special Values to Remember

ExpressionValue
logaa\log_a a1
loga1\log_a 10
logaax\log_a a^xxx
alogaxa^{\log_a x}xx

Conceptual Tips and Common Mistakes

MistakeCorrection
log(x+y)=logx+logy\log(x + y) = \log x + \log yOnly true for multiplication: log(xy)=logx+logy\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 — log2(32)log232\log_2 (3^2) \ne \log_2 3^2
Overusing calculatorMental simplification is often faster in exams

Visual Understanding

  • Graph of y=logbxy = \log_b x:

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


Real-World Applications

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

Examples

Example 1:

Find log216\log_2 16

log216=log2(24)=4\log_2 16 = \log_2 (2^4) = 4

Example 2:

Simplify:

log5125+log54\log_5 125 + \log_5 4 =log5(1254)=log5500= \log_5 (125 \cdot 4) = \log_5 500

Example 3:

If log102=0.3010\log_{10} 2 = 0.3010, find log108\log_{10} 8

log108=log10(23)=3log102=30.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 log381\log_3 81

log3(34)=4\log_3 (3^4) = 4

Example 5:

Solve for xx:

log2x=5x=25=32\log_2 x = 5 \Rightarrow x = 2^5 = 32