You can split things in half.
Imagine you have a big group. You split it into two equal parts. Then you split those parts again.
This idea is called a binary logarithm. It tells us how many times to split by two. A man named Leonhard Euler used it for music. 
Computers use this too. It helps them find things in a list. It can even help us study tiny genes. 
Imagine you have a group of things. You split them into two equal parts. Then you split those parts again. You can count how many times you do this. This is the binary logarithm. It tells you how many times to split by two to reach a certain number. For example, the binary logarithm of eight is three. This is because you split eight into four, then two, then one.
Many people have used this math idea. A man named Leonhard Euler used it for music. It helps find the number of octaves between two notes. 
Computers use this math too. It helps them search through lists. This is called a binary search. It counts the steps needed to find an item.
Scientists also use it in biology. They use it to study genes. It helps them compare how genes work. 
Imagine you have a large pile of blocks. You want to know how many times you can split that pile into two equal groups. Each time you split them, the pile gets smaller. The binary logarithm is the math tool that tells you how many of these splits are needed to reach a single block. For example, if you start with eight blocks, you split them into four, then two, then one. That took three splits, so the binary logarithm of eight is three. It is the opposite of doubling a number.
This math idea works by looking at powers of two. A power of two is what you get when you multiply two by itself many times. The binary logarithm simply finds the position of a number in that growing list. If you have a number like sixteen, the binary logarithm tells you that sixteen is the fourth power of two. Scientists and engineers use this to find the length of messages in computer code. It also helps them figure out how many bits are needed to store information.
People have explored these patterns for a very long time. Long ago, a mathematician named Virasena used a similar idea in the 8th century. He looked at how many times a number could be divided by two. Later, in 1544, Michael Stifel published a table of these numbers in his book Arithmetica Integra. A very famous mathematician named Leonhard Euler used these ideas in 1739. He applied them to music to study how different notes sound together. 
Today, we see this math in many different places. In computer science, it helps with something called a binary search. This is a fast way for a computer to find an item in a sorted list by splitting the choices in half each time. It is also used in biology to study genes. Scientists use microarrays to see how genes behave in living things. They use the binary logarithm to compare how much a gene's activity has changed. 
You can even find this math in a sports tournament. If you have a sixteen-player tournament where players leave after one loss, the number of rounds is the binary logarithm of sixteen. This is because the number of players is cut in half every round. You can also find it in the way we shuffle a deck of cards. Math shows that shuffling a deck seven times makes it very random. It is amazing how one simple idea about splitting things helps us understand so much.
The binary logarithm is a mathematical function that identifies the power to which the number two must be raised to produce a specific value. In simpler terms, it tells you how many times you must multiply two by itself to reach a certain number. For example, the binary logarithm of eight is three because two multiplied by itself three times equals eight. This function acts as the inverse of the power of two function. It is a strictly increasing function over positive real numbers, meaning it has a unique inverse.
To understand its mechanism, consider the process of repeated division. If you start with a number and divide it by two repeatedly, the binary logarithm counts how many divisions are required to reach one. This concept is closely tied to the binary numeral system used by computers. The binary logarithm can help calculate the length of a number's representation in binary. It also determines the number of bits needed to encode a specific message in information theory.
There are several ways to write the notation for a binary logarithm. In many mathematical texts, it is written as $\log_2 x$. Other authors use $\lg x$, a notation often found in the Chicago Manual of Style. Some scientific literature, particularly in German, uses $\text{lb } x$, which stands for the Latin terms "logarithmus dualis" or "logarithmus dyadis." International standards like ISO 31-11 recommend the notation $\log_2 x$. These standards specify that $\log x$ should be reserved for the common logarithm, which uses base ten. 
The history of this concept spans many centuries and cultures. The 8th-century Jain mathematician Virasena used a precursor called "ardhacheda." This concept measured how many times a number could be divided evenly by two. In 1544, Michael Stifel published the first known table of binary logarithms in his book, *Arithmetica Integra*. He listed integers alongside their corresponding powers of two. Later, in 1739, Leonhard Euler applied binary logarithms to music theory. Euler was a major figure in this field and published a table of binary logarithms for integers from one to eight. 
In music theory, the binary logarithm is used to study frequency ratios. The interval between two musical tones is determined by the ratio of their frequencies. An octave represents a frequency ratio of two to one. The binary logarithm of this ratio tells us the number of octaves that separate two tones. This allows musicians to use an additive scale rather than a multiplicative one. This method helps in studying tuning systems and finer distinctions between notes.
Computer science relies heavily on binary logarithms for analyzing algorithms. A common example is the binary search, which finds an item in a sorted list. This algorithm halves the search area with every step. Because of this, it only takes roughly $\log_2 n$ steps to find a solution in a list of $n$ items. Other complex algorithms, such as the Karatsuba algorithm for multiplication, also use binary logarithms in their time bounds. These processes are often described using "linearithmic" time, which is expressed as $O(n \log n)$.
Binary logarithms also appear in the field of bioinformatics. Scientists use microarrays to measure how strongly different genes are expressed. To compare these expression rates, they use the log ratio of the two rates. A doubled expression rate results in a log ratio of one. A halved expression rate results in a log ratio of minus one. This makes it much easier to visualize and compare changes in biological data. 
Finally, this math is visible in combinatorics and daily life. In a single-elimination sports tournament, the number of rounds is the binary logarithm of the number of players. For a 16-player tournament, there are four rounds. Even the way we shuffle cards involves this math. A mathematical analysis shows that a 52-card deck should be shuffled seven times to become close to uniformly random. This calculation is based on the binary logarithm of the number of possible card permutations.
🖼️ Images & Media (6)
More to explore
✨ What else?
Related topics you might enjoy
🔬 Go deeper
More advanced topics to explore
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.