How to use the solver
Pick the equation form that matches your problem, or start from one of the examples and change the numbers. The line under the menu shows the equation as you type, so you can see straight away whether a sign or a coefficient has landed in the wrong box.
If your equation does not look like any of the forms yet, tidy it up first. For example, 3 · 2^x − 5 = 19 already fits the growth and decay form with p = 3, a = 2, k = 1, b = 0, q = −5 and c = 19. An equation such as 4^x = 8 can be entered directly with a = 4, even though both numbers are powers of 2.
The result shows an exact answer where one exists, a decimal to 12 significant figures, every step of the working and a check in the original equation. The graph plots the left and right sides as two curves. The solution is the x-coordinate where they cross.
Which form to choose
| Form | Use it when | Example |
|---|---|---|
| a^(kx + b) = c | One power equals a number | 2^(3x + 1) = 16 |
| p · a^(kx + b) + q = c | A starting amount grows or shrinks by a fixed factor | 5000 · 1.04^x = 8000 |
| a^(kx + b) = a^(mx + n) | Both sides are powers of the same base | 2^(x + 3) = 2^(2x − 1) |
| a^(kx + b) = d^(mx + n) | The two bases are different | 3^(x + 1) = 5^(x − 1) |
| log_a(kx + b) = c | One logarithm equals a number | log₃(2x + 3) = 4 |
| ln(kx + b) = c | The logarithm is natural, base e | ln(2x − 1) = 3 |
| log_a(…) = log_a(…) | One logarithm equals another with the same base | log₅(2x + 1) = log₅(x + 4) |
| log_a(…) + log_a(…) = c | Two logarithms are added | log₂(x) + log₂(x − 2) = 3 |
| log_a(…) − log_a(…) = c | One logarithm is subtracted from another | log₃(x + 6) − log₃(x − 2) = 2 |
Solving exponential equations
The unknown sits in the exponent, so the job is to bring it down to ground level. There are three routes, and the solver picks the right one for each form.
Same base on both sides. If the bases match, the exponents must match too, so 2^(x + 3) = 2^(2x − 1) becomes x + 3 = 2x − 1 and x = 4. No logarithms are needed.
A power equal to a number. Take a logarithm of both sides. The power rule moves the exponent in front, and what is left is a linear equation. When the number happens to be a power of the base, as 16 is of 2, the answer comes out exact.
Different bases. Take natural logarithms of both sides, multiply out the brackets, then gather every term containing x on one side. This is the step people most often rush. The x appears twice, once from each side, and it has to be factored out before you divide.
Growth and decay problems usually come with a starting amount in front and sometimes a constant added on. Undo those first, in the reverse order to how they were applied: subtract q, then divide by p. Only then take logarithms.
Solving logarithmic equations
A logarithm asks a question: what power of the base gives this number? So log₃(2x + 3) = 4 says that 3⁴, which is 81, equals 2x + 3, and x = 39. Rewriting a single logarithm in that exponential form is nearly always the first move.
When two logarithms with the same base appear, combine them before rewriting. A sum becomes the logarithm of a product, and a difference becomes the logarithm of a quotient. If one logarithm equals another, their arguments must be equal.
Then comes the step that matters most: check the domain. A real logarithm only accepts positive numbers, so every argument must stay above zero. Combining logarithms can create a quadratic with a root that makes one of the original arguments negative. That root is extraneous and has to be thrown out, even though the algebra produced it honestly. The solver tests every candidate and tells you which ones it rejected and why.
Logarithm rules used in the working
- Definition: log_a(y) = c means a^c = y, for a > 0, a ≠ 1 and y > 0.
- Product rule: log_a(MN) = log_a(M) + log_a(N).
- Quotient rule: log_a(M ÷ N) = log_a(M) − log_a(N).
- Power rule: log_a(M^r) = r · log_a(M).
- Change of base: log_a(M) = ln(M) ÷ ln(a). This is how a calculator works out log₇ or log₁.₀₅.
- Inverses: a^(log_a x) = x and log_a(a^x) = x, which is why one undoes the other.
The product and quotient rules only work in that direction when M and N are both positive. That is another reason the domain check comes at the end of every logarithmic problem.
Worked examples
How long until savings reach a target?
You put 5,000 into an account paying 4% a year, compounded annually, and want to know when it reaches 8,000. The balance after x years is 5000 · 1.04^x, so solve 5000 · 1.04^x = 8000. Divide by 5000 to get 1.04^x = 1.6. Take logarithms: x = ln 1.6 ÷ ln 1.04 ≈ 11.98. Interest is only added once a year, so the balance passes 8,000 at the end of year 12.
Dating with carbon-14
Carbon-14 has a half-life of about 5,730 years. If a sample keeps 25% of its original carbon-14, then 100 · (1/2)^(x/5730) = 25. Dividing by 100 gives (1/2)^(x/5730) = 1/4 = (1/2)², so x/5730 = 2 and x = 11,460 years. Two half-lives leave a quarter.
A log sum with an answer to reject
Solve log₂(x) + log₂(x − 2) = 3. The product rule gives log₂[x(x − 2)] = 3, so x(x − 2) = 8 and x² − 2x − 8 = 0. That factors as (x − 4)(x + 2) = 0, giving x = 4 or x = −2. At x = −2 both arguments are negative, so it is rejected. The only solution is x = 4: log₂ 4 + log₂ 2 = 2 + 1 = 3.
Two different bases
Solve 3^(x + 1) = 5^(x − 1). Taking natural logarithms gives (x + 1) ln 3 = (x − 1) ln 5. Expanding and collecting x terms gives x(ln 5 − ln 3) = ln 5 + ln 3, so x = ln 15 ÷ ln(5/3) ≈ 5.301.
Where these equations come up
Money. Compound interest, loan balances and inflation all multiply by the same factor each period. Asking how long something takes always leads to an exponential equation. A handy check is the rule of 72: divide 72 by the percentage rate for a rough doubling time. At 5% that gives 14.4 years, close to the exact 14.2.
Science and medicine. Radioactive decay, the amount of a drug left in the bloodstream and the temperature gap between a hot drink and the room all shrink by a constant fraction over equal time steps. The unknown is usually a time, which sits in the exponent.
Logarithmic scales. Some quantities are measured by counting powers of ten rather than the amounts themselves. On the pH scale, a drop of 2 means the hydrogen-ion concentration is 100 times higher. On the decibel scale, a rise of 10 dB means 10 times the sound intensity. Working backwards from a reading to the underlying amount is a logarithmic equation.
Computing. Each step of a binary search halves the list, so finding an item among 1,000,000 sorted entries takes at most the smallest whole number above log₂ 1,000,000 ≈ 19.93. That means 20 comparisons. The same logarithm tells you how many bits you need to count that high.
Exact form and decimal form
Where the answer is a whole number or a simple fraction, the solver shows it exactly. Otherwise it gives the answer in logarithm form, such as ln 1.6 ÷ ln 1.04, alongside a decimal. Keep the exact form if you are going to use the answer in another calculation, and round only at the end. The check in the original equation uses the full-precision value, not the rounded one.
Common mistakes
- Splitting a logarithm across addition: log(a + b) is not log a + log b.
- Dividing logarithms instead of subtracting them: log a ÷ log b is not log(a ÷ b).
- Forgetting the coefficient in front of the power: in 3 · 2^x = 24, divide by 3 before taking logarithms. Do not take the logarithm of 3 · 2 = 6.
- Keeping an answer that makes a logarithm’s argument zero or negative.
- Rounding a logarithm early. Rounding ln 1.04 to 0.04 changes the savings answer by more than two months.