Exponentials & Logarithms

What Is a Logarithm?

A logarithm is the exponent a base needs to reach a number: log⁡bx=y\log_b x = y means exactly the same thing as by=xb^y = x.

log⁡bx=y  ⟺  by=x\log_b x = y \iff b^y = x

Try it with your numbers

Show every step

So log⁡28=3\log_2 8 = 3, because 23=82^3 = 8. Every logarithm is a question in disguise (“what power?”), and the sections below show how to read it, flip it into a power, handle fractions and negatives, estimate answers by hand, and avoid the mistake that costs the most points.

What is a logarithm and what question does it ask?

Read log⁡bx\log_b x as the question “to what power must bb be raised to give xx?” The answer is a number, and that number is the exponent. Nothing new is being calculated: a logarithm is just a name for the exponent you were already hunting for.

Every log has three parts:

  • The base bb is the number being raised to a power.
  • The argument xx is the number you want to reach.
  • The value yy is the exponent, and it is the answer.

Take log⁡101000\log_{10}1000. Ask what power of 1010 gives 10001000. Since 10⋅10⋅10=100010\cdot10\cdot10=1000, the answer is 33. Likewise log⁡525=2\log_5 25=2. The answer does not have to be a whole number: log⁡93=12\log_9 3=\frac12, because 91/2=9=39^{1/2}=\sqrt9=3.

The base is written small and low, and it is the part students forget to track. log⁡28\log_2 8 and log⁡82\log_8 2 are different questions with different answers (33 and 13\frac13). Say the question aloud each time until it becomes automatic.

Quick check

Evaluate log⁡464\log_4 64.

How do you convert between log and exponential form?

One equivalence does nearly all the work:

log⁡bx=y  ⟺  by=x\log_b x = y \iff b^y = x

The base stays the base, and the log’s value becomes the exponent. A good way to remember it: start at the base, sweep through the answer as its power, and land on the argument.

Most log problems get easier once the unknown is out of the log.

Example 1. Solve log⁡3x=−2\log_3 x = -2.

3−2=x⇒x=132=193^{-2}=x \quad\Rightarrow\quad x=\frac{1}{3^2}=\frac19

Example 2. Solve log⁡x64=2\log_x 64 = 2.

x2=64⇒x=8x^2=64 \quad\Rightarrow\quad x=8

The equation x2=64x^2=64 also has the root −8-8, but a base must be positive, so only x=8x=8 is valid. That discarded root is the usual place students lose a point.

Sweep trick

To flip any log, say "base to the answer equals the argument." For log⁡2x=5\log_2 x = 5 that gives 25=x2^5=x, so x=32x=32.

When an equation has the unknown only in the exponent and both sides can be written with one base, you can skip logs altogether, as in exponential equations with the same base. When logs appear on both sides or are added together, the same flip is the first move in solving logarithmic equations.

Why is a logarithm the inverse of an exponent?

Exponentiation takes an exponent and produces a number. A logarithm takes the number and returns the exponent, so the two undo each other:

blog⁡bx=xandlog⁡bbx=xb^{\log_b x}=x \qquad\text{and}\qquad \log_b b^x = x

For example, log⁡227=7\log_2 2^7=7, and 5log⁡512=125^{\log_5 12}=12. These identities are why logs can solve for an exponent: apply the log to both sides and the exponent drops out.

The inverse relationship has a visible shape. The point (3,8)(3,8) lies on y=2xy=2^x, so (8,3)(8,3) lies on y=log⁡2xy=\log_2 x. The whole graph of one is the mirror image of the other across the line y=xy=x. The horizontal asymptote y=0y=0 of the exponential becomes the vertical asymptote x=0x=0 of the log. You can see this in graphing exponential functions and graphing logarithmic functions.

The reason logs matter beyond undoing powers comes from one idea: exponents add when powers multiply. Let m=log⁡bxm=\log_b x and n=log⁡byn=\log_b y, so x=bmx=b^m and y=bny=b^n. Then

xy=bm⋅bn=bm+n⇒log⁡b(xy)=m+n=log⁡bx+log⁡byxy=b^m\cdot b^n=b^{m+n} \quad\Rightarrow\quad \log_b(xy)=m+n=\log_b x+\log_b y

