Skip to content
🎯⭐ INTERACTIVE LESSON

Logarithmic Functions

Learn step-by-step with interactive practice!

Logarithmic Functions - Complete Interactive Lesson

Part 1: What a Logarithm Really Is

🪵 Logarithmic Functions

Part 1 of 5 — What a Logarithm Really Is


Topics in This Part

Section
Logarithms Undo Exponents
The Definition: log ⇄ exponent
Evaluating Logarithms
Common Logs and Natural Logs

🔑 Key Concept: A logarithm answers one question — "What exponent do I put on the base to get this number?" Everything in this lesson grows from that single idea.

Logarithms Undo Exponents

You already know how to read 23=82^3 = 8 — "22 to the power 33 equals 88."

A logarithm flips that around. It starts with the answer (88) and asks for the exponent:

log⁡28=3⟺23=8\log_2 8 = 3 \quad\Longleftrightarrow\quad 2^3 = 8

Read log⁡28=3\log_2 8 = 3 as "the log, base 22, of 88 is 33" — meaning 22 raised to the 33 gives 88.

You're givenYou wantTool
base & exponentthe resultexponent: 23=?2^3 = ?
base & resultthe exponentlogarithm: log⁡28=?\log_2 8 = ?

🔑 Key Idea: A log is an exponent. The expression log⁡bx\log_b x literally equals the power you raise bb to in order to reach xx.

The Definition

This is the most important line in the whole lesson — memorize it:

log⁡bx=y⟺by=x(b>0,  b≠1,  x>0)\log_b x = y \quad\Longleftrightarrow\quad b^y = x \qquad (b > 0,\; b \ne 1,\; x > 0)

  • bb is the base (same base in both forms)
  • yy is the exponent — and also the value of the log
  • xx is the result (the number inside the log, called the argument)

Switching Forms

Logarithmic formExponential form
log⁡381=4\log_3 81 = 434=813^4 = 81
log⁡101000=3\log_{10} 1000 = 3103=100010^3 = 1000
log⁡5125=−2\log_5 \frac{1}{25} = -25−2=1255^{-2} = \frac{1}{25}

💡 Trick to remember: the base of the log becomes the base of the power, and the answer of the log becomes the exponent. The argument is left over on the other side.

Switch Between Forms 🔽

Match each logarithm to its equivalent exponential equation.

Evaluating a Logarithm

To find log⁡bx\log_b x by hand, ask: "bb to what power gives xx?"

Example: log⁡232\log_2 32

22 to the power what equals 3232? Since 25=322^5 = 32, the answer is 5\boxed{5}.

Example: log⁡319\log_3 \frac{1}{9}

33 to the power what equals 19\frac{1}{9}? Since 3−2=193^{-2} = \frac{1}{9}, the answer is −2\boxed{-2}.

Two Logs You Should Know Instantly

log⁡b1=0(because b0=1)log⁡bb=1(because b1=b)\log_b 1 = 0 \quad (\text{because } b^0 = 1) \qquad\qquad \log_b b = 1 \quad (\text{because } b^1 = b)

⚠️ Watch out: the argument of a log must be positive. There is no real value for log⁡2(−8)\log_2(-8) or log⁡20\log_2 0 — no power of 22 is ever negative or zero.

Evaluate Each Log 🧮

Ask "the base to what power gives the argument?" Enter the value.

1) log⁡264= ?\log_2 64 = \,? 2) log⁡5125= ?\log_5 125 = \,? 3) log⁡4116= ?\log_4 \dfrac{1}{16} = \,?

Common Logs and Natural Logs

Two bases are so common they get shorthand notation:

NameBaseWrittenMeans
Common log1010log⁡x\log xlog⁡10x\log_{10} x
Natural loge≈2.718e \approx 2.718ln⁡x\ln xlog⁡ex\log_e x

When you see log⁡x\log x with no base, assume base 1010. When you see ln⁡x\ln x, the base is the constant ee.

log⁡100=2(102=100)ln⁡e=1(e1=e)\log 100 = 2 \quad (10^2 = 100) \qquad\qquad \ln e = 1 \quad (e^1 = e)

💡 Your calculator has dedicated log⁡\boxed{\log} and ln⁡\boxed{\ln} keys — that's why these two bases are special. We'll use them in Part 4 to evaluate any base.

Concept Check 🎯

Part 2: The Graph & Its Inverse

🪵 Logarithmic Functions

