Skip to content
๐ŸŽฏโญ INTERACTIVE LESSON

Logarithmic Functions

Learn step-by-step with interactive practice!

Logarithmic Functions - Complete Interactive Lesson

Part 1: Logs as the Inverse of Exponentials

๐Ÿ“ˆ Logarithmic Functions

Part 1 of 7 โ€” Logs as the Inverse of Exponentials


Topics in This Part

Section
What Question a Logarithm Answers
The Inverse Relationship logโกbโ‡„bx\log_b โ‡„ b^x
Converting Between Forms
Evaluating Logarithms by Hand

๐Ÿ”‘ Key Concept: A logarithm answers one question โ€” "what exponent turns the base into this number?" In AP Precalculus, the logarithmic function y=logโกbxy=\log_b x is built as the inverse of the exponential function y=bxy=b^x, and almost everything else follows from that single idea.

Logs Undo Exponentials

An exponential function takes an exponent and returns a value. A logarithm reverses that โ€” it takes a value and returns the exponent.

y=bxโŸบx=logโกbyy = b^x \quad\Longleftrightarrow\quad x = \log_b y

We require the base b>0b>0 and bโ‰ 1b\ne 1, and the input of a log must be positive.

The Two Forms Side by Side

Exponential formLogarithmic formRead as
23=82^3 = 8logโก28=3\log_2 8 = 3"log base 2 of 8 is 3"
102=10010^2 = 100logโก10100=2\log_{10} 100 = 2"log base 10 of 100 is 2"
50=15^0 = 1logโก51=0\log_5 1 = 0"log base 5 of 1 is 0"
bx=yb^x = ylogโกby=x\log_b y = x"log base bb of yy is xx"

๐Ÿ”‘ Key Idea: Because logโกbx\log_b x and bxb^x are inverses, their graphs are reflections across the line y=xy=x, and they swap domain and range: bxb^x has range (0,โˆž)(0,\infty), so logโกbx\log_b x has domain (0,โˆž)(0,\infty).

Concept Check ๐ŸŽฏ

Evaluate by Hand ๐Ÿงฎ

Ask yourself "what exponent turns the base into the input?"

1) logโก216=โ€‰?\log_2 16 = \,? 2) logโก5125=โ€‰?\log_5 125 = \,? 3) logโก319=โ€‰?\log_3 \dfrac{1}{9} = \,?

Two Special Bases

Two bases appear so often they get their own shorthand:

  • Common log โ€” base 1010, written logโกx\log x (no base shown means base 1010).
  • Natural log โ€” base eโ‰ˆ2.718e \approx 2.718, written lnโกx\ln x.

logโกx=logโก10xlnโกx=logโกex\log x = \log_{10} x \qquad\qquad \ln x = \log_e x

Quick values to know

ExpressionValueWhy
logโก1000\log 100033103=100010^3 = 1000
logโก0.01\log 0.01โˆ’2-210โˆ’2=0.0110^{-2} = 0.01
lnโกe\ln e11e1=ee^1 = e
lnโก1\ln 100e0=1e^0 = 1

๐Ÿ’ก For any base, logโกb1=0\log_b 1 = 0 (since b0=1b^0=1) and logโกbb=1\log_b b = 1 (since b1=bb^1 = b). These two facts save time on every problem.

Match the Notation ๐Ÿ”ฝ

Identify each value. Use the inverse relationship and the special-base facts.

Part 2: The Graph, Domain & Asymptote

๐Ÿ“ˆ Logarithmic Functions

Part 2 of 7 โ€” The Graph, Domain & Asymptote


๐Ÿ”‘ The Idea: Reflecting y=bxy=b^x across y=xy=x produces y=logโกbxy=\log_b x. That reflection turns the exponential's horizontal asymptote into the log's vertical asymptote, and tells you the domain at a glance.

The Shape of y=logโกbxy=\log_b x (for b>1b>1)

Because y=logโกbxy=\log_b x is the reflection of y=bxy=b^x across y=xy=x:

