Sub topic 13
Exact Answers and Decimal Approximations
This chapter assumes you can solve exponential equations by taking logarithms, solve logarithmic equations by rewriting them in exponential form, and check candidates against the domain of a logarithm. It covers the last step of every solution. You decide how to present the answer, and you compute any decimal without losing accuracy.
What "exact" means
An exact answer is a closed-form expression that stands for the true solution with no rounding. Examples are 4, ln(3), and (1 + ln(20)/ln(3))/2. A decimal approximation is a finite number of digits chosen to be close enough, such as 1.8634.
Most exponential and logarithmic equations have irrational solutions. The decimal expansion of ln(3) never ends and never repeats, so no decimal is ever the exact answer. Writing x = 1.8634 is a claim that the answer is near that value. It is not a claim that it equals that value.
| Form | Example | Strength | Weakness |
|---|---|---|---|
| Exact | `x = ln(20)/ln(3)` | Carries no error. Easy to check symbolically. | Hard to judge size at a glance. |
| Approximate | `x ≈ 2.7268` | Easy to compare, plot, or use in a measurement. | Carries rounding error. |
| Both | `x = ln(20)/ln(3) ≈ 2.7268` | Gives the reader both. | Takes a little more writing. |
Use = between exact expressions and ≈ between an exact value and a decimal. If the problem says "give the exact answer," a decimal alone is incomplete. If it says "round to three decimal places," an unevaluated logarithm is incomplete.
Exact forms are not unique
Two expressions can be the same number written differently. Take the equation 3^(2x - 1) = 20. Taking logarithms gives
x = (1 + ln(20)/ln(3)) / 2
Using the change of base formula, ln(20)/ln(3) = log₃(20), so this is also x = (1 + log₃(20))/2. Since 1 = log₃(3), the product rule gives 1 + log₃(20) = log₃(60). So the answer can also be written x = log₃(60)/2 or x = ln(60)/(2 ln(3)).
All four forms are correct. When you compare your answer with an answer key, evaluate both numerically if they look different. This code confirms the forms agree:
import math
x1 = (1 + math.log(20) / math.log(3)) / 2
x2 = math.log(60) / (2 * math.log(3))
print(round(x1, 4)) # 1.8634
print(round(x2, 4)) # 1.8634
print(math.isclose(x1, x2)) # True
print(math.isclose(3 ** (2 * x1 - 1), 20)) # TrueThe last line is a useful habit. Substitute the decimal back into the original equation. If the left side is close to the right side, the algebra and the calculator work are probably both right.
Choosing which exact form to write
Pick a form that makes the next step easy. These guidelines cover most cases:
- Leave a quotient of logarithms as a quotient, as in
ln(20)/ln(3). Do not simplify it further. - Use
lnwhen the equation involvese, since the result is then free of other bases. - Use
log₃(20)when you want to show that the base came from the problem. Convert tolnorlogonly when you compute. - Isolate
xfully, so the answer readsx = .... - Write rational numbers as fractions, not as decimals. For example,
x = 3/4is better thanx = 0.75when either is exact, unless the context is a measurement.
Sometimes the exact answer is a plain number. Solving log₂(x) + log₂(x - 2) = 3 leaves the quadratic x² - 2x - 8 = 0, with candidates 4 and -2. Only 4 keeps both arguments positive, so the exact answer is 4, with nothing to approximate.
Common mistakes with exact forms
Most errors come from treating ln as if it distributed over arithmetic. These rewrites are all wrong:
ln(20)/ln(3)is notln(20/3). The quotient rule applies toln(20) - ln(3), not to a quotient of logs.ln(20) - ln(3)is notln(17).ln(3x)is not3 ln(x). It isln(3) + ln(x).ln(x + 2)is notln(x) + ln(2).
You can catch these by evaluating both sides. ln(20)/ln(3) is about 2.727, but ln(20/3) is about 1.897.
Getting the decimal correctly
A calculator gives a decimal of any exact expression, but you need to enter it with enough parentheses. For (1 + ln(20)/ln(3)) / 2, type the numerator in parentheses, then divide by 2. Typing 1 + ln(20)/ln(3)/2 computes something different, because only the last term is halved.
Three further rules keep your decimal reliable:
- Do not round until the last step. Keep the full calculator value of each logarithm, or store it in memory.
- Round to the number of places the problem asks for. If none is given, four decimal places is a common default.
- Check that the decimal is plausible. Since
3^1 = 3and3^2 = 9, the solution of3^x = 20must lie between 2 and 3. The value2.7268fits.
The next diagram summarizes the decision.
Why early rounding is dangerous
Rounding a logarithm before dividing or multiplying can change the answer in the first or second digit. Consider the time for an investment growing 5% per year to double. We solve 1.05^t = 2, so t = ln(2)/ln(1.05).
import math
t_exact = math.log(2) / math.log(1.05)
t_early = round(math.log(2), 2) / round(math.log(1.05), 2)
print(round(t_exact, 4)) # 14.2067
print(t_early) # 13.8Rounding ln(1.05) = 0.04879... to 0.05 is a relative error of about 2.5%, and the quotient inherits it. The answer drops from about 14.21 years to 13.8 years. The error is large because ln(1.05) is small, so rounding it to two places discards much of its value. Dividing by a small, rounded number amplifies the error.
A complete worked example: quadratic form
Solve e^(2x) - 5e^x + 6 = 0 and present both forms. Let u = e^x, so u² - 5u + 6 = 0, which factors as (u - 2)(u - 3) = 0. Thus u = 2 or u = 3. Both are positive, and e^x is always positive, so neither is rejected.
Convert back with a natural logarithm. The exact solutions are x = ln(2) and x = ln(3). The approximations are x ≈ 0.6931 and x ≈ 1.0986. If you had found u = -1, you would reject it, because e^x = -1 has no real solution. Check x = ln(2): e^(2 ln 2) = 4, and 4 - 10 + 6 = 0.
Rounding direction depends on context
In an application, "round to the nearest" is not always right. The problem's meaning decides the direction. Suppose you deposit money at 5% annual interest compounded monthly and want to know when the balance first reaches double. The equation is (1 + 0.05/12)^n = 2, where n is the number of months.
import math
r = 0.05
n = math.log(2) / math.log(1 + r / 12)
print(round(n, 2)) # 166.7
print(math.ceil(n)) # 167 months
print(round(n / 12, 2)) # 13.89 yearsThe exact answer is n = ln(2)/ln(1 + 0.05/12). After 166 months the balance is still below double. Interest is credited monthly, so the first time the balance has reached double is month 167. Rounding to the nearest integer would give 167 here, but with a value like 166.3 it would give 166, which is too early. When the question asks "when does it first reach," round up.
For continuous compounding, Pe^(rt) = 2P gives t = ln(2)/r. With r = 0.05, the exact answer is t = ln(2)/0.05 = 20 ln(2), which is about 13.86 years. The exact form 20 ln(2) shows the structure: the doubling time is proportional to ln(2) and inversely proportional to the rate.
Summary checklist
Before you finish a problem, run through these checks:
- The answer is isolated and reads
x = .... - Extraneous candidates have been rejected by checking the domain.
- The exact form uses correct log notation, with no invented rules.
- The decimal came from the exact form with no early rounding.
- The decimal passes the original equation and a quick size estimate.
- The rounding direction and units match the question.
Exercise
Solve 5^x = 12. Give the exact answer and a decimal approximation to four decimal places. Then show that rewriting the exact answer as ln(12/5) is wrong by comparing values.
Show answer
Take natural logs of both sides: x ln(5) = ln(12), so x = ln(12)/ln(5), which is about 1.5440. Check: 5^1.5440 is about 12. The incorrect form ln(12/5) = ln(2.4) is about 0.8755, which is not 1.5440, so the quotient of logs cannot be rewritten as a log of a quotient.
Exercise
Solve e^(3x) = 7. Give an exact answer and a decimal to four places. Then say why computing ln(7) as 1.95 first and dividing by 3 gives a slightly different fourth decimal.
Show answer
Take ln of both sides: 3x = ln(7), so x = ln(7)/3, which is about 0.6486. Using ln(7) ≈ 1.95 gives 0.65 at two places and loses accuracy, because ln(7) is 1.94591..., and rounding it to 1.95 shifts the quotient by about 0.0014. Keeping full precision until the last step gives 0.6486.