Exponential and Logarithmic Equation Solver
Recognises the type of exponential or logarithmic equation, solves it with the right method, checks every answer in the original equation and graphs both sides.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Type the equation
Enter it with one = sign, or press an example such as Log product.
- 2Read the solution
The result shows the solutions, the method and any extraneous values.
- 3Follow the working
Steps show the base change, logs, substitution or log laws used.
- 4Check the graph
The two sides are drawn and the solutions marked where they meet.
- 5Revise the laws
The Log laws tab lists product, quotient, power and change of base.
- 6Practise
Practice offers same-base, take-logs and log-law questions with extraneous roots.
About this tool
Exponential and logarithmic equations come in a handful of standard types, and each has its own method. This solver recognises them. When both sides can be written as powers of the same base, it equates the exponents. When they cannot, it takes logarithms of both sides. When a power is multiplied by a constant, it isolates the power first and notices when there is no solution because a power can never be negative. When the equation is a quadratic in e^x or 2^x, it substitutes y = b^x, solves the quadratic and rejects negative values of y. Equations with logarithms are combined with the product, quotient and power laws and rewritten in exponential form, and every candidate is checked against the domain of each logarithm, so extraneous roots created by the log laws are shown and rejected with the reason. Both sides are graphed so the solutions appear as intersection points.
Typing equations
Use ^ for powers, e for Euler's number, ln for natural logarithms, log for base-10 logarithms and log_2(…), log_5(…) and so on for other bases. Multiplication signs can be omitted: 5e^(2x) = 40.
The methods
Same base: 4^x = 8^(x - 1) becomes 2^(2x) = 2^(3x - 3), so 2x = 3x - 3 and x = 3. Logs of both sides: 3^x = 20 gives x ln 3 = ln 20, so x = ln 20/ln 3 ≈ 2.726833. Substitution: e^(2x) - 5e^x + 6 = 0 is y² - 5y + 6 = 0 with y = e^x, so y = 2 or 3 and x = ln 2 or ln 3.
Extraneous solutions
The log laws are only valid when every argument is positive, but the equation produced by combining logs can have solutions outside that domain. Those are extraneous and must be rejected. That is why the solver substitutes every candidate back into the original equation.
Worked example
log x + log(x - 3) = 1. The domain needs x > 0 and x > 3. The product law gives log(x(x - 3)) = 1, so x(x - 3) = 10, x² - 3x - 10 = 0 and x = 5 or x = -2. x = -2 makes log x undefined, so it is rejected; the only solution is x = 5.
Limits
Solutions are searched between -50 and 50; equations whose roots lie outside that range, or that mix logarithms and powers in unusual ways, are solved numerically without the named method. Answers to equations that are not one of the standard types are decimals rather than exact forms. Complex solutions are not given. Use the steps to learn the method.
Worked example
log x + log(x - 3) = 1 → x(x - 3) = 10 → x = 5 or -2; -2 is extraneous, so x = 5.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenStax College Algebra 2e, section 6.6 Exponential and Logarithmic Equations
Frequently asked questions
How do I type a logarithm with another base?
Write log_b(…), for example log_2(x) for the base-2 logarithm. log alone is base 10 and ln is base e.
When can I equate the exponents?
When both sides are powers of the same base, b^u = b^v, which gives u = v because exponential functions are one-to-one.
What is an extraneous root?
A value that solves the rearranged equation but not the original, usually because it makes a log argument zero or negative.
Why does 2^x = -4 have no solution?
A positive base raised to any real power is positive, so it can never equal a negative number.
How are quadratics in e^x solved?
Substitute y = e^x, solve the quadratic in y, reject non-positive y values, then take ln of each remaining y.
What does the graph show?
The left side and the right side as two curves; their intersection points are the solutions.
