High school calculus student checking in here – first time poster.
I got asked a question by one of my friends: If $\cot x = \frac{1}{\tan(x)}$, how could $\cot(x) = 0$? For this to be possible, he reasoned, $\tan(x)$ would have to be equal to infinity – and division by infinity does not work.
Rewriting $\cot(x)$ as $\frac{\cos(x)}{\sin(x)}$ makes the problem make sense, but doesn't explain why it doesn't make sense in the previous form.
Furthermore, as I was looking for more examples of similar things, I found that (at least according to desmos) $\frac{1}{\ln(x)}$ is satisfied by the coordinate $(0, 0)$. I cannot wrap my head around how this is possible, particularly since $\ln(x)$ is not even defined at $0$.
I wasn't able to find a good answer to this online, and we would really appreciate an elegant (i.e. understandable for high school students) explanation of why this is.
If you define
$$\cot(x):=\dfrac1{\tan(x)},$$ then the cotangent can never be $0$. But if you define it as
$$\cot(x):=\dfrac{\cos(x)}{\sin(x)},$$ then it is indeed zero for all $x$ such that $\cos(x)=0$. The second is the "best" definition, and
$$\cot(x)\equiv\dfrac1{\tan(x)}\equiv\dfrac{\cos(x)}{\sin(x)}$$ is not completely true.
Now if we look at
$$\frac1{\log(x)},$$
this expression is indeed undefined at $x=0$ because the logarithm is undefined. You can extend the definition in a way that makes the function continuous as follows:
$$\begin{cases}x=0\to\lim_{t\to0}\dfrac1{\log(t)},\\x>0\to\dfrac1{\log(x)}.\end{cases}$$
Note that a grapher cannot show you the difference between the definitions, because they differ in isolated points, which are "infinitely tiny".