Step-by-step explanation:
Logarithm is basically the exponent - also called power - to which a base must be raised to produce a given number.
Mathematically, it can be displayed as:
[tex]x[/tex] is the logarithm of [tex]n[/tex] to the base [tex]b[/tex], if [tex]b^{x} = n[/tex], in which case we write
[tex]x=\log _b\left(n\right)[/tex]
Lets take the first example,
[tex]2^{4} = 16[/tex]
as
[tex]x=\log _b\left(n\right)[/tex]
Therefore, 4 is the logarithm of 16 to base 2.
Lets take the second example,
[tex]x=\log _2\:64[/tex]
[tex]2^x=64[/tex]
[tex]x = 6[/tex]
Here is how they are related to each other:
Logarithm → Exponent
[tex]\log _b\left(n\right)=x\:[/tex] → [tex]n=b^x[/tex]