Solving Logarithmic Equations

Generally, there are two types of logarithmic equations. Study each case carefully before you start looking at the worked examples below.

Types of Logarithmic Equations

  • The first type looks like this.
log base b of M is equal to log base b of N implies that M is equal to N

If you have a single logarithm on each side of the equation having the same base, you can set the arguments equal to each other and then solve. The arguments here are the algebraic expressions represented by [latex]\color{blue}M[/latex] and [latex]\color{red}N[/latex].

  • The second type looks like this.
log base b of M is equal to N implies that M is equal to B raised to N

If you have a single logarithm on one side of the equation, you can express it as an exponential equation and solve it.

Let’s learn how to solve logarithmic equations by going over some examples.


Examples of How to Solve Logarithmic Equations

Example 1: Solve the logarithmic equation.

log base 2 of x plus 2 plus log base 2 of 3 is equal to log base 2 of 27.

Since we want to transform the left side into a single logarithmic equation, we should use the Product Rule in reverse to condense it. Here is the rule, just in case you forgot.

log base b of M times N is equal to log base b of M plus log base b of N
  • Given
log base 2 of x plus 2 plus log base 2 of 3 is equal to log base 2 of 27
log base 2 of the quantity x plus 2 times 3 is equal to log base 2 of 27
  • Distribute: [latex]\left( {x + 2} \right)\left( 3 \right) = 3x + 6[/latex]
log base 2 of 3x plus 6 is equal to log base 2 of 27
  • Drop the logs, set the arguments (stuff inside the parenthesis) equal to each other.
3x plus 6 is equal to 27
  • Then solve the linear equation. I know you got this part down!
x is equal to 7

Just a big caution. ALWAYS check your solved values with the original logarithmic equation.

Remember:

  • It is OKAY for [latex]x[/latex] to be [latex]0[/latex] or negative.
  • However, it is NOT ALLOWED to have a logarithm of a negative number or a logarithm of zero, [latex]0[/latex], when substituted or evaluated into the original logarithm equation.

CAUTION: The logarithm of a negative number, and the logarithm of zero are both not defined.

[latex]{\log _b}\left( {{\rm{negative\,\,number}}} \right) = {\rm{undefined}}[/latex]

[latex]{\log _b}\left( 0 \right) = {\rm{undefined}}[/latex]

Let’s check our answer to see if [latex]x=7[/latex] is a valid solution. Substitute it back into the original logarithmic equation and verify if it yields a true statement.

Yes., we got log base 2 of 27 for both.

Yes! Since [latex]x = 7[/latex] checks, we have a solution at [latex]\color{blue}x = 7[/latex].


 Example 2: Solve the logarithmic equation.

log base 3 of x plus log base 3 of x minus 2 is equal to log base 3 of x plus 10

Start by condensing the log expressions on the left into a single logarithm using the Product Rule. We want to have a single log expression on each side of the equation. Be ready though to solve for a quadratic equation since [latex]x[/latex] will have a power of [latex]2[/latex].

  • Given
log base 3 of x plus log base 3 of x minus 2 is equal to log base 3 of x plus 10
log base 3 of the quantity x times x minus 2 is equal to log base 3 of the quantity x plus 10.
  • Simplify: [latex]\left( x \right)\left( {x – 2} \right) = {x^2} – 2x[/latex]
log base 3 of the quantity x squared minus 2x is equal to log base 3 of x plus 10
  • Drop the logs, set the arguments (stuff inside the parenthesis) equal to each other
x squared minus 2x is equal to x plus 10
  • Solve the quadratic equation using the factoring method. But you need to move everything on one side while forcing the opposite side equal to [latex]0[/latex].
The quantity x minus 5 time the quantity x plus 2 is equal to 0.
  • Set each factor equal to zero, then solve for [latex]x[/latex].

[latex]x – 5 = 0[/latex] implies that [latex]x = 5[/latex]

[latex]x + 2 = 0[/latex] implies that [latex]x = – 2[/latex]

So the possible solutions are [latex]x = 5[/latex] and [latex]x = – 2[/latex].  Remember to always substitute the possible solutions back to the original log equation.

Let’s check our potential answers [latex]x = 5[/latex] and [latex]x = – 2[/latex] if they will be valid solutions.

Yes, for x is equal to 5, we also got log base 3 of 15.
No, for x is equal to negative 2, our answer, log base 3 of negative 2 plus 10, does not yield a true statement.

After checking our values of [latex]x[/latex], we found that [latex]x = 5[/latex] is definitely a solution. However, [latex]x =-2[/latex] generates negative numbers inside the parenthesis ( log of zero and negative numbers are undefined) which makes us eliminate [latex]x =-2[/latex] as part of our solution.

