AP Precalculus · Unit 2

Logarithms for AP Precalculus

Read a logarithm as a missing exponent. Learn when to expand, condense or rewrite it, and check which solutions fit the original equation.

Scientific calculator with LOG and LN keys beside a green pencil on an open notebook

Read a Logarithm as an Exponent

In loga⁡b=x, the base is a, the argument is b, and the result x is the exponent. Ask yourself, “What power of a gives b?” Both forms use the same three numbers.

Exponential form

ax=b

Raise the base to the exponent.

Logarithmic form

loga⁡b=x

Find the exponent from the base and argument.

Check the base and argument

For real logarithms, require a>0, a≠1, and b>0. A valid logarithm can have a zero or negative result. Its argument must be positive.

Convert in either direction

Exponential formLogarithmic form
25=32log2⁡32=5
103=1000log10⁡1000=3
e2≈7.389ln⁡(e2)=2, so ln⁡(7.389)≈2
34=81log3⁡81=4
53=125log5⁡125=3

Common and Natural Logarithms

Common log

log⁡x=log10⁡x

On AP Precalculus, a log written without a base means base 10. Use the LOG key on a scientific calculator.

log⁡100=2 because 102=100. Likewise, log⁡1000=3.

Natural log

ln⁡x=loge⁡x

The base is e≈2.71828. On a scientific calculator, use the LN key.

ln⁡e=1, ln⁡(e2)=2, and ln⁡(e5)=5.

You can use either key for a different base with the change-of-base formula. Use the same key in the numerator and denominator.

Use Inverse Identities

Fix a base a>0 with a≠1. The exponential and logarithmic functions undo one another on their respective domains.

IdentityReason or condition
loga⁡1=0a0=1. For example, log5⁡1=0 and ln⁡1=0.
loga⁡a=1a1=a. For example, log7⁡7=1.
loga⁡(ax)=xAny real x gives ax>0. For example, log2⁡(28)=8.
aloga⁡x=xRequire x>0. For example, 10log⁡100=100 and eln⁡5=5.

Evaluate Logarithms by Hand

Start with the base. Rewrite the argument as a power when you recognize one. Reciprocals give negative exponents and roots give fractional exponents.

LogarithmMatching powerValue
log2⁡3225=325
log3⁡(127)3−3=127−3
log5⁡5512=512
log10⁡(0.001)10−3=0.001−3

Useful powers of 2 give log2⁡2=1, log2⁡4=2, log2⁡8=3, log2⁡16=4, and log2⁡32=5. Similarly, log⁡10=1, log⁡100=2, and log⁡1000=3.

For a value such as log3⁡20, use change of base if the question requests a decimal. For an exact answer, keep the logarithm.

Expand or Condense with the Log Rules

Use a valid common base a. In these identities assume both x>0 and y>0, and let k be real.

Product

loga⁡(xy)=loga⁡x+loga⁡y

Multiplying powers adds exponents.

aman=am+n

Quotient

loga⁡(xy)=loga⁡x−loga⁡y

Dividing powers subtracts exponents.

aman=am−n

Power

loga⁡(xk)=kloga⁡x

Raising a power to a power multiplies exponents.

(am)k=amk

Expand a product

Assume x>0 and y>0. Apply the product rule to the factors of 8x3y.

log2⁡(8x3y)=log2⁡8+log2⁡(x3)+log2⁡y

Use log2⁡8=3 and log2⁡(x3)=3log2⁡x.

log2⁡(8x3y)=3+3log2⁡x+log2⁡y

Condense a sum and difference

Assume x,y,z>0. Turn the coefficients into powers, combine the sum as a product, then combine the difference as a quotient.

2log⁡x+log⁡y−3log⁡z=log⁡(x2)+log⁡y−log⁡(z3)
2log⁡x+log⁡y−3log⁡z=log⁡(x2yz3)

Keep the domain you started with

Condensing two logs still requires each original argument to be positive. For example, ln⁡(x2)=2ln⁡|x| for x≠0. The form 2ln⁡x applies when x>0. The product rule applies to multiplication inside the argument. Leave a sum such as log⁡(x+y) intact.

These rules also explain graph transformations. For k>0, the horizontal scale in loga⁡(kx) gives the same graph as loga⁡x+loga⁡k. For x>0, the power inside loga⁡(xk) scales the output by k.

Change the Base

Given y=loga⁡b, rewrite it as ay=b. Take a log in a valid base c on both sides to obtain ylogc⁡a=logc⁡b. Divide by logc⁡a, which is nonzero since a≠1.

