PrecalculusExponential and Logarithmic Functions2 of 3
Exponential and Logarithmic Functions · 2

Exponential and Logarithmic Equations

When xx is trapped up in an exponent or inside a logarithm, ordinary algebra can't reach it, so we need ways to bring xx back down to the main line.

1

Matching bases

We start with exponential equations where the numbers on both sides are built out of the same smaller base:

9x+1\displaystyle \base{9}^{\expo{x + 1}} =272x−1\displaystyle = \base{27}^{\expo{2x - 1}}

When both bases can be rewritten as powers of the same smaller base, we can solve for xx without using logarithms at all.

9x+1\htmlClass{lc-violet fx-a9}{9}^{\htmlClass{lc-pink fx-ax}{x + 1}}
==
272x−1\htmlClass{lc-violet fx-a27}{27}^{\htmlClass{lc-pink fx-ay}{2x - 1}}
(32)x+1(\htmlClass{lc-violet fx-b3}{3}^{\htmlClass{lc-pink fx-b2}{2}})^{\htmlClass{lc-pink fx-bx}{x + 1}}
==
(33)2x−1(\htmlClass{lc-violet fx-c3}{3}^{\htmlClass{lc-pink fx-c3e}{3}})^{\htmlClass{lc-pink fx-cy}{2x - 1}}
×\htmlClass{lc-mute}{\times}
×\htmlClass{lc-mute}{\times}
32(x+1)\htmlClass{lc-violet fx-d3}{3}^{\htmlClass{lc-pink fx-d2}{2}\htmlClass{lc-pink fx-dx}{(x + 1)}}
==
33(2x−1)\htmlClass{lc-violet fx-e3}{3}^{\htmlClass{lc-pink fx-e3e}{3}\htmlClass{lc-pink fx-ey}{(2x - 1)}}
Solving Exponential Equations by Matching Bases
2x\displaystyle 2x =12x\displaystyle = 12 \qquad x =  ?\displaystyle = \;?
2xx2\displaystyle \hphantom{2x}\mathllap{x^2} =12x\displaystyle = 12 \qquad x =  ?\displaystyle = \;?
2x2x\displaystyle \hphantom{2x}\mathllap{\base{2}^{\expo{x}}} =12x\displaystyle = \reached{12} \qquad x =  ?\displaystyle = \;?
Text solution
Rewrite both bases using their common baseBecause 9\base{9} and 27\base{27} are both powers of 3\base{3}, replace 9\base{9} with 32\base{3}^{\expo{2}} and 27\base{27} with 33\base{3}^{\expo{3}} inside parentheses.
(32)x+1\displaystyle (\base{3}^{\expo{2}})^{\expo{x + 1}} =(33)2x−1\displaystyle = (\base{3}^{\expo{3}})^{\expo{2x - 1}}
Multiply the exponentsWhen we raise a power to another power, we multiply the exponents. This gives 2(x+1)\expo{2(x + 1)} on the left and 3(2x−1)\expo{3(2x - 1)} on the right.
32(x+1)\displaystyle \base{3}^{\expo{2(x + 1)}} =33(2x−1)\displaystyle = \base{3}^{\expo{3(2x - 1)}}
Set the exponents equal and solve for xxNow that both sides are powers of 3\base{3}, their exponents must be equal, so we set the exponents equal and solve for xx.
2(x+1)=3(2x−1)2x+2=6x−35=4xx=54\displaystyle \begin{aligned} \expo{2(x + 1)} &= \expo{3(2x - 1)} \\ 2x + 2 &= 6x - 3 \\ 5 &= 4x \\ x &= \frac{5}{4} \end{aligned}

If a base is a fraction like 19\base{\frac{1}{9}}, remember that dividing by 3\base{3} twice is a negative exponent, so rewrite 19\base{\frac{1}{9}} as 3−2\base{3}^{\expo{-2}} and follow the exact same steps.

2

Bringing exponents down with logarithms

Matching bases is less direct when one side isn't a whole-number power of the other:

2x\displaystyle \base{2}^{\expo{x}} =12\displaystyle = \reached{12}

Since 23=8\base{2}^{\expo{3}} = \reached{8} and 24=16\base{2}^{\expo{4}} = \reached{16}, 12\reached{12} isn't a whole-number power of 2\base{2}. To get xx out of the exponent, we use a logarithm.

