Questions tagged [logarithms]

Questions related to real and complex logarithms.

The logarithm is generally defined to be an inverse function for the exponential. If $x > 0$ is a real number and $b > 0$, $b \ne 1$, then the base-$b$ logarithm is defined by

$$\log_b(x) = y \iff b^y = x$$

The most commonly used bases are base $10$ and $2$ (which frequently arises in computer science), and particularly base $e$. The natural logarithm $\ln$ is defined to be $\log_e$.

Alternatively, the natural logarithm can be defined to be a primitive of the function $$f(t) = \frac{1}{t}$$ subject to the condition that $\ln{1} = 0$.

In the study of complex numbers, the solutions $a$ of $e^{a} = z$ are called complex logarithms. This uniquely specifies the modulus of $a$, but not its argument; as such, we define the principal logarithm $\operatorname{Log}(re^{i\theta}) = \ln{r} + i \theta$, with the restriction $-\pi < \theta \le \pi$ (or alternatively, $0 \le \theta < 2\pi$). This leads to a branch cut, or discontinuity - alternatively, the complex logarithm can be viewed as a multi-valued function.

Reference: Logarithm.

This tag often goes along with .

10168 questions
17
votes
2 answers

Why is $\log_{-2}{4}$ complex?

With the logarithm being the inverse of the exponential function, it follows that $ \log_{-2}{4}$ should equal $2$, since $(-2)^2=4$. The change of base law, however, implies that $\log_{-2}{4}=\frac{\log{4}}{\log{-2}}$, which is a complex number.…
Hypercube
  • 576
  • 1
  • 5
  • 14
13
votes
1 answer

Convert a linear scale to a logarithmic scale

Given a number n, how would I convert this number into a logarithmic scale? My logarithmic scale would range from 0 to 255 (I'm working with RGB colours), and I would expect values of n from 1 to 1,000,000. Apologies if this is an easy question.
12
votes
7 answers

Is there a logarithm base for which the logarithm becomes an identity function?

Is there a base $b$ such that: $$\log_b x = x $$ (The only one that comes to mind would be the invalid case of $\log_1 1 = 1 $.) I'm fairly certain the answer is no, but I can't find a clear justification for it. (I don't have a strong mathematical…
schomatis
  • 293
  • 1
  • 8
12
votes
7 answers

Why is the Ratio of $\ln(x)$ and $\log(x)$ a constant?

I was solving some "Big-Oh" algorithm asymptotic complexity problems, when I discovered that for some constant $c$ and some variable $x$: $$c^{\log(x)}$$ and $$x^{\log(c)}$$ grow at the same rate. When figuring this out I ended up with the…
user3776749
  • 555
  • 5
  • 16
12
votes
2 answers

How do you simplify a log with an exponent in the base?

Suppose you had: $$\log_{x^b}(y)$$ How can you simplify this? Do you use the change of base formula? Note: I tried to come up with something similar to a homework problem without actually being a homework problem. I think this is the most simple…
Jeff
  • 325
  • 3
  • 8
11
votes
2 answers

Motivation for definition of logarithm in Feynman's Lectures on Physics

I'm not sure if the title is descriptive enough; feel free to change it if you come up with something better. I've been reading through Feynman's Lectures on Physics. In the first volume, he dedicates a chapter to just math. He starts with the…
Javier
  • 7,298
11
votes
2 answers

Why are logarithms not defined for 0 and negatives?

I can raise $0$ to the power of one, and I would get $0$. Also $-1$ to the power of $3$ would give me $-1$. I think only some logarithms (e.g log to the base $10$) aren't defined for $0$ and negative numbers, is that right? I'm confused because on…
w4j3d
  • 903
  • 1
  • 7
  • 13
11
votes
3 answers

From natural log to log base 10

The constraints of this question is related to a programming problem, but I must get the math right in order for it to be applied to code. The actual problem is I need a function that evaluates to log base 10 but all I have at my disposal is…
10
votes
1 answer

Equal spaced points in a logarithmic graph

I am plotting a graph with the x-axis as logarithmic. I want to select 10 point that are equally spaced in a logarithm scale. How can I determine the values if we have the range from 100 to 10000?
10
votes
2 answers

Number raised to log expression

I am struggling with what I think should be some a basic log problem: Show that $3^{log_2n} = n^{log_23}$ I know that $3^{log_3n} = n$ and $log_2n = {log_3n}/{log_32}$ I was attempting something similar to: $3^{{log_3n}/log_32} = 3^{log_3n -…
MikeB
  • 201
10
votes
4 answers

Root of $x^{x^{x^{x^{x^{.^{.^{.}}}}}}} = a$

Root of $x^{x^{x^{x^{x^{.^{.^{.}}}}}}} = a$ where $a > 0$ can be solved by noticing the equation can be transform to $x^a = a$. Taking the logarithm of base $a$ on the equation, we have $$a \cdot \log_a{x} = 1$$ or $$\log _a x=\frac{1}{a}.$$ This…
9
votes
3 answers

How do we prove that $a^{\log{b}} = b^{\log{a}}$ for $a > 1$ and $b > 1$?

I have tried using the change of base formula, but can't quite complete the equality: $$ a^{\log{b}} \\ a^{\frac{\log_a{b}}{\log_a{a}}} $$ How do I get the base of the exponent to be b?
David Faux
  • 3,425
9
votes
6 answers

How do I take a fraction to a negative power?

I ran into this issue during my homework. Using the rules of logarithms, I need to prove that $$ -2\ln\bigg(\frac{2}{\sqrt{6}}\bigg)=\ln3-\ln2 $$ So here were my steps: First…
9
votes
9 answers

Show that, for $t>0$, $\log t$ is not a polynomial.

How can I show that? I've tried to reverse the logarithm to it's exponential form in a trial to show that but I got no success. Can you help me?
Red Banana
  • 23,956
  • 20
  • 91
  • 192
8
votes
2 answers

Why there is no formula log(a) * log(b) = (something)?

When I was studying in high school, my teacher taught me about log(a) + log(b) = log(ab) log(a) - log(b) = log(a/b) log(a) / log(b) = log$_b$(a) Then, I asked my teacher "Why there is no formula log(a) * log(b) = (something) ?". My teacher didn't…
Ro Theory
  • 715