Quarry School

Logarithmic functions: crash course

about 8 min to listen4 lessons11 questions to tryUnit 19 of 25

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

Starts here no skill from another unit needed first

1 What a logarithm asks

about 1 minOpen the full lessonOnly this lesson

The rule

For b > 0, b≠1 and x > 0: logbx=y means exactly by=x.

How

  1. Name the base, the exponent and the result.
  2. To write logarithmic form, put the exponent alone: logbase (result) = exponent.
  3. To write exponential form, raise the base to the logarithm's value: basevalue = the input.
  4. Check that the base is positive and not 1, and that the input of the logarithm is positive.

Worked example

Worked example

Both forms of one fact

Write 52 = 25 in logarithmic form, and write log4 64 = 3 in exponential form. In plain words: turn a power into a logarithm, then a logarithm into a power.

Show the steps and the answer
  1. In 52=25 the base is 5, the exponent is 2 and the result is 25.Naming the three parts first keeps them in the right places.
  2. log525=2.The logarithm gives the exponent: 5 to the power 2 is 25.
  3. In log464=3 the base is 4, the value 3 is an exponent, and 64 is the result.A logarithm's value is always the exponent.
  4. 43=64.Raise the base to the logarithm's value to get the input.
Answer
  • log5 25 = 2
  • 43=64
Double-check 5 · 5 = 25 and 4 · 4 · 4 = 64, so both facts are true.

The trap

Swapping the parts. log2 8 = 3 is 23 = 8, not 32 = 8 or 83 = 2. The base of the logarithm is the base of the power, and the logarithm's value is the exponent.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Logarithm to power

Write log10 0.001 = −3 in exponential form.

Show the steps and the answer
  1. The base is 10, the value −3 is the exponent, and 0.001 is the result.A logarithm's value is the exponent.
  2. 10−3=0.001.Raise the base to the value.
Answer
10−3=0.001
Double-check 10−3=1103=11,000=0.001.

2 Values you can find without a calculator

about 2 minOpen the full lessonOnly this lesson

The rule

For b > 0 and b≠1: logb1=0, logbb=1, logb(bx)=x for every real x, and blogbx=x for every x > 0.

How

  1. Write the input as a power of the base where you can: 81 = 3⁴, 125 = 5−2, 2 = 212.
  2. Read the exponent: logb (bx) = x.
  3. When the input is not an integer power of the base (as 81 = 3⁴ and 18 = 2−3 are), find the two consecutive integer powers it lies between: for b > 1, if bn < x < bn+1, then n < logb x < n + 1 (n is negative for an input between 0 and 1); for 0 < b < 1 the powers shrink as n grows, so bn+1 < x < bn gives n < logb x < n + 1.

Worked example

Worked example

A root as a power

Find log9 3 and log5 5. In plain words: write each input as a power of its base.

Show the steps and the answer
  1. 3=9=912.A square root is the power 12 on a positive base.
  2. log93= log9912=12.A logarithm undoes its own base's power.
  3. 5=512, so log55=12.The same fact with base 5.
Answer
  • log9 3 = 12
  • log5 5 = 12
Double-check 912 = 9 = 3 and 512 = 5, so both values give back their inputs.

The trap

Reading logb 1 as 1. The logarithm of 1 is 0 in every base, because b⁰ = 1. It is logb b that equals 1.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Undo a power

Find log4 42.5 and 6log611.

Show the steps and the answer
  1. log442.5=2.5.A logarithm undoes its own base's power.
  2. 6log611=11.Raising 6 to the power that makes 11 gives 11.
Answer
2.5 and 11
Double-check 42.5 = (4)5 = 2⁵ = 32, and log4 32 = 2.5 because 42.5 = 32; log6 11 is the exponent that turns 6 into 11, so 6 to that power is 11.

3 Common and natural logarithms

about 2 minOpen the full lessonOnly this lesson

The rule

log x= log10 x and ln x= loge x, each for x > 0.

For every real x, log 10x=x and ln ex=x; for x > 0, 10logx=x and elnx=x.

How

  1. Read log with no base as base 10, and ln as base e.
  2. For an input that is a power of the base, read the exponent: log 10⁴ = 4, ln e−2 = −2.
  3. Otherwise use the LOG or LN key.
  4. Check by raising the base to the answer: 10answer or eanswer should give back the input.

Worked example

Worked example

Look up and check

Find log 45 and ln 45 to four decimal places, and check each. In plain words: use the LOG and LN keys, then raise each base to its answer.