Featurey=bxy=b^xy=logโกbxy=\log_b x
Domain(โˆ’โˆž,โˆž)(-\infty,\infty)(0,โˆž)(0,\infty)
Range(0,โˆž)(0,\infty)(โˆ’โˆž,โˆž)(-\infty,\infty)
Asymptotehorizontal y=0y=0vertical x=0x=0
Key point(0,1)(0,1)(1,0)(1,0)
Key point(1,b)(1,b)(b,1)(b,1)

For b>1b>1 the log is increasing and concave down: it climbs forever but more and more slowly.

โš ๏ธ Domain trap: logโกbx\log_b x is only defined for x>0x>0. You can never take the log of 00 or a negative number โ€” the graph hugs the line x=0x=0 but never touches or crosses it.

End Behavior & Rate

As xโ†’0+x \to 0^+, the curve plunges: logโกbxโ†’โˆ’โˆž\log_b x \to -\infty (that's the vertical asymptote). As xโ†’โˆžx \to \infty, it rises without bound but ever more slowly: logโกbxโ†’โˆž\log_b x \to \infty.

Why "slowly"?

To increase logโก2x\log_2 x by just 11, you must double xx:

logโก28=3,logโก216=4,logโก232=5\log_2 8 = 3,\quad \log_2 16 = 4,\quad \log_2 32 = 5

Each step up costs twice as much input. This slow, decelerating growth is exactly why logs are used to compress huge ranges (decibels, pH, Richter scale).

๐Ÿ’ก A logarithmic function grows slower than every positive power of xx โ€” slower than x\sqrt{x}, slower than x0.01x^{0.01} โ€” yet it still heads to +โˆž+\infty.

Concept Check ๐ŸŽฏ

Find the Domain Boundary ๐Ÿงฎ

The argument of a log must be positive. Find the value of xx where each function's vertical asymptote sits (solve argument =0=0).

1) f(x)=logโก3(xโˆ’4)f(x)=\log_3(x-4). Asymptote at x=โ€‰?x = \,? 2) g(x)=lnโก(x+2)g(x)=\ln(x+2). Asymptote at x=โ€‰?x = \,? 3) h(x)=logโก(2xโˆ’6)h(x)=\log(2x-6). Asymptote at x=โ€‰?x = \,?

Read the Transformation ๐Ÿ”ฝ

Compare each function to the parent y=logโก2xy=\log_2 x and identify how the graph shifts.

Part 3: The Three Log Properties

๐Ÿ“ˆ Logarithmic Functions

Part 3 of 7 โ€” The Three Log Properties


๐Ÿ”‘ Why they exist: Logs turn exponents into multipliers, so the exponent rules (bmbn=bm+nb^m b^n=b^{m+n}, etc.) become log rules. These three properties let you expand, condense, and ultimately solve.

The Product, Quotient & Power Rules

For b>0,โ€‰bโ‰ 1b>0,\,b\ne 1 and positive M,NM,N:

Product:ย โ€…โ€Šlogโกb(MN)=logโกbM+logโกbN\textbf{Product: }\;\log_b(MN) = \log_b M + \log_b N Quotient:ย โ€…โ€Šlogโกbโ€‰โฃ(MN)=logโกbMโˆ’logโกbN\textbf{Quotient: }\;\log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N Power:ย โ€…โ€Šlogโกbโ€‰โฃ(Mp)=pโ€‰logโกbM\textbf{Power: }\;\log_b\!\left(M^p\right) = p\,\log_b M

Where they come from

Multiplying numbers adds their exponents, so the log of a product adds the logs. Raising to a power multiplies the exponent, so the log of a power multiplies by that power.

โš ๏ธ Top traps: logโกb(M+N)โ‰ logโกbM+logโกbN\log_b(M+N) \ne \log_b M + \log_b N, and logโกbMlogโกbNโ‰ logโกbโ€‰โฃ(MN)\dfrac{\log_b M}{\log_b N} \ne \log_b\!\left(\dfrac{M}{N}\right). The rules apply to products, quotients, and powers โ€” never to sums or differences inside one log.

Worked Example โ€” Expanding

Write logโกbx3yz\log_b \dfrac{x^3 y}{z} as a sum/difference of simpler logs.