A log turns multiplication into addition. That single fact generates the full set of logarithm rules, and each one can be derived the same way, as shown in the proofs of the logarithm properties. Before calculators, it also let people multiply huge numbers by adding entries from a table, which is why John Napier’s logarithms (published in 1614) changed astronomy so quickly.

Can you take the log of zero, a negative or a fraction?

Two kinds of restrictions apply, and they are about different things. The argument must be positive, and the base must be positive and not equal to 11. The value, the answer, can be anything: positive, zero or negative.

The argument cannot be 00 or negative because a positive base raised to any real power gives a positive number. 2y2^y gets as close to 00 as you like when yy is very negative, but it never reaches it. The base cannot be 11 because 1y=11^y=1 for every yy, so log⁡15\log_1 5 would have no answer and log⁡11\log_1 1 would have infinitely many. A negative base fails because (−2)1/2(-2)^{1/2} is not a real number, so the function would have holes.

Two values hold for every valid base: log⁡b1=0\log_b 1=0 and log⁡bb=1\log_b b=1. Fractions are fine as arguments, and they give negative values when the base is greater than 11. The pattern is clear in base 22:

xx 18\frac18 14\frac14 12\frac12 11 22 44 88
log⁡2x\log_2 x −3-3 −2-2 −1-1 00 11 22 33

Notice the symmetry: log⁡b1x=−log⁡bx\log_b\frac1x=-\log_b x. A negative answer is perfectly legal, since it only says “the exponent is negative.” A negative input is not. If a solution to a log equation makes any argument zero or negative, reject it.

Quick check

Evaluate log⁡1/28\log_{1/2} 8.

What is the difference between log, ln and log base 2?

The notation log⁡x\log x with no base is ambiguous, and the meaning depends on where you are. On a calculator and in most US algebra and precalculus courses it means base 1010. The symbol ln⁡x\ln x always means base ee, where e≈2.71828e\approx2.71828. Computer science often uses base 22, and many advanced math texts write log⁡\log for ln⁡\ln. When a source does not say, check its convention before computing.

The natural log earns its place because ee makes calculus clean: the slope of exe^x is exe^x. For more on that, see the natural logarithm and Euler’s number ee.

Calculator trap

Your calculator only has log⁡\log and ln⁡\ln. To evaluate any other base, use log⁡bx=ln⁡xln⁡b\log_b x=\frac{\ln x}{\ln b}, with the argument on top.

The change of base formula comes from one move. Let y=log⁡bxy=\log_b x, so by=xb^y=x. Take ln⁡\ln of both sides: yln⁡b=ln⁡xy\ln b=\ln x, and divide.

Example 3. Find log⁡220\log_2 20.

log⁡220=ln⁡20ln⁡2≈2.99570.6931≈4.322\log_2 20=\frac{\ln 20}{\ln 2}\approx\frac{2.9957}{0.6931}\approx4.322

Check it against the definition: 24=162^4=16 and 25=322^5=32, so the answer must sit between 44 and 55, and a bit closer to 44 because 2020 is nearer 1616 than 3232. If you accidentally flip the fraction you get about 0.230.23, and that sanity check catches it at once.

How do you estimate a logarithm without a calculator?

A logarithm can be trapped between two whole numbers using powers you already know. Then a few memorized values narrow it down. The method:

  1. List nearby powers of the base on each side of the argument.
  2. State which two integers the log lies between.
  3. Use log⁡2≈0.301\log 2\approx0.301 (base 1010) to refine, via log⁡bx=log⁡xlog⁡b\log_b x=\frac{\log x}{\log b}.

For base 1010 there is a shortcut: a number with nn digits has a log between n−1n-1 and nn. So log⁡4500\log 4500 is between 33 and 44.

Example 4. Estimate log⁡2100\log_2 100.

Since 26=642^6=64 and 27=1282^7=128, the value lies between 66 and 77. Now refine it:

log⁡2100=log⁡100log⁡2≈20.301≈6.64\log_2 100=\frac{\log 100}{\log 2}\approx\frac{2}{0.301}\approx6.64

The calculator gives 6.6446.644, and the estimate is closer to 77 than 66 because 100100 is much closer to 128128 than to 6464, which matches.

Try this: Use log⁡2≈0.301\log 2\approx0.301 to estimate log⁡5\log 5 without a calculator (hint: 5=10÷25=10\div2). Then compare with a calculator.

This estimation habit is also an error check. When a calculator answer falls outside the integer bounds you found, the keystrokes went wrong, usually a missing parenthesis or a flipped ratio.

