Logarithmic Functions - Graph, Properties, Examples

Logarithmic Functions - Graph, Properties, Examples

TL;DR
A logarithmic function f(x)=log⁡b(x) is the inverse of an exponential function — it answers "what power must I raise b to in order to get x?" The two most common log functions are log⁡(x) (base 10) and ln⁡(x) (base e). The graph passes through (1,0), grows without bound but slowly, has domain (0,∞), and has a vertical asymptote at x=0.

BT
Bhanzu Team Last updated on May 19, 2026 6 min read

What Is a Logarithmic Function?

A logarithmic function is a function of the form:
f(x)=log⁡b(x)
where b is the base (b>0, b≠1). It's defined by the inverse relationship:
y=log⁡b(x)⟺b^y=x
In words: log⁡b(x) is "the exponent you raise b to in order to get x."

The two most-used logarithmic functions:

The Graph of a Logarithmic Function

For f(x)=log⁡b(x) with b>1:

For 0<b<1, the graph flips vertically — decreasing instead of increasing, but with the same domain/range/asymptote.

Properties of Logarithmic Functions

The behaviour of log⁡b is governed by the same identities that hold for logarithms in general.

Algebraic Properties

Function-Specific Properties

Calculus Properties (for f(x)=ln⁡(x))

Three Worked Examples — Quick, Standard, Stretch

Quick — Evaluate a Log

Compute log⁡2(32).

Ask: 2?=32. Since 2^5=32, the answer is log⁡2(32)=5.

Standard — Solve a Log Equation

Solve log⁡3(x)=4 for x.

By definition: log⁡3(x)=4⟺x=3^4=81.

Check. log⁡3(81)=4 ✓.

Stretch — Graph Transformation

Sketch f(x)=log⁡2(x−3)+1.

Key points:

Why Do Logarithmic Functions Matter? (The Real-World GROUND)

Logarithmic functions describe how the natural world compresses and expands across enormous scales.

The logarithmic function was invented in 1614 by John Napier to simplify multiplication of large numbers.

A Worked Example — Wrong Path First

Solve log⁡2(x+1)=3.

The correct method: log⁡2(x+1)=3⟺x + 1=2^3=8, so x=7.

Check. log⁡2(7+1)=log⁡2(8)=3 ✓.

What Are the Most Common Mistakes With Logarithmic Functions?

Mistake 1: Taking the log of a non-positive number

Correct way: log⁡b(x) is undefined for x≤0.

Mistake 2: Confusing log⁡(x^2) with (log⁡x)^2

Correct way: log⁡2(x^2)=2log⁡2(x).

Mistake 3: Forgetting the asymptote

Correct way: The y-axis is a vertical asymptote.

Key Takeaways

A Practical Next Step

Try these three before moving on to exponential growth and decay.

  1. Compute log⁡5(125).
  2. Solve log⁡2(x)=5 for x.
  3. Sketch the graph of f(x)=ln(x+2).

If problem 3 felt tricky, ln(x+2) shifts the natural log graph left by 2 — vertical asymptote at x=−2.