A18 of 18
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A1 · Lesson 8 · Logarithms

A logarithm counts zeros

How many zeros does a million have? Six. A billion? Nine. A thousandth? Three, on the other side of the point. That count is a logarithm, and you already know how to take one for any power of ten. The interesting question is what the count should be for a number like 2000, which sits between two powers of ten.

Play

  • Slide x and watch the dot. The horizontal axis is a log scale, so 1, 10, 100 and 1000 are evenly spaced along it.
  • Read log10⁡x in the strip. Put x on a power of ten, then halfway between two of them.
  • Multiply x by 10 (move it one decade to the right). How much does log10⁡x change?

Predict

You multiply x by 10. What happens to log10⁡x?

Name it

The logarithm is the power of ten

log10⁡x is the power you have to raise 10 to in order to get x:

10log10⁡x=xsolog10⁡1000=3,log10⁡1=0,log10⁡0.01=−2

Numbers between powers of ten have logarithms between whole numbers. A handful are worth knowing by heart, because the rest follow from them:

x123510
log10⁡x00.3010.4770.6991

They follow from three rules. Each one says that logarithms turn multiplying into adding:

log⁡(ab)=log⁡a+log⁡blog⁡ab=log⁡a−log⁡blog⁡(an)=nlog⁡a

So log10⁡2000=log10⁡2+log10⁡1000=0.301+3=3.301. The whole number part counts the zeros and the decimal part says where the number sits between them. And log10⁡5=log10⁡(10/2)=1−0.301=0.699.

You'll also meet the natural logarithm, ln⁡x, which uses the number e≈2.718 in place of 10. It's the one calculus prefers, and ln⁡x=2.303log10⁡x. Calculators usually label them log and ln, but in most programming languages log means ln⁡, so check which one you're getting.

Logarithms only exist for positive numbers. A number below 1 has a negative logarithm, since you divide by ten to get there.

Worked example

Without a calculator, find log10⁡5000 and log10⁡0.02.

Show the solution
  1. Split 5000 and take its log. 5000=5×103, so log10⁡5000=log10⁡5+3=0.699+3=3.699
  2. Split 0.02 and take its log. 0.02=2×10−2, so log10⁡0.02=0.301−2=−1.699
  3. The method. Split each number into a digit and a power of ten. The power counts the zeros; the digit adds its logarithm from the table.

Answer log10⁡5000=3.699 and log10⁡0.02=−1.699.

Worked example

A capacitor discharges as v=V0e−t/τ. How many time constants until it's down to 1% of where it started?

Show the solution
  1. Set the curve to 1%. e−t/τ=0.01
  2. Take the natural logarithm of both sides. −tτ=ln⁡0.01=−ln⁡100 so t=τln⁡100.
  3. Evaluate ln 100. ln⁡100=2.303×log10⁡100=2.303×2=4.61 so it takes about 4.6 time constants.

Answer about 4.6 time constants. This is where the rule "five time constants and it's done" comes from.

Check

Without a calculator, what is log10⁡(3×102)?

Use log10⁡2≈0.301, log10⁡3≈0.477 and log10⁡5≈0.699.

Check

log10⁡x=2.301. What is x?

Check

What is log10⁡0.01?

Check

Write log10⁡(1000x) using log10⁡x.

Type log10(x) for log10⁡x.

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Check

Using log10⁡2≈0.301, log10⁡3≈0.477 and log10⁡5≈0.699, but no calculator, what is log10⁡18?

Check

A disturbance in an unstable amplifier doubles every 4 ms. How long does it take to grow by a factor of 10?

Write units the way you normally would: 1.5 s and 1500 ms are the same answer.

Explain why

On a log scale, 1, 10, 100 and 1000 are equally far apart. Why?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.