logโกbx3yz=logโกb(x3y)โˆ’logโกbz(quotient)\log_b \frac{x^3 y}{z} = \log_b(x^3 y) - \log_b z \quad\text{(quotient)} =logโกbx3+logโกbyโˆ’logโกbz(product)= \log_b x^3 + \log_b y - \log_b z \quad\text{(product)} =3logโกbx+logโกbyโˆ’logโกbz(power)= 3\log_b x + \log_b y - \log_b z \quad\text{(power)}

Worked Example โ€” Condensing

Write 2logโกx+logโก3โˆ’logโกy2\log x + \log 3 - \log y as a single logarithm.

2logโกx+logโก3โˆ’logโกy=logโกx2+logโก3โˆ’logโกy(power)2\log x + \log 3 - \log y = \log x^2 + \log 3 - \log y \quad\text{(power)} =logโก(3x2)โˆ’logโกy(product)= \log(3x^2) - \log y \quad\text{(product)} =logโกโ€‰โฃ(3x2y)(quotient)= \log\!\left(\frac{3x^2}{y}\right) \quad\text{(quotient)}

โœ… Check: Coefficients become exponents; pluses become multiplication; minuses become division.

Concept Check ๐ŸŽฏ

Apply One Rule ๐Ÿงฎ

Use the log properties. Enter the missing number.

1) logโก2(8โ‹…4)=logโก28+logโก24=โ€‰?\log_2(8\cdot 4) = \log_2 8 + \log_2 4 = \,? 2) logโก512525=logโก5125โˆ’logโก525=โ€‰?\log_5 \dfrac{125}{25} = \log_5 125 - \log_5 25 = \,? 3) logโก394=4logโก39=โ€‰?\log_3 9^4 = 4\log_3 9 = \,?

Expand or Condense ๐Ÿ”ฝ

Part 4: Change of Base

๐Ÿ“ˆ Logarithmic Functions

Part 4 of 7 โ€” Change of Base


๐Ÿ”‘ The Problem: Your calculator only has logโก\log (base 1010) and lnโก\ln (base ee). The change-of-base formula lets you compute a log of any base using those two buttons.

The Change-of-Base Formula

For any valid bases a,ba,b and positive xx:

logโกbx=logโกaxlogโกab\log_b x = \frac{\log_a x}{\log_a b}

In practice you pick a=10a=10 or a=ea=e:

logโกbx=logโกxlogโกb=lnโกxlnโกb\log_b x = \frac{\log x}{\log b} = \frac{\ln x}{\ln b}

Worked Example: logโก250\log_2 50

logโก250=lnโก50lnโก2=3.9120.693โ‰ˆ5.644\log_2 50 = \frac{\ln 50}{\ln 2} = \frac{3.912}{0.693} \approx 5.644

Sanity check: 25=322^5 = 32 and 26=642^6 = 64, and 5050 is between them, so the answer should be between 55 and 66. โœ“

๐Ÿ’ก Memory aid: "new over new" โ€” put the log of the argument on top and the log of the old base on the bottom, both in your new (calculator) base.

Change of Base for Exact Values

Change of base also gives exact answers when the numbers cooperate.

Example: logโก832\log_8 32

Convert to base 22 (since 8=238=2^3 and 32=2532=2^5):

logโก832=logโก232logโก28=53\log_8 32 = \frac{\log_2 32}{\log_2 8} = \frac{5}{3}

Check: 85/3=(81/3)5=25=328^{5/3} = \left(8^{1/3}\right)^5 = 2^5 = 32 โœ“

Example: logโก927\log_9 27

logโก927=logโก327logโก39=32\log_9 27 = \frac{\log_3 27}{\log_3 9} = \frac{3}{2}

โœ… Choosing a base where both numbers are clean powers turns a messy log into a simple fraction.

Concept Check ๐ŸŽฏ

Exact Change of Base ๐Ÿงฎ

Rewrite each in a common base, then enter the exact value (a whole number or a fraction like 3/23/2).