Part 2 of 5 — The Graph & Its Inverse


🔑 The Idea: The logarithm function y=log⁡bxy = \log_b x is the mirror image of the exponential y=bxy = b^x across the line y=xy = x. Understanding that inverse relationship explains the entire shape — its domain, its asymptote, everything.

Logs and Exponentials Are Inverses

y=bxy = b^x and y=log⁡bxy = \log_b x undo each other. Feed the output of one into the other and you get back where you started:

log⁡b(bx)=xblog⁡bx=x\log_b(b^x) = x \qquad\qquad b^{\log_b x} = x

Because they're inverses, their graphs are reflections across the line y=xy = x, and their key points swap coordinates:

Point on y=2xy = 2^xReflected point on y=log⁡2xy = \log_2 x
(0,1)(0, 1)(1,0)(1, 0)
(1,2)(1, 2)(2,1)(2, 1)
(3,8)(3, 8)(8,3)(8, 3)
(−1,12)(-1, \frac{1}{2})(12,−1)(\frac{1}{2}, -1)

💡 To plot y=log⁡bxy = \log_b x fast: take any easy point on y=bxy = b^x and flip its coordinates.

Features of y=log⁡bxy = \log_b x (with b>1b > 1)

y=log⁡bxy = \log_b x

FeatureValueWhy
Domainx>0x > 0you can only take a log of a positive number
Rangeall real numbersthe exponent can be any value
Vertical asymptotex=0x = 0 (the yy-axis)as x→0+x \to 0^+, y→−∞y \to -\infty
xx-intercept(1,0)(1, 0)log⁡b1=0\log_b 1 = 0 for every base
Behaviorincreasinglarger xx ⇒ larger exponent

The curve passes through (1,0)(1, 0) and (b,1)(b, 1), rises slowly forever to the right, and plunges toward −∞-\infty as xx approaches 00.

⚠️ Domain trap: the graph never touches or crosses the yy-axis. There is no point at x=0x = 0 or for any negative xx.

Read the Graph 🔽

Use the features of y=log⁡bxy = \log_b x (base b>1b > 1).

Finding the Inverse Algebraically

Because exponentials and logs are inverses, you can find one from the other by swapping xx and yy.

Example: inverse of y=3xy = 3^x

  1. Swap xx and yy:   x=3y\;x = 3^y
  2. Rewrite in log form (the definition!):   y=log⁡3x\;y = \log_3 x

So the inverse of y=3xy = 3^x is y=log⁡3xy = \log_3 x. ✓

Example: inverse of y=log⁡5xy = \log_5 x

  1. Swap:   x=log⁡5y\;x = \log_5 y
  2. Rewrite in exponential form:   y=5x\;y = 5^x

🔑 Key move: converting between log and exponential form (Part 1) is the tool for finding inverses.

Concept Check 🎯

The Coordinate-Flip Shortcut

Putting the inverse idea to work: every point you know on y=bxy = b^x gives you a point on y=log⁡bxy = \log_b x for free — just swap the coordinates.

Known on y=3xy = 3^xFlip → on y=log⁡3xy = \log_3 x
(0,1)(0, 1)(1,0)(1, 0)
(1,3)(1, 3)(3,1)(3, 1)
(2,9)(2, 9)(9,2)(9, 2)

💡 No tables of values needed — reflecting across y=xy = x does the work. Let's try one.

Flip the Coordinates 🧮

The point (2,9)(2, 9) lies on y=3xy = 3^x because 32=93^2 = 9. Reflecting across y=xy = x gives a point on y=log⁡3xy = \log_3 x.

1) The reflected point on y=log⁡3xy = \log_3 x has xx-coordinate = ?= \,? 2) That same reflected point has yy-coordinate = ?= \,? 3) Evaluate directly: log⁡39= ?\log_3 9 = \,?

Part 3: The Laws of Logarithms

🪵 Logarithmic Functions

Part 3 of 5 — The Laws of Logarithms


🔑 Why it matters: Logs turn multiplication into addition and powers into multiplication. These three laws are the engine behind solving equations (Part 5) and were how people multiplied huge numbers before calculators existed.

The Three Laws

For the same base bb (with M,N>0M, N > 0):