Change of base loga⁡b=logc⁡blogc⁡a

Using common logs

loga⁡b=log⁡blog⁡a

Using natural logs

loga⁡b=ln⁡bln⁡a

Evaluate a log that is between whole powers

Since 32<20<33, the answer to log3⁡20 is between 2 and 3. Either calculator form gives the same result.

log3⁡20=log⁡20log⁡3=ln⁡20ln⁡3

Keep the full calculator precision until the last step. Both forms give log3⁡20≈2.727 to three decimal places.

To switch between common and natural logs, use ln⁡x=log⁡xlog⁡e=(ln⁡10)log⁡x for x>0. The multiplier ln⁡10 is approximately 2.303.

Connect Logs to Graphs and Inverses

The parent y=loga⁡x has domain (0,∞), range ℝ and a vertical asymptote at x=0. Its zero is x=1. Swapping inputs and outputs in y=ax gives this log graph, a reflection across y=x.

Base greater than one

When a>1, the graph increases and is concave down. As x approaches 0 from the right, the output decreases without bound.

Base between zero and one

When 0<a<1, the graph decreases and is concave up. As x approaches 0 from the right, the output increases without bound.

Both logarithms cross at 1, 0. The base-2 curve rises from negative infinity as the positive input increases. The base-one-half curve falls from positive infinity. Both approach the dashed line x equals zero on the right.
At x=2, the two outputs are 1 and −1, since 21=2 and (12)−1=2. Both curves share the asymptote x=0.

For g(x)=Aloga⁡(x−h)+k with A≠0, set x−h>0 to obtain domain x>h and the asymptote x=h. To study horizontal reflections and other transformations, use the Logarithmic Functions and Graphs lesson.

Find the inverse of a transformed exponential

Let f(x)=3·2x−1+4, which has range (4,∞). To recover x from y=f(x), subtract 4, divide by 3, take the base-2 log, then add 1.

2x−1=y−43x−1=log2⁡(y−43)
f−1(x)=1+log2⁡(x−43)x>4

Check a pair of values. Since f(3)=16, its inverse should send 16 back to 3. See Inverse Functions for more examples.

Solve Logarithmic Equations

  1. Find the domain of the original equation by requiring each log argument to be positive.
  2. Isolate and convert one log, equate arguments of equal logs with the same base, or condense first.
  3. Solve, then check each candidate in the original equation.

Convert an isolated log

Solve log3⁡(x+2)=4. The domain requires x>−2.

x+2=34=81x=79

Substitute 79 into the original equation to get log3⁡(81)=4.

Equate two arguments

Solve log2⁡(3x−1)=log2⁡(x+7). Both arguments are positive when x>13. Both logs use the same base, so equal output means equal input.

3x−1=x+7
2x=8x=4

Both arguments equal 11 at x=4, so the solution checks.

Condense and reject an invalid candidate

Solve log2⁡(x−1)+log2⁡(x−3)=3. The original domain is x>3.

log2⁡((x−1)(x−3))=3
(x−1)(x−3)=8
x2−4x−5=(x−5)(x+1)=0

The candidates are 5 and −1. At −1, both original log arguments are negative. At 5, they are 4 and 2, and the logs add to 3. The solution is x=5.

Solve Exponential Equations with Logs

If both sides can use the same base, equate their exponents. For example, 32x=27 gives 2x=3. Otherwise isolate the exponential, take the log of each positive side, and use the power rule to bring the exponent down.

Solve 52x−1=17

Take ln of each side and use the power rule.

ln⁡(52x−1)=ln⁡17
(2x−1)ln⁡5=ln⁡17

Distribute, then isolate x.

2xln⁡5−ln⁡5=ln⁡172xln⁡5=ln⁡17+ln⁡5
x=ln⁡17+ln⁡52ln⁡5=ln⁡852ln⁡5

The exact answer is ln⁡852ln⁡5, which is approximately 1.380 to three decimal places. For more growth and decay examples, see Exponential Functions.

Check the Base in an Inequality

For a logarithm or exponential with a base greater than 1, applying its increasing inverse preserves the inequality direction. For a base between 0 and 1, the inverse is decreasing, so reverse the inequality. Keep all the original domain restrictions.

Increasing log

log2⁡(x−1)>3 requires x>1. Rewrite 3 as log2⁡8 to obtain x−1>8.

x∈(9,∞)

Decreasing log