Solving Exponential Equations with Logarithms
2x23\displaystyle \hphantom{2^{x}}\mathllap{\base{2}^{\expo{3}}} =816\displaystyle = \mathrlap{\reached{8}}\hphantom{16}
2x2x\displaystyle \hphantom{2^{x}}\mathllap{\base{2}^{\expo{x}}} =1216\displaystyle = \mathrlap{\reached{12}}\hphantom{16}
2x24\displaystyle \hphantom{2^{x}}\mathllap{\base{2}^{\expo{4}}} =16\displaystyle = \reached{16}
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Take the natural log of both sidesWhile switching straight to base-2\base{2} log form gives x=log⁡2(12)\expo{x} = \log_{\base{2}}(\reached{12}), taking ln⁡\ln of both sides lets us measure both sides in base-ee steps and gives an answer you can type into any calculator.
ln⁡(2x)\displaystyle \ln(\base{2}^{\expo{x}}) =ln⁡(12)\displaystyle = \ln(\reached{12})
Bring the exponent x\expo{x} out frontSince 2=eln⁡(2)\base{2} = e^{\ln(\base{2})}, we have 2x=exln⁡(2)\base{2}^{\expo{x}} = e^{\expo{x}\ln(\base{2})}. Taking the natural log gives ln⁡(2x)=xln⁡(2)\ln(\base{2}^{\expo{x}}) = \expo{x}\ln(\base{2}).
xln⁡(2)\displaystyle \expo{x} \ln(\base{2}) =ln⁡(12)\displaystyle = \ln(\reached{12})
Divide by ln⁡(2)\ln(\base{2})Since ln⁡(2)\ln(\base{2}) is just a number, divide both sides by it to get xx alone.
x\displaystyle x =ln⁡(12)ln⁡(2)\displaystyle = \frac{\ln(\reached{12})}{\ln(\base{2})}

Since x\expo{x} is both log⁡2(12)\log_{\base{2}}(\reached{12}) and ln⁡(12)ln⁡(2)\frac{\ln(\reached{12})}{\ln(\base{2})}, solving 2x=12\base{2}^{\expo{x}} = \reached{12} with ln⁡\ln automatically gives the change-of-base formula log⁡2(12)=ln⁡(12)ln⁡(2)\log_{\base{2}}(\reached{12}) = \frac{\ln(\reached{12})}{\ln(\base{2})}.

Each multiplication by 2\base{2} adds a step of length ln⁡(2)\ln(\base{2}) on the natural-log scale, so reaching 12\reached{12} takes x=ln⁡(12)ln⁡(2)\expo{x} = \frac{\ln(\reached{12})}{\ln(\base{2})} steps of size ln⁡(2)\ln(\base{2}) to make the total length ln⁡(12)\ln(\reached{12}).

Every time the value doubles, the log track grows by one equal step, so any height is just a count of those steps.
3

Isolating the exponential term first

Often the exponential part isn't alone yet because other numbers are multiplied or added around it:

3⋅5x+2\displaystyle 3 \cdot \base{5}^{\expo{x}} + 2 =38\displaystyle = 38

Logarithms cannot split up addition, so we can get rid of the +2+ 2 and the 33 before taking ln⁡\ln.

Isolating the Exponential Term First
3⋅5x+2\displaystyle 3 \cdot \base{5}^{\expo{x}} + 2 =38\displaystyle = 38
3⋅5x  =?  15x\displaystyle 3 \cdot \base{5}^{\expo{x}} \;\overset{?}{=}\; 15^{x}
Text solution
Isolate the exponential termSubtract 22 and divide by 33 using ordinary algebra. Remember that the exponent x\expo{x} belongs only to the 5\base{5}, so 3⋅5x3 \cdot \base{5}^{\expo{x}} cannot be combined into 15x15^x.
3⋅5x+2=383⋅5x=365x=12\displaystyle \begin{aligned} 3 \cdot \base{5}^{\expo{x}} + 2 &= 38 \\ 3 \cdot \base{5}^{\expo{x}} &= 36 \\ \base{5}^{\expo{x}} &= \reached{12} \end{aligned}
Take ln⁡\ln of both sides and solve for xxOnce 5x\base{5}^{\expo{x}} is completely alone, take the natural log of both sides to bring x\expo{x} out front and divide by ln⁡(5)\ln(\base{5}).
ln⁡(5x)=ln⁡(12)xln⁡(5)=ln⁡(12)x=ln⁡(12)ln⁡(5)\displaystyle \begin{aligned} \ln(\base{5}^{\expo{x}}) &= \ln(\reached{12}) \\ \expo{x} \ln(\base{5}) &= \ln(\reached{12}) \\ x &= \frac{\ln(\reached{12})}{\ln(\base{5})} \end{aligned}
4

Different bases on both sides

Now suppose both sides have different bases that cannot be matched, and xx appears in both exponents:

5x+1\displaystyle \base{5}^{\expo{x + 1}} =32x\displaystyle = \base{3}^{\expo{2x}}

Both exponential terms are already alone on their sides, so we take ln⁡\ln of both sides right away and gather the xx terms.