LawRuleIn words
Productlog⁡b(MN)=log⁡bM+log⁡bN\log_b(MN) = \log_b M + \log_b Nlog of a product = sum of logs
Quotientlog⁡b ⁣(MN)=log⁡bM−log⁡bN\log_b\!\left(\dfrac{M}{N}\right) = \log_b M - \log_b Nlog of a quotient = difference of logs
Powerlog⁡b(Mp)=p log⁡bM\log_b(M^p) = p\,\log_b Man exponent comes out front as a multiplier

Where they come from: logs are exponents, and exponents add when you multiply powers. Since bx⋅by=bx+yb^x \cdot b^y = b^{x+y}, taking logs turns that product into the sum x+yx + y.

⚠️ The #1 mistake: these laws apply to logs of products and quotients, not to products or sums of logs themselves. In particular: log⁡b(M+N)≠log⁡bM+log⁡bNlog⁡bMlog⁡bN≠log⁡b ⁣(MN)\log_b(M + N) \ne \log_b M + \log_b N \qquad \frac{\log_b M}{\log_b N} \ne \log_b\!\left(\frac{M}{N}\right)

Expanding a Logarithm

"Expanding" means breaking one log into a sum/difference of simpler logs.

Example: expand log⁡2(8x)\log_2(8x)

log⁡2(8x)=log⁡28+log⁡2x=3+log⁡2x\log_2(8x) = \log_2 8 + \log_2 x = 3 + \log_2 x

(Product rule, then evaluate log⁡28=3\log_2 8 = 3.)

Example: expand log⁡5 ⁣(x3y)\log_5\!\left(\dfrac{x^3}{y}\right)

log⁡5 ⁣(x3y)=log⁡5x3−log⁡5y=3log⁡5x−log⁡5y\log_5\!\left(\frac{x^3}{y}\right) = \log_5 x^3 - \log_5 y = 3\log_5 x - \log_5 y

(Quotient rule first, then the power rule pulls the 33 out front.)

💡 Order of operations, reversed: when expanding, handle the product/quotient first (outermost operation), then bring down any exponents with the power rule.

Pick the Right Law 🔽

Choose the correctly expanded form of each logarithm.

Condensing a Logarithm

"Condensing" runs the laws in reverse: combine several logs into a single log. This is the form you need before solving an equation.

Example: condense log⁡34+log⁡37\log_3 4 + \log_3 7

log⁡34+log⁡37=log⁡3(4⋅7)=log⁡328\log_3 4 + \log_3 7 = \log_3(4 \cdot 7) = \log_3 28

Example: condense 2log⁡x−log⁡y2\log x - \log y

First send coefficients back up as exponents (power rule in reverse), then combine:

2log⁡x−log⁡y=log⁡x2−log⁡y=log⁡ ⁣(x2y)2\log x - \log y = \log x^2 - \log y = \log\!\left(\frac{x^2}{y}\right)

🔑 Key move: to condense, coefficients must be cleared first (turn 2log⁡x2\log x into log⁡x2\log x^2) before you can merge logs with ++ or −-.

Concept Check 🎯

Combining Laws with Evaluation

The laws really shine when one of the pieces is a log you can evaluate exactly. The product/quotient rule splits the expression; then you collapse the known part to a number.

log⁡2(16x)=log⁡216+log⁡2x=4+log⁡2x\log_2(16x) = \log_2 16 + \log_2 x = 4 + \log_2 x

log⁡2 ⁣(x8)=log⁡2x−log⁡28=log⁡2x−3\log_2\!\left(\frac{x}{8}\right) = \log_2 x - \log_2 8 = \log_2 x - 3

🔑 Strategy: apply a law to separate the numeric part, then replace it with its value. The next drill mixes both moves.

Apply the Laws 🧮

Use the laws, then evaluate where possible.

1) log⁡24+log⁡28=log⁡2?  \log_2 4 + \log_2 8 = \log_2 ? \; — enter the single argument (a number). 2) Evaluate that result: log⁡24+log⁡28= ?\log_2 4 + \log_2 8 = \,? 3) log⁡b(x5)\log_b(x^5) expands to ? log⁡bx?\,\log_b x — enter the coefficient.

Part 4: Change of Base & Real-World Models

🪵 Logarithmic Functions

Part 4 of 5 — Change of Base & Real-World Models


🔑 The Payoff: Calculators only have log⁡\log (base 1010) and ln⁡\ln (base ee) keys — yet logs appear everywhere, in earthquakes, sound, and acidity. The change-of-base formula lets you evaluate any base, and these scales show why logs matter.

The Change-of-Base Formula

