Exponentials & Logarithms

Solving Logarithmic Equations Step by Step

To solve a logarithmic equation, isolate the log so it equals a number, then rewrite it in exponential form: log⁡b(A)=C\log_b(A)=C means A=bCA=b^{C}. Finish by checking that every expression inside a log in the original equation is positive.

log⁡b(A)=C  ⟺  A=bC\log_b(A)=C \iff A=b^{C}

Try it with your numbers

Show every step

Every method below is a variation on two moves: rewrite in exponential form when a log equals a number, or drop the logs when two logs of the same base are equal. The check at the end is where most lost points hide. If the notation still feels shaky, what a logarithm actually is takes a few minutes and makes everything here easier.

How do you solve a logarithmic equation step by step?

The idea behind the formula is short. The statement log⁡b(A)=C\log_b(A)=C is a question and answer: “what power of bb gives AA?” The answer is CC. So the equation is the same fact as bC=Ab^{C}=A, written the other way round. Raising bb to both sides undoes the log, because blog⁡bA=Ab^{\log_b A}=A.

  1. Write the domain: every argument must be greater than 00.
  2. Use the logarithm rules to turn the equation into one log equal to a number (or two single logs equal to each other).
  3. Isolate that log with a coefficient of 11.
  4. Rewrite in exponential form and solve.
  5. Test each answer against the domain from step 1.

Example 1. Solve 2log⁡3(x+4)=42\log_3(x+4)=4. Divide by 22 to isolate the log:

log⁡3(x+4)=2\log_3(x+4)=2

Rewrite in exponential form, then solve:

x+4=32=9⇒x=5x+4=3^2=9 \quad\Rightarrow\quad x=5

Check: log⁡3(9)=2\log_3(9)=2, and 2⋅2=42\cdot 2=4. The domain needs x>−4x>-4, and 55 passes.

Two notation notes. A log with no written base means base 1010, so log⁡(x)=2\log(x)=2 gives x=102x=10^2. The natural logarithm ln⁡\ln has base ee, so ln⁡(x)=3\ln(x)=3 gives x=e3x=e^3. The table shows which first move fits which shape.

Shape of the equation First move
One log equals a number Rewrite in exponential form
Log of one thing equals log of another, same base Set the arguments equal
Several logs on one side Condense into one log first
Log squared, plus a log term Substitute u=log⁡xu=\log x
Unknown in the base Rewrite in exponential form, then restrict the base

Quick check

Solve log⁡4(x)=−12\log_4(x)=-\tfrac{1}{2}.

Why must you check the domain of a logarithmic equation first?

A positive base raised to any power never gives zero or a negative number. That single fact means log⁡b(A)\log_b(A) exists only when A>0A>0. Writing the domain before any algebra turns the final check into a ten-second comparison instead of a re-substitution.

For log⁡5(x−2)+log⁡5(x+2)=1\log_5(x-2)+\log_5(x+2)=1, the conditions are x>2x>2 and x>−2x>-2. Both must hold, so the domain is x>2x>2. Any answer at or below 22 is dead on arrival, however clean the algebra looked.

This also explains the shape of the graph. The graph of a log function has a vertical asymptote where the argument hits zero, and nothing exists on the other side. Graphing logarithmic functions shows why the domain boundary is always the line where the argument equals zero.

Domain shortcut

For log⁡(x−a)\log(x-a) the domain is x>ax>a. With several logs in one equation, a solution must beat the largest boundary, because it has to satisfy every condition at once.

How do you solve logarithmic equations with logs on both sides?

When both sides are a single log with the same base, the logs can be dropped: log⁡bu=log⁡bv\log_b u=\log_b v implies u=vu=v. This works because a log function never repeats an output, so equal outputs force equal inputs. It mirrors the rule for exponential equations with the same base, where bu=bvb^u=b^v implies u=vu=v.

The rule needs every term to be a single log with coefficient 11 and a matching base. A stray coefficient such as 2log⁡7x2\log_7 x must first move inside as log⁡7(x2)\log_7(x^2), and a sum of logs must be merged. Condensing logarithms covers the product, quotient and power moves in detail.

Example 2. Solve log⁡7(x−2)+log⁡7(x+3)=log⁡714\log_7(x-2)+\log_7(x+3)=\log_7 14. The domain is x>2x>2. Merge the left side with the product rule:

log⁡7((x−2)(x+3))=log⁡714\log_7\big((x-2)(x+3)\big)=\log_7 14

Drop the logs and expand:

x2+x−6=14⇒x2+x−20=0⇒(x+5)(x−4)=0x^2+x-6=14 \quad\Rightarrow\quad x^2+x-20=0 \quad\Rightarrow\quad (x+5)(x-4)=0

So x=−5x=-5 or x=4x=4. Only x=4x=4 is above 22. Check: log⁡72+log⁡77=log⁡714\log_7 2+\log_7 7=\log_7 14, since 2⋅7=142\cdot 7=14. The value −5-5 is rejected.

Why do logarithmic equations give extraneous solutions?

