Exponential and Logarithmic Equations and Inequalities
Why this matters
Imagine you’re saving up for a down payment on your first car. You have $4,000 in a savings account that earns 5% interest, compounded annually. You need to reach $5,000. The question is, how long will it take?
You can set up the compound interest formula: 5000 = 4000(1.05)^t. The variable you need to find, t for time, is stuck up in the exponent. How do you get it down? You can’t just divide by 1.05. This isn't a simple algebra problem from last year.
This is exactly the kind of question we'll tackle today. We're learning the techniques to solve for variables when they're trapped in exponents or inside logarithms. These tools are essential not just for finance, but for science, computer science, and engineering. Let's get started.
Concept overview
flowchart TD
A[Start: Solve Equation] --> B{Type?};
B --> C[Exponential: b^x = c];
B --> D[Logarithmic: log(x) = c];
C --> E{Can you get a common base?};
E --> F[Yes: Set exponents equal and solve];
E --> G[No: Take log of both sides and solve];
D --> H{Can you condense to log(A) = log(C)?};
H --> I[Yes: Set A = C and solve];
H --> J[No: Convert to exponential form and solve];
I --> K((Must check for extraneous solutions!));
J --> K;
F --> L[Final Answer];
G --> L;
K --> L;
Core explanation
Alright, let's dive in. Think of exponential and logarithmic functions as two sides of the same coin. They are inverses of each other, which means one undoes the other. This relationship is the key to everything we're doing today.
Solving Exponential Equations
When you have an equation with the variable in the exponent, your goal is to get it out.
Strategy 1: Find a Common Base
If you can rewrite both sides of the equation to have the same base, you're in great shape.
For example, solve 2^(x+1) = 8.
You know that 8 is 2^3. So you can rewrite the equation:
2^(x+1) = 2^3
Since the bases are the same (and they're not 1, 0, or -1), the exponents must be equal.
x + 1 = 3
x = 2
This is the most direct method, so always look for it first.
Strategy 2: Take the Logarithm of Both Sides
What if you can't find a common base, like in our car savings problem 5000 = 4000(1.05)^t?
First, let's isolate the exponential part:
1.25 = (1.05)^t
Now, we can't easily write 1.25 as a power of 1.05. So, we bring in the superpower: logarithms. You can take the log of both sides of any equation (as long as both sides are positive). You can use any base log, but your calculator has buttons for log (base 10) and ln (base e). Let's use ln.
ln(1.25) = ln(1.05^t)
Now, use the power property of logarithms, which lets you bring the exponent down in front:
ln(1.25) = t * ln(1.05)
The variable t is finally free! To solve for it, just divide.
t = ln(1.25) / ln(1.05)
Using a calculator, t ≈ 4.57. So, it will take about 4.6 years to save for the down payment.
Solving Logarithmic Equations
Solving log equations often involves using log properties to simplify the equation first.
Strategy 1: Use the Definition of a Logarithm
If you have a single logarithm equal to a number, like log_3(x - 5) = 2, you can "exponentiate" both sides. That's a fancy way of saying, convert it from log form to exponential form.
Remember: log_b(A) = C is the same as b^C = A.
Applying this here:
3^2 = x - 5
9 = x - 5
x = 14
Strategy 2: Use the One-to-One Property
If you can get your equation into the form log_b(A) = log_b(C), then you can conclude that A = C.
For example: ln(x) + ln(x - 4) = ln(5)
First, use the product property to condense the left side:
ln(x * (x - 4)) = ln(5)
Now you have the ln(A) = ln(C) form. So:
x(x - 4) = 5
x^2 - 4x = 5
x^2 - 4x - 5 = 0
(x - 5)(x + 1) = 0
This gives two potential solutions: x = 5 and x = -1.
- Check
x = 5:ln(5)is fine.ln(5 - 4) = ln(1)is fine. So,x = 5is a valid solution. - Check
x = -1:ln(-1)is undefined! You can't take the log of a negative number. So,x = -1is an extraneous solution. We throw it out.
The only solution is x = 5. Always, always check your answers for log equations.
Finding Inverse Functions
Finding an inverse is like writing down the "undo" instructions for a function. The process is always the same:
- Replace
f(x)withy. - Swap
xandyeverywhere in the equation. - Solve the new equation for
y. - Replace
ywithf⁻¹(x).
Inverse of an Exponential Function
Let's find the inverse of f(x) = 2 * 5^(x-1) + 3.
y = 2 * 5^(x-1) + 3- Swap
xandy:x = 2 * 5^(y-1) + 3 - Solve for
y. This is just like the equation solving we did above! Isolate the exponential term first.x - 3 = 2 * 5^(y-1)(x - 3) / 2 = 5^(y-1)Now, takelog_5of both sides to free the exponent.log_5((x - 3) / 2) = y - 1Finally, add 1.y = log_5((x - 3) / 2) + 1 f⁻¹(x) = log_5((x - 3) / 2) + 1
Inverse of a Logarithmic Function
Let's find the inverse of g(x) = 4 * ln(x + 2) - 7.
y = 4 * ln(x + 2) - 7- Swap
xandy:x = 4 * ln(y + 2) - 7 - Solve for
y. Isolate the logarithm.x + 7 = 4 * ln(y + 2)(x + 7) / 4 = ln(y + 2)Now, exponentiate both sides using base e to undo the natural log.e^((x + 7) / 4) = y + 2Finally, subtract 2.y = e^((x + 7) / 4) - 2 g⁻¹(x) = e^((x + 7) / 4) - 2
And just as we expected, the inverse of a logarithmic function is an exponential function.
Worked examples
Let's walk through a few problems together. The key is to identify the type of problem first, then apply the right strategy.
Solving a Logarithmic Equation with an Extraneous Solution
Problem: Solve the equation log_2(x) + log_2(x - 2) = 3.
Solution Walkthrough:
- 1Identify the GoalWe need to solve for
x. Thexis inside logarithms. Our first step should be to combine these logs into a single logarithm. - 2Apply Log PropertiesThe sum of two logs with the same base is the log of their product.
log_2(x * (x - 2)) = 3log_2(x^2 - 2x) = 3 - 3Convert to Exponential FormNow we have a single log equal to a number. This is the perfect time to use the definition of a logarithm (
log_b(A) = Cmeansb^C = A).2^3 = x^2 - 2x8 = x^2 - 2x - 4Solve the Resulting EquationThis is a quadratic equation. Let's get it equal to zero.
0 = x^2 - 2x - 8Factor the quadratic. We need two numbers that multiply to -8 and add to -2. That's -4 and +2.0 = (x - 4)(x + 2)This gives us two potential solutions:x = 4andx = -2. - 5Check for Extraneous SolutionsThis is the most critical step for log equations. We must plug our answers back into the original equation:
log_2(x) + log_2(x - 2) = 3.- Check
x = 4:log_2(4)is valid.log_2(4 - 2) = log_2(2)is also valid. So,x = 4is a real solution. - Check
x = -2:log_2(-2)... stop right there. You cannot take the logarithm of a negative number. The domain oflog_2(x)isx > 0. Therefore,x = -2is an extraneous solution.
- Check
Final Answer: The only solution is x = 4.
Finding the Inverse of a Transformed Exponential Function
Problem: Given f(x) = 3 * (1/2)^(x+4) - 5, find the inverse function, f⁻¹(x).
Solution Walkthrough:
- Rewrite with
y: Start by replacingf(x)withy.y = 3 * (1/2)^(x+4) - 5 - Swap
xandy: This is the key step to finding an inverse. Everyxbecomes ayand everyybecomes anx.x = 3 * (1/2)^(y+4) - 5 - Solve for
y: Now, we treat this as an algebra puzzle. Our goal is to isolatey. We undo the operations in reverse order (reverse PEMDAS).- Add 5 to both sides:
x + 5 = 3 * (1/2)^(y+4) - Divide by 3:
(x + 5) / 3 = (1/2)^(y+4) - Now, to get
yout of the exponent, we take the logarithm of both sides. Since the base is 1/2, it's most natural to uselog_1/2.log_1/2((x + 5) / 3) = y + 4 - Finally, subtract 4 from both sides:
y = log_1/2((x + 5) / 3) - 4
- Add 5 to both sides:
- State the Inverse Function: Replace
ywith the proper notationf⁻¹(x).
Final Answer: f⁻¹(x) = log_1/2((x + 5) / 3) - 4.
Try it yourself
Ready to try a couple on your own? Don't worry about getting the perfect answer right away. Focus on setting up the problem correctly and identifying the right strategy.
1. Solve the Inequality
Solve 2 * ln(x - 3) > 8.
Hint 1: Start by isolating the logarithm, just like you would in an equation.
Hint 2: After you exponentiate, remember that logarithms have a domain. What's the simplest inequality you can write just by looking at ln(x-3)? Your final answer must satisfy both conditions.
2. Find the Inverse
Find the inverse of the function g(x) = e^(2x) - 5.
Hint: Swap x and y. Your goal is to solve for the new y. You'll need to use a logarithm to get y out of the exponent. Which logarithm is the inverse of base e?
Practice — 8 questions
In simple terms, this topic is about using algebra "superpowers"—exponents and logarithms—to solve for unknown variables and find inverse functions.
- 2.13.A: Solve exponential and logarithmic equations and inequalities.
- 2.13.B: Construct the inverse function for exponential and logarithmic functions.
- 2.13.A.1
- Properties of exponents, properties of logarithms, and the inverse relationship between exponential and logarithmic functions can be used to solve equations and inequalities involving exponents and logarithms.
- 2.13.A.2
- When solving exponential and logarithmic equations found through analytical or graphical methods, the results should be examined for extraneous solutions precluded by the mathematical or contextual limitations.
- 2.13.A.3
- Logarithms can be used to rewrite expressions involving exponential functions in different ways that may reveal helpful information. Specifically, b^x = c^{(log_c b)(x)}.
- 2.13.B.1
- The function f (x) = ab^{(x−h)} + k is a combination of additive transformations of an exponential function in general form. The inverse of y = f(x) can be found by determining the inverse operations to reverse the mapping.
- 2.13.B.2
- The function f(x) = a log_b (x − h) + k is a combination of additive transformations of a logarithmic function in general form. The inverse of y = f (x) can be found by determining the inverse operations to reverse the mapping.
flowchart TD
A[Start: Solve Equation] --> B{Type?};
B --> C[Exponential: b^x = c];
B --> D[Logarithmic: log(x) = c];
C --> E{Can you get a common base?};
E --> F[Yes: Set exponents equal and solve];
E --> G[No: Take log of both sides and solve];
D --> H{Can you condense to log(A) = log(C)?};
H --> I[Yes: Set A = C and solve];
H --> J[No: Convert to exponential form and solve];
I --> K((Must check for extraneous solutions!));
J --> K;
F --> L[Final Answer];
G --> L;
K --> L;
Read what Saavi narrates
Hi everyone, it's Saavi. Let's talk about solving some of the trickiest equations you'll see in this course.
Imagine you’re saving up for a down payment on your first car. You have four thousand dollars in a savings account that earns five percent interest, compounded annually. You need to get to five thousand dollars. The real question is, how long will it take?
You can set up the formula... five thousand equals four thousand times one point oh five to the power of t. The variable you need, t for time, is stuck up in the exponent. How do you get it down? This is exactly the kind of puzzle we're learning to solve today.
Essentially, we're learning the algebraic strategies to solve equations where the variable is trapped in an exponent or a logarithm. These are powerful tools you'll use for years to come.
Let's walk through an example together. Suppose you need to solve the equation: the log base two of x, plus the log base two of x minus two, equals three.
First, we need to combine those two logs on the left. Since they're being added, we can use the product property. This gives us log base two of... x times the quantity x minus two... equals three.
Now we have a single log. We can rewrite this in exponential form. The base is two, the exponent is three, and that equals the argument. So, two cubed equals x-squared minus two-x.
Two cubed is eight. So we have eight equals x-squared minus two-x. This is a quadratic! Let's set it to zero. Zero equals x-squared minus two-x minus eight. Factoring this gives us... x minus four, times x plus two. So our potential solutions are x equals four, and x equals negative two.
But wait! This is where so many students make a mistake. With logarithms, you have to check your answers. If we plug x equals negative two back into our original equation, we get log base two of negative two. You can't do that! The input to a log must be positive. So, negative two is an extraneous solution. We have to discard it. The only answer is x equals four.
Remembering to check for those extraneous solutions is probably the single most important habit to build for this topic. It's the difference between a right and wrong answer on the AP exam.
You're building a powerful new set of tools here. Keep practicing, stay patient with yourself, and you'll get it. You've got this.
Logarithms have a restricted domain (the input must be positive). Solving the equation can produce answers that are mathematically correct for the transformed quadratic or linear equation, but invalid in the original logarithmic context.
After finding your potential solutions for any log equation, always plug them back into the *original* equation to make sure all log arguments are positive.
The log properties are specific: `log(a*b) = log(a) + log(b)` and `log(a/b) = log(a) - log(b)`. There is no property for the log of a sum or difference.
Memorize the three main log properties: product, quotient, and power. If an expression doesn't match one of those patterns, you can't simplify it that way.
The variable is in the exponent. Division doesn't "undo" an exponential. `4^x` means `4 * 4 * ...` x times, not `4 * x`.
Take the logarithm of both sides. `ln(4^x) = ln(50)`, which becomes `x * ln(4) = ln(50)`, so `x = ln(50) / ln(4)`.
The process of finding an inverse is fundamentally about swapping the roles of input and output. If you solve for `x` first, you are just rearranging the original function, not finding its inverse.
Always follow the sequence: 1. Write `y = f(x)`. 2. Swap `x` and `y`. 3. *Then* solve for the new `y`.
The change of base formula is `log_b(a) = log(a) / log(b)` or `ln(a) / ln(b)`. It's a division of two separate logarithms, not the logarithm of a division.
To evaluate `log_3(7)` on your calculator, type `log(7) ÷ log(3)` or `ln(7) ÷ ln(3)`.