Step-by-step math solver
Logarithmic equations
Solve logarithmic equations such as log(x + 1) = 2 and ln(2x − 1) = ln(x + 3) by rewriting in exponential form or comparing the arguments, and check each answer against the domain: the argument of a log must be positive.
Free, no sign-in. The solver runs in your browser and does not send your problem to the server.
Method
- Find the domain first: the argument of every logarithm must be greater than 0.
- log u = m gives u = 10ᵐ (log is the common logarithm, base 10); ln u = m gives u = eᵐ.
- log u = log v or ln u = ln v gives u = v.
- Substitution: in (log x)² − 3 log x + 2 = 0 let t = log x, solve the quadratic in t, then find x.
- Reject any value that does not satisfy the domain condition.
Worked examples
log(x + 1) = 2
Condition: the expression inside the logarithm must be positive
x + 1 > 0
By the definition of the logarithm
x + 1 = 10² = 100
Move the terms with x to the left and the numbers to the right (changing signs)
x = 100 − 1
x = 99
Conclusion
x = 99
Solution set: S = {99}
Result
x = 99
Solution set: S = {99}
Open in the solver
ln(2x − 1) = ln(x + 3)
Condition: the expression inside the logarithm must be positive
2x − 1 > 0
x + 3 > 0
The bases are equal, so the expressions inside the logarithms are equal
2x − 1 = x + 3
Move the terms with x to the left and the numbers to the right (changing signs)
2x − x = 3 + 1
x = 4
Check against the domain
x = 4 meets the condition (accepted)
Conclusion
x = 4
Solution set: S = {4}
Result
x = 4
Solution set: S = {4}
Open in the solver
log(x)^2 − 3·log(x) + 2 = 0
Condition: the expression inside the logarithm must be positive
x > 0
Let t = log(x) and rewrite the equation in t
t² − 3t + 2 = 0
Identify the coefficients
a = 1; b = −3; c = 2
Compute the discriminant Δ = b² − 4ac
Δ = (−3)² − 4 · 1 · 2 = 1
Since Δ > 0, the equation has two distinct solutions
√Δ = √1 = 1
t₁ = (−b + √Δ)/(2a) = 2
t₂ = (−b − √Δ)/(2a) = 1
Back to x
log(x) = 1 ⇔ x = 10
log(x) = 2 ⇔ x = 100
Conclusion
x = 10
x = 100
Solution set: S = {10; 100}
Result
x = 10
x = 100
Solution set: S = {10; 100}
Open in the solver
Practice problems
Work it out on paper first, then tap to see the step-by-step solution.
Not supported yet
- Logarithms with a base other than 10 or e cannot be typed directly yet; type log₂x as log(x)/log(2).
- Equations that first need log rules to combine several logarithms are not solved yet, for example log x + log(x − 3) = 1.
For these, open Chat with the Tutor skill from the solver (sign-in required, uses credit like a normal chat).