Therefore, the final solution is just [latex]\color{blue}x=5[/latex]. We disregard [latex]x=-2[/latex] because it is an extraneous solution.


Example 3: Solve the logarithmic equation.

log base 5 of the quantity x plus 2 minus log base 5 of x is equal to log base 5 of 2x minus 1 minus log base 5 of 3x minus 12

This is an interesting problem. What we have here are differences of logarithmic expressions on both sides of the equation. Simplify or condense the logs on both sides by using the Quotient Rule.

log base b of M over N is equal to log base b of M minus Log base b of N
  • Given
log base 5 of the quantity x plus 2 minus log base 5 of x is equal to log base 5 of 2x minus 1 minus log base 5 of 3x minus 12
  • The difference of logs is telling us to use the Quotient Rule. Convert the subtraction operation outside into a division operation inside the parenthesis. Do it to both sides of the equations.
log base 5 of the quantity x plus 2 over x is equal to log base 5 of the quantity 2x minus 1 over 3x minus 12
  • I think we are ready to set each argument equal to each other since we can reduce the problem to have a single log expression on each side of the equation.
log base 5 [(x+2)/x] = (2x-1)/3x-12
  • Drop the logs, and set the arguments (stuff inside the parenthesis) equal to each other. Note that this is a Rational Equation. One way to solve it is to get its Cross Product.
(x+2)/x = (2x-1)/(3x-12)
  • It looks like this after getting its Cross Product.
(x+2)(3x-12)=(x)(2x-1)
  • Simplify both sides by the Distributive Property. At this point, we realize that it is just a Quadratic Equation. No big deal then. Move everything to one side, which forces one side of the equation to be equal to zero.
3 x squared minus 6x minus 24 is equal to 2 x squared minus x
  • This is easily factorable. Now set each factor to zero and solve for [latex]x[/latex].
(x+3)(x-8) = 0
  • So, these are our possible answers.
x = -3 or x = 8

I will leave it to you to check our potential answers back into the original log equation. You should verify that [latex]\color{blue}x=8[/latex] is the only solution, while [latex]x =-3[/latex] is not since it generates a scenario wherein we are trying to get the logarithm of a negative number. Not good!


Example 4: Solve the logarithmic equation.

one half of log of x to the 4th power minus log of 2x minus 1 is equal to log of x squared plus log of 2

If you see “log” without an explicit or written base, it is assumed to have a base of [latex]10[/latex]. In fact, a logarithm with base [latex]10[/latex] is known as the common logarithm.

What we need is to condense or compress both sides of the equation into a single log expression. On the left side, we see a difference of logs which means we apply the Quotient Rule while the right side requires the Product Rule because they’re the sum of logs.

There’s just one thing that you have to pay attention to on the left side. Do you see that coefficient [latex]\Large{1 \over 2}\,[/latex]?

Well, we have to bring it up as an exponent using the Power Rule in reverse.

log base b of M raised to k is equal to k times log base b of M
  • Given
one half of log of x to the 4th power minus log of 2x minus 1 is equal to log of x squared plus log of 2
  • Bring up that coefficient [latex]\large{1 \over 2}[/latex] as an exponent (refer to the leftmost term)
log of the quantity x raised to the 4th power, raised to one half, minus log base 2x minus 1 is equal to log of x squared plus log of 2
  • Simplify the exponent (still referring to the leftmost term)
log of x squared minus log of 2x minus 1 is equal to log x squared plus log of 2
  • Then, condense the logs on both sides of the equation. Use the Quotient Rule on the left and Product Rule on the right.
log of the quantity x squared over 2x minus 1 is equal to log of 2x squared
  • Here, I used different colors to show that since we have the same base (if not explicitly shown it is assumed to be base [latex]10[/latex]), it’s okay to set them equal to each other.
log of the quantity x squared over 2x minus 1 is equal to log of 2x squared
  • Dropping the logs and just equating the arguments inside the parenthesis.
x squared over 2x minus 1 is equal to 2x squared
  • At this point, you may solve the Rational Equation by performing Cross Product. Move all the terms on one side of the equation, then factor them out.
0 is equal to x squared times 4x minus 3
  • Set each factor equal to zero and solve for [latex]x[/latex].
x is equal to 3 over 4 or x is equal to 0

It’s time to check your potential answers. When you check [latex]x=0[/latex] back into the original logarithmic equation, you’ll end up having an expression that involves getting the logarithm of zero, which is undefined, meaning – not good! So, we should disregard or drop [latex]\color{red}x=0[/latex] as a solution.

Checking [latex]\Large{x = {3 \over 4}}[/latex], confirms that indeed [latex]\Large{\color{blue}{x = {3 \over 4}}}[/latex] is the only solution.


Example 5: Solve the logarithmic equation.

