Logarithm as Inverse of Exponential

April 12, 2026

Problem

Show y=2^x and y=log₂(x) as reflections across y=x. The log "undoes" the exponential.

Explanation

The logarithm "undoes" the exponential

log⁡b(x)\log_b(x) answers: "What power of bb gives xx?" It's the inverse of bxb^x:

y=bx  ⟺  x=log⁡b(y)y = b^x \iff x = \log_b(y)

Key relationships

  • log⁡b(b)=1\log_b(b) = 1 (what power of bb gives bb? Answer: 1)
  • log⁡b(1)=0\log_b(1) = 0 (what power of bb gives 1? Answer: 0)
  • blog⁡b(x)=xb^{\log_b(x)} = x (they cancel — inverse functions)
  • log⁡b(bx)=x\log_b(b^x) = x (same cancellation)

Graphical relationship

The graphs of y=bxy = b^x and y=log⁡b(x)y = \log_b(x) are mirror images across the line y=xy = x. Every point (a,b)(a, b) on the exponential corresponds to (b,a)(b, a) on the logarithm.

Key features of y=log⁡b(x)y = \log_b(x)

  • Domain: x>0x > 0 only (can't take log of zero or negative)
  • x-intercept: (1,0)(1, 0) because log⁡b(1)=0\log_b(1) = 0
  • Vertical asymptote: x=0x = 0 (the y-axis)
  • Passes through: (b,1)(b, 1) because log⁡b(b)=1\log_b(b) = 1

Try it in the visualization

Both y=bxy = b^x and y=log⁡b(x)y = \log_b(x) are graphed with the y=xy = x mirror line. Corresponding points are connected by dashed lines showing the (a,b)↔(b,a)(a,b) \leftrightarrow (b,a) reflection. Adjust bb to see different bases. Graphically, the log curve is the exponential curve reflected across the line y=xy = x.

Interactive Visualization

Parameters

2.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Logarithm as Inverse of Exponential | MathSpin