To evaluate a log in any base bb, rewrite it using a base your calculator knows:

log⁡bx=log⁡xlog⁡b=ln⁡xln⁡b\log_b x = \frac{\log x}{\log b} = \frac{\ln x}{\ln b}

You may use either common log or natural log on top and bottom — just be consistent.

Example: log⁡250\log_2 50

log⁡250=ln⁡50ln⁡2≈3.9120.693≈5.644\log_2 50 = \frac{\ln 50}{\ln 2} \approx \frac{3.912}{0.693} \approx 5.644

Sanity check: 25=322^5 = 32 and 26=642^6 = 64, so log⁡250\log_2 50 must be between 55 and 66. ✓

💡 Memory hook: "new base on the bottom." The base you're switching to (here ln⁡\ln) goes in both spots; the original base bb lands in the denominator.

Concept Check 🎯

Doing It on a Calculator

The whole procedure is three keystrokes once you've set it up:

  1. Write log⁡bx=log⁡xlog⁡b\log_b x = \dfrac{\log x}{\log b} (or use ln⁡\ln).
  2. Type the numerator log⁡x\log x, then divide by the denominator log⁡b\log b.
  3. Estimate first so you can catch an upside-down fraction.

For log⁡3100\log_3 100: since 34=813^4 = 81 and 35=2433^5 = 243, the answer must be between 44 and 55 — and indeed log⁡100log⁡3=20.477≈4.19\frac{\log 100}{\log 3} = \frac{2}{0.477} \approx 4.19. ✓

⚠️ Flipping the fraction is the classic error. The original base goes on the bottom — estimate to confirm you didn't invert it.

Change of Base 🧮

Use log⁡bx=log⁡xlog⁡b\log_b x = \dfrac{\log x}{\log b}. Round to two decimal places.

1) log⁡210= ?\log_2 10 = \,? (use log⁡10=1\log 10 = 1, log⁡2≈0.301\log 2 \approx 0.301) 2) log⁡464= ?\log_4 64 = \,? (this one is exact — a whole number)

Why Logs Run on Real Scales

Several famous measurement scales are logarithmic — each whole step means a 10×10\times jump, so logs compress enormous ranges into small numbers.

ScaleMeasuresFormula
Richterearthquake energyM=log⁡ ⁣(II0)M = \log\!\left(\dfrac{I}{I_0}\right)
Decibelsound loudnessL=10log⁡ ⁣(II0)L = 10\log\!\left(\dfrac{I}{I_0}\right)
pHaciditypH=−log⁡[H+]\text{pH} = -\log[\text{H}^+]

Earthquake Example

A magnitude-66 quake is not twice a magnitude-33 — because each unit is a power of 1010:

106103=106−3=103=1000\frac{10^6}{10^3} = 10^{6-3} = 10^3 = 1000

A magnitude-66 quake is 10001000 times as intense as a magnitude-33.

⚠️ Don't read these scales linearly. Going from pH 55 to pH 33 is 10(5−3)=10010^{(5-3)} = 100 times more acidic, not "a little" more.

Logarithmic Scales 🔽

Each step on these scales is a factor of 1010.

Working the pH Formula

Chemists measure acidity with pH=−log⁡[H+]\text{pH} = -\log[\text{H}^+], where [H+][\text{H}^+] is the hydrogen-ion concentration in moles per liter.

Because concentrations are tiny powers of 1010, the log makes them friendly. When [H+]=10−n[\text{H}^+] = 10^{-n}:

pH=−log⁡(10−n)=−(−n)=n\text{pH} = -\log(10^{-n}) = -(-n) = n

So the pH is simply the positive version of the exponent. A neutral solution sits at pH 77; lower is acidic, higher is basic.

💡 You'll use log⁡(10k)=k\log(10^k) = k — one of the cleanest log facts there is.

pH Calculation 🧮

Use pH=−log⁡[H+]\text{pH} = -\log[\text{H}^+], where [H+][\text{H}^+] is the hydrogen-ion concentration.

1) A solution has [H+]=10−4[\text{H}^+] = 10^{-4}. Its pH = ?= \,? 2) Pure water has [H+]=10−7[\text{H}^+] = 10^{-7}. Its pH = ?= \,?

Part 5: Solving Equations & Mastery Check

🪵 Logarithmic Functions

Part 5 of 5 — Solving Equations & Mastery Check


