An illustration connects an exponential curve to a logarithmic scale with powers of ten and real measurement examples.

Logarithms and Their Uses

A logarithm is a mathematical operation that finds the exponent needed to produce a number from a chosen base, in the context of exponential relationships. A logarithm answers the search question “what power gives this value?” In logb(x)=y\log_b(x)=y, the answer yy means by=xb^y=x. Log rules turn multiplication into addition, division into subtraction, and powers into multiplication. The idea exists because exponential change can span enormous ranges, while logarithms make those ranges easier to calculate, compare, graph, and explain.

If 103=100010^3=1000, then log10(1000)=3\log_{10}(1000)=3. These are two ways to state the same fact. The exponential form starts with a base and an exponent, then produces a value. The logarithmic form starts with the base and the value, then recovers the exponent.

A logarithm is an exponent. Whenever a logarithm looks unfamiliar, rewrite it as an exponential equation and ask which power of the base produces the input.

What a logarithm actually is

A logarithm is the inverse of exponentiation: it returns the exponent attached to a chosen base. The notation logb(x)\log_b(x) asks how many powers of bb are required to make xx, including fractional and negative powers.

Three quantities are involved. The base is the repeated multiplier, the argument is the positive number inside the logarithm, and the value is the exponent being sought. In log2(32)=5\log_2(32)=5, the base is 22, the argument is 3232, and the value is 55 because 25=322^5=32.

Logarithmic and exponential forms logb(x)=yby=x\log_b(x)=y \quad \Longleftrightarrow \quad b^y=x

Example: log3(81)=4\log_3(81)=4 because 34=813^4=81.

A valid real logarithm has two restrictions. Its base must be positive and cannot equal 11. Its argument must be positive. A positive base keeps exponential outputs positive, so no real exponent can make that base produce zero or a negative number. Base 11 is useless because every power of 11 remains 11, so it cannot represent a reversible function.

Exponential factEquivalent logarithmic factMeaning
50=15^0=1log5(1)=0\log_5(1)=0Every valid base to the zero power is one.
52=1255^{-2}=\frac{1}{25}log5(125)=2\log_5\left(\frac{1}{25}\right)=-2A negative logarithm corresponds to a reciprocal.
51/2=55^{1/2}=\sqrt{5}log5(5)=12\log_5(\sqrt{5})=\frac{1}{2}A fractional logarithm corresponds to a root.

How logarithms work

Logarithms work by reversing an exponential function one output at a time. To evaluate one, identify the base, set its unknown exponent equal to the argument, and solve for that exponent using known powers, estimation, or a calculator.

1
Translate the notation

Rewrite logb(x)=y\log_b(x)=y as by=xb^y=x. This exposes the exponent the problem is asking for.

2
Look for an exact power

Factor or rewrite the argument using the base. For log4(64)\log_4(64), recognize that 64=4364=4^3.

3
Estimate if the power is not exact

Since 102=10010^2=100 and 103=100010^3=1000, log10(500)\log_{10}(500) must lie between 22 and 33.

4
Check by exponentiating

Raise the base to your answer. A calculator gives log10(500)2.699\log_{10}(500)\approx2.699, and 102.69950010^{2.699}\approx500.

The estimate also carries meaning. A common logarithm counts powers of ten, so its integer part tells you the scale. Positive numbers less than 11 have negative common logarithms because they need negative powers of ten. For example, log10(0.01)=2\log_{10}(0.01)=-2 because 102=0.0110^{-2}=0.01.

Choose a base
Match the argument to a power
Read the exponent
Check by exponentiating

The base controls how the answer moves. If b>1b>1, larger inputs have larger logarithms. If 0<b<10<b<1, larger inputs have smaller logarithms. Both cases are valid because the related exponential functions are one to one. Most school and scientific work uses bases greater than one.

Logarithms versus exponents

Exponentiation builds an output from a base and an exponent, while a logarithm recovers the exponent from a base and an output. They are inverse functions, so each operation undoes the other when their base and domain conditions are satisfied.

Exponentiation

Given 22 and 66, calculate 26=642^6=64. The unknown is the final output.