log12⁡(x−1)≥−2 requires x>1. Because (12)−2=4, the comparison becomes x−1≤4. Combine it with the domain.

x∈(1,5]

The same direction check works for exponentials. From (13)x≤9=(13)−2, conclude x≥−2.

Read a Logarithmic Scale and Build a Model

On a base-10 logarithmic scale, 1, 10, 100, and 1000 are evenly spaced because their common logs are 0, 1, 2, and 3. Moving one tick right multiplies the value by 10.

Four equally spaced marks labeled 1, 10, 100, and 1,000 on a base-ten logarithmic scale.
The intervals from 1 to 10 and from 100 to 1000 have the same length on a log scale. Each represents multiplication by 10.

Find an input from a logarithmic model

Suppose a device reads 6 units at input 100, 8 at 200, and 10 at 400. Doubling the input adds 2 to the reading. Divide the input by 100 so that the logarithm’s argument is 1 when the reading is 6.

R(x)=6+2log2⁡(x100)

For a reading of 9, isolate the log to get log2⁡(x100)=32. Thus x=100·232=2002, about 283. This falls inside the observed input interval.

When the data are noisy, fit a logarithmic regression for positive inputs and check residuals and the practical domain. A horizontal shift changes which inputs you compare. Use distance from the vertical asymptote for a shifted model.

Use a Semi-Log Plot to Check Exponential Growth

On a semi-log plot, one axis uses logarithmic spacing. For y=Cbt with C>0, b>0 and b≠1, taking logs gives a linear relationship between t and loga⁡y.

loga⁡y=loga⁡C+tloga⁡b
On a logarithmically spaced vertical axis, the points at times 0, 1, 2, 3, and 4 with outputs 3, 6, 12, 24, and 48 line up.
For y=3·2t, the outputs double at every step. On a base-2 log scale, each doubling adds 1 to the vertical coordinate, so the points line up.

A straight pattern with a linear input axis and a logarithmic output axis suggests an exponential model. A straight pattern with a logarithmic input axis and a linear output axis suggests a logarithmic model. Check the axis labels first.

Quick Logarithm Formula Reference

UseFormula
Definitionax=b⟺loga⁡b=x
Productloga⁡(xy)=loga⁡x+loga⁡y
Quotientloga⁡(xy)=loga⁡x−loga⁡y
Powerloga⁡(xk)=kloga⁡x
Change of baseloga⁡b=ln⁡bln⁡a=log⁡blog⁡a
Inverse identitiesloga⁡(ax)=x. For x>0, aloga⁡x=x.

For a valid base, require a>0 and a≠1. Every argument of a real logarithm must be positive. Find more formulas in the AP Precalculus Formula Hub.

Quick Practice with Answers

Work each problem before opening its answer. Use exact values when an AP question asks for them.

Evaluate a log of a reciprocal

Find log4⁡(116).

Because 4−2=116, the value is −2.

Expand a logarithm without losing its domain

Rewrite ln⁡(x2) for x≠0.

Use 2ln⁡|x|. For instance, at x=−3, the expression is 2ln⁡3=ln⁡9.

Condense two natural logs

Condense 2ln⁡x−ln⁡(x−1).

The original domain is x>1. Write ln⁡(x2x−1) and keep that domain.

Give an exact exponential solution

Solve e3t=7.

Take natural logs to get 3t=ln⁡7, so t=ln⁡73.

Solve a decreasing-base inequality

Solve log13⁡(x+2)≤−1.

Require x>−2. Since (13)−1=3, reverse the inequality to get x+2≥3. The solution is x≥1.

Compare two values on a log scale

How much larger is a value three marks to the right on a scale marked at powers of 10?

Each step multiplies by 10. Three steps multiply by 103=1000.

Official AP Practice and Course Sources

Start with Topics 2.9 and 2.12 for evaluating and rewriting logs, then use Topic 2.13 for equations and inequalities. The graph, modeling and semi-log sections connect to Topics 2.10–2.11 and 2.14–2.15.

Starting in May 2027, Questions 3 and 4 share a 35-minute calculator-free part. For Question 4, show the symbolic steps and give exact values where they can be obtained without a calculator.

Course description · Sample MCQ 8

Use product, quotient and power rules to match an equivalent logarithmic expression.

2025 · FRQ 4

Try A(i) to isolate and solve a logarithm, then B(i) to write a single logarithmic expression.

2026 · FRQ 4

Try A(i–ii) to solve one exponential equation and one logarithmic equation exactly.