Is $\log^{-1}n = \frac{1}{\log n}$? I've encountered a solution to a problem where the above step was used. I can't determine the validity of the above line. I have thought a lot about it, but can't prove whether it is right or wrong. Please help?
-
Take $n=e$, then if it was the inverse function you would have $e^e = 1$. – copper.hat Nov 04 '16 at 05:36
-
You could edit the question to show more context, such as the step that included $\log^{-1} n$ and the step before it. The notation seems unusual, and maybe so is the interpretation of the notation in that "solution". – David K Nov 04 '16 at 05:43
2 Answers
Never $\log^{-1} n$ means $\text{antilogarithm}(n) $ i.e $e^n$ because $\log(e^n)=n$ and $\frac{1}{n}$ means inverse of $n$ .
So they are not the same
- 31,062
-
If we'd need to remove the denominator, what could we rewrite $$\frac{1}{\log n}$$ as? I want an expression which has a numerator only. Is it possible? – Somenath Sinha Nov 04 '16 at 05:41
-
1If you really must, then you can use a change of base formula to say that $\log^{-1}_e (n) = \log_n (e)$. – ConMan Nov 04 '16 at 05:42
-
-
-
@SomenathSinha $\frac{1}{\log n} = (\log n)^{-1}$. Is that what you're looking for? – David K Nov 04 '16 at 05:44
-
@DavidK Exactly what I was talking about. Also, can we write $\log (\log n)$ as $\log^2 n$? Is that even valid? – Somenath Sinha Nov 04 '16 at 05:46
-
$\dfrac{1}{\log n}=\dfrac{\log_e e}{\log_e n}=(\dfrac{\log_e e}{\log_e n})^{-1}=(\log_e n)^{-1}$ – Learnmore Nov 04 '16 at 05:47
-
-
@Amartya thanks for the explanation. Can we write $\log (\log n)$ as $\log^2 n$? Is that even valid? – Somenath Sinha Nov 04 '16 at 05:49
-
1@SomenathSinha Some people might write $\log\log n$ as $\log^2 n$ but I don't think I've ever seen it. I think a notation like that would normally be explained in the same document before it was used, in order to avoid misunderstanding. – David K Nov 04 '16 at 05:50
-
I have seen $\log^2 n = \log(\log n)$ occasionally but it is HIGHLY not recommended to the obvious ambiguity. Logic says $\log n * \log n = (\log n)^2 \ne \log (\log n)$. And logic says $\log^2 n$ should mean $\log(\log n))$ that that is sooo visually misleading and ambiguous, I personally, would avoid it at all costs. – fleablood Nov 04 '16 at 06:20
Ouch!
This is very classic ambiguous notation. The notation $f^{-1}(x)$ can mean one of two entirely different meanings depending on context.
It could (but usually doesn't) mean $(f(x))^{-1} = \frac 1{f(x)}$. The is the reciprical of $f$. It is simply the function as a value raised to the $-1$ power.
More frequently it means the functional inverse (if there is one). $f^{-1}(x) = y$ means that $y$ is the value so that $f(y) = x$. For example, if $f(x) = x^3 + 2$ then $f^{-1}(x) = \sqrt[3]{x - 2}$ because if $y = \sqrt[3]{x - 2}$ then $f(y) = x$. And $f(f^{-1}(x)) =x $ by definition.
These two interpretations have NOTHING to do with each other and if you do confuse them (as people often do) you get utterly confusing contradictory nonsense. Example if $f(x) = x^3 + 2$ and we thought both $f^{-1}(x) = \frac 1{f(x)}=\frac 1{x^3 + 2}$ and that $f^{-1}(y) = \sqrt[3]{x-2}$ and THAT MAKES NO FREAKING SENSE WHATSOEVER. (You will not BELIEVE the number of students who get frustrated because that makes no sense at all to them, but are convinced it must be so and it must be their fault that they simply can't understand it.)
So if you are interpreting $\log^{-1} x$ as $\frac 1{\log x}$ (and I highly suggest you do NOT do so-- if you want notation for $\frac 1{\log x}$ use $(\log x)^{-1}$ inside parenthesis instead) then, the answer to the question as ... yeah.
But if you are interpreting $\log^{-1} x$ as the inverse function--- that is, the function so that if $y = \log x$ then $\log^{-1} y = \log^{-1} \log x = x$ (and this is how you SHOULD interpret it) then the answer is an emphatic !!!!NO!!!!!!. As it turns out, $\log^{-1} y = e^y$ (assuming $\log$ is the natural log, base $e$-- if $\log $ it that base 10 log then $\log_{10}^{-1} y = 10^y$).
To confuse the two and think $\log^{-1}(\log y) = y$ and $\log^{-1}(\log y) = \frac 1{\log y} = y$ will result in meaningless, impossible and unresolvable GARBAGE. So don't ever confuse the two.
And I STRONGLY urge you to NEVER use $f^{-1}(x)$ to mean the reciprical but to ALWAYS mean the functional inverse.
So $\log_e^{-1} y = e^y$ and $\log_e^{-1} y \ne \frac 1{\log_e y}$.
- 124,253