Equations involving logarithms and unknown variables can often be solved by employing the definition of the logarithm, as well as several of its basic properties:
logx(a)+logx(b)=logx(ab)
logx(a)−logx(b)=logx(ba)
alogx(b)=logx(ba)
logx(a)=logy(x)logy(a)=loga(x)1 for any positive real number y
xlogx(a)=a.
Common mistakes to watch out for include
logx(a)⋅logx(b)=logx(ab)
logx(b)logx(a)=logx(ba).
The general strategy is to consolidate the logarithms using these properties, and then to take both sides of the equation to the appropriate power in order to eliminate the logarithms if possible.
For many equations with logarithms, solving them is simply a matter of using the definition of logx to eliminate logarithms from the equation and convert it into a polynomial or exponential equation.
Find x if log2(3x+1)=4.
By the definition of the logarithm,
3x+13xx=24=16=15=5.□
Another way to view this solution is that we took 2 to the power of the left side and got 3x+1, and took 2 to the power of the right side and got 24=16. More complicated logarithmic equations are often simplified by exponentiating both sides.
If log8m+log861=32, then what is m?
The correct answer is: 24
Other equations can be simplified using other properties of logarithms. One difficulty that arises is that eliminating logarithms and solving the resulting equation can introduce spurious solutions. These solutions violate the principle that the argument of the log function must always be positive. It is generally wise to check solutions by plugging them into the original equation and making sure that both sides are defined.
This produces two potential solutions x=3,x=15. But note that x=3 is not an actual solution, as log3(3−12) is undefined. The only actual solution is x=15. □
The step in the solution above that was not reversible was the first one: although (x−12)(x−6) is positive if x=3, x−12 and x−6 are not themselves positive.
1
-1
2
0
Find all real solutions x to
3log2(x)−1=log2(23x−1).
Enter your answer as the sum of all such x.
The correct answer is: 1
Solving Logarithmic Equations - Intermediate
More complicated logarithmic equations often involve more than one base. It can help to introduce unknowns to solve for the logarithms first. Another useful identity is logx(y)=logz(x)logz(y), especially since z can be chosen to be whatever simplifies the problem.
So m=n or 2m=n. In the first case, log(a)=log(b), so a=b. In the second case, 2log(a)=log(b), so log(a2)=log(b), so a2=b. □
The sum of all (positive) solutions of the equation
log16x+logx16=log512x+logx512
can be written as ba, where a and b are coprime positive integers. What are the last three digits of a+b?
The correct answer is: 161
Solution 1: First, change the base of all logarithms to base 2. Then our logarithmic equation becomes log216log2x+log2xlog216=log2512log2x+log2xlog2512, which simplifies to 4log2x+log2x4=9log2x+log2x9. Multiplying both sides by log2x and collecting like terms gives us 365(log2x)2=5. Therefore (log2x)2=36 and log2x=±6. Finally we get x=2±6=64 or 641. The sum of these solutions is 64+641=64642+1=64212+1=644097. Since 4097+64=4161, the answer is 161.
Solution 2: We start with a useful lemma.
Lemma. Suppose u and v are non-zero real numbers. Then u+u1=v+v1 if and only if u=v or uv=1.
Proof. The "if" part is obvious. For the "only if" part, notice that u+u1−(v+v1)=uvu2v+v−uv2−u.
So u2v+v−uv2−u=0, which can be rewritten, by factoring, as (u−v)(uv−1)=0.
Applying the lemma to u=logx16 and v=logx512, we get that our equation is true if and only if logx16=logx512 or logx16⋅logx512=1. The first of these cases is impossible, because for every fixed x logarithm base x is a monotone function (increasing if x>1, decreasing if 0<x<1). So, logx16⋅logx512=1.
This can be rewritten, by rewriting all logarithms using base 16, as
log16x1⋅log16xlog16512=1
This simplifies to (log16x)2=log16512.
Because 16=24 and 512=29, we get (log16x)2=49, so log16x=±23. This gives x=163/2=64 and x=16−3/2=641. The sum of these solutions is 64+641=64642+1=64212+1=644097. Since 4097+64=4161, the answer is 161.
Equations involving exponents can often be simplified by taking logarithms:
and substituting y=log2(x) turns this into y(y−1)=y+3, or y2−2y−3=0. So y=3 or y=−1, which leads to x=8 or x=21. □
What is the sum of all possible real values of x that satisfies the equation xlog5x=25x3?
The correct answer is: 30
Since we have log5x in the equation, our domain is restricted to x>0. Taking log5 of both sides, we have
log5(xlog5x)(log5x)(log5x)(log5x)2−3log5x+2(log5x−2)(log5x−1)=log5(25x3)=3log5x−log525=0=0
Therefore log5x=2⇒x=52=25 and log5x=1⇒x=5 are solutions. A quick check shows that they are valid solutions. Hence the sum is 5+25=30.
Logarithms can also make computation easier in certain practical situations. For example, logarithms with base 10 give information about the number of decimal digits in a number.
So 764 is bigger. The number of decimal digits of x is ⌊log10(x)⌋+1, so 2100350 has 54 digits and 764 has 55 digits. □
Note that this is much easier than multiplying the numbers and comparing them directly. For applications that require large numbers (such as RSA encryption), this is very important.
Find the number of digits in 992.
Note: You may use the fact that log103=0.4771 correct up to 4 decimal places.