HexMathv1.0.4
Log to the base 2 calculator
This log to the base 2 calculator finds any log base 2. Type the logarithm or scan it. HexMath returns an exact value when the number is a power of 2, including fractions such as 1/8, and a decimal by the change of base rule otherwise. It also solves equations that contain one, with each step shown.
Loading math input...
What this page covers
- Exact values when the number is a power of 2, including fractions such as .
- Decimal values for other numbers, using the change of base rule.
- Equations with a log base 2, such as .
- Not covered here: the natural log or base 10 on their own (type the problem into the solver), and complex logarithms of negative numbers.
How to enter the problem
- Type it or paste it. Write log_2 followed by the number in brackets, for example log_2(1/32).
- Scan it. Fit the one problem in the frame.
- Choose a photo. Several problems in one photo are solved as a list.
- Then tap Solve.
Worked examples
Example 1: Evaluate log₂ (1/32).
Problem
Evaluate .
Answer
VerifiedThe answer is
Explanation
- Ask the question the log asksis the power you raise to in order to get .
- Write 32 as a power of 2
- Write the reciprocal as a negative power
- Read off the exponent. Check
Example 2: Find log₂ 20 to 4 decimal places.
Problem
Find to 4 decimal places.
Answer
VerifiedThe answer is
Explanation
- Notice it is not a whole powerand , so the answer lies between 4 and 5.
- Use change of base
- Evaluate, which rounds to .
Example 3: Solve log₂(x + 3) = 5.
Problem
Solve .
Answer
VerifiedThe answer is
Explanation
- Rewrite as a power
- Solve for
- Check the domainis positive, so the answer is allowed.
Common mistakes
- Dividing instead of finding a power: is , not .
- Losing the minus sign for fractions. Numbers between 0 and 1 have a negative log, so , not .
- Turning change of base upside down: is about , not .
Checks, assumptions and limits
- Check by hand: raise 2 to the answer. , so the example is right.
- Log base 2 is defined only for positive numbers. Zero and negative inputs have no real answer.
- HexMath can make mistakes. Double check important steps.
Frequently asked questions
It is the power you raise 2 to in order to get the number. For example, log base 2 of 8 is 3 because 2 cubed is 8.
Use change of base: divide ln of the number by ln 2, or log of the number by log 2. Both give the same result.
Yes. Numbers between 0 and 1 give negative answers, and numbers that are not powers of 2 give non-whole answers.
Because computers count in powers of 2. The log base 2 of a number tells you how many times it can be halved, or roughly how many bits are needed to write it.
Related tasks
Ready to solve your next math problem?
Create a free account for 3 math questions a day in your browser. No card.
Last updated: · HexMath