AP Precalculus · Unit 2

Logarithmic Functions

A logarithm answers one question. What exponent gives this value? Use that idea to sketch logarithmic graphs, solve equations, and explain how multiplicative changes show up in a table.

Open study notebook beside a scientific calculator

Translate a logarithm into an exponent

For real logarithms, use a positive base b≠1 and a positive argument x. The value of the logarithm is the exponent.

logbx=y⟺by=x

Base 2

log28=3 because 23=8. Also, log218=−3 because 2−3=18.

Common and natural logs

On this page logx=log10x and lnx=logex, where e≈2.718. Use the calculator’s LOG and LN keys for those two bases. Common logs appear in science and engineering, and natural logs appear often in calculus.

Check the argument first. The input to a real logarithm must be positive. Its output can be negative, zero or positive.

See what changes when you take the inverse

The graphs of y=bx and y=logbx reflect across y=x. Swap the coordinates of any point on the exponential graph to get a point on the logarithmic graph.

An exponential and its logarithmic inverse reflect across the diagonal. Exponential points zero comma one and two comma four match logarithmic points one comma zero and four comma two.
The curves y=2x and y=log2x are reflections across y=x. The marked pairs are (0,1) with (1,0), and (2,4) with (4,2).
Propertyy=bxy=logbx
Domainℝ(0,∞)
Range(0,∞)ℝ
Asymptotey=0x=0
Intercept(0,1) on the vertical axis(1,0) on the horizontal axis

The two functions undo one another. logb(bx)=x for real x, and blogbx=x for x>0. See the Exponential Functions lesson for growth, decay and exponential models.

Worked example · Reverse a shifted exponential

Start with y=2x−1+3. Subtract 3, take the base-2 logarithm, then add 1.

x=1+log2(y−3)

Swap the labels to get f−1(x)=1+log2(x−3), with x>3. The inverse’s domain is the original range.

Read a parent logarithmic graph and table

Every parent f(x)=logbx has domain (0,∞), range ℝ and vertical asymptote x=0. Useful points are (1,0), (b,1), (b2,2) and (1b,−1). For the common log the second point is (10,1). For the natural log it is (e,1).

When b>1

The graph increases and is concave down. As x→0+, f(x)→−∞. As x→∞, f(x)→∞.

When 0<b<1

The graph decreases and is concave up. As x→0+, f(x)→∞. As x→∞, f(x)→−∞.

Each parent graph keeps its direction and concavity across its domain. It has no turning point or inflection point. On a closed interval inside the domain, its largest and smallest values occur at the endpoints.

Spot the multiplicative pattern

In y=log2x, doubling a positive input increases the output by 1. The inputs 1,2,4,8 give outputs 0,1,2,3. More generally, if f(x)=alogbx+k and r>0,

f(rx)−f(x)=alogbr.

A horizontal shift changes which quantities to compare. In y=log2(x−3)+1, the inputs 4,5,7 give outputs 1,2,3 because the distances x−3 are 1,2,4.

For equal additive input steps, those output differences change. The average rate of log2x is 1 on [1,2] and log232<1 on [2,3]. This agrees with the curve getting flatter as it rises.

Graph a transformed logarithm

The first two examples use f(x)=alogb(x−h)+k, with a≠0. Include a nonzero horizontal multiplier c to stretch or reflect the graph.

f(x)=alogb(c(x−h))+k
  1. Find the domain and asymptote. Solve c(x−h)>0. Draw x=h as a dashed line and use only the domain side. The range is ℝ.
  2. Map easy points. A parent point (u,v) becomes (h+uc,k+av). Start with u=1 and u=b. In the original form, c=1, so the points are (h+1,k) and (h+b,k+a).
  3. Decide which way the curve goes. Choose the parent’s direction from the base, then account for any negative multiplier. A negative a reflects the output before shifting it by k. A negative c puts the domain to the left of h. Either reflection reverses the direction as you read from left to right.
  4. Find intercepts if needed. Set f(x)=0 for the horizontal intercept. In the original form its input is x=h+b−ka. Check that 0 is in the domain before looking for a vertical intercept.

Compare three graph changes

Look for the dashed asymptote first. Use the circle for the anchor and the diamond for the next point.

Domain is to the right of the asymptote. The curve increases.

An increasing logarithm on the right of the vertical asymptote at x equals three. Its circle is at four comma one and its diamond is at five comma two.
For f(x)=log2(x−3)+1, the asymptote is x=3 and the domain is x>3. The marked points are (4,1) and (5,2).

Worked example · Shift the base-2 graph

For f(x)=log2(x−3)+1, the asymptote is x=3. Plot (4,1) and (5,2), with x>3. It increases because the base exceeds 1 and both multipliers are positive. The horizontal intercept is (72,0).

Worked example · Reflect and stretch

For g(x)=−2log3(x+4)−1, a=−2, b=3, h=−4 and k=−1. Draw x=−4 and use x>−4. Plot (−3,−1) and (−1,−3). The curve decreases and approaches ∞ as x→−4+.

Match a formula to a graph. Compare its domain side, asymptote, direction and mapped points. With the same base and horizontal transformation, |a|>1 makes the graph steeper and 0<|a|<1 makes it flatter. An output reflection reverses concavity. A horizontal reflection preserves it.

Reference for one transformation at a time

ChangeEquationWhat to draw
Right by h>0logb(x−h)Asymptote moves to x=h.
Left by h>0logb(x+h)Asymptote moves to x=−h.
Up by k>0logbx+kAsymptote stays at x=0.
Down by k>0logbx−kAsymptote stays at x=0.
Vertical stretchalogbx, a>1Scale the heights away from the horizontal axis.
Vertical compressionalogbx, 0<a<1Scale the heights toward the horizontal axis.
Reflect across the horizontal axis−logbxReverse each output’s sign.
Reflect across the vertical axislogb(−x)Use x<0 and keep x=0 as the asymptote.