Exponential Equations with Different Bases on Both Sides
5x+1\displaystyle \base{5}^{\expo{x + 1}} =32x\displaystyle = \base{3}^{\expo{2x}}
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Take ln⁡\ln of both sides and bring both exponents out frontPut parentheses around x+1\expo{x + 1} when it comes down so the whole exponent multiplies ln⁡(5)\ln(\base{5}).
ln⁡(5x+1)=ln⁡(32x)(x+1)ln⁡(5)=2xln⁡(3)\displaystyle \begin{aligned} \ln(\base{5}^{\expo{x + 1}}) &= \ln(\base{3}^{\expo{2x}}) \\ (\expo{x + 1})\ln(\base{5}) &= \expo{2x} \ln(\base{3}) \end{aligned}
Distribute and move all xx terms to one sideTreat ln⁡(5)\ln(\base{5}) and ln⁡(3)\ln(\base{3}) like ordinary numbers, multiply out the left side, and gather the terms with x\expo{x} on the right.
xln⁡(5)+ln⁡(5)=2xln⁡(3)ln⁡(5)=2xln⁡(3)−xln⁡(5)\displaystyle \begin{aligned} \expo{x} \ln(\base{5}) + \ln(\base{5}) &= \expo{2x} \ln(\base{3}) \\ \ln(\base{5}) &= \expo{2x} \ln(\base{3}) - \expo{x} \ln(\base{5}) \end{aligned}
Factor out x\expo{x} and divideFactor x\expo{x} out of the two terms on the right so you can divide by the number in parentheses.
ln⁡(5)=x(2ln⁡(3)−ln⁡(5))x=ln⁡(5)2ln⁡(3)−ln⁡(5)\displaystyle \begin{aligned} \ln(\base{5}) &= \expo{x}(2\ln(\base{3}) - \ln(\base{5})) \\ x &= \frac{\ln(\base{5})}{2\ln(\base{3}) - \ln(\base{5})} \end{aligned}
5

Exponential equations in quadratic form

What if an equation has two different exponential terms plus a constant, so we cannot get a single exponential term alone?

e2x−5ex+6\displaystyle e^{\expo{2x}} - 5e^{\expo{x}} + 6 =0\displaystyle = 0

Taking ln⁡\ln of both sides won't work because the right side is zero, so we look at how the exponents 2x\expo{2x} and x\expo{x} are related.

Exponential Equations in Quadratic Form
e2x−5ex+6\displaystyle e^{\expo{2x}} - 5e^{\expo{x}} + 6 =0\displaystyle = 0
e2x\displaystyle e^{\expo{2x}} =(  ?  )2\displaystyle = (\;?\;)^2
Text solution
Rewrite as a quadratic in u=ex\reached{u} = \reached{e^x}Since e2xe^{\expo{2x}} means (ex)2(\reached{e^x})^2, replacing ex\reached{e^x} with u\reached{u} turns the equation into a familiar quadratic.
(ex)2−5(ex)+6=0u2−5u+6=0\displaystyle \begin{aligned} (\reached{e^x})^2 - 5(\reached{e^x}) + 6 &= 0 \\ \reached{u}^2 - 5\reached{u} + 6 &= 0 \end{aligned}
Factor to find u\reached{u}Factor the quadratic to find the two values of u\reached{u}.
(u−2)(u−3)=0u=2oru=3\displaystyle \begin{aligned} (u - 2)(u - 3) &= 0 \\ \reached{u} &= \reached{2} && \text{or} & \reached{u} &= \reached{3} \end{aligned}
Put ex\reached{e^x} back in and take ln⁡\lnReplace u\reached{u} with ex\reached{e^x} and take the natural log of both sides for each positive value.
ex=2orex=3x=ln⁡(2)orx=ln⁡(3)\displaystyle \begin{aligned} \reached{e^x} &= \reached{2} && \text{or} & \reached{e^x} &= \reached{3} \\ x &= \ln(\reached{2}) && \text{or} & x &= \ln(\reached{3}) \end{aligned}

Because the curve y=exy = e^x stays above the horizontal axis, a horizontal line y=uy = \reached{u} crosses y=exy = e^x at x=ln⁡(u)\expo{x} = \ln(\reached{u}) only when u>0\reached{u} > 0, and never meets the curve when u≤0\notpos{u} \le 0.

A horizontal line crosses the exponential curve once anywhere above the axis, and never at or below it.
6

The two basic forms of logarithmic equations

Now we flip the problem around: what if xx starts out trapped inside a logarithm? We'll solve equations that can be brought into one of two forms:

log⁡3(2x−1)=4orlog⁡3(2x−1)=log⁡3(x+7)\displaystyle \begin{aligned} && \log_{\base{3}}(\reached{2x - 1}) &= \expo{4} \\ \text{or} && \log_{\base{3}}(\reached{2x - 1}) &= \log_{\base{3}}(\reached{x + 7}) \end{aligned}
log⁡3(2x−1)=4\log_{\htmlClass{lc-violet fx-g3}{3}}(\htmlClass{lc-blue fx-gr}{2x - 1}) = \htmlClass{lc-pink fx-g4}{4}
34=2x−1\htmlClass{lc-violet fx-h3}{3}^{\htmlClass{lc-pink fx-h4}{4}} = \htmlClass{lc-blue fx-hr}{2x - 1}
result\htmlClass{lc-blue}{\text{result}}
exponent\htmlClass{lc-pink}{\text{exponent}}
base\htmlClass{lc-violet}{\text{base}}
The Two Basic Forms of Logarithmic Equations
log⁡3(2x−1)\displaystyle \log_{\base{3}}(\reached{2x - 1}) =4\displaystyle = \expo{4}
x\displaystyle x =  ?\displaystyle = \;?
Text solution
Single log equal to a number: switch to exponential formIn log⁡3(2x−1)=4\log_{\base{3}}(\reached{2x - 1}) = \expo{4}, the base is 3\base{3} and the exponent is 4\expo{4}, so raising 3\base{3} to the 4\expo{4}th power gives the inside 2x−1\reached{2x - 1}.
log⁡3(2x−1)=434=2x−181=2x−182=2xx=41\displaystyle \begin{aligned} \log_{\base{3}}(\reached{2x - 1}) &= \expo{4} \\ \base{3}^{\expo{4}} &= \reached{2x - 1} \\ 81 &= \reached{2x - 1} \\ 82 &= 2x \\ x &= 41 \end{aligned}
Single log equal to another log with the same base: set the insides equalIn log⁡3(2x−1)=log⁡3(x+7)\log_{\base{3}}(\reached{2x - 1}) = \log_{\base{3}}(\reached{x + 7}), both logs give the same power of 3\base{3}. Raising 3\base{3} to that power gives the same result on each side, so their insides must be equal.
log⁡3(2x−1)=log⁡3(x+7)2x−1=x+7x=8\displaystyle \begin{aligned} \log_{\base{3}}(\reached{2x - 1}) &= \log_{\base{3}}(\reached{x + 7}) \\ \reached{2x - 1} &= \reached{x + 7} \\ x &= 8 \end{aligned}
7

Combining multiple logarithms

When an equation has more than one logarithm added or subtracted on the same side, it doesn't match either basic form yet:

log⁡2(x)+log⁡2(x−2)=3and2log⁡3(x)−log⁡3(x+3)=log⁡3(4)\displaystyle \begin{aligned} && \log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) &= \expo{3} \\ \text{and} && \expo{2}\log_{\base{3}}(\reached{x}) - \log_{\base{3}}(\reached{x + 3}) &= \log_{\base{3}}(\reached{4}) \end{aligned}

We cannot switch to exponential form term by term across a plus or minus sign, so our first move is to combine the logarithms on the left into a single logarithm.

Condensing Multiple Logarithms to Solve Equations
log⁡2(x)+log⁡2(x−2)\displaystyle \log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) =3\displaystyle = \expo{3}
log⁡2(A)+log⁡2(B)\displaystyle \log_{\base{2}}(\reached{A}) + \log_{\base{2}}(\reached{B}) =  ?\displaystyle = \;?
Text solution
Added logs: multiply the insides, then switch to exponential formAdding logs means multiplying their insides, so log⁡2(x)+log⁡2(x−2)\log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) combines into the log of their product, log⁡2(x(x−2))\log_{\base{2}}(\reached{x(x - 2)}), and then we rewrite the equation with 23\base{2}^{\expo{3}} on the right.
log⁡2(x)+log⁡2(x−2)=3log⁡2(x(x−2))=3x(x−2)=23x2−2x−8=0(x−4)(x+2)=0x=4orx=−2\displaystyle \begin{aligned} \log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) &= \expo{3} \\ \log_{\base{2}}(\reached{x(x - 2)}) &= \expo{3} \\ \reached{x(x - 2)} &= \base{2}^{\expo{3}} \\ x^2 - 2x - 8 &= 0 \\ (x - 4)(x + 2) &= 0 \\ x &= 4 \quad \text{or} \\ x &= -2 \end{aligned}
Coefficients and subtracted logs: move the coefficient into the exponent, then divide the insidesIn the second equation, the coefficient 2\expo{2} must move up as an exponent on x\reached{x} before we combine the subtraction into a fraction and set the insides equal.
2log⁡3(x)−log⁡3(x+3)=log⁡3(4)log⁡3(x2)−log⁡3(x+3)=log⁡3(4)log⁡3 ⁣(x2x+3)=log⁡3(4)x2x+3=4x2=4(x+3)x2−4x−12=0(x−6)(x+2)=0x=6orx=−2\displaystyle \begin{aligned} \expo{2}\log_{\base{3}}(\reached{x}) - \log_{\base{3}}(\reached{x + 3}) &= \log_{\base{3}}(\reached{4}) \\ \log_{\base{3}}(\reached{x}^{\expo{2}}) - \log_{\base{3}}(\reached{x + 3}) &= \log_{\base{3}}(\reached{4}) \\ \log_{\base{3}}\!\left(\reached{\frac{x^{\expo{2}}}{x + 3}}\right) &= \log_{\base{3}}(\reached{4}) \\ \reached{\frac{x^{\expo{2}}}{x + 3}} &= \reached{4} \\ x^2 &= 4(x + 3) \\ x^2 - 4x - 12 &= 0 \\ (x - 6)(x + 2) &= 0 \\ x &= 6 \quad \text{or} \\ x &= -2 \end{aligned}