Logarithm

Given 22 and 6464, calculate log2(64)=6\log_2(64)=6. The unknown is the exponent.

This inverse relationship produces two cancellation identities:

Inverse identities logb(bx)=xblogb(x)=x\log_b(b^x)=x \qquad b^{\log_b(x)}=x

Examples: log7(74)=4\log_7(7^4)=4 and 7log7(20)=207^{\log_7(20)}=20.

Their graphs show the same relationship. The graph of y=bxy=b^x contains points such as (0,1)(0,1), (1,b)(1,b), and (2,b2)(2,b^2). Swapping every input and output gives (1,0)(1,0), (b,1)(b,1), and (b2,2)(b^2,2), which lie on y=logb(x)y=\log_b(x). The two graphs are reflections across y=xy=x. A logarithmic graph has a vertical asymptote at x=0x=0 because its input can approach zero through positive values but cannot reach zero.

This is one instance of the inverse operations studied in algebra. Subtraction undoes addition, roots undo powers in suitable domains, and logarithms undo exponentials.

How the laws of logarithms work

The logarithm laws follow from the laws of exponents. Multiplying equal base powers adds their exponents, dividing subtracts them, and raising a power to another power multiplies them, so logarithms transform those operations in exactly the same way.

Products become sums

The product rule says that the logarithm of a product equals the sum of the separate logarithms, provided both arguments are positive.

Product rule logb(MN)=logb(M)+logb(N)\log_b(MN)=\log_b(M)+\log_b(N)

Since 8×4=328\times4=32, log2(32)=log2(8)+log2(4)=3+2=5\log_2(32)=\log_2(8)+\log_2(4)=3+2=5.

To see why, let M=brM=b^r and N=bsN=b^s. Then MN=brbs=br+sMN=b^r b^s=b^{r+s}. Taking the base bb logarithm recovers the exponent r+sr+s.

Quotients become differences

The quotient rule says that the logarithm of a positive quotient equals the numerator's logarithm minus the denominator's logarithm.

Quotient rule logb(MN)=logb(M)logb(N)\log_b\left(\frac{M}{N}\right)=\log_b(M)-\log_b(N)

Since 81/3=2781/3=27, log3(27)=log3(81)log3(3)=41=3\log_3(27)=\log_3(81)-\log_3(3)=4-1=3.

The subtraction comes from br/bs=brsb^r/b^s=b^{r-s}. This is also why a logarithm of a reciprocal changes sign: logb(1/M)=logb(M)\log_b(1/M)=-\log_b(M).

Powers become coefficients

The power rule says that an exponent on a positive argument can move in front of the logarithm as a multiplier.

Power rule logb(Mp)=plogb(M)\log_b(M^p)=p\log_b(M)

For M=5M=5 and p=3p=3, log10(125)=3log10(5)\log_{10}(125)=3\log_{10}(5).

The rule follows because (br)p=brp(b^r)^p=b^{rp}. It is useful for solving equations in which the unknown appears in an exponent. It also explains why multiplication on the original scale becomes repeated addition on a logarithmic scale.

There is no sum rule. In general, logb(M+N)logb(M)+logb(N)\log_b(M+N)\ne\log_b(M)+\log_b(N). For example, log10(10+90)=2\log_{10}(10+90)=2, but log10(10)+log10(90)2\log_{10}(10)+\log_{10}(90)\ne2.

How common logarithms and natural logarithms differ

Common logarithms use base 1010, natural logarithms use base ee, and binary logarithms use base 22. They ask the same kind of question, but each base suits a different pattern of measurement or growth.

log(x)\log(x)
Usually base 10 in school science and many calculators
ln(x)\ln(x)
Base e2.71828e\approx2.71828, common in calculus and continuous growth
log2(x)\log_2(x)
Base 2, common in computing and information theory

Base 1010 fits decimal notation. Each increase of 11 in a common logarithm means multiplication by 1010. Base 22 fits systems built from two states. Each increase of 11 means doubling. The number ee appears naturally when a quantity's instantaneous growth rate is proportional to its current amount. In that setting, ln(x)\ln(x) makes derivatives and growth equations especially simple.

