Negative logs?

  • Thread starter Acnhduy
  • Start date
  • #1
31
1
Why is it not possible to have the log of a negative number?
Examples would be greatly appreciated.

Furthermore, is it the base that cannot be negative?

Like log-bx

or is it that when you have a number and you log it, the number cannot be negative. log(-x)
 
Last edited:

Answers and Replies

  • #2
Mentallic
Homework Helper
3,798
94
Both really.

If we have a negative number in the base, such as

[tex]y=\log_{-2}{x}[/tex]

then this is equivalent to [itex]x=(-2)^y[/itex]. What's wrong with this though?

Well, let's try and see what happens when we graph [itex]y=(-1)^x[/itex]. For all even integers x, we get a result of y=1, and for all odd integers, we get -1. What about all the rationals and irrationals in between? It turns out that we can't do it (they're actually complex numbers, but you can ignore that). For the same reason we can't take the square root of -1, we can't plot the graph [itex]y=(-1)^x[/itex] and hence we can't plot [itex]y=(-a)^x=a^x(-1)^x[/itex] for any values other than the integers because ax is simply some positive number. Because this function is so discontinuous, the logarithm with a negative base will have the problem of being defined in some cases such as

[tex]\log_{-2}{-8}=3[/tex]
[tex]\log_{-2}{16}=4[/tex]

but it will fail in most other cases.


That's for negative bases. Taking the log with a positive base of a negative number is pretty easy to figure out.

What does the following equal?
[tex]\log_{2}{-1}[/tex]

In other words, what value of x solves the equation [itex]2^x=-1[/itex] ? We already know that 2anything is a positive number, so how do we ever end up getting a negative number? The result again is complex, but you can think of it as not having an answer.
 
  • Like
Likes 1 person
  • #3
HallsofIvy
Science Advisor
Homework Helper
41,833
961
[itex]log_a(x)= y[/itex] is equivalent to [itex]a^y= x[/itex]. As long as a is positive, [itex]x= a^y[/itex] cannot be negative (if y> 0, x> 1, if y< 0, 0< x< 1) so we cannot have "[itex]log_a(x)[/itex]" with x negative. Further, if we allow the base, a, to be negtive, we will run into problems with fractional powers.

If, say, a= -2 then saying [itex]log_{-2}(x)= 1/2[/itex] is equivalent to saying [itex](-2)^{1/2}= \sqrt{-2}= x[/itex]. But the square root of -2 is not a real number.

Of course, if we extend the real number system and allow both x and y to be any complex numbers, those restrictions to do not apply. In the complex number system, we can have log(x) with x any complex number, including the negative real numbers (although we will need to make a "cut" somewhere and, by convention, that is done along the negative real numbers so the "standard" logarithm" will still not be defined for the negative real numbers), and can have [itex]f(x)= a^x[/itex] for a negative.
 
  • Like
Likes 1 person

Related Threads on Negative logs?

  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
5
Views
22K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
5
Views
750
Replies
10
Views
1K
  • Last Post
Replies
9
Views
3K
  • Last Post
Replies
6
Views
3K
Replies
11
Views
3K
Top