Before we're done with either pair of answers, we have one required step left: checking whether both numbers actually work inside the original logarithms.

8

Checking for extraneous solutions

Why did our algebra give us x=−2x = -2 in both problems above if it doesn't actually work? Let's plug our possible answers into the original equations:

log⁡2(x)+log⁡2(x−2)=3and2log⁡3(x)−log⁡3(x+3)=log⁡3(4)\displaystyle \begin{aligned} && \log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) &= \expo{3} \\ \text{and} && \expo{2}\log_{\base{3}}(\reached{x}) - \log_{\base{3}}(\reached{x + 3}) &= \log_{\base{3}}(\reached{4}) \end{aligned}
Checking for Extraneous Solutions
log⁡2(x)+log⁡2(x−2)=3\displaystyle {\footnotesize \log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) = \expo{3}}
2log⁡3(x)−log⁡3(x+3)=log⁡3(4)\displaystyle {\footnotesize \expo{2}\log_{\base{3}}(\reached{x}) - \log_{\base{3}}(\reached{x + 3}) = \log_{\base{3}}(\reached{4})}
Do both answers work?\displaystyle \small\text{Do both answers work?}
Text solution
Test x=4x = 4 and x=−2x = -2 in log⁡2(x)+log⁡2(x−2)=3\log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) = \expo{3}Plug each number into the original logs before they were combined into log⁡2(x(x−2))\log_{\base{2}}(\reached{x(x - 2)}), and keep only values where every inside is positive.
x=4:log⁡2(4)+log⁡2(2)=3(inputs 4>0 and 2>0, keep x=4)x=−2:log⁡2(−2)+log⁡2(−4)(negative inputs, cross out x=−2)\displaystyle \begin{aligned} &x = 4: \\ &\quad \log_{\base{2}}(\reached{4}) + \log_{\base{2}}(\reached{2}) = \expo{3} \\ &\quad (\text{inputs } \reached{4} > 0 \text{ and } \reached{2} > 0, \\ &\quad \text{ keep } x = 4) \\[6pt] &x = -2: \\ &\quad \log_{\base{2}}(\notpos{-2}) + \log_{\base{2}}(\notpos{-4}) \\ &\quad (\text{negative inputs,} \\ &\quad \text{ cross out } x = -2) \end{aligned}
So the only solution to the first equation is x=4x = 4.
Test x=6x = 6 and x=−2x = -2 in 2log⁡3(x)−log⁡3(x+3)=log⁡3(4)\expo{2}\log_{\base{3}}(\reached{x}) - \log_{\base{3}}(\reached{x + 3}) = \log_{\base{3}}(\reached{4})Plug each number into the original equation before 2log⁡3(x)\expo{2}\log_{\base{3}}(\reached{x}) became log⁡3(x2)\log_{\base{3}}(\reached{x}^{\expo{2}}).
x=6:2log⁡3(6)−log⁡3(9)=log⁡3(4)(inputs 6>0 and 9>0, keep x=6)x=−2:2log⁡3(−2)−log⁡3(1)(negative input −2, cross out x=−2)\displaystyle \begin{aligned} &x = 6: \\ &\quad \expo{2}\log_{\base{3}}(\reached{6}) - \log_{\base{3}}(\reached{9}) = \log_{\base{3}}(\reached{4}) \\ &\quad (\text{inputs } \reached{6} > 0 \text{ and } \reached{9} > 0, \\ &\quad \text{ keep } x = 6) \\[6pt] &x = -2: \\ &\quad \expo{2}\log_{\base{3}}(\notpos{-2}) - \log_{\base{3}}(\reached{1}) \\ &\quad (\text{negative input } \notpos{{-2}}, \\ &\quad \text{ cross out } x = -2) \end{aligned}

So the only solution to the second equation is x=6x = 6.

For x>2x > 2, both x\reached{x} and x−2\reached{x - 2} are positive, so log⁡2(x)+log⁡2(x−2)\log_{\base{2}}(\reached{x}) + \log_{\base{2}}(\reached{x - 2}) and the combined expression log⁡2(x(x−2))\log_{\base{2}}(\reached{x(x - 2)}) have the exact same graph. For x<0x < 0, though, the two negative inputs multiply to a positive product x(x−2)\reached{x(x - 2)} and create an extra curve on the left that hits 3\expo{3} at x=−2x = -2.

Combining two logs into one gives the exact same graph where both inputs are positive, plus an extra branch where two negative inputs multiply to a positive.

Key concepts

For the exponential and logarithmic equations in this lesson, we choose a method based on where xx appears.

Game Plans for Exponential and Logarithmic Equations
bxlog⁡b(x)exponentinside a log\displaystyle \begin{array}{ccc} \base{b}^{\expo{x}} & \quad & \log_{\base{b}}(\reached{x}) \\[4pt] \htmlClass{lc-pink}{\small\text{exponent}} & & \htmlClass{lc-blue}{\small\text{inside a log}} \end{array}
How does x get out?\displaystyle \text{How does } x \text{ get out?}