You can convert any valid logarithm to a base available on your calculator.

Change of base logb(x)=logc(x)logc(b)\log_b(x)=\frac{\log_c(x)}{\log_c(b)}

Example: log2(10)=ln(10)/ln(2)3.322\log_2(10)=\ln(10)/\ln(2)\approx3.322.

The result says that 23.3222^{3.322} is approximately 1010. The choice of cc does not alter the answer as long as the same valid base is used in the numerator and denominator. On a calculator, confirm what the keys mean. A key marked “log” normally uses base 1010, while “ln” uses base ee. Software conventions can differ, so an explicit base avoids ambiguity.

How logarithmic equations are solved

A logarithmic equation is solved by isolating the logarithm, applying valid log laws where useful, converting to exponential form, and checking every proposed answer in the original equation. The final check matters because every logarithm argument must remain positive.

Worked equation

Solve log3(x1)=4\log_3(x-1)=4. Convert it to 34=x13^4=x-1, so 81=x181=x-1 and x=82x=82. The check succeeds because 821=81>082-1=81>0 and log3(81)=4\log_3(81)=4.

An equation with two logarithms may first require combining them. Consider log2(x)+log2(x2)=3\log_2(x)+\log_2(x-2)=3. The product rule gives log2(x(x2))=3\log_2(x(x-2))=3. Convert to exponential form:

x(x2)=23x(x-2)=2^3

x22x8=0x^2-2x-8=0

(x4)(x+2)=0(x-4)(x+2)=0

The algebra produces x=4x=4 and x=2x=-2. Only x=4x=4 is valid. The original arguments are xx and x2x-2, so both require x>2x>2. The candidate 2-2 is an extraneous solution introduced by solving the transformed quadratic without carrying its domain restriction.

Exponential equations use logarithms when their terms cannot be rewritten with one convenient base. To solve 5t=705^t=70, take a logarithm of both sides:

Solving for an exponent t=ln(70)ln(5)2.640t=\frac{\ln(70)}{\ln(5)}\approx2.640

Check: 52.6405^{2.640} is approximately 7070.

This technique connects logarithms with powers, roots, and radical expressions. A root can isolate an unknown base, while a logarithm can isolate an unknown exponent. Choosing between them depends on where the unknown sits.

How logarithms show up in science and measurement

Logarithms appear in science when measurements cover many powers of a base or when ratios matter more than raw differences. A logarithmic scale compresses a vast numerical range and turns equal multiplication factors into equal distances on the scale.

Acidity is reported with pH

For introductory calculations, pH is the negative base 1010 logarithm of hydrogen ion concentration measured in moles per litre.

Introductory pH relation pH=log10([H+])\mathrm{pH}=-\log_{10}([\mathrm{H}^+])

If [H+]=103[\mathrm{H}^+]=10^{-3} moles per litre, then pH=3\mathrm{pH}=3.

A change of one pH unit corresponds to a factor of ten in this concentration model. A solution with pH 33 has ten times the hydrogen ion concentration of a solution with pH 44, not one unit more concentration. Precise chemistry uses activity rather than bare concentration, but the logarithmic mechanism remains.

Sound levels compare intensity ratios

A sound intensity level in decibels is ten times the common logarithm of an intensity ratio relative to a specified reference intensity.

Sound intensity level L=10log10(II0) dBL=10\log_{10}\left(\frac{I}{I_0}\right)\ \mathrm{dB}

If intensity becomes 100100 times the reference, the level is 10log10(100)=2010\log_{10}(100)=20 dB.

Multiplying intensity by ten adds 1010 decibels because log10(10)=1\log_{10}(10)=1. This formula concerns physical intensity, not a direct statement that human perception changes by the same factor. Different decibel formulas use different multipliers depending on which physical quantity is being compared.

Earthquake magnitude records ratios

Modern earthquake magnitude scales are logarithmic measures derived from recorded seismic signals, so equal steps in magnitude represent multiplicative changes in measured motion rather than equal additions.