1) logโก416=โ€‰?\log_4 16 = \,? 2) logโก82=โ€‰?\log_8 2 = \,? (fraction ok) 3) logโก279=โ€‰?\log_{27} 9 = \,? (fraction ok)

Set Up the Quotient ๐Ÿ”ฝ

Choose the correct change-of-base setup (use base ee).

Part 5: Solving Exponential & Logarithmic Equations

๐Ÿ“ˆ Logarithmic Functions

Part 5 of 7 โ€” Solving Exponential & Logarithmic Equations


๐Ÿ”‘ The Strategy: Logs and exponentials are inverses, so they undo each other. To free a variable stuck in an exponent, take a log; to free a variable stuck in a log, exponentiate.

Solving Exponential Equations

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

Example: 3x=203^x = 20

lnโก3x=lnโก20โ€…โ€Šโ‡’โ€…โ€Šxlnโก3=lnโก20โ€…โ€Šโ‡’โ€…โ€Šx=lnโก20lnโก3โ‰ˆ2.727\ln 3^x = \ln 20 \;\Rightarrow\; x\ln 3 = \ln 20 \;\Rightarrow\; x = \frac{\ln 20}{\ln 3} \approx 2.727

Example: 5โ‹…2x=805\cdot 2^x = 80

First isolate the exponential: 2x=162^x = 16. Then x=logโก216=4x = \log_2 16 = 4.

โš ๏ธ Isolate first. Get the exponential term alone before taking a log. You can't bring the exponent down while a coefficient is still attached by multiplication.

Solving Logarithmic Equations

When the variable is inside a log, rewrite in exponential form (or condense to a single log first).

Example: logโก2(xโˆ’1)=5\log_2(x-1) = 5

Rewrite as exponential: xโˆ’1=25=32โ‡’x=33x-1 = 2^5 = 32 \Rightarrow x = 33.

Example: logโกx+logโก(xโˆ’3)=1\log x + \log(x-3) = 1

Condense: logโก(x(xโˆ’3))=1โ‡’x(xโˆ’3)=101=10\log\big(x(x-3)\big) = 1 \Rightarrow x(x-3) = 10^1 = 10. x2โˆ’3xโˆ’10=0โ‡’(xโˆ’5)(x+2)=0โ‡’x=5ย orย x=โˆ’2x^2 - 3x - 10 = 0 \Rightarrow (x-5)(x+2) = 0 \Rightarrow x = 5 \text{ or } x=-2

โš ๏ธ Check for extraneous solutions! A log's argument must be positive. x=โˆ’2x=-2 makes logโก(โˆ’2)\log(-2) undefined, so we reject it. Only x=5x=5 is valid.

Concept Check ๐ŸŽฏ

Solve It ๐Ÿงฎ

Solve each equation. Enter the (valid) value of xx.

1) 2x=64โ€…โ€Šโ‡’โ€…โ€Šx=โ€‰?2^x = 64 \;\Rightarrow\; x = \,? 2) logโก5(x+1)=3โ€…โ€Šโ‡’โ€…โ€Šx=โ€‰?\log_5(x+1) = 3 \;\Rightarrow\; x = \,? 3) lnโกx=0โ€…โ€Šโ‡’โ€…โ€Šx=โ€‰?\ln x = 0 \;\Rightarrow\; x = \,?

Choose the First Move ๐Ÿ”ฝ

For each equation, pick the correct first step.

Part 6: Logarithmic Models & Semi-Log Plots

๐Ÿ“ˆ Logarithmic Functions

Part 6 of 7 โ€” Logarithmic Models & Semi-Log Plots


๐Ÿ”‘ The AP Connection: Logarithmic functions model the inverse of exponential growth โ€” data that rises fast then levels off. And plotting exponential data on a semi-log scale turns its curve into a straight line you can analyze.

Where Logarithmic Models Fit

A logarithmic model y=a+blnโกxy = a + b\ln x (or with logโก\log) is appropriate when the output grows quickly at first and then flattens โ€” rapid early change, diminishing returns later.

Real-world log scales

