Question:
Evaluate limit $$\lim_{x\to 0}\frac{10^x-2^x-5^x+1}{x\tan x}$$
My attempt:
$$\lim_{x\to 0}\frac{10^x-2^x-5^x+1}{x\tan x}$$ $$= \lim_{x\to 0}\frac{(10^x-1)-(2^x-1)-(5^x-1)}{x\tan x}$$ $$= \lim_{x\to 0}\frac{(10^x-1)/x-(2^x-1)/x-(5^x-1)/x}{\tan x}$$ Now using identity $\lim_{x\to 0} \frac{a^x-1}{x}=\ln a$, we get:
$$= \lim_{x\to 0}\frac{\ln 10-\ln5-\ln2}{\tan x}= \lim_{x\to 0}\frac{\ln 1}{\tan x}= \lim_{x\to 0}\frac{0}{\tan x}= 0$$
The answer however is obviously wrong. I have the correct solution in my school book. But I wish to know why my solution is wrong. I have consulted my classmates but none of them can see the problem here either.
Be careful with the identity replacement; there are certain conditions under which it is legitimate.
Suppose $f(x) \sim g(x)$ in the sense that $$ \lim f(x) = \lim g(x) $$ or $$ \lim \frac{f(x)}{g(x)} = 1 $$
You cannot always substitute an equivalent $g$ for $f$, which tends to be wrong, even in simple cases. You may absolutely not use the identity, when $f$ is an addend.
For example, $\lim_{x\rightarrow 0}\frac{\tan x-\sin x}{x^3} = \frac{1}{2}$ (verify!). But if you replace $\tan x$ and $\sin x$ with $x$, which are equivalent when x tends to zero, you get a wrong answer.
Now suppose $f\sim g, u\sim v$. You may substitute equivalents in the following cases: $$\lim \frac{f}{g} = \lim\frac{u}{v}$$ $$\lim f^g = \lim u^v$$ Of course, you may verify, that
$$ \lim (\frac{1}{f})^g = \lim (\frac{1}{u})^v$$ and $$ \lim (1+f)^{\frac{1}{g}} = \lim (1 + u)^{\frac{1}{v}} $$ are all legitimate replacements.
You have to be careful.