Number line showing merged logarithm accepts x = −1 while the original equation only allows x greater than 2
For log₃ x + log₃(x−2) = 1, the original domain is x > 2, but the merged log also allows x < 0, so −1 sneaks in.

Condensing logs can quietly widen the domain. The expression log⁡3x+log⁡3(x−2)\log_3 x+\log_3(x-2) requires x>2x>2. But log⁡3(x(x−2))\log_3\big(x(x-2)\big) only requires x(x−2)>0x(x-2)>0, which is also true for every x<0x<0. The merged equation accepts values that the original never allowed, and the algebra cannot tell the difference.

Example 3. Solve log⁡3x+log⁡3(x−2)=1\log_3 x+\log_3(x-2)=1. Merge, then rewrite:

x(x−2)=31⇒x2−2x−3=0⇒(x−3)(x+1)=0x(x-2)=3^1 \quad\Rightarrow\quad x^2-2x-3=0 \quad\Rightarrow\quad (x-3)(x+1)=0

So x=3x=3 or x=−1x=-1. The value −1-1 makes log⁡3(−1)\log_3(-1) appear in the original, so it is extraneous. Keep x=3x=3: log⁡33+log⁡31=1+0=1\log_3 3+\log_3 1=1+0=1.

The opposite trap is less known: expanding can lose solutions. Solve log⁡2(x2)=4\log_2(x^2)=4 and you get x2=16x^2=16, so x=±4x=\pm4, and both work. But if you first rewrite it as 2log⁡2x=42\log_2 x=4, you only find x=4x=4. The power rule log⁡(x2)=2log⁡x\log(x^2)=2\log x is valid only for x>0x>0, which is why the proofs of the logarithm properties state that condition. When a squared expression sits inside a log, solve it as written, or use 2log⁡2∣x∣2\log_2|x|.

Quick check

Solve log⁡2(x2)=6\log_2(x^2)=6.

How do you solve logarithmic equations that look like quadratics?

Sometimes the log appears squared, next to a plain log term. Treat the log as a single unknown. Set u=log⁡xu=\log x, solve the quadratic in uu, then convert each value of uu back into xx. Stopping at uu is the common slip, because the question asks for xx.

Example 4. Solve (ln⁡x)2−3ln⁡x+2=0(\ln x)^2-3\ln x+2=0. Let u=ln⁡xu=\ln x:

u2−3u+2=0⇒(u−1)(u−2)=0⇒u=1 or u=2u^2-3u+2=0 \quad\Rightarrow\quad (u-1)(u-2)=0 \quad\Rightarrow\quad u=1 \text{ or } u=2

Convert back: ln⁡x=1\ln x=1 gives x=ex=e, and ln⁡x=2\ln x=2 gives x=e2x=e^2. Numerically that is about 2.7182.718 and 7.3897.389 (see Euler’s number ee). Both are positive. Check x=e2x=e^2: 22−3(2)+2=02^2-3(2)+2=0.

If the quadratic does not factor, the quadratic formula handles it. Quadratic formula practice problems are worth a pass if that step is slow for you.

Keep (ln⁡x)2(\ln x)^2 and ln⁡(x2)\ln(x^2) apart. The first squares the log value, the second squares the input and equals 2ln⁡x2\ln x. They are different expressions, and mixing them up is one of the most common errors on this topic.

Try this: Solve (log⁡x)2=log⁡(x2)(\log x)^2=\log(x^2). Hint: the right side equals 2log⁡x2\log x, so substitute u=log⁡xu=\log x and look for two values. You should end up with x=1x=1 and x=100x=100.

What if the variable is in the base or the bases differ?

When the unknown sits in the base, the exponential form still works. For log⁡x64=3\log_x 64=3, the base xx cubed gives 6464, so x3=64x^3=64 and x=4x=4. Bases must be positive and not equal to 11, which rules out answers such as x=−5x=-5 from log⁡x25=2\log_x 25=2 (where x2=25x^2=25 gives ±5\pm5 and only 55 survives).

Pick the smallest base

When bases differ, convert everything to the smallest base that appears. Coefficients stay whole numbers, for example log⁡4y=12log⁡2y\log_4 y=\tfrac12\log_2 y, and the algebra stays clean.

Different bases need the change of base formula, log⁡ay=log⁡bylog⁡ba\log_a y=\dfrac{\log_b y}{\log_b a}, to bring the logs onto a common footing.

Example 5. Solve log⁡2x=log⁡4(x+6)\log_2 x=\log_4(x+6). The domain is x>0x>0. Since log⁡4(x+6)=log⁡2(x+6)log⁡24=log⁡2(x+6)2\log_4(x+6)=\dfrac{\log_2(x+6)}{\log_2 4}=\dfrac{\log_2(x+6)}{2}, multiply both sides by 22:

2log⁡2x=log⁡2(x+6)⇒log⁡2(x2)=log⁡2(x+6)2\log_2 x=\log_2(x+6) \quad\Rightarrow\quad \log_2(x^2)=\log_2(x+6)

