Learning Objectives
- Describe the meaning of solving a logarithmic equation
- Solve logarithmic equations using the rules for logarithms
- Solve exponential equations using logarithms
The Meaning of Solving Logarithmic Equations
Intersection point of functions
In chapter 3, we learned that the meaning of solving an equation is to find the intersection point(s) between two functions. The intersection point(s) between the graphs of any two functions [latex]f(x)[/latex] and [latex]g(x)[/latex] can be found algebraically by setting the two functions equal to each other:
[latex]f(x)=g(x)[/latex]
When the functions are equal, the value of [latex]x[/latex] is the same for both functions, as is the function value. In other words, [latex]f(x)=g(x)[/latex] means that the two functions have the same input [latex]x[/latex]as well as the same output (i.e [latex]f(x)=g(x)[/latex]). For example, solving the equation [latex]\log_2{(x+1)} +\log_2{4}=3[/latex] means finding the intersection point between the two functions [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex] and [latex]g(x)=3[/latex] (figure 1).
Finding the [latex]x[/latex]-value given a function value
Given the equation [latex]\log_2{(x+1)} +\log_2{4}=3[/latex], in addition to the interpretation of finding the intersection point between the two functions [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex] and [latex]g(x)=3[/latex], another interpretation of the equation is finding the [latex]x[/latex] value when the function value of [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex] is [latex]3[/latex] (figure 2).
Graphically, this means finding the [latex]x[/latex] value as a given [latex]y[/latex]-value on a graph, then moving vertically down to the [latex]x[/latex]-axis to determine the corresponding [latex]x[/latex]-value. In figure 2, to solve [latex]\log_2{(x+1)} +\log_2{4}=3[/latex], we graph the function [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex], look for 3 on the [latex]y[/latex]-axis then determine which [latex]x[/latex]-value has a function value at 3. In this case, [latex]x=1[/latex].
Solving an equation in one variable
Algebraically, [latex]\log_2{(x+1)} +\log_2{4}=3[/latex] is an equation in one variable. When solving an equation in one variable, we find the value of the variable that satisfies the equation (e.g., the [latex]x[/latex]-value). There is no function value to report as the equation is in just one variable.
For example, when solving the equation, [latex]\log_2{(x+1)} +\log_2{4}=3[/latex], we find the value of [latex]x[/latex] that makes the equation true. The value of [latex]x[/latex] is 1 because [latex]\log_2{(1+1)} +\log_2{4}=1+2=3[/latex]. We need algebraic methods to solve logarithmic equations, including the properties of equality covered in chapter 3.
In summary, when we set functions equal to each other, we are finding the intersection point between two functions (e.g., [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex] and [latex]g(x)=3[/latex]). In this example, the intersection point between the graphs of the two functions [latex]f(x)=\log_2{(x+1)} +\log_2{4}[/latex] and [latex]g(x)[/latex] is [latex](1, 3)[/latex] because the [latex]y[/latex]-value is the function value [latex]f(1)=\log_2{(1+1)} +\log_2{4}=\log_2{2}+\log_2{2^2}=1+2=3[/latex] and [latex]g(x)=3[/latex]. However, when we are solving an equation algebraically, there is no function in sight so we can just report the value of the variable (e.g., [latex]x[/latex]).
Solving Logarithmic Equations Using the Rules for Logarithms
When solving a logarithmic equation that involves more than one logarithm (e.g., [latex]\log_2{(x-2)}+\log_2{x}=3[/latex]), we may be able to combine the logarithms, if they have the same base, into a single logarithm using the properties of logarithms we learned in the last section, and then we can use the definition of logarithm to turn the single logarithm into an exponential equation, which we can solve.
Example 1
Solve [latex]\log_2{(x-2)}+\log_2{x}=3[/latex].
Solution
[latex]\begin{aligned}\log_2{(x-2)}+\log_2{x}&=3\\\\\log_2{x(x-2)}&=3\\\\x(x-2)&=2^3\\\\x^2-2x&=8\\\\x^2-2x-8&=0\\\\(x-4)(x+2)&=0\\\\x=4\text{ or }x&=-2\end{aligned}[/latex]
However, we must check our solutions because the argument of all logarithms must be positive:
The arguments in the original equation are [latex]x-2[/latex] and [latex]x[/latex].
For [latex]x-2[/latex] to be positive [latex]x>2[/latex], and for [latex]x[/latex] to be positive [latex]x>0[/latex].
To satisfy both arguments [latex]x>2[/latex].
This means that the solution [latex]x=4[/latex] is our only answer, since [latex]-2<2[/latex] and [latex]\log_2{-2}[/latex] does not exist.
Answer
[latex]x=4[/latex]
Example 2
Solve [latex]5\ln3x+2=7[/latex].
Solution
[latex]\begin{aligned}5\ln3x+2&=7\\\\5\ln3x&=5\\\\\dfrac{5\ln3x}{5}&=\dfrac{5}{5}\\\\\ln3x&=1\\\\3x&=e^1\\\\x=\dfrac{e}{3}\end{aligned}[/latex]
The argument in the original equation is [latex]3x[/latex] which is positive when [latex]x>0[/latex]. [latex]\dfrac{e}{3}>0[/latex] so we have the solution.
Answer
[latex]x=\dfrac{e}{3}[/latex]
Example 3
Solve [latex]\ln16x+\ln{x}=4[/latex].
Solution
[latex]\begin{aligned}\ln{16x}+\ln{x}&=4\\\\\ln{x(16x)}&=4\\\\\ln{(16x^2)}&=4\\\\16x^2&=e^4\\\\x^2&=\dfrac{e^4}{16}\\\\x&=\pm\sqrt{\dfrac{e^4}{16}}\\x&=\pm\dfrac{e^2}{4}\end{aligned}[/latex]
The arguments in the original equation are [latex]x[/latex] and [latex]16x[/latex] that must be positive, so we must ensure that [latex]x>0[/latex].
Therefore, we cannot use the negative radical and [latex]x=\dfrac{e^2}{4}[/latex].
Try It 1
Solve [latex]\log_6{(x-5)}+\log_6{x}=1[/latex].
Try It 2
Solve [latex]7\ln3x-4=3[/latex].
Try It 3
Solve [latex]\log18x+\log{2x}=4[/latex].
In Try It 3, remember that graphically we are finding the point of intersection between the functions [latex]f(x)=\log18x+\log{2x}[/latex] and [latex]g(x)=4[/latex] (figure 3). Looking at the graph is a great way to check your solution.
Solving Exponential Equations Using Logarithms
We have already seen how to solve exponential equations in the form [latex]b^x=a[/latex] by writing an equivalent logarithmic equation [latex]x=\log_b{a}[/latex]. We can also use logarithms and rules for logarithms to solve exponential equations. Since an exponential equation has the variable in the exponent, we can take logarithms with any positive base (except for 1) on both sides of the equation, use the power rule for logarithms to pull the exponent in front of the logarithm, and then solve the resulting equation for the variable (e.g., [latex]x[/latex]).
For example, to solve the equation [latex]3^{2x}=5.4[/latex], we can start by taking the base 3 logarithm of both sides of the equation:
[latex]\log_3{3^{2x}}=\log_3{5.4}[/latex]
Then we can pull the exponent in front of the logarithm:
[latex]2x\log_3{3}=\log_3{5.4}[/latex]
[latex]\log_3{3}=1[/latex] and we are left with a linear equation that we know how to solve:
[latex]\begin{aligned}2x&=\log_3{5.4}\\x&=\dfrac{1}{2}\log_3{5.4}\end{aligned}[/latex]
If we want a decimal answer, we can convert [latex]\log_3{5.4}[/latex] into base 10 or base [latex]e[/latex] using the change of base formula:
[latex]\log_3{5.4}=\dfrac{\ln{5.4}}{\ln3}=1.535…[/latex]
Then the solution is:
[latex]\begin{aligned}x&=\dfrac{1}{2}\log_3{5.4}\\&= \dfrac{1}{2}\times(1.5350…)\\&\approx 0.7675\end{aligned}[/latex]
Remember to complete all calculations on the calculator before rounding the answer.
When solving this example, we used base 3 when taking the logarithm of both sides of the equation. In fact, we could choose any (valid) base. The reason we choose base 3 is because [latex]\log_3{3}[/latex] is equal to 1, which helps to simplify the equation.
Here is the same equation, but this time we will take the natural logarithm of both sides:
[latex]\begin{aligned}3^{2x}&=5.4\\\\ \ln{3^{2x}}&=\ln{5.4}\\\\2x\ln{3}&=\ln{5.4}\\\\x&=\dfrac{\ln{5.4}}{2\ln{3}}\\\\x&\approx 0.7675\end{aligned}[/latex]
This is exactly the same answer we had before but this time there is no need to change the base to get a decimal answer since most calculators have a natural logarithm button.
Example 4
Solve the equation [latex]4e^{3x}e=10[/latex].
Solution
[latex]\begin{aligned}4e^{3x}e&=10\\\\4e^{3x+1}&=10&&\text{Simplify }e^{3x}e^1=e^{3x+1}\\\\\dfrac{4e^{3x+1}}{4}&=\dfrac{10}{4}&&\text{Divide both side by 4}\\\\e^{3x+1}&=\dfrac{5}{2}&&\text{Simplify the fraction}\\\\\ln{e^{3x+1}}&=\ln{\dfrac{5}{2}}&&\text{Take the natural logarithm of both sides}\\\\(3x+1)\ln{e}&=\ln{\dfrac{5}{2}}&&\text{Pull the exponent in front of the logarithm}\\\\(3x+1)\times1 &=\ln{\dfrac{5}{2}}&&\text{Evaluate }\ln{e}=1\\\\(3x+1)&=\ln{\dfrac{5}{2}}&&\text{Simplify}\\\\3x&=\ln{\dfrac{5}{2}}-1&&\text{Subtract 1 from both sides}\\\\ \dfrac{3x}{3}&=\dfrac{1}{3}\left(\ln{\dfrac{5}{2}-1}\right)&&\text{Divide both sides by 3}\\\\x&=\dfrac{1}{3}\ln{\dfrac{5}{2}}-\dfrac{1}{3}&&\text{Distribute the }\frac{1}{3}\end{aligned}[/latex]
This is an exact solution. If we are asked for a decimal approximation, we can use a calculator to get:
[latex]x\approx -0.0279[/latex]
We can also use this approximate value for [latex]x[/latex] to check our solution in the original equation. The left side of the equation should equal approximately 10:
[latex]4e^{3x}e=4e^{3(-0.0279)}e=10.0000[/latex]
Try It 4
Solve the equation [latex]7e^{5x+4}=e[/latex]. Round the answer to 5 decimal places and use this approximation to check your exact solution.
Example 5
Solve the equation [latex]2^{4x-3}=5^x[/latex].
Solution
[latex]\begin{aligned}2^{4x-3}&=5^x\\\\\log{2^{4x-3}}&=\log{5^x}&&\text{Take the common log of both sides of the equation}\\\\(4x-3)\log{2}&=x\log{5}&&\text{Pull the exponents in front of the logarithms}\\\\4x \log{2} -3\log2&=x\log5&&\text{Distribute the constant }\log2\\\\ 4x\log{2}-x\log5&=3\log2&&\text{Get all variables terms on the same side and constants on the other side}\\\\x\left(4\log{2}-\log(5)\right)&=3\log{2}&&\text{Factor out }x\text{ on the left side}\\\\x&=\dfrac{3\log{2}}{4\log{2}-\log{5}}&&\text{Divide both sides by the constant }\left(\log2-\log5\right)\end{aligned}[/latex]
To check our solution we can find an approximation to our answer:
[latex]x=\dfrac{3\log{2}}{4\log{2}-\log{5}}\approx 1.787766[/latex]
Check:
[latex]2^{4x-3}=2^{4(1.787766)-3}=17.76621[/latex]
[latex]5^x=5^{1.787766}=17.6621[/latex]
Try It 5
Solve the equation [latex]3^{6x+1}=7^x[/latex]. Round the answer to 6 decimal places and use this approximation to check your exact solution.
Don’t forget that solving the equation [latex]3^{6x+1}=7^x[/latex] means we are finding the point of intersection of the functions [latex]f(x)=3^{6x+1}[/latex]and [latex]g(x)=7^x[/latex] (figure 4), so determining the point of intersection graphically is also a way to check our solution.
Example 6
Solve the equation [latex]5^{3x+2}=2^{2x-5}[/latex].
Solution
[latex]\begin{aligned}5^{3x+2}&=2^{2x-5}\\\\ \log_5{5^{3x+2}}&=\log_5{2^{2x-5}}\\\\(3x+2)\log_5{5}&=(2x-5)\log_5{2}\\\\ 3x+2&=2x\log_5{2}-5\log_5{2}\\\\ 2+5\log_5{2}&=2x\log_5{2}-3x\\\\2+5\log_5{2}&=x\left(2\log_5{2}-3\right)\\\\\dfrac{2+5\log_5{2}}{2\log_5{2}-3}&=x\end{aligned}[/latex]
Check
Using a calculator, this exact solution is approximately -1.942061
[latex]5^{3x+2}\approx 5^{3(-1.942061)+2}\approx 0.0021[/latex]
[latex]2^{2x-5}\approx 2^{2(-1.942061)-5}\approx 0.0021[/latex]
Try It 6
Solve the equation [latex]8^{2x-3}=4^{x+5}[/latex].
Notice that Try It 6 could have been solved using the equality of bases:
[latex]\begin{aligned}8^{2x-3}&=4^{x+5}\\\\\left(2^3\right)^{2x-3}&=\left(2^2\right)^{x+5}\\\\2^{6x-9}&=2^{2x+10}\\\\6x-9&=2x+10\\\\4x&=19\\\\x&=\dfrac{19}{4}\end{aligned}[/latex]
Deciding which method to use when solving exponential equations:
If [latex]a^M=C[/latex], where [latex]C[/latex] is a constant and [latex]M[/latex] is a function of [latex]x[/latex], rewrite an equivalent equation in terms of logarithms or take logarithms on both sides of the equation, and then solve for [latex]x[/latex].
If [latex]a^M=b^N[/latex] where[latex]M[/latex] and[latex]N[/latex] are functions of [latex]x[/latex], and [latex]a[/latex] and [latex]b[/latex] are both powers of the same number (e.g., 4 and 8 are both some powers of 2, write the equation using the common base then equate the exponents.
Otherwise, take the logarithm of both sides of the equation. Use natural or common logarithms or logarithms of base [latex]a[/latex] or [latex]b[/latex] for the most concise algebra.