Educerie

Educerie · AP · Precalculus

AP Precalculus 2.12

Logarithmic Function Manipulation

How do you expand, combine and change the base of logarithms, and what does each rewrite do to the graph?

What you will learn

  • Understand that the log rules come from exponent rules
  • Know the product, power, quotient and change of base rules and their graph meanings
  • Know that there is no rule for the logarithm of a sum

You must be able to

  1. Expand a logarithm of a product, quotient and power
  2. Combine several logarithms into one
  3. Evaluate a logarithm exactly or by calculator with change of base
  4. Describe the graph effect of logb(kx) and logb(x^n)
  5. Spot the slips: log of a sum, log x squared, a lost coefficient
  6. Check a rewrite with a test value

In the exam. Section I multiple choice, mostly Part A (no calculator): "Which expression is equivalent to log⁡3(9x2)\log_3(9x^2)?", a change of base, or the effect of a rewrite on a graph. In Free-response 4 (no calculator) part B says "combine the terms using the rules of logarithms" to one logarithm, and students miss the instruction or misplace a coefficient. Section I Part B may use the change of base to evaluate on a calculator.

1The rules, and why they hold

For b>0b > 0, b≠1b \ne 1, and positive xx and yy:

RuleStatement
Productlog⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y
Powerlog⁡b(xn)=nlog⁡bx\log_b(x^n) = n\log_b x
Quotientlog⁡bxy=log⁡bx−log⁡by\log_b\dfrac xy = \log_b x - \log_b y
Change of baselog⁡bx=log⁡axlog⁡ab\log_b x = \dfrac{\log_a x}{\log_a b}, a>0a>0, a≠1a\ne1

Why the product rule holds. Let log⁡bx=m\log_b x = m and log⁡by=n\log_b y = n, so x=bmx = b^m and y=bny = b^n. Then xy=bm+nxy = b^{m+n}, so log⁡b(xy)=m+n\log_b(xy) = m + n.

The quotient rule follows from the product and power rules: xy=x⋅y−1\dfrac{x}{y} = x\cdot y^{-1}, so log⁡bxy=log⁡bx+(−1)log⁡by\log_b\dfrac xy = \log_b x + (-1)\log_b y.

The natural logarithm is ln⁡x=log⁡ex\ln x = \log_e x. All the rules hold for it.

2Expanding

Use the rules to separate a product, quotient and power into single-variable logarithms.

Worked example 1. Expand log⁡28x3y\log_2\dfrac{8x^3}{y}.

log⁡28+log⁡2x3−log⁡2y=3+3log⁡2x−log⁡2y\log_2 8 + \log_2 x^{3} - \log_2 y = 3 + 3\log_2 x - \log_2 y

Worked example 2. Expand ln⁡ ⁣(e2x)\ln\!\left(e^{2}\sqrt{x}\right).

ln⁡e2+ln⁡x1/2=2+12ln⁡x\ln e^{2} + \ln x^{1/2} = 2 + \tfrac12\ln x

3Combining into one logarithm

Free-response 4 asks for this. Work in two steps: move coefficients into powers, then combine sums into products and differences into quotients.

Worked example 3. Write 2log⁡3x+log⁡35−log⁡3y2\log_3 x + \log_3 5 - \log_3 y as a single logarithm.

log⁡3x2+log⁡35−log⁡3y=log⁡35x2y\log_3 x^{2} + \log_3 5 - \log_3 y = \log_3\frac{5x^{2}}{y}

Worked example 4. Write 3log⁡2−log⁡4+log⁡53\log 2 - \log 4 + \log 5 as a single logarithm.

log⁡23−log⁡4+log⁡5=log⁡8⋅54=log⁡10=1\log 2^{3} - \log 4 + \log 5 = \log\frac{8\cdot 5}{4} = \log 10 = 1

The last step uses log⁡10=1\log 10 = 1 (base 1010). Always simplify the result if the argument is a power of the base.

4Change of base

Use change of base to convert to a base your calculator has, or to a base in which the value is easy.

Worked example 5. Evaluate log⁡47\log_4 7 on a calculator.

log⁡47=ln⁡7ln⁡4≈1.404\log_4 7 = \frac{\ln 7}{\ln 4} \approx 1.404

Worked example 6. Evaluate log⁡832\log_8 32 exactly. Both are powers of 22:

log⁡832=log⁡232log⁡28=53\log_8 32 = \frac{\log_2 32}{\log_2 8} = \frac53

Check: 85/3=(23)5/3=25=328^{5/3} = (2^3)^{5/3} = 2^5 = 32.

5What the rules do to a graph

Product rule: a horizontal dilation is a vertical translation.

log⁡2(4x)=log⁡24+log⁡2x=2+log⁡2x\log_2(4x) = \log_2 4 + \log_2 x = 2 + \log_2 x

Replacing xx by 4x4x compresses the graph horizontally by a factor of 14\tfrac14. That gives the same graph as moving log⁡2x\log_2 x up by 22. In general, log⁡b(kx)=log⁡bk+log⁡bx\log_b(kx) = \log_b k + \log_b x: a translation up by log⁡bk\log_b k.

Power rule: raising the input to a power is a vertical dilation. log⁡2(x3)=3log⁡2x\log_2(x^3) = 3\log_2 x is the graph of log⁡2x\log_2 x stretched vertically by a factor of 33.

Change of base: all logarithmic functions are vertical dilations of each other. Because log⁡bx=1log⁡ab⋅log⁡ax\log_b x = \dfrac{1}{\log_a b}\cdot\log_a x, the factor 1log⁡ab\dfrac{1}{\log_a b} is a constant. For example,

log⁡4x=log⁡2xlog⁡24=12log⁡2x\log_4 x = \frac{\log_2 x}{\log_2 4} = \tfrac12\log_2 x

so log⁡4x\log_4 x is log⁡2x\log_2 x shrunk vertically by a factor of 12\tfrac12.

6A mixed example

Free-response 4 often asks you to do two moves in one problem. Take

ln⁡e3xy2\ln\frac{e^{3}\sqrt{x}}{y^{2}}

Expand it, one rule at a time.

ln⁡e3+ln⁡x1/2−ln⁡y2=3+12ln⁡x−2ln⁡y\ln e^{3} + \ln x^{1/2} - \ln y^{2} = 3 + \tfrac12\ln x - 2\ln y

The root became the power 12\tfrac12, the product became a sum, the quotient became a difference, and ln⁡e3=3\ln e^{3} = 3 because ln⁡\ln and exe^{x} undo each other.

Now go the other way. Combine 12log⁡5x+log⁡510−2log⁡5y\tfrac12\log_5 x + \log_5 10 - 2\log_5 y into one logarithm:

log⁡510xy2\log_5\frac{10\sqrt{x}}{y^{2}}

Change of base can also give an exact value without a calculator, as long as the numbers share a prime. For log⁡279\log_{27} 9:

log⁡279=log⁡39log⁡327=23\log_{27} 9 = \frac{\log_3 9}{\log_3 27} = \frac{2}{3}

Check: 272/3=(273)2=927^{2/3} = (\sqrt[3]{27})^{2} = 9.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.