You can now (1) read a log as an exponent, (2) graph it as an inverse, (3) wield the three laws, and (4) change base. The final skill ties it all together: solving equations that contain logs or unknown exponents.

Solving Exponential Equations with Logs

When the unknown is in the exponent, take a log of both sides and use the power rule to bring it down.

Example: 2x=402^x = 40

ln⁡(2x)=ln⁡40  ⇒  xln⁡2=ln⁡40  ⇒  x=ln⁡40ln⁡2≈3.6890.693≈5.32\ln(2^x) = \ln 40 \;\Rightarrow\; x\ln 2 = \ln 40 \;\Rightarrow\; x = \frac{\ln 40}{\ln 2} \approx \frac{3.689}{0.693} \approx 5.32

Sanity check: 25=322^5 = 32 and 26=642^6 = 64, so x≈5.32x \approx 5.32 is reasonable. ✓

🔑 The key move: the power rule turns ln⁡(2x)\ln(2^x) into xln⁡2x\ln 2, freeing the exponent so you can divide for xx.

Solving Logarithmic Equations

When the unknown is inside a log, condense to a single log, then convert to exponential form.

Example: log⁡2(x)=5\log_2(x) = 5

Convert to exponential form (the definition):   x=25=32\;x = 2^5 = 32.

Example: log⁡3(x−1)=2\log_3(x - 1) = 2

x−1=32=9  ⇒  x=10x - 1 = 3^2 = 9 \;\Rightarrow\; x = 10

⚠️ Always check for extraneous solutions. A log's argument must stay positive. Substitute back: log⁡3(10−1)=log⁡39=2\log_3(10 - 1) = \log_3 9 = 2 ✓. If a solution made any argument ≤0\le 0, you would reject it.

Order the Solution 🔽

You're solving log⁡2(x−3)=4\log_2(x - 3) = 4. Choose what happens at each stage.

Quick Reference

GoalKey move
Read log⁡bx\log_b x"bb to what power gives xx?"
Switch formslog⁡bx=y⇔by=x\log_b x = y \Leftrightarrow b^y = x
Product / Quotientlog⁡MN=log⁡M+log⁡N\log MN = \log M + \log N; log⁡MN=log⁡M−log⁡N\log \frac{M}{N} = \log M - \log N
Powerlog⁡(Mp)=plog⁡M\log(M^p) = p\log M
Change baselog⁡bx=ln⁡xln⁡b\log_b x = \dfrac{\ln x}{\ln b}
Solve bx=kb^x = kx=ln⁡kln⁡bx = \dfrac{\ln k}{\ln b}
Solve log⁡b( ⋅ )=c\log_b(\,\cdot\,) = cconvert to bcb^c, then check the argument >0> 0

💡 Two identities cover most quick evaluations: log⁡b1=0\log_b 1 = 0 and log⁡bb=1\log_b b = 1.

Solve It 🧮

1) log⁡5(x)=3  ⇒  x= ?\log_5(x) = 3 \;\Rightarrow\; x = \,? 2) log⁡2(x+5)=4  ⇒  x= ?\log_2(x + 5) = 4 \;\Rightarrow\; x = \,? 3) 10x=1000  ⇒  x= ?10^x = 1000 \;\Rightarrow\; x = \,?

Two Traps to Avoid

Before the mixed set, lock in the two mistakes that sink the most students:

⚠️ Trap 1 — dropping the check. After solving a log equation, substitute back and confirm every argument is positive. Reject any root that makes a log's argument ≤0\le 0.

⚠️ Trap 2 — confusing the two equation types. If the unknown is in the exponent (bx=kb^x = k), take a log. If the unknown is inside the log (log⁡b(⋅)=c\log_b(\cdot) = c), convert to exponential form. Pick the move that frees the variable.

Mixed Practice 🎯

You've Mastered Logarithms

From a single idea — a log is an exponent — you built the whole toolkit:

  • Read & switch forms: log⁡bx=y⇔by=x\log_b x = y \Leftrightarrow b^y = x
  • Graph: the inverse of bxb^x, domain x>0x > 0, asymptote at x=0x = 0
  • Laws: product → sum, quotient → difference, power → coefficient
  • Change of base and real-world scales (Richter, decibels, pH)
  • Solve exponential and logarithmic equations (and check for extraneous roots)

🔑 One last time: when in doubt, rewrite the log as an exponent. That move unlocks almost everything. Now finish strong on the Exit Quiz.

Exit Quiz ✅

Answer all three to finish the lesson.