ln times 3x is equal to ln times the quantity 4x plus 1 plus ln times 1 minus x

This problem involves the use of the symbol [latex]\ln[/latex] instead of [latex]\log[/latex] to mean logarithm.

Think of [latex]\ln[/latex] as a special kind of logarithm using base [latex]e[/latex] where [latex]e \approx 2.71828[/latex].

ln times x is equal to log base e of x
  • Given
ln times 3x is equal to ln times 4x plus 1 plus ln times 1 minus x
  • Use Product Rule on the right side
ln times 3x is equal to ln times the quantity 4x plus 1 times 1 minus x
  • Write the variable first, then the constant to be ready for the FOIL method.
Rewrite 1 minus x to negative x plus 1
  • Simplify the two binomials by multiplying them together.
ln times 3x is equal to ln times negative 4x squared plus 3x plus 1
  • At this point, I simply color-coded the expression inside the parenthesis to imply that we are ready to set them equal to each other.
ln times 3x is equal to ln times negative 4x squared plus 3x plus 1
  • Yep! This is where we say that the stuff inside the left parenthesis equals the stuff inside the right parenthesis.
3x is equal to negative 4x squared plus 3x plus 1

Don’t forget the [latex]\pm[/latex] symbol.

x is equal to positive negative sqrt of one fourth
  • Simplifying further, we should get these possible answers.
x is equal to one half or negative 1 over 2

Check if the potential answers found above are possible answers by substituting them back to the original logarithmic equations.

You should be convinced that the ONLY valid solution is [latex]\large{\color{blue}x = {1 \over 2}}[/latex] which makes [latex]\large{\color{red}x = -{1 \over 2}}[/latex] an extraneous answer.


Example 6: Solve the logarithmic equation.

log base 3 of 8x minus 15 is equal to 4

There is only one logarithmic expression in this equation. We consider this as the second case wherein we have

log base b of M is equal to N implies that M is equal to b raised to N

We will transform the equation from the logarithmic form to the exponential form, then solve it.

  • Given
log base 3 of 8x minus 15 is equal to 4
  • I color-coded the parts of the logarithmic equation to show where they go when converted into exponential form.
log base 3 of 8x minus 15 is equal to 4
  • The blue expression stays at its current location, but the red number becomes the exponent of the base of the logarithm which is [latex]3[/latex].
8x minus 15 is equal to 3 raised to the 4th power
  • Simplify the right side, [latex]{3^4} = 81[/latex].
8x minus 15 equals 81
x is equal to 12

You should verify that the value [latex]\color{blue}x=12[/latex] is indeed the solution to the logarithmic equation.


Example 7: Solve the logarithmic equation.

log base 5 of 10x minus 1 is equal to log base 5 of 3x minus 1

Collect all the logarithmic expressions on one side of the equation (keep it on the left) and move the constant to the right side. Use the Quotient Rule to express the difference of logs as fractions inside the parenthesis of the logarithm.

  • Given
log base 5 of 10x minus 1 is equal to log base 5 of 3x minus 1
  • Move all the logarithmic expressions to the left of the equation, and the constant to the right.
log base 5 of 10x minus log base 5 of 3x minus 1 is equal to 1
  • Use the Quotient Rule to condense the log expressions on the left side.
log base 5 of the quantity 10x over 3x minus 1 is equal to 1
  • Get ready to write the logarithmic equation into its exponential form.
 0x over 3x minus 1
  • The blue expression stays in its current location, but the red constant turns out to be the exponent of the base of the log.
10x over 3x minus 1 is equal to 5 raised to 1
  • Simplify the right side of the equation since [latex]5^{\color{red}1}=5[/latex].
10x over 3x minus 1 is equal to 5
  • This is a Rational Equation due to the presence of variables in the numerator and denominator.

I would solve this equation using the Cross Product Rule. But I have to express first the right side of the equation with the explicit denominator of [latex]1[/latex]. That is, [latex]5 = {\large{{5 \over 1}}}[/latex]

10x/(3x-1) = 5/1
  • Perform the Cross-Multiplication and then solve the resulting linear equation.
x = 1

When you check [latex]x=1[/latex] back to the original equation, you should agree that [latex]\large{\color{blue}x=1}[/latex] is the solution to the log equation.


Example 8: Solve the logarithmic equation.

log base 2 of x squared minus 4x is equal to log base 2 of 4 minus x plus 5

This problem is very similar to #7. Let’s gather all the logarithmic expressions to the left while keeping the constant on the right side. Since we have the difference of logs, we will utilize the Quotient Rule.

  • Given
log base 2 of x squared minus 4x is equal to log base 2 of 4 minus x plus 5
  • Move the log expressions to the left side, and keep the constant to the right.