Show the steps and the answer
  1. log 45≈1.6532.The LOG key gives the common logarithm, rounded to four decimals.
  2. ln 45≈3.8067.The LN key gives the natural logarithm.
  3. 101.6532125≈45 and e3.8066625≈45.Raising each base to its answer kept to seven decimals gives about 44.99999857 and 45.00000046, both 45.0000 to four decimals.
Answer
  • log 45 ≈ 1.6532
  • ln 45 ≈ 3.8067
Double-check Rounded to four decimals, 1.6532125 is 1.6532 and 3.8066625 is 3.8067; and 101.6532125 ≈ 45.0000 and e3.8066625 ≈ 45.0000.

The trap

Reading log x as base e, or ln x as base 10. In this unit log with no base is base 10 and ln is base e: log 100 = 2, but ln 100 ≈ 4.605.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A power of e

Find ln e−3.

Show the steps and the answer
  1. ln e−3=−3.The natural logarithm undoes a power of e.
  2. The value is negative, which is allowed.A logarithm's input must be positive, and e−3 ≈ 0.0498 is positive; its value may be negative.
Answer
−3
Double-check e−3 ≈ 0.0498, and e raised to −3 gives it back.

4 The logarithmic function, its domain and its graph

about 2 minOpen the full lessonOnly this lesson

The rule

For b > 0 and b≠1,f(x)= logb x has domain x > 0, range all real numbers, x-intercept (1, 0) and vertical asymptote x=0.

For b > 1 it rises from left to right; for 0 < b < 1 it falls. The domain of logb (g(x)) is the set of x with g(x) > 0.

How

  1. Find the domain: set the inside of the logarithm greater than 0 and solve.
  2. For a linear inside with a nonzero slope, such as x − h or a − x, mark the vertical asymptote where the inside equals 0: as x moves toward that line from the domain side, the inside shrinks to 0 through positive values and the logarithm grows without bound in size.
  3. Mark the point where the inside equals 1 (the logarithm there is 0, so the output is whatever is added after the logarithm) and the point where the inside equals b (the logarithm there is 1).
  4. For logb (x − h) with b > 1, draw the curve rising steeply immediately to the right of the asymptote and flattening as x grows; with 0 < b < 1 it falls instead. When the inside is a − x, the curve is the mirror image across the asymptote, so each direction reverses.

Worked example

Worked example

Domain and asymptote of a shifted logarithm

Find the domain, the vertical asymptote and the x-intercept of f(x) = log (x + 4). In plain words: the inside must be positive; find where it is 0 and where it is 1.

Show the steps and the answer
  1. x+4>0, so x>−4.The input of a logarithm must be positive.
  2. The vertical asymptote is x=−4.As x moves toward −4 from the right, x + 4 shrinks toward 0 through positive values and log (x + 4) falls without bound, so the graph runs down beside the line x = −4.
  3. x+4=1 gives x=−3, so the x-intercept is (−3,0).log 1 = 0, so the output is 0 where the inside is 1.
Answer
  • Domain x > −4
  • asymptote x = −4
  • x-intercept (−3, 0)
Double-check x + 4 > 0 exactly when x > −4; as x moves toward −4 from the right, x + 4 shrinks toward 0 through positive values and log (x + 4) falls without bound; and f(−3) = log 1 = 0, f(6) = log 10 = 1.

The trap

Taking the domain as x > 0 for every logarithm. The condition is on the inside: log (x + 4) is defined for x > −4, and log (5 − x) for x < 5.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A reflected inside

Find the domain of g(x) = log3 (5 − x).

Show the steps and the answer
  1. 5−x>0.The inside must be positive.
  2. 5 > x, so x < 5.Add x to both sides.
Answer
x < 5
Double-check 5 − x > 0 for every x < 5 and 5 − x ≤ 0 for every x ≥ 5; for example, g(4) = log3 1 = 0.

5 Quick checks for the whole unit

7 questions

Quick check 1 of 7

Write 2⁶ = 64 in logarithmic form.

Show the steps and the answer
Answer
log2 64 = 6.

Quick check 2 of 7

Find log3 9.

Show the steps and the answer
Answer
2, because 32 = 9.

Quick check 3 of 7

Find log10 0.1.

Show the steps and the answer
Answer
−1, because 10−1 = 0.1.

Quick check 4 of 7

What is ln 1?

Show the steps and the answer
Answer
0, because e⁰ = 1.

Quick check 5 of 7

Simplify log7 74.

Show the steps and the answer
Answer
4.

Quick check 6 of 7

What is the domain of f(x) = log (x − 6)?

Show the steps and the answer
Answer
x > 6, because the inside x − 6 must be positive.

Quick check 7 of 7

Which line is the vertical asymptote of y = ln x?

Show the steps and the answer
Answer
x = 0, the y-axis.