Sub topic 10
Combining Logarithms and Equating Arguments
This chapter covers logarithmic equations that contain two or more logarithm terms. The method is to collapse them into one logarithm on each side and then equate the arguments. It builds on the product, quotient, and power rules, the one-to-one property, and the domain rules for logarithms. It assumes you can solve linear and quadratic equations and that you know the following:
- The product rule: logb(M) + logb(N) = log_b(MN).
- The quotient rule: logb(M) − logb(N) = log_b(M/N).
- The power rule: k·logb(M) = logb(M^k).
- A logarithm is defined only for a positive argument.
Why combine logarithms?
The previous chapter solved equations by rewriting a single logarithm in exponential form. That works when the equation looks like log_b(expression) = number. Many equations do not look like that. Consider:
log2(x) + log2(x - 2) = 3The unknown sits inside two separate logarithms. You cannot rewrite either one in exponential form on its own, because neither is isolated. The fix is to use the logarithm rules to merge the terms into one logarithm. After that the equation has the single-logarithm form you already know how to solve.
There are two common shapes, and each has its own finishing move.
| Shape after combining | Finishing move | Example |
|---|---|---|
| log_b(A) = c (one log, one constant) | Rewrite in exponential form: A = b^c | log2(x(x−2)) = 3 |
| log_b(A) = log_b(B) (one log per side, same base) | Equate arguments: A = B | log3(x+1) = log3(2x−5) |
Both finishing moves are reversible only when the arguments are positive. That condition is the source of every error in this chapter.
The equating-arguments rule
The one-to-one property says that if b > 0 and b ≠ 1, then logb(A) = logb(B) exactly when A = B, provided both A and B are positive. The rule is useful because it removes the logarithms entirely.
Here is a complete example.
Solve log3(x + 1) = log3(2x − 5).
- Both sides are single logarithms with base 3, so equate the arguments: x + 1 = 2x − 5.
- Solve the linear equation: 6 = x.
- Check the domain. The arguments are x + 1 = 7 and 2x − 5 = 7. Both are positive.
So x = 6 is a solution. Notice that the check is not optional. In this case it passes, but you only know that after doing it.
The full procedure
Follow these steps for any equation that mixes several logarithms.
- Write the domain conditions first. For every logarithm that contains the unknown, require its argument to be greater than 0. Keep these inequalities beside your work.
- Collect the logarithms. Move all logarithm terms to one side if needed, and keep constants on the other side.
- Apply the power rule to turn coefficients into exponents, for example 2·log(x) becomes log(x²).
- Apply the product and quotient rules to merge terms into one logarithm per side.
- Finish: equate arguments if both sides are single logs with the same base, or rewrite in exponential form if one side is a constant.
- Solve the resulting algebraic equation (linear, quadratic, or similar).
- Check each candidate against the domain conditions from step 1. Discard any that fail.
Writing the domain conditions first is a habit worth building. It tells you in advance which answers are possible, and it makes step 7 a quick comparison instead of a re-derivation.
Worked example 1: sum of logarithms equal to a constant
Solve log2(x) + log2(x − 2) = 3.
Domain. We need x > 0 and x − 2 > 0. The second condition is stronger, so the domain is x > 2.
Combine. The product rule gives:
log2(x(x - 2)) = 3Rewrite in exponential form. A single logarithm equals a constant, so:
x(x - 2) = 2^3 = 8
x^2 - 2x - 8 = 0
(x - 4)(x + 2) = 0The candidates are x = 4 and x = −2.
Check against the domain. The domain is x > 2. The value x = 4 passes. The value x = −2 fails, because log2(−2) is undefined. So x = −2 is an extraneous solution, and the only solution is x = 4.
The following script confirms this by filtering the candidates with the domain test and the original equation.
import math
# Solve log2(x) + log2(x - 2) = 3
# Combine: log2(x*(x - 2)) = 3, so x*(x - 2) = 8, so x**2 - 2*x - 8 = 0
candidates = [4, -2] # roots of the quadratic
valid = [
x for x in candidates
if x > 0 and x - 2 > 0
and math.isclose(math.log2(x) + math.log2(x - 2), 3)
]
print(valid) # [4]Note the order of the conditions in the list comprehension. The domain tests x > 0 and x - 2 > 0 run before math.log2 is called. Python's and short-circuits, so math.log2(-2) is never evaluated. If the order were reversed, math.log2(-2) would raise a ValueError.
Worked example 2: difference of logarithms
Solve ln(x + 3) − ln(x − 1) = ln(2).
Domain. We need x + 3 > 0 and x − 1 > 0, so x > 1.
Combine. The quotient rule turns the left side into one logarithm:
ln((x + 3)/(x - 1)) = ln(2)Equate arguments. Both sides are single natural logarithms:
(x + 3)/(x - 1) = 2
x + 3 = 2(x - 1)
x + 3 = 2x - 2
x = 5Check. The value 5 is greater than 1, so it is in the domain. Substituting gives ln(8) − ln(4) = ln(2), which is true. The solution is x = 5.
Multiplying both sides by x − 1 is safe here because the domain guarantees x − 1 > 0, so it is never zero.
Worked example 3: coefficients and the power rule
Solve 2·log(x) = log(x + 12).
Domain. We need x > 0 and x + 12 > 0, so x > 0.
Apply the power rule to the left side, which moves the coefficient into the exponent:
log(x^2) = log(x + 12)Equate arguments:
x^2 = x + 12
x^2 - x - 12 = 0
(x - 4)(x + 3) = 0The candidates are x = 4 and x = −3.
Check. Only x = 4 satisfies x > 0. The candidate x = −3 is extraneous. It is worth noticing how it slipped in: log(x²) is defined for x = −3, because 9 is positive. The power rule changed the domain. The original left side, 2·log(x), requires x > 0, but the rewritten log(x²) accepts any x ≠ 0. That is why the domain must be taken from the original equation, not from the rewritten one.
Why extraneous solutions appear
The logarithm rules are identities only for positive arguments. For example, logb(MN) = logb(M) + log_b(N) holds when M > 0 and N > 0. The left side can be defined when M and N are both negative, but the right side then is not. When you apply the rule from right to left to combine terms, the combined equation can accept values that the original equation rejects.
The next diagram shows the flow of the procedure and where the check sits.
Common errors
- Combining logs with different bases. The product and quotient rules need a common base. If you see log2 and log3 together, first use the change of base formula to convert one of them.
- Equating arguments when a constant is left over. An equation such as log(x) + 2 = log(x + 5) cannot have its arguments equated yet. Write the 2 as log(100), or move terms, so that each side is a single log.
- Splitting a log of a sum. The expression log(x + 3) is not log(x) + log(3). The product rule applies to products only.
- Dropping the domain check because the algebra looks clean. A quadratic with two integer roots often hides one invalid root, as in examples 1 and 3.
- Applying the rules to a sum or difference of logs with a coefficient on only one term. Handle the coefficients first with the power rule, then combine.
Worked example 4: a constant that must become a logarithm
Solve log(x) + 2 = log(x + 5)... but first notice what happens.
Subtract: log(x + 5) − log(x) = 2. The quotient rule gives log((x + 5)/x) = 2. The base is 10, so:
(x + 5)/x = 10^2 = 100
x + 5 = 100x
5 = 99x
x = 5/99Check. The domain is x > 0 (the condition x + 5 > 0 follows from it). The value 5/99 is positive, so it is valid. The exact answer is x = 5/99, which is about 0.0505.
This example shows a second route to the same place. Instead of writing 2 as log(100) and equating arguments, you can isolate one logarithm and rewrite it in exponential form. Both routes produce the same equation.
Equations that have no solution
Sometimes every candidate fails the check. Solve log(x) + log(x + 3) = log(−4)... this one is already invalid as written, since log(−4) is undefined. A more realistic case is:
ln(x - 5) = ln(2 - x)Equating arguments gives x − 5 = 2 − x, so x = 3.5. The domain needs x > 5 and x < 2, which no number satisfies. The equation has no solution, and the candidate 3.5 is extraneous. Reporting "no solution" is a complete and correct answer. Do not invent a value to fill the gap.
Summary of the method
- Write the domain from the original equation before doing any algebra.
- Use the power, product, and quotient rules to get one logarithm on each side.
- Equate arguments for log = log, or go to exponential form for log = constant.
- Solve the algebraic equation, then test every candidate in the original equation.
- A result of "no solution" is possible.
Exercise
Solve log2(x + 1) + log2(x − 3) = 5. Give all valid solutions and name any extraneous candidate.
Show answer
Domain: x + 1 > 0 and x − 3 > 0, so x > 3. Combine: log2((x + 1)(x − 3)) = 5, so (x + 1)(x − 3) = 32. Expand: x² − 2x − 3 = 32, so x² − 2x − 35 = 0, which factors as (x − 7)(x + 5) = 0. The candidates are x = 7 and x = −5. Only x = 7 satisfies x > 3. Check: log2(8) + log2(4) = 3 + 2 = 5. The solution is x = 7, and x = −5 is extraneous.
Exercise
Solve 2·ln(x) = ln(6 − x) + ln(2). Explain why the power rule can make a bad candidate look acceptable.
Show answer
Domain from the original equation: x > 0 and 6 − x > 0, so 0 < x < 6. Power rule: ln(x²) = ln(2(6 − x)). Equate arguments: x² = 12 − 2x, so x² + 2x − 12 = 0. By the quadratic formula, x = −1 ± √13. The candidate −1 + √13 is about 2.606, which is in (0, 6), so it is valid. The candidate −1 − √13 is about −4.606, which is negative and so extraneous. The rewritten ln(x²) is defined for negative x, but the original 2·ln(x) is not, so the rewrite hides the domain restriction. The solution is x = −1 + √13.
Exercise
Solve ln(x − 4) = ln(1 − x) and state the result.
Show answer
Domain: x − 4 > 0 and 1 − x > 0, so x > 4 and x < 1, which is impossible. Equating arguments would give x − 4 = 1 − x, so x = 2.5, but 2.5 fails both conditions. The equation has no solution.