QuantityFormulaWhy a log?
Sound (decibels)L=10logโกII0L = 10\log\dfrac{I}{I_0}compresses a huge intensity range
Acidity (pH)pH=โˆ’logโก[H+]\text{pH} = -\log[\text{H}^+]concentrations span many orders of magnitude
Earthquakes (Richter)M=logโกAA0M = \log\dfrac{A}{A_0}energy varies enormously

๐Ÿ’ก Order-of-magnitude rule: because these are base-1010 logs, each unit increase means ร—10\times 10. A pH of 44 is 1010 times more acidic than pH 55; a magnitude-66 quake has 1010 times the amplitude of a magnitude-55 quake.

Semi-Log Plots Linearize Exponentials

Take an exponential model y=aโ‹…bxy = a\cdot b^x and apply logโก\log to both sides:

logโกy=logโก(aโ‹…bx)=logโกa+xlogโกb\log y = \log(a\cdot b^x) = \log a + x\log b

Let Y=logโกyY = \log y. Then

Y=(logโกb)โ€‰x+logโกaY = (\log b)\,x + \log a

That's a straight line in xx and YY! So if you plot logโกy\log y (vertical) against xx (horizontal) โ€” a semi-log plot โ€” exponential data becomes linear.

What you read offWhat it means
slope =logโกb= \log brecovers the base b=10slopeb = 10^{\text{slope}}
vertical intercept =logโกa= \log arecovers a=10intercepta = 10^{\text{intercept}}

๐Ÿ”‘ Key takeaway: Exponential data is linear under a logarithmic transformation of the output. A straight semi-log plot is the fingerprint of exponential growth.

Concept Check ๐ŸŽฏ

Read a Log Scale ๐Ÿงฎ

Use the order-of-magnitude rule (each base-1010 unit =ร—10= \times 10).

1) Solution A has pH 33, solution B has pH 66. A is how many times more acidic than B? Enter the number. 2) A semi-log fit gives logโกy=0.5x+2\log y = 0.5x + 2. What is a=10intercepta = 10^{\text{intercept}}? 3) Same fit: what is the base b=10slopeb = 10^{\text{slope}}? Use 100.5โ‰ˆ3.1610^{0.5}\approx 3.16 and round to two decimals.

Interpret the Semi-Log Line ๐Ÿ”ฝ

A data set is plotted as logโกy\log y versus xx and fits the line logโกy=0.3x+1\log y = 0.3x + 1.

Part 7: Mixed Mastery & Exit Quiz

๐Ÿ“ˆ Logarithmic Functions

Part 7 of 7 โ€” Mixed Mastery & Exit Quiz


You can now (1) read logs as inverses of exponentials, (2) graph them and state domain/asymptote, (3) apply the three properties, (4) change base, (5) solve exp/log equations, and (6) interpret log models and semi-log plots. Let's pull it together.

Quick Reference

GoalKey move
Read a loglogโกbx=yโ‡”by=x\log_b x = y \Leftrightarrow b^y = x
Domain of logโกb(arg)\log_b(\text{arg})argument >0>0 (vertical asymptote where arg =0=0)
Expand / condenseproductโ†”sum, quotientโ†”difference, powerโ†”coefficient
Any base on a calculatorlogโกbx=lnโกxlnโกb\log_b x = \dfrac{\ln x}{\ln b}
Variable in an exponenttake lnโก\ln, then power rule
Variable in a logrewrite in exponential form; check arg >0>0
Spot exponential datastraight line on a semi-log (logโกy\log y vs xx) plot

โš ๏ธ Three things never to forget: a log's argument is always positive, logโกb(M+N)โ‰ logโกbM+logโกbN\log_b(M+N)\ne\log_b M+\log_b N, and check for extraneous solutions whenever you condense logs.

Mixed Practice ๐ŸŽฏ

Mixed Drill ๐Ÿงฎ

1) Evaluate logโก164\log_{16} 4. (fraction ok) 2) Solve 10x=1000โ‡’x=โ€‰?10^{x} = 1000 \Rightarrow x = \,? 3) Vertical asymptote of f(x)=lnโก(xโˆ’7)f(x)=\ln(x-7) is at x=โ€‰?x = \,?

Exit Quiz โœ…

Answer all three to finish the lesson.