Worked example · Recover a formula from a graph

A graph with domain to the right of x=2 passes through (3,4) and (5,5). Use h=2. The first point is one unit to the right of the asymptote, so k=4. From the second point, alogb3=1.

f(x)=log3(x−2)+4
f(x)=2log9(x−2)+4

Both formulas describe the same curve. Change of base shows why a choice of base determines the needed vertical multiplier.

Use log rules while keeping the original domain

Each logarithm in the product and quotient rules needs a positive argument. Use the same admissible base b throughout.

RuleEquivalent forms
Productlogb(uv)=logbu+logbv
Quotientlogbuv=logbu−logbv
Powerlogb(up)=plogbu for u>0
Change of baselogbx=lnxlnb=logxlogb

A positive horizontal multiplier c can be rewritten as a vertical shift. logb(cx)=logbx+logbc for x>0 and c>0. Likewise, taking a positive argument to a power gives a vertical dilation via the power rule.

Check what the rule applies to. The product rule splits a product inside a logarithm. Keep an addition such as u+v together. When you expand logb(x2) on its full domain x≠0, write 2logb|x|.

Solve equations and inequalities

Write every argument restriction before rewriting an equation. Check each candidate in the original domain after you solve it.

Worked example · Check the roots after combining logs

Solve log2(x−1)+log2(x−3)=3. Both arguments are positive if x>3.

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

Keep x=5, because the two arguments become 4 and 2. Discard x=−1, which is outside the starting domain.

Worked example · Solve an inequality with a decreasing base

Solve log13(x−2)≥−1 with x>2. The base-13 logarithm decreases, so the inequality reverses when you undo it.

0<x−2≤(13)−1=3

The solution is (2,5]. At x=5 you get equality. At x=2 the logarithm is undefined.

For an exponential equation such as 3x=7, take logarithms to get x=log37=ln7ln3. For exponential inequalities, use the base to decide whether taking its logarithm preserves or reverses the comparison.

Build and check a logarithmic model

Use a logarithmic model when multiplying an adjusted input by a fixed amount is associated with adding a fixed amount to the output. Choose the input units and any shift from the context before fitting the model.

Worked example · Predict a practice score

Let t be hours of practice. In a simplified model for 0≤t≤15, a score gains a fixed number of points each time 1+t doubles. Two observed scores are 40 at t=0 and 70 at t=7.

S(t)=alog2(1+t)+k

The first point gives k=40. At t=7, log28=3, so 3a+40=70 gives a=10. The model predicts S(3)=60 points. To reach 80 in the model, solve log2(1+t)=4, which gives t=15 hours.

For an unshifted model with a known multiplication factor b for a one-unit output increase and a positive input x0 where the output is zero, use f(x)=logbxx0. With more observations, fit a logarithmic regression and compare predictions or residuals across the observed range. Treat any result outside the modeled range as an extrapolation.

Connect logarithmic scales and semi-log plots

On a base-10 logarithmic scale, 1,10,100,1000 occupy equal steps. In an AP semi-log plot with a logarithmic vertical axis, a positive exponential y=ABx appears as a line because log10y=log10A+xlog10B. To check an unshifted logarithmic model y=alog10x+k, plot y against log10x for positive inputs and look for a linear pattern.

Quick reference

Use these results for f(x)=alogb(x−h)+k, where a≠0, b>0 and b≠1.

FeatureResult
Domain and range(h,∞) and ℝ
Vertical asymptotex=h
Two easy points(h+1,k) and (h+b,k+a)
Horizontal intercept inputh+b−ka
Inversef−1(x)=h+bx−ka

The original domain examples follow the same argument check. log2x has asymptote x=0 and domain x>0. log(x−3) has asymptote x=3 and domain x>3. ln(x+5)+2 has asymptote x=−5 and domain x>−5. All three have range ℝ.

Practice with worked solutions

Write down the domain or first step before you open a solution.

1. Evaluate log5125.

Since 5−2=125, the logarithm is −2.

2. Find the asymptote, direction and horizontal intercept of g(x)=2−log2(x−1).

The domain is x>1, so the asymptote is x=1. The negative multiplier makes the function decrease. For the intercept, log2(x−1)=2 gives x−1=4, so the point is (5,0).

3. Find the domain and anchor point of g(x)=−2log4(7−x)+3.

The domain is x<7. Setting 7−x=1 gives the anchor (6,3). At the asymptote, g(x)→∞ as x→7−.

4. Find the inverse of f(x)=3x−2−1.

From y+1=3x−2, take the base-3 log, then add 2. Swap the variables to get f−1(x)=2+log3(x+1), for x>−1.

5. Combine 2log3x−log35.

Use the power and quotient rules to get log3x25. The original restriction is x>0.

6. Solve log3(2x−1)=2.

The restriction is x>12. Exponentiating gives 2x−1=9, so the solution is x=5.

7. Solve log12(x+1)<0.

Start with x>−1. The base is between 0 and 1, so x+1>(12)0=1. The solution is x>0.

8. When does the worked model S(t)=40+10log2(1+t) reach 70 points?

Set log2(1+t)=3, so 1+t=8. That gives t=7 hours, within the model’s range of inputs.

Official AP Precalculus practice

For a released log equation, try Part A(ii) of 2026 Question 4 without a calculator. Use its scoring guidelines to compare the algebra and final solution.

Need help with logarithmic functions?

A NUM8ERS tutor can work through a graph, equation or model with you.

Book a free consultation

Prepared by NUM8ERS for the AP Precalculus framework effective Fall 2026.