PrecalculusExponential and Logarithmic Functions2 of 3
Exponential and Logarithmic Functions · 2
Exponential and Logarithmic Equations
When x is trapped up in an exponent or inside a logarithm, ordinary algebra can't reach it, so we need ways to bring x 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=272x−1
When both bases can be rewritten as powers of the same smaller base, we can solve for x without using logarithms at all.
Solving Exponential Equations by Matching Bases
2x=12x=?
2xx2=12x=?
2x2x=12x=?
Text solution
Rewrite both bases using their common baseBecause 9 and 27 are both powers of 3, replace 9 with 32 and 27 with 33 inside parentheses.
(32)x+1=(33)2x−1
Multiply the exponentsWhen we raise a power to another power, we multiply the exponents. This gives 2(x+1) on the left and 3(2x−1) on the right.
32(x+1)=33(2x−1)
Set the exponents equal and solve for xNow that both sides are powers of 3, their exponents must be equal, so we set the exponents equal and solve for x.
2(x+1)2x+25x=3(2x−1)=6x−3=4x=45
If a base is a fraction like 91, remember that dividing by 3 twice is a negative exponent, so rewrite 91 as 3−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=12
Since 23=8 and 24=16,12 isn't a whole-number power of 2. To get x out of the exponent, we use a logarithm.
Solving Exponential Equations with Logarithms
2x23=816
2x2x=1216
2x24=16
x=?
Text solution
Take the natural log of both sidesWhile switching straight to base-2 log form gives x=log2(12), taking ln of both sides lets us measure both sides in base-e steps and gives an answer you can type into any calculator.
ln(2x)=ln(12)
Bring the exponent x out frontSince 2=eln(2), we have 2x=exln(2). Taking the natural log gives ln(2x)=xln(2).
xln(2)=ln(12)
Divide by ln(2)Since ln(2) is just a number, divide both sides by it to get x alone.
x=ln(2)ln(12)
Since x is both log2(12) and ln(2)ln(12), solving 2x=12 with ln automatically gives the change-of-base formula log2(12)=ln(2)ln(12).
Each multiplication by 2 adds a step of length ln(2) on the natural-log scale, so reaching 12 takes x=ln(2)ln(12) steps of size ln(2) to make the total length ln(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=38
Logarithms cannot split up addition, so we can get rid of the +2 and the 3 before taking ln.
Isolating the Exponential Term First
3⋅5x+2=38
3⋅5x=?15x
Text solution
Isolate the exponential termSubtract 2 and divide by 3 using ordinary algebra. Remember that the exponent x belongs only to the 5, so 3⋅5x cannot be combined into 15x.
3⋅5x+23⋅5x5x=38=36=12
Take ln of both sides and solve for xOnce 5x is completely alone, take the natural log of both sides to bring x out front and divide by ln(5).
ln(5x)xln(5)x=ln(12)=ln(12)=ln(5)ln(12)
4
Different bases on both sides
Now suppose both sides have different bases that cannot be matched, and x appears in both exponents:
5x+1=32x
Both exponential terms are already alone on their sides, so we take ln of both sides right away and gather the x terms.
Exponential Equations with Different Bases on Both Sides
5x+1=32x
x=?
Text solution
Take ln of both sides and bring both exponents out frontPut parentheses around x+1 when it comes down so the whole exponent multiplies ln(5).
ln(5x+1)(x+1)ln(5)=ln(32x)=2xln(3)
Distribute and move all x terms to one sideTreat ln(5) and ln(3) like ordinary numbers, multiply out the left side, and gather the terms with x on the right.
xln(5)+ln(5)ln(5)=2xln(3)=2xln(3)−xln(5)
Factor out x and divideFactor x out of the two terms on the right so you can divide by the number in parentheses.
ln(5)x=x(2ln(3)−ln(5))=2ln(3)−ln(5)ln(5)
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=0
Taking ln of both sides won't work because the right side is zero, so we look at how the exponents 2x and x are related.
Exponential Equations in Quadratic Form
e2x−5ex+6=0
e2x=(?)2
Text solution
Rewrite as a quadratic in u=exSince e2x means (ex)2, replacing ex with u turns the equation into a familiar quadratic.
(ex)2−5(ex)+6u2−5u+6=0=0
Factor to find uFactor the quadratic to find the two values of u.
(u−2)(u−3)u=0=2oru=3
Put ex back in and take lnReplace u with ex and take the natural log of both sides for each positive value.
exx=2=ln(2)ororexx=3=ln(3)
Because the curve y=ex stays above the horizontal axis, a horizontal line y=u crosses y=ex at x=ln(u) only when u>0, and never meets the curve when u≤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 x starts out trapped inside a logarithm? We'll solve equations that can be brought into one of two forms:
orlog3(2x−1)log3(2x−1)=4=log3(x+7)
The Two Basic Forms of Logarithmic Equations
log3(2x−1)=4
x=?
Text solution
Single log equal to a number: switch to exponential formIn log3(2x−1)=4, the base is 3 and the exponent is 4, so raising 3 to the 4th power gives the inside 2x−1.
log3(2x−1)348182x=4=2x−1=2x−1=2x=41
Single log equal to another log with the same base: set the insides equalIn log3(2x−1)=log3(x+7), both logs give the same power of 3. Raising 3 to that power gives the same result on each side, so their insides must be equal.
log3(2x−1)2x−1x=log3(x+7)=x+7=8
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:
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
log2(x)+log2(x−2)=3
log2(A)+log2(B)=?
Text solution
Added logs: multiply the insides, then switch to exponential formAdding logs means multiplying their insides, so log2(x)+log2(x−2) combines into the log of their product, log2(x(x−2)), and then we rewrite the equation with 23 on the right.
Coefficients and subtracted logs: move the coefficient into the exponent, then divide the insidesIn the second equation, the coefficient 2 must move up as an exponent on x before we combine the subtraction into a fraction and set the insides equal.
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=−2 in both problems above if it doesn't actually work? Let's plug our possible answers into the original equations:
Test x=4 and x=−2 in log2(x)+log2(x−2)=3Plug each number into the original logs before they were combined into log2(x(x−2)), and keep only values where every inside is positive.
x=4:log2(4)+log2(2)=3(inputs 4>0 and 2>0, keep x=4)x=−2:log2(−2)+log2(−4)(negative inputs, cross out x=−2)
So the only solution to the first equation is x=4.
Test x=6 and x=−2 in 2log3(x)−log3(x+3)=log3(4)Plug each number into the original equation before 2log3(x) became log3(x2).
x=6:2log3(6)−log3(9)=log3(4)(inputs 6>0 and 9>0, keep x=6)x=−2:2log3(−2)−log3(1)(negative input −2, cross out x=−2)
So the only solution to the second equation is x=6.
For x>2, both x and x−2 are positive, so log2(x)+log2(x−2) and the combined expression log2(x(x−2)) have the exact same graph. For x<0, though, the two negative inputs multiply to a positive product x(x−2) and create an extra curve on the left that hits 3 at x=−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 x appears.
Game Plans for Exponential and Logarithmic Equations
bxexponentlogb(x)inside a log
How does x get out?
When x is in the exponent, check whether the equation is a quadratic in ex (with exponents 2x and x, where you factor for u=ex and keep only ex>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 of both sides to bring the exponents out front:
ln(bx)=xln(b)
When x 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:
Finally, while an exponent accepts any real number, a logarithm requires 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−1.
Distribute the 2 and 3 to both terms inside the parentheses. Forgetting to multiply the second number gives 2x+2=3x−1, which leads to the wrong answer x=3.
4 and 8: what smaller base are both numbers powers of?
Rewrite 4 as 22 and 8 as 23, then multiply the exponents on each side:
(22)x+222(x+2)=(23)x−1=23(x−1)
Watch out: Distribute the 2 and 3 to both terms inside the parentheses. Forgetting to multiply the second number gives 2x+2=3x−1, which leads to the wrong answer x=3.
2(x+2)2x+4x=3(x−1)=3x−3=7
Answer: x=7
2
Solve (91)x−1=272x.
Using +2 instead of −2 for 91 gives the wrong answer x=−21, and forgetting to flip the sign on −2(−1) when multiplying out gives −2x−2=6x and the wrong answer x=−41.
91 and 27 as powers of 3: what kind of exponent means dividing by 3 twice?
Rewrite 91 as 3−2 and 27 as 33:
(3−2)x−13−2(x−1)=(33)2x=33(2x)
Watch out: Using +2 instead of −2 for 91 gives the wrong answer x=−21, and forgetting to flip the sign on −2(−1) when multiplying out gives −2x−2=6x and the wrong answer x=−41.
−2(x−1)−2x+22x=6x=6x=8x=41
Answer: x=41
3
Solve 4⋅3x−5=43.
Never multiply the 4 into the base 3 to write 12x=48, which gives the wrong answer x=ln(12)ln(48).
Before taking ln of both sides, what needs to be alone first?
Add 5 and divide by 4 to get 3x alone:
4⋅3x3x=48=12
Watch out: Never multiply the 4 into the base 3 to write 12x=48, which gives the wrong answer x=ln(12)ln(48).
Take the natural log of both sides and bring x out front:
ln(3x)xln(3)x=ln(12)=ln(12)=ln(3)ln(12)
Answer: x=ln(3)ln(12) (or log3(12))
4
Solve 7x+1=32x.
Leaving off the parentheses around x+1 gives xln(7)+1=2xln(3) instead of multiplying the 1 by ln(7), which leads to the wrong answer x=2ln(3)−ln(7)1.
Once the exponents are down in front of ln(7) and ln(3), how do you combine the two x terms?
Take ln of both sides and bring both exponents out front with parentheses around x+1:
ln(7x+1)(x+1)ln(7)=ln(32x)=2xln(3)
Watch out: Leaving off the parentheses around x+1 gives xln(7)+1=2xln(3) instead of multiplying the 1 by ln(7), which leads to the wrong answer x=2ln(3)−ln(7)1.
Multiply out ln(7), move both x terms to the right, and factor out x:
Because ex is always positive, ex=−1 has no solution and must be crossed out. Also check your signs when factoring, since (u+4)(u−1)=0 keeps ex=1 and gives the wrong answer x=0.
Look at the exponents 2x and x: how does rewriting e2x as (ex)2 turn this into a factoring problem?
Let u=ex and factor the quadratic:
(ex)2−3(ex)−4u2−3u−4(u−4)(u+1)uu=0=0=0=4or=−1
Put ex back in for u:
ex=4orex=−1
Watch out: Because ex is always positive, ex=−1 has no solution and must be crossed out. Also check your signs when factoring, since (u+4)(u−1)=0 keeps ex=1 and gives the wrong answer x=0.
x=ln(4)
Answer: x=ln(4)
6
Solve log2(3x+1)=4.
24 is 16. Multiplying 2×4=8 instead of raising 2 to the 4th power gives 3x+1=8 and the wrong answer x=37.
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 logarithm in exponential form:
24=3x+1
Watch out: 24 is 16. Multiplying 2×4=8 instead of raising 2 to the 4th power gives 3x+1=8 and the wrong answer x=37.
1615x=3x+1=3x=5
Answer: x=5
7
Solve log3(4−x)=log3(2x+10).
One base-3 log equals another base-3 log: what has to be true about their insides?
Drop the matching base-3 logs and set the insides equal:
Watch out: Don't cross out x=−2 just because x is negative. Both insides equal +6, which is positive, so throwing out x=−2 and writing "no solution" is a mistake.
x=−2
Answer: x=−2
8
Solve log4(x)+log4(x−6)=2.
Don't leave the right side as 2 instead of 42=16, and don't add the insides as x+(x−6)=16, which gives the wrong answer x=11.Check both numbers in the original equation log4(x)+log4(x−6)=2. Stopping here keeps both x=8 and x=−2, even though x=−2 gives log4(−2) and log4(−8) and must be crossed out.
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 exponential form:
log4(x(x−6))x(x−6)=2=42
Watch out: Don't leave the right side as 2 instead of 42=16, and don't add the insides as x+(x−6)=16, which gives the wrong answer x=11.
x2−6x−16(x−8)(x+2)xx=0=0=8or=−2
Watch out: Check both numbers in the original equation log4(x)+log4(x−6)=2. Stopping here keeps both x=8 and x=−2, even though x=−2 gives log4(−2) and log4(−8) and must be crossed out.
x=8
Answer: x=8
9
Solve 2log5(x)−log5(x+6)=log5(3).
Combining the logs before moving the 2 into the exponent gives x+62x=3, which leads to x=−18 and misses the quadratic completely.Plugging x=−3 into the original equation gives 2log5(−3), so forgetting to check in the original equation leaves the extraneous solution x=−3 alongside x=6.
Before combining the subtracted logs on the left, where does the coefficient 2 have to go?
Move the coefficient 2 into the exponent on x, then combine the subtraction into a fraction:
Watch out: Combining the logs before moving the 2 into the exponent gives x+62x=3, which leads to x=−18 and misses the quadratic completely.
Set the insides equal, multiply by x+6, and factor:
x+6x2x2x2−3x−18(x−6)(x+3)xx=3=3x+18=0=0=6or=−3
Watch out: Plugging x=−3 into the original equation gives 2log5(−3), so forgetting to check in the original equation leaves the extraneous solution x=−3 alongside x=6.