The original local magnitude relation associated with the Richter scale used a base 1010 logarithm of a corrected wave amplitude. Modern seismology often uses moment magnitude, which is based on seismic moment and behaves differently in detail. Calling every earthquake value “the Richter scale” hides that distinction. The shared mathematical idea is that the logarithm turns a large physical range into a compact scale.

“On a logarithmic scale, equal steps mean equal ratios.”

How logarithms show up in money, growth, and computing

Logarithms answer time and scale questions in systems that multiply. They find how long compound growth takes, how many repeated halvings reach a target, how many binary choices identify an item, and how orders of magnitude compare.

Compound growth hides time in an exponent

In a compound growth model, a logarithm isolates the time because time appears as an exponent on the growth factor.

Savings target

An account begins with 10001000 units and grows by 5%5\% once per year. To find when it reaches 20002000, solve 1000(1.05)t=20001000(1.05)^t=2000. This gives t=ln(2)/ln(1.05)14.21t=\ln(2)/\ln(1.05)\approx14.21 years under the model.

The model assumes a fixed annual rate and no deposits, withdrawals, fees, or taxes. Real financial decisions require those details, as the guide to interest, loans, and financial calculations shows. The logarithm does not predict the rate. It answers a time question after the model and rate have been chosen.

Repeated halving also needs logarithms

Exponential decay models a quantity that loses the same fraction during each equal time interval, and a logarithm finds how many intervals are needed to cross a target.

Suppose a medicine amount is multiplied by 0.80.8 each hour. Starting at 100100 milligrams, the model is A=100(0.8)tA=100(0.8)^t. To find when it reaches 3030 milligrams, solve 0.8t=0.30.8^t=0.3, so t=ln(0.3)/ln(0.8)5.40t=\ln(0.3)/\ln(0.8)\approx5.40 hours. The answer belongs to the model, which assumes the same proportional loss each hour.

Binary logarithms count repeated doubling

A binary logarithm counts how many doublings produce a quantity, which makes it useful for data structures, search procedures, and information measured through two way choices.

A balanced binary decision tree with 10241024 possible endpoints needs 1010 yes or no decisions to identify one endpoint because 210=10242^{10}=1024. Equivalently, log2(1024)=10\log_2(1024)=10. This does not mean every search problem automatically takes exactly a logarithmic number of steps. The structure must divide the remaining possibilities into roughly equal groups.

How logarithms describe algorithm growth

An algorithm taking about log2(n)\log_2(n) stages grows slowly because doubling nn adds only one stage. Binary search has this pattern when it repeatedly halves a sorted search range. Searching 10241024 positions needs at most about 1010 halving decisions, while doubling the range to 20482048 adds only one more.

5 mistakes people make with logarithms

Most logarithm errors come from forgetting that a logarithm is an exponent, misapplying a rule to addition, ignoring domain restrictions, mixing bases, or trusting calculator output without checking the original expression. Each error can be caught with a short exponential check.

1. Treating a logarithm as division

The notation logb(x)\log_b(x) does not mean x/bx/b. It asks for an exponent. For example, log2(8)=3\log_2(8)=3, while 8/2=48/2=4. Rewrite the statement as 23=82^3=8 to recover its meaning.

2. Splitting a sum as if it were a product

The product rule applies to MNMN, not M+NM+N. A quick counterexample is log10(10+10)=log10(20)\log_{10}(10+10)=\log_{10}(20), which is not 1+11+1. Parentheses and operation signs deserve attention before any rule is used.

3. Allowing zero or negative arguments

A real logarithm requires a positive argument. The expression log4(x7)\log_4(x-7) therefore requires x>7x>7. An algebraic candidate outside that domain is not a solution, even if it solves a later polynomial equation.

4. Switching bases without conversion

The statements log10(100)=2\log_{10}(100)=2 and log2(100)6.644\log_2(100)\approx6.644 have different answers because they ask about different repeated multipliers. When a base is omitted, use the convention established by the course, calculator, or software, and label the base in your work.

5. Rounding before the final step

Early rounding can noticeably change an answer after multiplication or exponentiation. Keep the calculator's stored value through the calculation, then round once to the precision justified by the inputs. Substitute the rounded result into the original equation to see whether it remains sensible.

