Logarithm Calculator
Any base, change of base, and the log rules — with AI-powered step-by-step working
What log_b(x) Is Asking
A logarithm answers an exponent question. is the power you must raise to in order to get :
So because , and because . Reading the definition aloud in that form turns most log questions into a fact you already know about powers.
Two bases have their own notation:
- with no base written means base 10 on virtually every calculator and in most school work.
- means base , the natural logarithm.
The domain is strictly positive: . There is no power of a positive base that produces 0 or a negative number, so and are undefined and your calculator will return an error, not a number.
Because of that inverse relationship, every logarithm question can be rewritten as a question about exponents, which is almost always the faster route by hand.
Change of Base, and the Log Rules
A calculator normally offers only and . For any other base, use change of base:
Either version works and both give the same value, because the constant factor between and cancels in the quotient. That same relationship converts between them directly: , and .
The three rules turn products into sums, which is what logarithms were invented for:
Plus two values worth memorising: and .
To solve , rewrite it in exponential form as .
Common Mistakes to Avoid
- Splitting a log over a sum. is not . The sum rule applies to a product inside the log, never to an addition.
- Dividing instead of subtracting. is a change of base, not . These are genuinely different numbers.
- Putting the base in the wrong place. Change of base is ; flipping it gives the reciprocal.
- Assuming means base . On a calculator is base 10; in some university texts it means base . Check which convention your course uses.
- Taking the log of a negative number — undefined over the reals, so an equation step that produces one has produced an extraneous solution.
- Forgetting that , which is often a one-line shortcut past a page of algebra.
示例题目
常见问题
The log key is base 10 and the ln key is base e, roughly 2.71828. If a question writes log with no base and comes from a school or engineering context, base 10 is intended; some university and computer science texts use log for base e or base 2, so check the convention.
Use the change-of-base formula: divide the log of the argument by the log of the base. For log base 7 of 200, compute ln 200 divided by ln 7, which gives about 2.7229. It does not matter whether you use log or ln, as long as you use the same one top and bottom.
Multiply by the natural log of 10: ln x equals log x times 2.302585. Going the other way, divide by the same constant, so log x equals ln x divided by 2.302585. The constant is simply ln 10, and it comes straight out of the change-of-base formula.
Because no real power of a positive base produces a negative result. Raising 10 to any real exponent always gives a positive number, so there is no value that log of -5 could take. If an equation leads you to the log of a negative quantity, that solution is extraneous and must be rejected.
相关求解器
相关学习指南
免费试用 AI-Math
任何数学问题都能获得分步解答。拍照上传或输入问题即可。
开始解题