When xx is in the exponent, check whether the equation is a quadratic in ex\reached{e^x} (with exponents 2x\expo{2x} and x\expo{x}, where you factor for u=ex\reached{u} = \reached{e^x} and keep only ex>0\reached{e^x} > 0) or has a single exponential term you can isolate first (without multiplying a front number into the base). Once the exponential terms are alone, rewrite both sides with a common base if they share one; otherwise, take ln⁡\ln of both sides to bring the exponents out front:

ln⁡(bx)\displaystyle \ln(\base{b}^{\expo{x}}) =xln⁡(b)\displaystyle = \expo{x} \ln(\base{b})

When xx is inside a logarithm, aim for a single log equal to a number (then switch to exponential form) or a single log on each side with the same base (then set the insides equal). If one side has multiple logs, move any front coefficients into the exponents and combine the logs into one before solving:

log⁡b(A)+log⁡b(B)=log⁡b(AB)andlog⁡b(A)−log⁡b(B)=log⁡b ⁣(AB)\displaystyle \begin{aligned} && \log_{\base{b}}(\reached{A}) + \log_{\base{b}}(\reached{B}) &= \log_{\base{b}}(\reached{AB}) \\ \text{and} && \log_{\base{b}}(\reached{A}) - \log_{\base{b}}(\reached{B}) &= \log_{\base{b}}\!\left(\reached{\frac{A}{B}}\right) \end{aligned}

Finally, while an exponent accepts any real number, a logarithm requires input>0\reached{\text{input}} > 0. Test every answer in the original equation before the logs were combined, and cross out any value that makes an inside zero or negative (an extraneous solution).

9

Practice

1

Solve 4x+2=8x−14^{x + 2} = 8^{x - 1}.

44 and 88: what smaller base are both numbers powers of?

Rewrite 4\base{4} as 22\base{2}^{\expo{2}} and 8\base{8} as 23\base{2}^{\expo{3}}, then multiply the exponents on each side:
(22)x+2=(23)x−122(x+2)=23(x−1)\displaystyle \begin{aligned} (\base{2}^{\expo{2}})^{\expo{x + 2}} &= (\base{2}^{\expo{3}})^{\expo{x - 1}} \\ \base{2}^{\expo{2(x + 2)}} &= \base{2}^{\expo{3(x - 1)}} \end{aligned}
Watch out: Distribute the 2\expo{2} and 3\expo{3} to both terms inside the parentheses. Forgetting to multiply the second number gives 2x+2=3x−12x + 2 = 3x - 1, which leads to the wrong answer x=3x = 3.
2(x+2)=3(x−1)2x+4=3x−3x=7\displaystyle \begin{aligned} \expo{2(x + 2)} &= \expo{3(x - 1)} \\ 2x + 4 &= 3x - 3 \\ x &= 7 \end{aligned}
Answer: x=7x = 7
2

Solve (19)x−1=272x\left(\frac{1}{9}\right)^{x - 1} = 27^{2x}.

19\frac{1}{9} and 2727 as powers of 33: what kind of exponent means dividing by 33 twice?

Rewrite 19\base{\frac{1}{9}} as 3−2\base{3}^{\expo{-2}} and 27\base{27} as 33\base{3}^{\expo{3}}:
(3−2)x−1=(33)2x3−2(x−1)=33(2x)\displaystyle \begin{aligned} (\base{3}^{\expo{-2}})^{\expo{x - 1}} &= (\base{3}^{\expo{3}})^{\expo{2x}} \\ \base{3}^{\expo{-2(x - 1)}} &= \base{3}^{\expo{3(2x)}} \end{aligned}
Watch out: Using +2+2 instead of −2\expo{-2} for 19\base{\frac{1}{9}} gives the wrong answer x=−12x = -\frac{1}{2}, and forgetting to flip the sign on −2(−1)-2(-1) when multiplying out gives −2x−2=6x-2x - 2 = 6x and the wrong answer x=−14x = -\frac{1}{4}.
−2(x−1)=6x−2x+2=6x2=8xx=14\displaystyle \begin{aligned} \expo{-2(x - 1)} &= \expo{6x} \\ -2x + 2 &= 6x \\ 2 &= 8x \\ x &= \frac{1}{4} \end{aligned}
Answer: x=14x = \frac{1}{4}
3

Solve 4⋅3x−5=434 \cdot 3^x - 5 = 43.

Before taking ln⁡\ln of both sides, what needs to be alone first?

