Logarithms Explained: Rules, Properties, and Examples
Solver AI TeamPublished Updated 10 min read
A complete guide to logarithms covering what they are, all the key rules and properties, how to solve logarithmic equations, and the change of base formula with fully worked examples.
Frequently asked questions
What are the three main logarithm rules?
The product rule says log_b(MN) = log_b(M) + log_b(N). The quotient rule says log_b(M/N) = log_b(M) − log_b(N). The power rule says log_b(M^p) = p·log_b(M). All three work only when every log has the same base and every argument is positive.
Why can you not take the log of a negative number?
A logarithm asks for the exponent y in b^y = x, and a positive base raised to any real power is always positive. So x must be greater than 0. In real numbers, log(0) and log of a negative number are undefined, which is why you must check solutions to log equations.
What is the difference between log and ln?
Log usually means base 10 (the common logarithm), and ln means base e ≈ 2.718 (the natural logarithm). They are related by log(x) = ln(x)/ln(10). Algebra and science courses mostly use log, while calculus uses ln because it gives cleaner derivatives and integrals.
How do you solve an equation with a variable in the exponent?
Take the logarithm of both sides, then use the power rule to bring the exponent down. For 5^x = 200, taking ln gives x·ln(5) = ln(200), so x = ln(200)/ln(5) ≈ 3.292. If both sides share a base, you can instead set the exponents equal.
What is the change of base formula and when do you need it?
The formula is log_b(x) = log_c(x)/log_c(b), for any new base c. You need it when a calculator only has log and ln buttons. For example, log₅(37) = ln(37)/ln(5) ≈ 2.244. It also lets you combine logs that have different bases.
A logarithm is the exponent you need: log_b(x) = y means b^y = x. The three key rules are that the log of a product is the sum of the logs, the log of a quotient is the difference, and an exponent inside a log moves out front as a multiplier.
The base b is the number being raised to a power, x is the result, and y is the exponent (the logarithm itself).
Definition — Logarithm
log_b(x) = y means b^y = x. Every logarithm requires b > 0, b ≠ 1, and x > 0. You cannot take the log of zero or a negative number (in real numbers), and the base cannot be 1 because 1^n = 1 for every n, so the exponent would never be unique.
For example, log₂(8) = 3 because 2³ = 8. Similarly, log₁₀(1000) = 3 because 10³ = 1000, and log₅(25) = 2 because 5² = 25.
The Key Insight
In other words, logarithms and exponents are inverse operations — they undo each other, just like addition and subtraction or multiplication and division. If exponentiation takes a base and an exponent and produces a result, then the logarithm takes the base and the result and tells you the exponent.
Two Special Logarithms
Two logarithms are so common that they get their own notation. The common logarithm uses base 10 and is written simply as log(x) (no base shown). The natural logarithm uses base e ≈ 2.718 and is written as ln(x). The natural log appears constantly in calculus, science, and finance because of the special properties of the number e.
The common log suits anything built on powers of 10: pH in chemistry, decibels in acoustics, and the Richter scale for earthquakes. For example, log(1000) = 3 and log(0.01) = −2. When a problem gives no base, assume log means base 10 in algebra and science, and that ln is the preferred log in calculus. You can also convert between them: log(x) = ln(x) / ln(10) ≈ ln(x) / 2.3026.
The Key Logarithm Rules
Logarithms follow a set of rules that mirror the exponent rules, and mastering them is essential for simplifying expressions and solving equations.
The Rule — Product Rule
log_b(MN) = log_b(M) + log_b(N). The log of a product is the sum of the logs. For example, log₂(4 · 8) = log₂(4) + log₂(8) = 2 + 3 = 5, and indeed 4 · 8 = 32 = 2⁵.
The Rule — Quotient Rule
log_b(M/N) = log_b(M) − log_b(N). The log of a quotient is the difference of the logs. For example, log₁₀(1000/10) = log₁₀(1000) − log₁₀(10) = 3 − 1 = 2.
The Rule — Power Rule
log_b(M^p) = p · log_b(M). An exponent inside a log can be pulled out front as a multiplier. For example, log₃(81) = log₃(3⁴) = 4 · log₃(3) = 4 · 1 = 4.
Identity, Zero, and Inverse Rules
Rule
Formula
Why
Zero Rule
log_b(1) = 0
Because b⁰ = 1 for any valid base.
Identity Rule
log_b(b) = 1
Because b¹ = b.
Inverse Rule
b^(log_b(x)) = x
Exponentiation and logarithms cancel.
Inverse Rule
log_b(b^x) = x
Exponentiation and logarithms cancel.
The Takeaway
These rules work for any base — common log, natural log, or any other base. They are the tools you will use in nearly every logarithm problem.
Change of Base Formula
Most calculators only have buttons for log (base 10) and ln (base e), so what do you do when you need log₅(37)? You use the change of base formula.
The Rule — Change of Base
log_b(x) = log_c(x) / log_c(b), where c can be any base you want. In practice, you usually change to base 10 or base e.
Example — computing log₅(37)
Using common logs: log₅(37) = log(37) / log(5) = 1.5682 / 0.6990 ≈ 2.244.
You get the same answer using natural logs: ln(37) / ln(5) = 3.6109 / 1.6094 ≈ 2.244.
Answerlog₅(37) ≈ 2.244
The change of base formula also lets you compare logarithms in different bases and is useful for graphing logarithmic functions.
Why It Works
A quick derivation shows why it works: let log_b(x) = y, so b^y = x. Take log_c of both sides: y · log_c(b) = log_c(x), so y = log_c(x) / log_c(b).
Corollary — Reciprocal Logs
A special case worth memorizing: log_b(a) = 1 / log_a(b). This follows directly from the change of base formula and is occasionally useful for simplifying expressions where you see reciprocal logarithms.
Solving Logarithmic Equations
Logarithmic equations come in several common types. Here are the strategies for each.
Type 1 — Single logarithm equals a number
Convert to exponential form. log₃(x) = 4 becomes x = 3⁴ = 81. Always check that your answer keeps the argument positive.
Answerx = 81
Type 2 — Logarithms on both sides with the same base
If log_b(A) = log_b(B), then A = B (as long as both arguments are positive).
For example, log₂(3x − 1) = log₂(x + 7) gives 3x − 1 = x + 7, so x = 4.
Check: 3(4) − 1 = 11 > 0 and 4 + 7 = 11 > 0, so the solution is valid.
Answerx = 4
Type 3 — Multiple logs that can be combined
Use the product, quotient, or power rules to combine into a single logarithm, then convert. For example, log(x) + log(x − 3) = 1.
Combine: log(x(x − 3)) = 1.
Convert: x(x − 3) = 10¹ = 10.
Expand: x² − 3x − 10 = 0.
Factor: (x − 5)(x + 2) = 0. So x = 5 or x = −2.
But x = −2 makes log(−2) undefined, so the only solution is x = 5.
Answerx = 5
Type 4 — Exponential equations solved with logs
When the variable is in the exponent, take the log of both sides. For example, 5^x = 200.
Take ln of both sides: x · ln(5) = ln(200), so x = ln(200)/ln(5) ≈ 3.292.
Answerx ≈ 3.292
Type 5: Natural log equation
Solve ln(2x + 1) = 3.
Convert to exponential form: 2x + 1 = e³, so x = (e³ − 1)/2 ≈ (20.086 − 1)/2 ≈ 9.54.
Check: 2x + 1 = e³ > 0, so the solution is valid.
Answerx ≈ 9.54
Type 6: Variable in a linear exponent
Solve 5^(2x − 1) = 7.
Take ln of both sides: (2x − 1)·ln(5) = ln(7), so 2x − 1 = ln(7)/ln(5) ≈ 1.209.
Solve for x: x = (1.209 + 1)/2 ≈ 1.105.
Answerx ≈ 1.105
Type 7: Exponentials on both sides
Solve 2^(x + 1) = 3^(x − 2).
Take ln of both sides and use the power rule: (x + 1)·ln(2) = (x − 2)·ln(3).
Collect the x terms: x·ln(3) − x·ln(2) = 2·ln(3) + ln(2), so x = (2·ln(3) + ln(2)) / (ln(3) − ln(2)) ≈ 2.890 / 0.405 ≈ 7.13.
Answerx ≈ 7.13
Critical Step
Always check your solutions by substituting back into the original equation. Logarithmic equations frequently produce extraneous solutions — values that satisfy the algebra but make a logarithm's argument zero or negative.
Graphing Logarithmic Functions
The graph of y = log_b(x) has several distinctive features.
Feature
Detail
Why
Key point
(1, 0)
Because log_b(1) = 0 for any base.
Key point
(b, 1)
Because log_b(b) = 1.
Domain
x > 0
Only positive inputs are valid.
Range
All real numbers
Logs can take any real value.
Vertical asymptote
x = 0
The curve approaches the y-axis but never touches it.
Increasing vs. Decreasing
When the base is greater than 1, the function is increasing: as x grows, y grows (but more and more slowly). When the base is between 0 and 1, the function is decreasing.
The Key Insight
The graph of y = log_b(x) is the reflection of y = b^x across the line y = x, which visually confirms that logs and exponentials are inverses.
Transformations
Transformations work the same way as with other functions.
Transformation
Effect
y = log_b(x − h) + k
Shifts the graph right by h and up by k.
y = −log_b(x)
Reflects it across the x-axis.
y = log_b(−x)
Reflects it across the y-axis (and the domain becomes x < 0).
The Takeaway
Understanding the shape of log graphs helps you estimate answers, check reasonableness, and solve inequalities graphically.
Common Mistakes and Tips
Mistake 1
Thinking log(a + b) = log(a) + log(b). There is no sum rule for logarithms. The product rule says log(ab) = log(a) + log(b), but that's for multiplication inside the log, not addition. log(2 + 3) = log(5) ≈ 0.699, but log(2) + log(3) = log(6) ≈ 0.778.
Mistake 2
Forgetting to check for extraneous solutions. After solving a logarithmic equation, you must verify that every solution keeps all logarithmic arguments positive. Skipping this step is the single most common source of wrong answers.
Mistake 3
Confusing log(x²) with (log(x))². The first is 2 log|x| (power rule). The second is the square of log(x). They are completely different.
Mistake 4
Dropping the base when applying rules. All logarithms in a calculation must have the same base before you can combine them. You cannot add log₂(x) and log₃(x) directly — convert one using the change of base formula first.
Helpful Tips
Tip
When you are stuck, convert the logarithmic equation to exponential form. This simple step clears up most confusion.
Tip
For mental math, think in powers. log₂(64): "2 to what power is 64?" Count: 2, 4, 8, 16, 32, 64 — that is 6 doublings, so the answer is 6.
The Takeaway
If you want to verify your logarithm work or see every step of a log equation solved, scan the problem with Solver AI for an instant, detailed breakdown.