When both sides share a base
To solve , notice that . Then , and equal powers of the same base have equal exponents, so .
The answer need not be a positive whole number. is , so (lesson 1.4.1). And becomes once both sides are written in base 2, so and .
That works when you can spot the base. Usually you cannot: try writing 20 as a power of 3. For that you need logarithms.
A solution is a crossing point
Solving means finding where the curve meets the horizontal line .
has one solution, where the line crosses the curve. has none: the curve stays above the -axis.
A table brackets the crossing. and , so is between 2 and 3. Narrowing the bracket, as bisection does in lesson 1.3.2, closes in on it:
| 2 | 2.7 | 2.72 | 2.73 | 2.8 | 3 | |
|---|---|---|---|---|---|---|
| 9 | 19.419 | 19.8504 | 20.0697 | 21.674 | 27 |
So the solution lies between 2.72 and 2.73. The next section finds it exactly.
The picture also shows when there is no solution. is always positive (lesson 1.4.2), so it never equals 0 or a negative number. And it always rises, so it meets each line above the axis exactly once.
Rule: How many solutions
This holds for any base with , growth or decay. Check the sign of before you reach for logs.
The general method: take logs
Here is solved step by step. Before you press Why?, try to say which rule each step uses.
- 1
- 2
- 3
- 4
That matches the table: between 2.72 and 2.73.
Rule: Solving for an unknown exponent
First get the power on its own on one side. Then take of both sides, bring the exponent down with the power rule, and solve.
The signs take care of themselves. For , both logs are negative: , a positive answer. For , the target is below 1, so is negative.
Try it
Compute each answer, then check it by putting it back into the original equation.
The first check prints 19.999999999999993 rather than 20. That tiny gap is rounding inside the computer, not a mistake in the method.
Isolate the power first
Solve . Taking logs straight away gets you stuck: has no rule, because of the . Undo the arithmetic around the power first.
With base , undoes the power directly. Solve :
Isolating can also reveal that there is no solution. becomes , and no power of 5 is negative.
Try it
Check both answers by substituting them back.
The second line prints 99.99999999999999: rounding again.
The unknown in two exponents
Solve . Taking logs works here too, and then it becomes an ordinary linear equation.
- 1
- 2
- 3
- 4
Try it
Both sides should print the same value when we substitute the answer.
Equations that hide a quadratic
Solve . Taking logs would get stuck on the sums. Instead, notice that by the power-of-a-power rule, and give a name.
Now undo the substitution. gives , and gives . Two solutions.
Change one sign and a root disappears. factors as , so or . But is never negative, so only survives.
Try it
The cell puts each answer back into its equation. Both lines of the first equation print 0.0.
The second prints about , rounding again. Writing math.log(-2) would fail, which is the second root refusing to exist.
Solving log equations
To free an unknown from inside a log, apply the matching power to both sides. This undoes the log.
A negative log is no obstacle: gives , a positive number below 1 (lesson 1.4.3).
When there are two logs, combine them first. For , the product rule gives one log, and undoing it leaves a quadratic:
So or . Check both in the original equation. gives . But would need , which does not exist, so the only solution is .
Sometimes nothing survives. Solve . Equal logs mean equal inputs, so , which gives . But then , and does not exist. The equation has no solution.
Rule: Always check log answers
Put each answer back into the original equation. Throw away any answer that makes the input to a log zero or negative.
Try it
Python can do the checking. math.log raises an error for an input of zero or less, which is how you spot an answer that does not work.
The cell checks , the answer 5, the answer 4, then the two rejected values.
Let SymPy check your algebra
Try it
SymPy solves equations exactly, which makes it a good answer-checker. It writes as log.
Declare the unknown real=True, or SymPy also reports complex answers. Then gives the empty list []: no solution.
The first run takes a few seconds while SymPy loads.
The last line is a warning. SymPy returns for , because it allows logs of negative numbers as complex numbers. So check every answer yourself, even one from SymPy.
Common mistakes
- Taking logs before isolating the power. has no rule. Undo the and the first.
- Simplifying the answer wrongly. is not , and not .
- Expecting a solution for every target. has none when .
- Rejecting a negative log. is fine: .
- Keeping every root of the quadratic. and both fail; check each root.
- Dropping brackets. is , not .
Solve for x
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- has one solution when and none when : it is where crosses .
- Unknown exponent: isolate the power, take of both sides, bring the exponent down with the power rule. gives .
- is : substitute , solve the quadratic, and drop any .
- Unknown inside a log: combine logs, then undo with the matching power, so gives .
- Check every answer in the original equation; inputs to logs must be positive. SymPy does not do this check for you.