Add 55 and divide by 44 to get 3x\base{3}^{\expo{x}} alone:
4⋅3x=483x=12\displaystyle \begin{aligned} 4 \cdot \base{3}^{\expo{x}} &= 48 \\ \base{3}^{\expo{x}} &= \reached{12} \end{aligned}
Watch out: Never multiply the 44 into the base 3\base{3} to write 12x=4812^x = 48, which gives the wrong answer x=ln⁡(48)ln⁡(12)x = \frac{\ln(48)}{\ln(12)}.
Take the natural log of both sides and bring x\expo{x} out front:
ln⁡(3x)=ln⁡(12)xln⁡(3)=ln⁡(12)x=ln⁡(12)ln⁡(3)\displaystyle \begin{aligned} \ln(\base{3}^{\expo{x}}) &= \ln(\reached{12}) \\ \expo{x} \ln(\base{3}) &= \ln(\reached{12}) \\ x &= \frac{\ln(\reached{12})}{\ln(\base{3})} \end{aligned}
Answer: x=ln⁡(12)ln⁡(3)x = \frac{\ln(12)}{\ln(3)} (or log⁡3(12)\log_3(12))
4

Solve 7x+1=32x7^{x + 1} = 3^{2x}.

Once the exponents are down in front of ln⁡(7)\ln(\base{7}) and ln⁡(3)\ln(\base{3}), how do you combine the two xx terms?

Take ln⁡\ln of both sides and bring both exponents out front with parentheses around x+1\expo{x + 1}:
ln⁡(7x+1)=ln⁡(32x)(x+1)ln⁡(7)=2xln⁡(3)\displaystyle \begin{aligned} \ln(\base{7}^{\expo{x + 1}}) &= \ln(\base{3}^{\expo{2x}}) \\ (\expo{x + 1})\ln(\base{7}) &= \expo{2x} \ln(\base{3}) \end{aligned}
Watch out: Leaving off the parentheses around x+1\expo{x + 1} gives xln⁡(7)+1=2xln⁡(3)x\ln(7) + 1 = 2x\ln(3) instead of multiplying the 11 by ln⁡(7)\ln(\base{7}), which leads to the wrong answer x=12ln⁡(3)−ln⁡(7)x = \frac{1}{2\ln(3) - \ln(7)}.
Multiply out ln⁡(7)\ln(\base{7}), move both x\expo{x} terms to the right, and factor out x\expo{x}:
xln⁡(7)+ln⁡(7)=2xln⁡(3)ln⁡(7)=2xln⁡(3)−xln⁡(7)ln⁡(7)=x(2ln⁡(3)−ln⁡(7))x=ln⁡(7)2ln⁡(3)−ln⁡(7)\displaystyle \begin{aligned} \expo{x} \ln(\base{7}) + \ln(\base{7}) &= \expo{2x} \ln(\base{3}) \\ \ln(\base{7}) &= \expo{2x} \ln(\base{3}) - \expo{x} \ln(\base{7}) \\ \ln(\base{7}) &= \expo{x}(2\ln(\base{3}) - \ln(\base{7})) \\ x &= \frac{\ln(\base{7})}{2\ln(\base{3}) - \ln(\base{7})} \end{aligned}
Answer: x=ln⁡(7)2ln⁡(3)−ln⁡(7)x = \frac{\ln(7)}{2\ln(3) - \ln(7)}
5

Solve e2x−3ex−4=0e^{2x} - 3e^x - 4 = 0.

Look at the exponents 2x\expo{2x} and x\expo{x}: how does rewriting e2xe^{\expo{2x}} as (ex)2(\reached{e^x})^2 turn this into a factoring problem?

Let u=ex\reached{u} = \reached{e^x} and factor the quadratic:
(ex)2−3(ex)−4=0u2−3u−4=0(u−4)(u+1)=0u=4oru=−1\displaystyle \begin{aligned} (\reached{e^x})^2 - 3(\reached{e^x}) - 4 &= 0 \\ \reached{u}^2 - 3\reached{u} - 4 &= 0 \\ (u - 4)(u + 1) &= 0 \\ \reached{u} &= \reached{4} \quad \text{or} \\ \reached{u} &= \notpos{-1} \end{aligned}
Put ex\reached{e^x} back in for u\reached{u}:
ex\displaystyle \reached{e^x} =4orex\displaystyle = \reached{4} \quad \text{or} \quad \reached{e^x} =−1\displaystyle = \notpos{-1}
Watch out: Because ex\reached{e^x} is always positive, ex=−1\reached{e^x} = \notpos{-1} has no solution and must be crossed out. Also check your signs when factoring, since (u+4)(u−1)=0(u + 4)(u - 1) = 0 keeps ex=1e^x = 1 and gives the wrong answer x=0x = 0.
x\displaystyle x =ln⁡(4)\displaystyle = \ln(\reached{4})
Answer: x=ln⁡(4)x = \ln(4)
6

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

Single logarithm equal to a number: what is the base, and what is the exponent when you switch to exponential form?

Rewrite the base-2\base{2} logarithm in exponential form:
24\displaystyle \base{2}^{\expo{4}} =3x+1\displaystyle = \reached{3x + 1}
Watch out: 24\base{2}^{\expo{4}} is 1616. Multiplying 2×4=82 \times 4 = 8 instead of raising 2\base{2} to the 4\expo{4}th power gives 3x+1=83x + 1 = 8 and the wrong answer x=73x = \frac{7}{3}.
16=3x+115=3xx=5\displaystyle \begin{aligned} 16 &= \reached{3x + 1} \\ 15 &= 3x \\ x &= 5 \end{aligned}
Answer: x=5x = 5
7