Drop the logs: x2=x+6x^2=x+6, so x2−x−6=(x−3)(x+2)=0x^2-x-6=(x-3)(x+2)=0. The value x=−2x=-2 fails the domain, so x=3x=3. Check: log⁡23≈1.585\log_2 3\approx1.585, and log⁡49=ln⁡9ln⁡4≈2.1971.386≈1.585\log_4 9=\dfrac{\ln 9}{\ln 4}\approx\dfrac{2.197}{1.386}\approx1.585.

How can you check a logarithmic equation answer quickly?

Substituting into the original equation is the full check, and it is required whenever logs were merged. A faster filter comes first: compare each candidate with the domain you wrote in advance. That alone removes most extraneous answers.

A second filter is a size sanity check. These rules take seconds:

  • If log⁡b(A)=C\log_b(A)=C with b>1b>1 and C>0C>0, then AA must be greater than 11.
  • If C<0C<0 with b>1b>1, then AA must lie between 00 and 11.
  • If C=0C=0, then A=1A=1, whatever the base.

Not every answer is a whole number. Take 5ln⁡x=75\ln x=7. Divide by 55 to get ln⁡x=1.4\ln x=1.4, so x=e1.4≈4.055x=e^{1.4}\approx4.055. The sanity check: 1.41.4 lies between 11 and 22, so xx should sit between e≈2.718e\approx2.718 and e2≈7.389e^2\approx7.389, and it does. Leave the exact form e1.4e^{1.4} unless the question asks for a decimal.

A graph gives a third check. Plot each side as its own function and read the intersection. Since a log graph is the mirror image of an exponential graph across the line y=xy=x, graphing exponential functions helps you see why x=bCx=b^{C} is simply reading the exponential curve at height… or rather, at input CC.

Where are logarithmic equations used in real life?

Logarithmic scales squeeze huge ranges into small numbers, so reading a real value back out means solving a log equation. Chemists use pH=−log⁡[H+]\text{pH}=-\log[\text{H}^+]. For a pH of 8.28.2, the equation log⁡[H+]=−8.2\log[\text{H}^+]=-8.2 gives [H+]=10−8.2≈6.3×10−9[\text{H}^+]=10^{-8.2}\approx6.3\times10^{-9} moles per liter.

Sound level in decibels follows L=10log⁡(II0)L=10\log\left(\dfrac{I}{I_0}\right). A level of 8585 dB means log⁡(II0)=8.5\log\left(\dfrac{I}{I_0}\right)=8.5, so the intensity is 108.5≈3.2×10810^{8.5}\approx3.2\times10^{8} times the faintest audible sound. Earthquake magnitude works the same way: each whole number on the Richter scale is a tenfold jump in measured amplitude.

Finance and growth problems use the reverse direction. To find how long money takes to double at 8%8\% interest, solve 1.08t=21.08^{t}=2 by taking logs: t=log⁡2log⁡1.08≈9.01t=\dfrac{\log 2}{\log 1.08}\approx9.01 years. That method is covered in solving exponential equations with logarithms, and together the two skills let you move freely between exponents and logs.

Quick check

A sound measures 5050 dB, and L=10log⁡(II0)L=10\log\left(\dfrac{I}{I_0}\right). Find II0\dfrac{I}{I_0}.

Practice problems

0 of 5 solved

  1. Solve log⁡5(2x−1)=2\log_5(2x-1)=2.

  2. Solve 3log⁡2(x)+4=133\log_2(x)+4=13.

  3. Solve log⁡(x)+log⁡(x−3)=1\log(x)+\log(x-3)=1.

  4. Solve (log⁡2x)2−5log⁡2x+6=0(\log_2 x)^2-5\log_2 x+6=0.

  5. Solve log⁡4(x)=log⁡2(x−2)\log_4(x)=\log_2(x-2).

Common questions

What is the first step in solving a logarithmic equation?

Write down the domain: every expression inside a log must be greater than zero. Then condense the logs into one and isolate it, so you can rewrite the equation in exponential form.

How do you solve a logarithmic equation with logs on both sides?

Make sure each side is a single log with the same base and a coefficient of 1. Then drop the logs and set the arguments equal, because log⁡bu=log⁡bv\log_b u=\log_b v means u=vu=v. Check the answers against the domain.

Why do you have to reject some answers?

Condensing logs can widen the domain, so the algebra may produce a value that makes an argument zero or negative in the original equation. Those values are extraneous and must be thrown out.

Can a logarithmic equation have no solution?

Yes. For example, log⁡2(x)=log⁡2(x−1)\log_2(x)=\log_2(x-1) leads to x=x−1x=x-1, which is impossible. Equations can also end with every candidate failing the domain check.

How do you solve a logarithmic equation with different bases?

Convert every log to one common base with the change of base formula, usually the smallest base present. Then combine the logs and solve as usual.

How do you solve a natural log equation?

Treat ln⁡\ln as a log with base ee. Isolate the ln⁡\ln term, then rewrite it: ln⁡(A)=C\ln(A)=C means A=eCA=e^{C}.

Up next