Unreliable habit

Copy a decimal from the screen and assume the equation is solved.

Reliable habit

State the base, preserve precision, check the domain, and verify by exponentiating.

What a logarithmic scale actually shows

A logarithmic scale places equal ratios at equal visual distances. On a base 1010 axis, the intervals from 11 to 1010, 1010 to 100100, and 100100 to 10001000 have equal width. This preserves proportional comparisons that linear spacing can conceal.

This scale is useful when positive data span several orders of magnitude. On an ordinary linear axis, a value of 11 becomes visually crushed beside 1,000,0001{,}000{,}000. On a logarithmic axis, powers of ten are evenly spaced, so both small and large values remain visible. Zero cannot appear on a standard logarithmic axis because no real power of a positive base equals zero.

11
1010
100100
10001000

Each arrow represents multiplication by 1010, even though the numerical differences are 99, 9090, and 900900. This changes how slopes should be read. On a graph with a logarithmic vertical axis and a linear horizontal axis, a straight line can indicate exponential change. On a graph with both axes logarithmic, a straight line can indicate a power relationship.

Charts should label logarithmic axes clearly. Without that label, equal vertical distances can be mistaken for equal numerical differences. Reading the tick marks reveals the truth: if successive marks are powers or constant ratios, the axis is logarithmic. Choosing an honest display also depends on ideas covered in data summaries, charts, and statistical reasoning.

What happens at zero and with negative numbers?

Real logarithms are undefined at zero and at negative inputs because positive real bases raised to real powers always produce positive outputs. Values can approach zero without reaching it, and their logarithms move without bound in a direction set by the base.

For a base greater than 11, logb(x)\log_b(x) falls toward negative infinity as positive xx approaches zero. This does not mean the logarithm “equals negative infinity” at zero. It means no finite lower bound stops the outputs as the input gets closer to zero.

Negative numbers can have logarithms in complex number systems, where the answer is not generally a single real value. That extension depends on complex angles and is beyond the real logarithms used in most school models. In a real equation, treat a negative log argument as a domain failure, not as a prompt to press a different calculator key.

Domain check: For logb(f(x))\log_b(f(x)) in real mathematics, require f(x)>0f(x)>0. The inequality belongs to the problem from the first line, not only during the final check.

Can a logarithm have a fractional or negative answer?

A logarithm can be fractional, negative, irrational, or zero because an exponent can have any of those forms. For bases greater than one, inputs above one give positive answers, inputs between zero and one give negative answers, and input one gives zero.

A fractional result appears when a root is involved. Since 91/2=39^{1/2}=3, log9(3)=1/2\log_9(3)=1/2. A negative result appears when a reciprocal is involved. Since 103=0.00110^{-3}=0.001, log10(0.001)=3\log_{10}(0.001)=-3. An irrational result is common when the argument is not an exact rational power of the base. For instance, log2(10)\log_2(10) is approximately 3.3223.322, not a neat fraction normally used in calculation.

Input for b>1b>1Logarithm outputReason
x>1x>1PositiveA positive exponent makes the base larger than one.
x=1x=1Zerob0=1b^0=1.
0<x<10<x<1NegativeA negative exponent produces a positive reciprocal.

Logarithms make multiplicative patterns readable

Logarithms belong to mathematics because they reveal structure: they reverse exponential functions, convert products into sums, expose hidden exponents, and place ratios on readable scales. The best way to understand one is to translate it, calculate it, and check it.

When you next see a pH value, a decibel level, a compound growth time, or a logarithmic chart, identify the base and ask what ratio one unit represents. Then rewrite one logarithm as an exponential statement. That simple move connects the notation to the repeated multiplication underneath it.

The takeaway: A logarithm tells you the exponent required to reach a positive value from a chosen base. Treat it as an inverse power, respect its domain, and use its laws only where multiplication, division, or powers justify them.

That habit links logarithms to functions, equations, graphs, modelling, and proof across the wider collection of mathematics explanations. Pick a real quantity that changes by a constant factor, write its exponential model, then use a logarithm to solve for the step you cannot see directly.

Related across Lelfy