Solve log⁡3(4−x)=log⁡3(2x+10)\log_3(4 - x) = \log_3(2x + 10).

One base-33 log equals another base-33 log: what has to be true about their insides?

Drop the matching base-3\base{3} logs and set the insides equal:
4−x=2x+10−6=3xx=−2\displaystyle \begin{aligned} \reached{4 - x} &= \reached{2x + 10} \\ -6 &= 3x \\ x &= -2 \end{aligned}
Check x=−2x = -2 in the original logarithms:
log⁡3(4−(−2))=log⁡3(6)andlog⁡3(2(−2)+10)=log⁡3(6)\displaystyle \begin{aligned} && \log_{\base{3}}(\reached{4 - (-2)}) &= \log_{\base{3}}(\reached{6}) \\ \text{and} && \log_{\base{3}}(\reached{2(-2) + 10}) &= \log_{\base{3}}(\reached{6}) \end{aligned}
Watch out: Don't cross out x=−2x = -2 just because xx is negative. Both insides equal +6\reached{+6}, which is positive, so throwing out x=−2x = -2 and writing "no solution" is a mistake.
x\displaystyle x =−2\displaystyle = -2
Answer: x=−2x = -2
8

Solve log⁡4(x)+log⁡4(x−6)=2\log_4(x) + \log_4(x - 6) = 2.

Two logs added on the left: how do you combine them into one log before switching to exponential form?

Combine the sum by multiplying the insides, then switch to base-4\base{4} exponential form:
log⁡4(x(x−6))=2x(x−6)=42\displaystyle \begin{aligned} \log_{\base{4}}(\reached{x(x - 6)}) &= \expo{2} \\ \reached{x(x - 6)} &= \base{4}^{\expo{2}} \end{aligned}
Watch out: Don't leave the right side as 2\expo{2} instead of 42=16\base{4}^{\expo{2}} = 16, and don't add the insides as x+(x−6)=16x + (x - 6) = 16, which gives the wrong answer x=11x = 11.
x2−6x−16=0(x−8)(x+2)=0x=8orx=−2\displaystyle \begin{aligned} x^2 - 6x - 16 &= 0 \\ (x - 8)(x + 2) &= 0 \\ x &= 8 \quad \text{or} \\ x &= -2 \end{aligned}
Watch out: Check both numbers in the original equation log⁡4(x)+log⁡4(x−6)=2\log_{\base{4}}(\reached{x}) + \log_{\base{4}}(\reached{x - 6}) = \expo{2}. Stopping here keeps both x=8x = 8 and x=−2x = -2, even though x=−2x = -2 gives log⁡4(−2)\log_{\base{4}}(\notpos{-2}) and log⁡4(−8)\log_{\base{4}}(\notpos{-8}) and must be crossed out.
x\displaystyle x =8\displaystyle = 8
Answer: x=8x = 8
9

Solve 2log⁡5(x)−log⁡5(x+6)=log⁡5(3)2\log_5(x) - \log_5(x + 6) = \log_5(3).

Before combining the subtracted logs on the left, where does the coefficient 22 have to go?

Move the coefficient 2\expo{2} into the exponent on x\reached{x}, then combine the subtraction into a fraction:
log⁡5(x2)−log⁡5(x+6)=log⁡5(3)log⁡5 ⁣(x2x+6)=log⁡5(3)\displaystyle \begin{aligned} \log_{\base{5}}(\reached{x}^{\expo{2}}) - \log_{\base{5}}(\reached{x + 6}) &= \log_{\base{5}}(\reached{3}) \\ \log_{\base{5}}\!\left(\reached{\frac{x^{\expo{2}}}{x + 6}}\right) &= \log_{\base{5}}(\reached{3}) \end{aligned}
Watch out: Combining the logs before moving the 2\expo{2} into the exponent gives 2xx+6=3\frac{2x}{x + 6} = 3, which leads to x=−18x = -18 and misses the quadratic completely.
Set the insides equal, multiply by x+6x + 6, and factor:
x2x+6=3x2=3x+18x2−3x−18=0(x−6)(x+3)=0x=6orx=−3\displaystyle \begin{aligned} \reached{\frac{x^{\expo{2}}}{x + 6}} &= \reached{3} \\ x^2 &= 3x + 18 \\ x^2 - 3x - 18 &= 0 \\ (x - 6)(x + 3) &= 0 \\ x &= 6 \quad \text{or} \\ x &= -3 \end{aligned}
Watch out: Plugging x=−3x = -3 into the original equation gives 2log⁡5(−3)\expo{2}\log_{\base{5}}(\notpos{-3}), so forgetting to check in the original equation leaves the extraneous solution x=−3x = -3 alongside x=6x = 6.
x\displaystyle x =6\displaystyle = 6
Answer: x=6x = 6