Where are logarithms used in real life?

Logs are used wherever quantities span huge ranges and multiplying matters more than adding. The pH scale is pH=−log⁡10[H+]\text{pH}=-\log_{10}[\text{H}^+], so a hydrogen ion concentration of 10−710^{-7} gives a pH of 77, and each drop of one pH unit means ten times more acidity. Earthquake magnitude works the same way: each whole step of the Richter scale is a tenfold increase in measured wave amplitude.

Sound level uses L=10log⁡10II0L=10\log_{10}\frac{I}{I_0}. Because 10log⁡102≈3.0110\log_{10}2\approx3.01, doubling the intensity adds about 33 decibels, and that is why two identical speakers are barely louder than one.

Money is the most personal use. If an account grows at 7%7\% a year, the time to double solves 1.07t=21.07^t=2. Taking logs of both sides gives

t=ln⁡2ln⁡1.07≈0.69310.0677≈10.2 yearst=\frac{\ln 2}{\ln 1.07}\approx\frac{0.6931}{0.0677}\approx10.2\text{ years}

The familiar rule of 72 predicts 72÷7≈10.372\div7\approx10.3, which is very close. The same step of taking logs on both sides is the main method in solving exponential equations with logarithms.

Quick check

A sound becomes 100 times more intense. By how many decibels does the level rise, using L=10log⁡10II0L=10\log_{10}\frac{I}{I_0}?

Why is log(a + b) not log a + log b?

Wrong versus right comparison showing log of a sum is not the sum of logs
With base 2 and a=b=4, the sum inside the log gives 3 while the sum of logs gives 4, but the product 4×4 matches.

This is the error that costs the most points. Logs convert products to sums, not sums to sums. There is no rule that splits log⁡b(x+y)\log_b(x+y) into anything simpler, so it stays as it is.

A quick counterexample shows why:

log⁡2(4+4)=log⁡28=3butlog⁡24+log⁡24=2+2=4\log_2(4+4)=\log_2 8=3 \quad\text{but}\quad \log_2 4+\log_2 4=2+2=4

The valid rules are log⁡b(xy)=log⁡bx+log⁡by\log_b(xy)=\log_b x+\log_b y, log⁡bxy=log⁡bx−log⁡by\log_b\frac xy=\log_b x-\log_b y and log⁡bxk=klog⁡bx\log_b x^k=k\log_b x. Notice that the last one requires the power to sit on the argument. (log⁡bx)k(\log_b x)^k is a different animal, and no rule simplifies it.

Practice applying the real rules in both directions with expanding logarithms and condensing logarithms. Whenever an answer feels too neat, test it with small numbers like the ones above before trusting it.

Practice problems

0 of 5 solved

  1. Evaluate log⁡232\log_2 32.

  2. Evaluate log⁡5125\log_5 \frac{1}{25}.

  3. Solve log⁡x81=4\log_x 81 = 4 for xx.

  4. Evaluate log⁡84\log_8 4.

  5. How many digits does 21002^{100} have? Use log⁡102≈0.30103\log_{10}2\approx0.30103.

Common questions

What is a logarithm in simple terms?

A logarithm is the exponent you put on a base to get a number. Since 103=100010^3=1000, the logarithm of 10001000 in base 1010 is 33, written log⁡101000=3\log_{10}1000=3.

What is the logarithm of 1?

It is always 00, whatever the base, because any positive base raised to the power 00 equals 11. So log⁡b1=0\log_b 1=0.

Can a logarithm be negative?

Yes. The value of a log is negative when the argument is between 00 and 11 and the base is greater than 11, for example log⁡214=−2\log_2\frac14=-2. What cannot be negative is the argument, the number inside the log.

What does log mean without a base?

On calculators and in most US algebra courses, log⁡x\log x means base 1010. Many college math and computer science texts use log⁡\log for the natural log or for base 22, so check the book's convention.

Why can't you take the logarithm of a negative number?

A positive base raised to any real power always gives a positive result, so no exponent can produce a negative number. The logarithm of a negative number is undefined in the real numbers.

What is the difference between log and ln?

log⁡\log usually means base 1010, while ln⁡\ln means base e≈2.718e\approx2.718. Both follow the same rules, and you can convert between them with log⁡bx=ln⁡xln⁡b\log_b x=\frac{\ln x}{\ln b}.

Up next