log base 2 of x squared minus 4x minus log base 2 of 4 minus x is equal to 5
  • Apply the Quotient Rule since they are the difference of logs.
log base 2 of the quantity x squared minus 4 over 4 minus x is equal to 5
  • I used different colors here to show where they go after rewriting in exponential form.
(x^2-4x)/(4-x)
  • Notice that the expression inside the parenthesis stays in its current location, while the [latex]\color{red}5[/latex] becomes the exponent of the base.
(x^2-4x)/(4-x) = 2^5
  • To solve this Rational Equation, apply the Cross Product Rule.
(x^2-4x)/(4-x) = 32/1
  • Simplify the right side by the distributive property. It looks like we are dealing with a quadratic equation.
x squared minus 4x is equal to 128 minus 32x
  • Move everything to the left side and make the right side just zero.

Factor out the trinomial. Set each factor equal to zero then solve for [latex]x[/latex].

(x-4)(x+32) = 0
  • When you solve for [latex]x[/latex], you should get these values of [latex]x[/latex] as potential solutions.
x=4 or x=-32

Make sure that you check the potential answers from the original logarithmic equation.

You should agree that [latex]\color{blue}x=-32[/latex] is the only solution. That makes [latex]\color{red}x=4[/latex] an extraneous solution, so disregard it.


Example 9: Solve the logarithmic equation

log base 7 of the quantity x plus 1 plus log base 7 of the quantity x plus 3 is equal to 1 plus log base 7 of x plus 13

I hope you’re getting the main idea now on how to approach this type of problem. Here we see three log expressions and a constant. Let’s separate the log expressions and the constant on opposite sides of the equation.

  • Let’s keep the log expressions on the left side while the constant on the right side.
log base 7 of the quantity x plus 1 plus log base 7 of the quantity x plus 3 minus log base 7 of x plus 13 is equal to 1
  • Start by condensing the log expressions using the Product Rule to deal with the sum of logs.
log base 7 of the quantity x plus 1 times x plus 3 minus log base 7 of x plus 13 is equal to 1
  • Then further condense the log expressions using the Quotient Rule to deal with the difference of logs.
log base 7 of the quantity x plus 1 times x plus 3 over x plus 13 is equal to 1
  • At this point, I used different colors to illustrate that I’m ready to express the log equation into its exponential equation form.
log base 7 times the quantity x plus 1 times x plus 3 over x plus 13 is equal to 1
  • Keep the expression inside the grouping symbol (blue) in the same location while making the constant [latex]\color{red}1[/latex] on the right side as the exponent of the base [latex]7[/latex].
x plus 1 times x plus 3 over x plus 13 is equal to 7 raised to 1
  • Solve this Rational Equation using Cross Product. Express [latex]7[/latex] as [latex]\large{7 \over 1}[/latex].
[(x=1)(x+3)]/(x=13)] = 7/1
  • Cross multiply.
x squared plus 4x plus 3 is equal to 7x plus 91
  • Move all terms to the left side of the equation. Factor out the trinomial. Next, set each factor equal to zero and solve for [latex]x[/latex].
(x+8)(x-11) = 0
  • These are your potential answers. Always check your values.
x = -8 or x = 11

It’s obvious that when we plug in [latex]x=-8[/latex] back into the original equation, it results in a logarithm with a negative number. Therefore, you exclude [latex]\color{red}x=-8[/latex] as part of your solution.

Thus, the only solution is [latex]\color{blue}x=11[/latex].


Example 10: Solve the logarithmic equation.

log base 3 of sqrt of negative 7x plus 1 minus 7 is equal to negative 4
  • Keep the log expression on the left, and move all the constants on the right side.
log base 3 of sqrt (-7x+1)-7 = -4
  • Simplify.
log base 3 of sqrt (-7x+1) = 3
  • I think we’re ready to transform this log equation into the exponential equation.
sqrt (-7x+1)
  • The expression inside the parenthesis stays in its current location while the constant [latex]3[/latex] becomes the exponent of the log base [latex]3[/latex].
sqrt (-7x+1) = 3 cubed
  • Simplify the right side since [latex]{3^3}=27[/latex]. What we have here is a simple Radical Equation.

Check this separate lesson if you need a refresher on how to solve different types of Radical Equations.

sqrt (-7x+1) = 27
  • To get rid of the radical symbol on the left side, square both sides of the equation.
[sqrt (-7x+1)]^2 = (27)^2
  • After squaring both sides, it looks like we have a linear equation. Just solve it as usual.
x = -104

Check your potential answer back into the original equation.

After doing so, you should be convinced that indeed [latex]\color{blue}x=-104[/latex] is a valid solution.


You may also be interested in these related math lessons or tutorials:

Condensing Logarithms

Expanding Logarithms

Logarithm Explained

Logarithm Rules